Latest Tweets:
No program can say what another will do. Imagine we have a procedure called P You feed in your code, and the input it needs, Well, the truth is that P cannot possibly be, Here’s the trick I would use - and it’s simple to do. And if so, Q would simply print ”Loop!” and then stop; And this program called Q wouldn’t stay on the shelf; If P warns of loops, Q will print ”Loop!” and quit; No matter what P would have done, Q will scoop it: I’ve created a paradox, neat as can be - So, how to escape from this logical mess? You can never discover mechanical means
Now, I won’t just assert that, I’ll prove it to you:
I will prove that although you might work til you drop,
you can’t predict whether a program will stop.
that will snoop in the source code of programs to see
there aren’t infinite loops that go round and around;
and P prints the word ”Fine!” if no looping is found.
and then P takes them both and it studies and reads
and computes whether things will all end as the should
(as opposed to going loopy the way that they could).
because if you wrote it and gave it to me,
I could use it to set up a logical bind
that would shatter your reason and scramble your mind.
I’d define a procedure - we’ll name the thing Q -
that would take and program and call P (of course!)
to tell if it looped, by reading the source;
but if no, Q would go right back to the top,
and start off again, looping endlessly back,
til the universe dies and is frozen and black.
I would run it, and (fiendishly) feed it itself.
What behaviour results when I do this with Q?
When it reads its own source, just what will it do?
yet P is supposed to speak truly of it.
So if Q’s going to quit, then P should say, ”Fine!
- which will make Q go back to its very first line!
Q uses P’s output to make P look stupid.
If P gets things right then it lies in its tooth;
and if it speaks falsely, it’s telling the truth!
and simply by using your putative P.
When you assumed P you stepped into a snare;
Your assumptions have led you right into my lair.
I don’t have to tell you; I’m sure you can guess.
By reductio, there cannot possibly be
a procedure that acts like the mythical P.
for predicting the acts of computing machines.
It’s something that cannot be done. So we users
must find our own bugs; our computers are losers!