🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.theory
Article #948

Olcott's HHH: a concrete counterexample and the claimed endorsements

#948
From: Python
Date: Fri, 30 Oct 2026 23:02
261 lines
8441 bytes
For future reference, since Peter Olcott keeps presenting his C program 
HHH as a halt decider and repeatedly invokes supposed agreements from 
other people in support of it, here are a few facts worth keeping 
together.

1. A concrete counterexample to HHH

Peter's published HHH contains a detector which, roughly speaking, treats 
repetition of a CALL from the same address to the same function, with no 
conditional branch in the relevant region, as evidence of infinite 
recursion/non-halting.

I gave him this deliberately simple terminating 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);
    }

There is no global state hidden here.

The state is explicitly carried in the argument.

The execution is:

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

In particular, the same CALL instruction in F calls G more than once.

But the complete machine states are different: among other things, the 
argument is different.

So repetition of the same control location and target is NOT repetition of 
the same computational configuration.

Peter actually ran his HHH on my example and reported:

    My code did report 0 for non-halting on your input.
    I don't know if this is correct or not.
    HHH(P)==0 may have been correct, IDK.

It isn't correct.

P obviously halts, as the complete execution above shows.

When this was pointed out, Peter's answer was:

    Then it is simply outside the domain of HHH.

That is worth remembering.

A program was presented.
HHH classified it as non-halting.
The program demonstrably halts.
The response was to exclude the counterexample from HHH's domain.

Unless a PRE-EXISTING definition of the domain independently excludes P, 
this is not a defence of an infallible halt decider. It is simply defining 
counterexamples away after they have been found.

2. Why this also matters to DD

Peter's usual example is:

    int DD()
    {
        int Halt_Status = HHH(DD);

        if (Halt_Status)
            for (;;);

        return Halt_Status;
    }

with the advertised semantics:

    HHH(<P>) == 1 : P halts
    HHH(<P>) == 0 : P does not halt

Hence:

    +-----------+------------------+------------------+
    | HHH(<DD>) | HHH predicts     | DD then does     |
    +-----------+------------------+------------------+
    |     1     | DD halts         | loops forever    |
    |     0     | DD does not halt | returns / halts  |
    +-----------+------------------+------------------+

Peter's escape is to say that, while HHH simulates DD, DD calls HHH again, 
producing nested simulation, and that DD therefore cannot reach its return 
statement.

But the observation

    HHH simulates DD
      -> DD calls HHH
        -> HHH simulates DD
          -> DD calls HHH
             ...

establishes a recursive PREFIX.

It does not establish that this recursion continues forever.

To establish that, Peter must prove that none of the relevant nested HHH 
calls can return.

Calling the desired conclusion a "simulation invariant", or saying that 
the return statement is "unreachable", does not prove it.

The counterexample above is particularly relevant because it demonstrates 
experimentally with Peter's own HHH that recognizing repeated control-flow 
patterns while ignoring relevant computational state can produce a false 
non-halting verdict.

3. The alleged Sipser endorsement

Peter also repeatedly quotes Michael Sipser:

    If simulating halt decider H correctly simulates its
    input D until H correctly determines that its simulated D
    would never stop running unless aborted then

    H can abort its simulation of D and correctly report that
    D specifies a non-halting sequence of configurations.

Peter presents this prominently in discussions of his HHH.

But read what Sipser supposedly agreed to:

    IF H CORRECTLY DETERMINES ...

Of course.

If a halt decider has correctly determined that a computation will never 
halt, then it may correctly report that it will not halt.

The disputed issue is precisely whether Peter's HHH has CORRECTLY 
DETERMINED that.

Nothing in the quoted statement says that Peter's particular criterion 
establishes this premise.

Nothing there endorses his HHH implementation.

Nothing there proves that repeated nested simulation must continue 
forever.

The entire disputed step is already contained in the words:

    correctly determines

So this quotation cannot honestly be presented as Sipser's endorsement of 
Peter's proof. Sipser agreed to the conditional statement Peter quotes, 
not to Peter's claim that HHH satisfies its premise.

4. The same thing happened with me

Peter has repeatedly tried to turn things I agreed with into agreement 
with his conclusion.

For example, I agreed that applying the C operational semantics produces 
the recursive simulation pattern:

    HHH simulates DD
      -> DD calls HHH(DD)
        -> HHH simulates DD
          -> ...

I did NOT agree that the "..." proves infinite recursion.

I did NOT agree that no nested HHH can return.

I did NOT agree that DD therefore cannot halt.

I did NOT agree that HHH(DD)==0 is therefore correct.

I explicitly told Peter this, repeatedly.

Eventually Peter himself wrote:

    I did not realize that you did not mean:

    IF HHH keeps simulating
    that simulation does not naturally return.

    I thought that you were saying the same exact
    meaning more verbosely.

That is an explicit acknowledgement that he had misunderstood what I 
agreed to.

After such an acknowledgement, there is no remaining ambiguity: my 
statements cannot legitimately be cited as agreement with the stronger 
proposition.

The distinction is elementary but important:

    agreeing with A
    agreeing with A -> B

does not mean

    agreeing with B

when the inference from A to B is precisely what is disputed.

The same applies to Sipser's conditional statement.

5. So, for future participants

When Peter says that somebody has "agreed" with his reasoning, ask for the 
EXACT proposition that person agreed to.

When he quotes Sipser, notice the words:

    correctly determines

and ask where Peter proves that his detector actually does so.

When he says repeated/nested simulation proves non-halting, remember the 
terminating P/F/G/Done counterexample above.

And when a counterexample is dismissed as "outside the domain" only after 
HHH has produced the wrong answer on it, ask for the definition of that 
domain which existed BEFORE the counterexample was tested.

These points save a great deal of circular discussion.
Technical Details
Message-ID: <6wvpgJm9dppjKFX0AC8z2D7gNHk@jntp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.goja.nl.eu.org!pasdenom.info!from-devjntp

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.goja.nl.eu.org!pasdenom.info!from-devjntp
Message-ID: <6wvpgJm9dppjKFX0AC8z2D7gNHk@jntp>
JNTP-Route: nemoweb.net
JNTP-DataType: Article
Subject: Olcott's HHH: a concrete counterexample and the claimed endorsements
Newsgroups: comp.theory
JNTP-HashClient: 0b5MhPEoMFtlK6FlIbTxAl8yeVM
JNTP-ThreadID: 3QTPt07ZwQMLyHsjYTJL_m6rRfI
JNTP-Uri: https://www.nemoweb.net/?DataID=6wvpgJm9dppjKFX0AC8z2D7gNHk@jntp
User-Agent: Nemo/1.0
JNTP-OriginServer: nemoweb.net
Date: Fri, 30 Oct 26 23:02:26 +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-10-30T23:02:26Z/9862185"; 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>