Sujet : Re: Every sufficiently competent C programmer knows --- Semantic Property of Finite String
De : polcott333 (at) *nospam* gmail.com (olcott)
Groupes : comp.theoryDate : 14. Mar 2025, 16:51:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vr1ja0$1ev1a$9@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Mozilla Thunderbird
On 3/14/2025 10:04 AM, wij wrote:
On Fri, 2025-03-14 at 09:35 -0500, olcott wrote:>>
void DDD()
{
HHH(DDD);
return;
}
>
DDD correctly simulated by HHH cannot possibly reach
its own "return" instruction in any finite number of
correctly simulated steps.
>
That you are clueless about the semantics of something
as simple as a tiny C function proves that you are not
competent to review my work.
>
https://en.wikipedia.org/wiki/Halting_problem
In computability theory, the halting problem is the problem of determining, from a description of an
arbitrary computer program and an input, whether the program will finish running, or continue to run
forever.
That means: H(D)=1 if D() halts and H(D)=0 if D() does not halt.
But, it seems you don't understand English, as least as my level, ....
void DDD()
{
HHH(DDD);
return;
}
The only difference between HHH and HHH1 is that they are
at different locations in memory. DDD simulated by HHH1
has identical behavior to DDD() directly executed in main().
The semantics of the finite string input DDD to HHH specifies
that it will continue to call HHH(DDD) in recursive simulation.
The semantics of the finite string input DDD to HHH1 specifies
to simulate to DDD exactly once.
When HHH(DDD) reports on the behavior that its input finite
string specifies it can only correctly report non-halting.
When HHH(DDD) is required to report on behavior other than
the behavior that its finite string specifies HHH is not
a decider thus not a halt decider.
All deciders are required to compute the mapping from
their input finite string to the semantic or syntactic property
that this string specifies. Deciders return true when this
string specifies this property otherwise they return false.
-- Copyright 2025 Olcott "Talent hits a target no one else can hit; Geniushits a target no one else can see." Arthur Schopenhauer