Sujet : Re: Flibble’s Leap: Why Behavioral Divergence Implies a Type Distinction in the Halting Problem
De : rjh (at) *nospam* cpax.org.uk (Richard Heathfield)
Groupes : comp.theoryDate : 11. May 2025, 15:44:44
Autres entêtes
Organisation : Fix this later
Message-ID : <vvqd4u$g8a1$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 11/05/2025 14:21, Mr Flibble wrote:
This reframing dissolves the paradox
by making the Halting Problem itself an ill-posed question.
"P is a syntactically correct program in some well-defined Turing-complete language. Does P stop when it is applied to this data X?" is a meaningful and well-formed question. It's not a Carrollian question like Olcott's "what time is it, yes or no?" It has a sensible answer. Either P stops for X, or it doesn't.
It's a question that can in many (but not all) cases be answered quickly and easily enough (and correctly) by humans, often requiring no more than a brief glimpse. (I say 'not all' only because it is not beyond the wit of mankind to trump up extraordinarily complicated and deliberately obfuscated code that might easily defeat a programmer's casual glance.)
Some simple examples in K&R C:
main(){}
main(){for(;;);}
main(){puts("Hello");}
#include <stdio.h>
main(){long c=0;int ch; while((ch = getchar()) != EOF)++c;printf("%ld\n", c);} /* input: the complete works of Shakespeare */
Any competent C programmer can solve these at a glance - Halts, Loops, Halts, Halts, in that order - so why shouldn't a programmer be able to?
The Halting Problem asks a more complicated question. ``Is it possible to write a program that answers the above question for arbitrary P and arbitrary X?"
Again, the question is meaningful and well-formed. It's syntactically and grammatically adequate, and anyone claiming not to know what it means is laying themselves open to a charge of disingenuousness. The only difficult part is the answer, but there's nothing self-contradictory or self-referential or paradoxical about the question.
-- Richard HeathfieldEmail: rjh at cpax dot org dot uk"Usenet is a strange place" - dmr 29 July 1999Sig line 4 vacant - apply within