Article View: comp.ai.philosophy
Article #319Re: How to make a generic halt decider? --- clarification
From: Mike Terry
Date: Wed, 11 Nov 2026 17:36
Date: Wed, 11 Nov 2026 17:36
496 lines
18314 bytes
18314 bytes
On 11/11/2026 13:30, Python wrote:
> Le 11/11/2026 à 14:23, olcott a écrit :
>> On 11/11/2026 6:23 AM, Python wrote:
>>> Le 11/11/2026 à 05:41, olcott a écrit :
>>>> On 11/10/2026 10:17 AM, Python wrote:
>>>>> Le 10/11/2026 à 17:16, Python a écrit :
>>>>>> Le 10/11/2026 à 17:15, olcott a écrit :
>>>>>>> On 11/10/2026 9:38 AM, Python wrote:
>>>>>>>> Le 10/11/2026 à 15:57, olcott a écrit :
>>>>>>>>> On 11/10/2026 4:50 AM, Python wrote:
>>>>>>>>>> Le 10/11/2026 à 02:02, olcott a écrit :
>>>>>>>>>>> On 11/9/2026 3:29 PM, Python wrote:
>>>>>>>>>>>> Le 09/11/2026 à 19:18, olcott a écrit :
>>>>>>>>>>>>> On 11/9/2026 9:40 AM, Python wrote:
>>>>>>>>>>>>>> Peter,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> "simulated D would never stop running
>>>>>>>>>>>>>> unless [simulation is] aborted"
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> becomes:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> "simulated D would never stop running
>>>>>>>>>>>>>> while being simulated"
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> FINE.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> And now?
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> (1) [simulated D would never stop running unless aborted]
>>>>>>>>>>>>> is translated into
>>>>>>>>>>>>> "simulated D would never stop running while being simulated"
>>>>>>>>>>>>> [would never stop running]
>>>>>>>>>>>>> is translated into
>>>>>>>>>>>>> never halts
>>>>>>>>>>>>>
>>>>>>>>>>>>> [simulated D would never stop running unless aborted]
>>>>>>>>>>>>> becomes
>>>>>>>>>>>>> "simulated D would never halt while being simulated"
>>>>>>>>>>>>>
>>>>>>>>>>>>> (2) On 11/2/2026 8:50 AM, Python wrote:
>>>>>>>>>>>>> > WHILE THE SIMULATION CONTINUES,
>>>>>>>>>>>>> > DD DOES NOT REACH ITS RETURN.
>>>>>>>>>>>>> >
>>>>>>>>>>>>> [REACH ITS RETURN]
>>>>>>>>>>>>> is translated into
>>>>>>>>>>>>> HALT
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 11/2/2026 8:50 AM, Python wrote:
>>>>>>>>>>>>> > WHILE THE SIMULATION CONTINUES,
>>>>>>>>>>>>> > DD DOES NOT REACH ITS RETURN.
>>>>>>>>>>>>> >
>>>>>>>>>>>>> is translated into
>>>>>>>>>>>>> WHILE THE SIMULATION CONTINUES DD DOES NOT HALT
>>>>>>>>>>>>>
>>>>>>>>>>>>> (1) "simulated D would never halt while being simulated"
>>>>>>>>>>>>> (2) WHILE THE SIMULATION CONTINUES DD DOES NOT HALT
>>>>>>>>>>>>
>>>>>>>>>>>> Peter,
>>>>>>>>>>>>
>>>>>>>>>>>> FINALLY, you have written two statements that can be compared directly.
>>>>>>>>>>>>
>>>>>>>>>>>> (1) Simulated D would never halt
>>>>>>>>>>>> while being simulated.
>>>>>>>>>>>>
>>>>>>>>>>>> (2) WHILE THE SIMULATION CONTINUES,
>>>>>>>>>>>> DD DOES NOT HALT.
>>>>>>>>>>>>
>>>>>>>>>>>> As English sentences, these CAN express the same proposition.
>>>>>>>>>>>>
>>>>>>>>>>> Show how they can express different propositions.
>>>>>>>>>>> Otherwise acknowledge that they cannot express
>>>>>>>>>>> different propositions.
>>>>>>>>>>
>>>>>>>>>> Peter,
>>>>>>>>>>
>>>>>>>>>> "Show how they can express different propositions."
>>>>>>>>>>
>>>>>>>>>> I ALREADY FUCKING DID.
>>>>>>>>>>
>>>>>>>>>> Consider a program D that halts after 1,000 steps.
>>>>>>>>>>
>>>>>>>>>> Simulate D for 100 steps, then abort the simulation.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> That does not meet either one
>>>>>>>>>
>>>>>>>>> *This is the five way agreement* (Sunday November 1)
>>>>>>>>> There does not exist any implementation of C function HHH
>>>>>>>>> that simulates C function DD according to the operational
>>>>>>>>> semantics of C such that the simulated C function DD reaches
>>>>>>>>> its own simulated return statement in any N finite number of
>>>>>>>>> steps.
>>>>>>>>
>>>>>>>> Peter,
>>>>>>>>
>>>>>>>> "That does not meet either one."
>>>>>>>>
>>>>>>>> Of course it doesn't meet your alleged "five-way agreement".
>>>>>>>>
>>>>>>>> BECAUSE THE FIVE-WAY AGREEMENT IS NOT ABOUT WHAT YOU DISHONESTLY PRETEND IT IS. :-)
>>>>>>>>
>>>>>>>> You have once again replaced what I ACTUALLY agreed to with a much stronger proposition that
>>>>>>>> I NEVER agreed to.
>>>>>>>>
>>>>>>>> Your alleged agreement now contains:
>>>>>>>>
>>>>>>>> "There does not exist ANY implementation..."
>>>>>>>>
>>>>>>>> "... in ANY N finite number of steps."
>>>>>>>>
>>>>>>>> WHERE THE FUCK DID I AGREE TO THAT?
>>>>>>>>
>>>>>>>> I agreed that DD does not reach its return WHILE THE SIMULATION CONTINUES.
>>>>>>>>
>>>>>>>> You have transformed that into a universal claim about EVERY possible implementation of HHH
>>>>>>>> and EVERY finite number of steps.
>>>>>>>>
>>>>>>>> THAT IS PRECISELY THE FALSIFICATION I HAVE BEEN POINTING OUT FOR DAYS.
>>>>>>>>
>>>>>>>> And your counterexample objection is ridiculous.
>>>>>>>>
>>>>>>>> I provided a counterexample to YOUR CLAIMED LOGICAL EQUIVALENCE.
>>>>>>>>
>>>>>>>> You reject it because it does not satisfy the stronger proposition whose derivation is
>>>>>>>> precisely what is being challenged.
>>>>>>>>
>>>>>>>> CIRCULAR REASONING, AGAIN.
>>>>>>>>
>>>>>>>> Your alleged five-way agreement is not a proof.
>>>>>>>>
>>>>>>>> Your misrepresentation of my words is not a proof.
>>>>>>>>
>>>>>>>> And repeating both for another five years won't produce one.
>>>>>>>
>>>>>>> Do you agree with this?
>>>>>>> There does not exist any implementation of C function HHH
>>>>>>> that simulates C function DD according to the operational
>>>>>>> semantics of C such that the simulated C function DD reaches
>>>>>>> its own simulated return statement in any N finite number of
>>>>>>> steps.
>>>>>>
>>>>>> Peter,
>>>>>>
>>>>>> NO.
>>>>>>
>>>>>> And FINALLY, you are asking whether I agree with this proposition instead of dishonestly
>>>>>> pretending that I already agreed to it.
>>>>>>
>>>>>> Your claim quantifies over ANY implementation of HHH.
>>>>>>
>>>>>> Consider an implementation of HHH that correctly simulates DD, but whose simulated invocation
>>>>>> of HHH returns 0.
>>>>>>
>>>>>> According to the operational semantics of C, DD then executes:
>>>>>>
>>>>>> int Halt_Status = HHH(DD);
>>>>>>
>>>>>> if (Halt_Status)
>>>>>> HERE: goto HERE;
>>>>>>
>>>>>> return Halt_Status;
>>>>>>
>>>>>> HHH returns 0.
>>>>>>
>>>>>> The conditional branch is not taken.
>>>>>>
>>>>>> DD reaches its return.
>>>>>>
>>>>>> END OF FUCKING STORY.
>>>>>>
>>>>>> If you want to exclude such an implementation, you must specify PRECISELY what additional
>>>>>> constraints you impose on HHH.
>>>>>>
>>>>>> And then prove your proposition under those constraints.
>>>>>>
>>>>>> You cannot quantify over ANY implementation and silently restrict that quantification whenever
>>>>>> someone provides a counterexample.
>>>>>>
>>>>>> So, once again:
>>>>>>
>>>>>> NO, I DO NOT AGREE WITH YOUR PROPOSITION.
>>>>>>
>>>>>> And I NEVER DID.
>>>>>
>>>>>
>>>>> A technical clarification concerning my previous message.
>>>>>
>>>>> You might object that the HHH executing the simulation and the HHH invoked by the simulated DD
>>>>> must be the SAME implementation.
>>>>>
>>>>> FINE.
>>>>>
>>>>> Consider the following implementation, expressed in C-like pseudocode:
>>>>>
>>>>> int HHH(ptr P)
>>>>> {
>>>>> static int depth = 0;
>>>>>
>>>>> if (depth > 0)
>>>>> return 0;
>>>>>
>>>>> depth++;
>>>>> simulate(P);
>>>>> depth--;
>>>>>
>>>>> return 1;
>>>>> }
>>>>>
>>>>> Here, simulate(P) faithfully simulates the execution of P, including the code of HHH itself and
>>>>> its access to the simulated state.
>>>>>
>>>>> The execution proceeds as follows:
>>>>>
>>>> int HHHH(ptr P);
>>>>
>>>> int DDDD()
>>>> {
>>>> int Halt_Status = HHHH(DDDD);
>>>> if (Halt_Status)
>>>> HERE: goto HERE;
>>>> return Halt_Status;
>>>> }
>>>>
>>>> int simulateXXX(ptr P)
>>>> {
>>>> P();
>>>> return 1;
>>>> }
>>>>
>>>> int HHHH(ptr P)
>>>> {
>>>> static int depth = 0;
>>>>
>>>> if (depth > 0)
>>>> return 0;
>>>>
>>>> depth++;
>>>> simulateXXX(P);
>>>> depth--;
>>>> return 1;
>>>> }
>>>>
>>>> int main()
>>>> {
>>>> Output("Input_Halts = ", HHHH(DDDD));
>>>> return 0;
>>>> }
>>>>
>>>> I can give the the machine code trace.
>>>> It is quite verbose. The simulated DDDD
>>>> never reaches its own simulated return
>>>> and HHHH returns the correct halt status.
>>>>
>>>> dbush could see that the meaning of these words made them true:
>>>>
>>>> There does not exist any implementation of C function HHH
>>>> that simulates C function DD according to the operational
>>>> semantics of C such that the simulated C function DD reaches
>>>> its own simulated return statement in any N finite number of
>>>> steps.
>>>>
>>>> (1) This seems dead obvious to me.
>>>> (2) The above words
>>>> *There does not exist any implementation of C function HHH*
>>>> that dbush composed are better than my own best words.
>>>
>>> Peter,
>>>
>>> THANK YOU.
>>>
>>> You have just provided a concrete C program that REFUTES YOUR OWN CLAIM.
>>>
>>> Let's execute YOUR code.
>>>
>>> Initially:
>>>
>>> depth = 0
>>>
>>> The outer HHHH(DDDD) executes:
>>>
>>> depth++;
>>>
>>> Now:
>>>
>>> depth = 1
>>>
>>> Then:
>>>
>>> simulateXXX(DDDD);
>>>
>>> which executes:
>>>
>>> DDDD();
>>>
>>> Inside DDDD:
>>>
>>> Halt_Status = HHHH(DDDD);
>>>
>>> This nested invocation executes:
>>>
>>> if (depth > 0)
>>> return 0;
>>>
>>> Since depth == 1, HHHH returns 0.
>>>
>>> Back inside DDDD:
>>>
>>> Halt_Status == 0
>>>
>>> Therefore:
>>>
>>> if (Halt_Status)
>>> HERE: goto HERE;
>>>
>>> does NOT enter the loop.
>>>
>>> And the very next statement is:
>>>
>>> return Halt_Status;
>>>
>>> DDDD RETURNS ZERO.
>>>
>>> The outer HHHH then decrements depth and returns 1.
>>>
>>> So YOUR OWN PROGRAM establishes:
>>>
>>> DDDD reaches its return statement.
>>>
>>> HHHH(DDDD) returns 1.
>>>
>>> Both executions terminate.
>>>
>>> The returned halt status is correct.
>>>
>>> And yet you write:
>>>
>>> "The simulated DDDD never reaches
>>> its own simulated return"
>>>
>>> WHAT THE FUCK ARE YOU TALKING ABOUT?
>>>
>>> Your simulateXXX calls DDDD directly rather than interpreting its machine instructions. But the
>>> actual C execution is perfectly clear.
>>>
>>> YES, PLEASE PROVIDE THE MACHINE CODE TRACE.
>>>
>>> In particular, show us where DDDD supposedly fails to execute its return instruction.
>>>
>>> Because according to the C code YOU JUST POSTED, it MUST reach that return.
>>>
>>> You have managed to construct a counterexample to your own universal claim, POST IT YOURSELF, and
>>> then declare that it proves the exact opposite.
>>>
>>> That is quite an achievement.
>>
>> _HHHH()
>> [000021f6] 55 push ebp
>> [000021f7] 8bec mov ebp,esp
>> [000021f9] 833d0000000000 cmp dword [00000000],+00
>> [00002200] 7e04 jng 00002206
>> [00002202] 33c0 xor eax,eax
>> [00002204] eb2d jmp 00002233
>> [00002206] a100000000 mov eax,[00000000]
>> [0000220b] 83c001 add eax,+01
>> [0000220e] a300000000 mov [00000000],eax
>> [00002213] 8b4d08 mov ecx,[ebp+08]
>> [00002216] 51 push ecx
>> [00002217] e84a000000 call 00002266
>> [0000221c] 83c404 add esp,+04
>> [0000221f] 8b1500000000 mov edx,[00000000]
>> [00002225] 83ea01 sub edx,+01
>> [00002228] 891500000000 mov [00000000],edx
>> [0000222e] b801000000 mov eax,00000001
>> [00002233] 5d pop ebp
>> [00002234] c3 ret
>> Size in bytes:(0063) [00002234]
>>
>> _DDDD()
>> [00002236] 55 push ebp
>> [00002237] 8bec mov ebp,esp
>> [00002239] 51 push ecx
>> [0000223a] 6836220000 push 00002236
>> [0000223f] e8b2ffffff call 000021f6
>> [00002244] 83c404 add esp,+04
>> [00002247] 8945fc mov [ebp-04],eax
>> [0000224a] 837dfc00 cmp dword [ebp-04],+00
>> [0000224e] 7402 jz 00002252
>> [00002250] ebfe jmp 00002250
>> [00002252] 8b45fc mov eax,[ebp-04]
>> [00002255] 8be5 mov esp,ebp
>> [00002257] 5d pop ebp
>> [00002258] c3 ret
>> Size in bytes:(0035) [00002258]
>>
>> _simulateXXX()
>> [00002266] 55 push ebp
>> [00002267] 8bec mov ebp,esp
>> [00002269] ff5508 call dword [ebp+08]
>> [0000226c] b801000000 mov eax,00000001
>> [00002271] 5d pop ebp
>> [00002272] c3 ret
>> Size in bytes:(0013) [00002272]
>>
>> _main()
>> [00002276] 55 push ebp
>> [00002277] 8bec mov ebp,esp
>> [00002279] 6836220000 push 00002236
>> [0000227e] e873ffffff call 000021f6
>> [00002283] 83c404 add esp,+04
>> [00002286] 50 push eax
>> [00002287] 6887070000 push 00000787
>> [0000228c] e815e5ffff call 000007a6
>> [00002291] 83c408 add esp,+08
>> [00002294] 33c0 xor eax,eax
>> [00002296] 5d pop ebp
>> [00002297] c3 ret
>> Size in bytes:(0034) [00002297]
>>
>>
>>
>>
>>
>> machine stack stack machine assembly
>> address address data code language
>> ======== ======== ======== ============== =============
>> [00002276][001039d6][00000000] 55 push ebp
>> [00002277][001039d6][00000000] 8bec mov ebp,esp
>> [00002279][001039d2][00002236] 6836220000 push 00002236
>>
>> // call HHH(DDDD)
>> [0000227e][001039ce][00002283] e873ffffff call 000021f6
>> [000021f6][001039ca][001039d6] 55 push ebp
>> [000021f7][001039ca][001039d6] 8bec mov ebp,esp
>> [000021f9][001039ca][001039d6] 833d0000000000 cmp dword [00000000],+00
>> [00002200][001039ca][001039d6] 7e04 jng 00002206
>> [00002202][001039ca][001039d6] 33c0 xor eax,eax
>> [00002204][001039ca][001039d6] eb2d jmp 00002233
>> [00002233][001039ce][00002283] 5d pop ebp
>> [00002234][001039d2][00002236] c3 ret
>> // end HHHH
>> [00002283][001039d6][00000000] 83c404 add esp,+04
>> [00002286][001039d2][00000000] 50 push eax
>> [00002287][001039ce][00000787] 6887070000 push 00000787
>> [0000228c][001039ce][00000787] e815e5ffff call 000007a6
>> Input_Halts = 0
>> [00002291][001039d6][00000000] 83c408 add esp,+08
>> [00002294][001039d6][00000000] 33c0 xor eax,eax
>> [00002296][001039da][90909090] 5d pop ebp
>> [00002297][001039de][90909090] c3 ret
>> Number of Instructions Executed(19) == 0 Pages
>
> Peter,
>
> THANK YOU FOR THE MACHINE CODE TRACE.
>
> It exposes the problem immediately.
>
> Look at YOUR trace:
>
> 000021f9 cmp dword [00000000],+00
> 00002200 jng 00002206
> 00002202 xor eax,eax
> 00002204 jmp 00002233
>
> The conditional jump is NOT taken.
>
> Therefore, the condition:
>
> depth > 0
>
> is TRUE at the very beginning of the OUTER HHHH invocation.
>
> BUT YOUR SOURCE CODE DECLARES:
>
> static int depth = 0;
>
> At the start of the program, depth MUST be zero.
>
> Consequently, the correct execution must take the branch to 00002206, increment depth, and call
> simulateXXX(DDDD).
Yeah, this is the problem in PO's x86utm that I mentioned in response to your previous
counter-example code: it does not bother to support the BSS segment. Because you have initialised
depth to zero, the compiler assigns it to the BSS segment (which contains zeroed storage), but PO
never maps that to anything. Hence its assignment to virtual address 00000000 in the trace. I also
mentioned the x86utm bug where PO only process relocations in the code segment, although that does
not impact your code here. Looks like PO didn't see my comments and rush to fix his code!
If PO fixed x86utm it would behave as you've described. An alternative bypass would be for you to
initialise depth to 1, so the compiler will map it to the DATA segment rather than BSS. (x86utm
handles the DATA segment.) Then in HHHH you could test "if (depth > 1)" instead of "if (depth > 0)".
Mike.
Technical Details
Message-ID:
<11d293i$3894n$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cm17m$32os9$1@dont-email.me> <Qtsacsv6HXg1byeuq2OEL2hbLNM@jntp> <11cvbcb$281ga$1@dont-email.me> <sIBp2ETzmxdStWXXK9BGjbXwblc@jntp> <11cvfud$29rks$1@dont-email.me> <SwiGWA_toSUrAbFADGlM_8NoeaM@jntp> <d4Yj2OQ_D_58YNHEkqC-RwNQopQ@jntp> <11d0rkt$2oioh$1@dont-email.me> <8S3uaNJkZ29vrA-3qn9Sn9NIYgs@jntp> <11d1q7u$329cc$1@dont-email.me> <Ibncd-YiDvyr5CwEsQh3cPo1RjI@jntp>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Mike Terry <news.dead.person.stones@darjeeling.plus.com> Newsgroups: comp.theory,sci.logic,comp.ai.philosophy Subject: Re: How to make a generic halt decider? --- clarification Date: Wed, 11 Nov 2026 17:36:50 +0000 Organization: A noiseless patient Spider Lines: 496 Message-ID: <11d293i$3894n$1@dont-email.me> References: <11cm17m$32os9$1@dont-email.me> <Qtsacsv6HXg1byeuq2OEL2hbLNM@jntp> <11cvbcb$281ga$1@dont-email.me> <sIBp2ETzmxdStWXXK9BGjbXwblc@jntp> <11cvfud$29rks$1@dont-email.me> <SwiGWA_toSUrAbFADGlM_8NoeaM@jntp> <d4Yj2OQ_D_58YNHEkqC-RwNQopQ@jntp> <11d0rkt$2oioh$1@dont-email.me> <8S3uaNJkZ29vrA-3qn9Sn9NIYgs@jntp> <11d1q7u$329cc$1@dont-email.me> <Ibncd-YiDvyr5CwEsQh3cPo1RjI@jntp> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 11 Nov 2026 17:36:51 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3417239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LPMqywDfg8oaqzAW+mANp9v6V+iRfJUw="; posting-host="53b5cd1839ed44a15102b1f5ef651426" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 SeaMonkey/2.53.23 Cancel-Lock: sha1:PmWWXkYfp+WvFIkxphWJAqqTSUg= sha256:2M3m0tpeGvdvbhF6yC+5slp5TvBO+pYbNT7sE/3GLmI= sha1:9LpFKJwLe+41sgPZrOihfU0gBc4= sha256:5pZB3nON3ZD1/8Daxz2WNQqvNEPqMmONQbEX8X2Dc54= In-Reply-To: <Ibncd-YiDvyr5CwEsQh3cPo1RjI@jntp>