Sujet : Re: DDD correctly emulated by HHH is correctly rejected as non-halting.
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.theoryDate : 15. Jul 2024, 08:41:06
Autres entêtes
Organisation : -
Message-ID : <v72jqi$juvg$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Unison/2.2
On 2024-07-14 14:13:41 +0000, olcott said:
On 7/14/2024 3:40 AM, Mikko wrote:
On 2024-07-13 12:22:24 +0000, olcott said:
On 7/13/2024 3:00 AM, Mikko wrote:
On 2024-07-12 13:20:53 +0000, olcott said:
On 7/12/2024 3:03 AM, Mikko wrote:
On 2024-07-11 14:10:24 +0000, olcott said:
On 7/11/2024 1:25 AM, Mikko wrote:
On 2024-07-10 17:53:38 +0000, olcott said:
On 7/10/2024 12:45 PM, Fred. Zwarts wrote:
Op 10.jul.2024 om 17:03 schreef olcott:
typedef void (*ptr)();
int HHH(ptr P);
void DDD()
{
HHH(DDD);
}
int main()
{
HHH(DDD);
}
Unneeded complexity. It is equivalent to:
int main()
{
return HHH(main);
}
Every time any HHH correctly emulates DDD it calls the
x86utm operating system to create a separate process
context with its own memory virtual registers and stack,
thus each recursively emulated DDD is a different instance.
However, each of those instances has the same sequence of instructions
that the x86 language specifies the same operational meaning.
*That is counter-factual*
When DDD is correctly emulated by HHH according to the
semantics of the x86 programming language HHH must abort
its emulation of DDD or both HHH and DDD never halt.
There is not "must" anywhere in the semantics of the programming language.
The semantics of the language specifies the behavior of
the machine code thus deriving the must.
How can one derive "must" from the semantics of the machine code?
Deciders are required to (thus must) halt.
The semantics of the x86 language does not require that, nor that any of
the programs is a decider.
The subject our our conversion is a simulating termination
analyzer
No, it is not. As stated on the Subject line, the subject is correctness of
the rejection of DDD as non-halting.
AKA partial halt decider
That "AKA" is incorrect. The term "termination analyzer" means a program
of a certain kind and the term "partial halt decider" means a program of
a different kind.
that accepts a finite string of x86 code as specifying halting behavior
or rejects this finite string. Deciders are required to halt thus must
abort the emulation of any input that would prevent this.
However, that is not sufficient. The decider must not accpet inputs that
its specification does not specify as acceptable and must not reject inputs
that its specification does not specify as rejectable. As you call your
program a "partial halt decider" you should also specify how it is partial,
i.e., what inputs it is required to answer the same whay as a halt decider
and what it may do with the other inputs.
-- Mikko