Sujet : DD simulated by HHH cannot possibly halt (Halting Problem)
De : polcott333 (at) *nospam* gmail.com (olcott)
Groupes : comp.lang.cDate : 05. Apr 2025, 07:14:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vsqhov$1hl94$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
On 4/4/2025 10:49 PM, Richard Heathfield wrote:
On 05/04/2025 00:41, olcott wrote:
*Simulating termination analyzer Principle*
It is always correct for any simulating termination
analyzer to stop simulating and reject any input that
would otherwise prevent its own termination. The
only rebuttal to this is rejecting the notion that
deciders must always halt.
typedef void (*ptr)();
int HHH(ptr P);
int DD()
{
int Halt_Status = HHH(DD);
if (Halt_Status)
HERE: goto HERE;
return Halt_Status;
}
int main()
{
HHH(DD);
}
In other words, you operate on the principle that deciders don't have to (and indeed can't) always make a correct decision on whether an input program halts.
The termination analyzer HHH would be correct
to determine that it must stop simulating DD to
prevent its own non-termination. That the entire
scope of this whole post.
<snip>
-- Copyright 2025 Olcott "Talent hits a target no one else can hit; Geniushits a target no one else can see." Arthur Schopenhauer