🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.theory
Article #800

Re: Why I post to the C / C++ groups

#800
From: Python
Date: Sun, 01 Nov 2026 13:46
132 lines
4195 bytes
The problem is not C, and nobody needs to lie about it.

Your question is loaded:

    Does DD simulated by HHH ever reach its own return
    statement WHILE DD IS BEING SIMULATED BY HHH?

If "while" means:

    during the interval in which the recursive simulation
    is still continuing

then of course DD has not yet returned DURING that interval.

That is a tautology, not a proof that the interval lasts forever.

If instead "while" means:

    HHH continues simulating DD forever

then you have simply put the disputed conclusion into the question.

The actual question is:

    CAN the HHH(DD) invoked at line 03 return 0?

If YES:

    HHH(DD) returns 0
      -> Halt_Status = 0
      -> line 04 is false
      -> line 05 is skipped
      -> line 06 returns 0.

If NO, PROVE that it cannot return 0 without assuming that the recursive 
simulation continues forever.

That has always been the missing step.


And we have already demonstrated concretely why recognizing a repeated 
call pattern is insufficient to prove infinite recursion.

I gave you this program:

    typedef void (*fn)(unsigned);

    void F(unsigned);
    void G(unsigned);
    void Done(unsigned);

    void Done(unsigned n)
    {
        (void)n;
    }

    void G(unsigned n)
    {
        fn next[2] = { F, Done };
        fn p = next[n];
        p(n + 1);
    }

    void F(unsigned n)
    {
        G(n);
    }

    void P(void)
    {
        F(0);
    }

Its execution is:

    P
      -> F(0)
      -> G(0)
      -> F(1)
      -> G(1)
      -> Done(2)
      -> return
      -> ...
      -> halt

The same CALL instruction in F calls G twice.

Yet the computation halts, because the computational state is different.

And YOU reported the result of running your HHH on this input:

    "My code did report 0 for non-halting on your input."

P demonstrably halts.

When that was pointed out, your answer was:

    "Then it is simply outside the domain of HHH."

So we already have an actual example demonstrating the flaw in reasoning 
from repeated control-flow structure to non-halting.

Your detector said non-halting.

The program halts.

You then excluded the counterexample from HHH's domain.

This makes the missing proof concerning DD even more important, not less.

You cannot replace:

    I have observed another recursive call

with:

    therefore there can never be a return.

For DD, you still need to establish:

    HHH(DD) at line 03 CANNOT return 0.

Another nesting level does not establish that.
Ten nesting levels do not establish that.
Any finite recursive prefix does not establish that.

And "while the recursion continues, it continues" certainly does not 
establish that it continues forever.

Calling everyone who refuses to accept that missing inference a liar does 
not supply the inference.
Technical Details
Message-ID: <WsALBoC7TQa8pUPlRzO68X0EVbU@jntp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!pasdenom.info!from-devjntp
References: <11c7f6i$20cva$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!pasdenom.info!from-devjntp
Message-ID: <WsALBoC7TQa8pUPlRzO68X0EVbU@jntp>
JNTP-Route: nemoweb.net
JNTP-DataType: Article
Subject: Re: Why I post to the C / C++ groups
References: <11c7f6i$20cva$1@dont-email.me>
Newsgroups: comp.theory,comp.lang.c,comp.lang.c++
JNTP-HashClient: EdlYXn7xX0hSI1nS5nZVgggWMoo
JNTP-ThreadID: 11c7f6i$20cva$1@dont-email.me
JNTP-Uri: https://www.nemoweb.net/?DataID=WsALBoC7TQa8pUPlRzO68X0EVbU@jntp
User-Agent: Nemo/1.0
JNTP-OriginServer: nemoweb.net
Date: Sun, 01 Nov 26 13:46:18 +0000
Organization: Nemoweb
JNTP-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Injection-Info: nemoweb.net; posting-host="71962ec0b262db26e9002693f4d52627a6dd14a2"; logging-data="2026-11-01T13:46:18Z/9863852"; posting-account="190@nemoweb.net"; mail-complaints-to="julien.arlandis@gmail.com"
JNTP-ProtocolVersion: 0.21.1
JNTP-Server: PhpNemoServer/0.94.5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-JNTP-JsonNewsGateway: 0.96
From: Python <python@cccp.invalid>