hn-classics/_stories/2008/10791113.md

10 KiB
Raw Permalink Blame History

created_at title url author points story_text comment_text num_comments story_id story_title story_url parent_id created_at_i _tags objectID year
2015-12-25T12:57:10.000Z How Dr. Seuss would prove the halting problem undecidable (2008) http://ebiquity.umbc.edu/blogger/2008/01/19/how-dr-suess-would-prove-the-halting-problem-undecidable/ amelius 99 8 1451048230
story
author_amelius
story_10791113
10791113 2008

Source

How Dr. Seuss would prove the halting problem undecidable

| ----- | | | | | | |
| | UMBC_ e_biquity | | | |

about usresearchpeoplepublicationsnewsphotosevents / talks / meetingsblogtagsinternalmore

| ----- | | | | | | |

| ----- | | | | | | | | |

How Dr. Seuss would prove the halting problem undecidable

« Semantic Wave 2008: Industry Roadmap to Web 3.0

Social Web Technologies, UMBC, Spring 2008, MW 7:10pm »

How Dr. Seuss would prove the halting problem undecidable

Tim Finin, 11:12am 19 January 2008

I just discovered (via del.icio.us/polular) an extraordinary proof of the halting problem by linguist Geoffrey Pullum, now at the University of Edinburgh. Whats unusual about it is that its written as a poem in the style of Dr. Seuss.

Geoffrey K. Pullum, Scooping the loop snooper: An elementary proof of the undecidability of the halting problem. Mathematics Magazine 73.4 (October 2000), 319-320.

Its a marvelous proof, sure to liven up any undergraduate theory of computation class. But I noticed errors in the proof — not logical errors, but a transcriptional ones in the form of a mangled word, perhaps introduced by an OCR system. The third line of the fifth stanza reads “that would take and program and call P (of course!)” which has problems in syntax, semantics, rhythm and meter. Id guess it should be “that would take any program and call P (of course!)”. Similarly, “the” in the third line in the third stanza should probably be “they”. Most of the online version I found had these errors, but I eventually found what I take to be a correct version on the QED blog. Ive not been able to get to the original version in Mathematical Magazine to verify the corrected version which I include below.


 

Scooping the Loop Snooper

an elementary proof of the undecidability of the halting problem

Geoffrey K. Pullum, University of Edinburgh

No program can say what another will do.
Now, I wont just assert that, Ill prove it to you:
I will prove that although you might work til you drop,
you cant predict whether a program will stop.

Imagine we have a procedure called P
that will snoop in the source code of programs to see
there arent infinite loops that go round and around;
and P prints the word “Fine!” if no looping is found.

You feed in your code, and the input it needs,
and then P takes them both and it studies and reads
and computes whether things will all end as they should
(as opposed to going loopy the way that they could).

Well, the truth is that P cannot possibly be,
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.

Heres the trick I would use and its simple to do.
Id define a procedure well name the thing Q
that would take any program and call P (of course!)
to tell if it looped, by reading the source;

And if so, Q would simply print “Loop!” and then stop;
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.

And this program called Q wouldnt stay on the shelf;
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?

If P warns of loops, Q will print “Loop!” and quit;
yet P is supposed to speak truly of it.
So if Qs going to quit, then P should say, “Fine!”
which will make Q go back to its very first line!

No matter what P would have done, Q will scoop it:
Q uses Ps output to make P look stupid.
If P gets things right then it lies in its tooth;
and if it speaks falsely, its telling the truth!

Ive created a paradox, neat as can be
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.

So, how to escape from this logical mess?
I dont have to tell you; Im sure you can guess.
By reductio, there cannot possibly be
a procedure that acts like the mythical P.

You can never discover mechanical means
for predicting the acts of computing machines.
Its something that cannot be done. So we users
must find our own bugs; our computers are losers!

  1. Researchers prove Rubics Cube solvable in 20 moves or less
  2. Got a linguistic fluff problem?
  3. Parsing Perl considered undecidable
  4. Game theoretic analysis of the toilet seat problem

Categories: GENERAL, Humor **Comments: ** Comments Off on How Dr. Seuss would prove the halting problem undecidable

Comments are closed.

| |

Ebiquity Blog

  Home | Archive | Login | Feed

[Ebiquity Recent Posts][38]

  • [paper: Cleaning Noisy Knowledge Graphs][39]
  • [Videos of ISWC 2017 talks][40]
  • [Jennifer Sleeman receives AI for Earth grant from Microsoft][41]
  • [Link Before You Share: Managing Privacy Policies through Blockchain][42]
  • [paper: Automated Knowledge Extraction from the Federal Acquisition Regulations System][43]

[Ebiquity rdfs:seeAlso][44]

| |

| ----- | | [UMBC][45]  | home · [contact][46] · [about][47] · [site map][48] · [legal][49] · [privacy][50] · ©1999-2018 ebiquity · design/code ©2003-2018 [Filip Perich][51] · [XG][52]

[38]: [39]: https://ebiquity.umbc.edu/blogger/2018/01/27/paper-cleaning-noisy-knowledge-graphs/ "Permanent Link: paper: Cleaning Noisy Knowledge Graphs" [40]: https://ebiquity.umbc.edu/blogger/2017/12/16/videos-of-iswc-2017-talks/ "Permanent Link: Videos of ISWC 2017 talks" [41]: https://ebiquity.umbc.edu/blogger/2017/12/12/jennifer-sleeman-receives-ai-for-earth-grant-from-microsoft/ "Permanent Link: Jennifer Sleeman receives AI for Earth grant from Microsoft" [42]: https://ebiquity.umbc.edu/blogger/2017/12/04/link-before-you-share-managing-privacy-policies-through-blockchain/ "Permanent Link: Link Before You Share: Managing Privacy Policies through Blockchain" [43]: https://ebiquity.umbc.edu/blogger/2017/11/28/paper-automated-knowledge-extraction-from-the-federal-acquisition-regulations-system/ "Permanent Link: paper: Automated Knowledge Extraction from the Federal Acquisition Regulations System" [44]: http://delicious.com/ebiquity/seealso [45]: https://www.cs.umbc.edu/ [46]: http://ebiquity.umbc.edu/us/contact/ [47]: http://ebiquity.umbc.edu/us/ [48]: http://ebiquity.umbc.edu/map/ [49]: http://ebiquity.umbc.edu/legal/ [50]: http://ebiquity.umbc.edu/legal/privacy/ [51]: http://perich.net/ [52]: http://perich.net/work/xg_shared_spectrum.php