🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.theory
Article #949

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

#949
From: Python
Date: Fri, 30 Oct 2026 23:13
464 lines
14239 bytes
CORRECTION AND REPOST

I posted an earlier version of this summary containing the following 
incorrect statement:

    agreeing with A
    agreeing with A -> B

    does not mean agreeing with B

That was wrong.

If one accepts both A and A -> B, then of course B follows by modus 
ponens.

What I intended to say, and what is relevant to the discussion with Peter, 
is:

    agreeing with A

does NOT imply:

    agreeing with A -> B

and therefore does not by itself imply agreement with B.

In other words, agreement with an intermediate premise or observation does 
not constitute agreement with a disputed inference from that premise, nor 
with the conclusion obtained using that inference.

This corrected version replaces the previous post.

The error above does not affect the concrete counterexample to HHH 
described below, nor the central point about Peter attributing stronger 
agreements to people than they actually gave. But since this post is 
intended as a reference for future participants, I want the correction to 
be explicit rather than silently editing the argument.


WHY THIS REFERENCE POST IS NEEDED

It has become increasingly difficult to follow Peter Olcott's claims about 
his C implementation of HHH because the same argument is spread over many 
threads and repeatedly restarted from different points.

Two facts in particular tend to disappear when this happens:

1. A concrete terminating counterexample was actually submitted to Peter's 
HHH, which classified it as non-halting. Once its termination was pointed 
out, Peter's response was that the program was outside HHH's domain.

2. Peter repeatedly cites limited agreements by other people -- notably 
Michael Sipser and myself -- as support for substantially stronger claims 
which those people did not agree to.

Rather than reconstructing this history every time a new participant 
enters the discussion, here are the relevant facts in one place.


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 relevant state is explicitly carried in the argument.

Its 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 computational states are different: among other things, 
the argument is different.

Therefore repetition of the same CALL instruction and target is NOT 
repetition of the same computational configuration.

Peter actually ran his HHH on this 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 plainly halts, as the execution above shows.

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

    Then it is simply outside the domain of HHH.

This is worth remembering.

A program was presented.

HHH classified it as non-halting.

The program demonstrably halts.

The response was then to exclude that program from HHH's domain.

Unless a PRE-EXISTING definition of HHH's domain independently excludes P, 
this does not rescue a claim that HHH is infallible over some previously 
specified domain.

It merely excludes a counterexample after HHH has produced the wrong 
answer on it.

Anyone wishing to defend the "outside the domain" response should 
therefore provide the definition of HHH's domain that existed BEFORE this 
test and show how that definition excludes P independently of the fact 
that HHH got P wrong.


2. Why this also matters to DD

Peter's usual example is:

    typedef int (*ptr)();
    int HHH(ptr P);

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

        if (Halt_Status)
            HERE: goto HERE;

        return Halt_Status;
    }

with the advertised output semantics:

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

The consequence is immediate:

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

There is of course a third possibility:

    HHH(<DD>) does not return.

But then HHH is not a terminating halt decider for this input.

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

The observation

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

certainly establishes the beginning of a recursive simulation pattern.

That point is not disputed.

What IS disputed is the additional inference:

    therefore this nesting necessarily continues forever
    and no relevant nested HHH call can return.

That does not follow merely from observing a finite recursive prefix.

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

Calling the desired conclusion a:

    "simulation invariant"

or saying that DD's return statement is:

    "unreachable"

does not establish that proof.

Indeed, if the HHH called by DD returns 0, the C semantics are 
straightforward:

    Halt_Status = 0;
    if (Halt_Status)       // false
        goto HERE;         // not executed
    return Halt_Status;    // DD halts

So claiming that the return statement is unreachable already requires 
establishing that HHH cannot return 0 to DD.

That is precisely the disputed proposition.

The terminating P/F/G/Done counterexample is relevant here because it 
demonstrates concretely that recognizing repeated control-flow structure 
while ignoring relevant computational state is not sufficient to establish 
non-halting.


3. The alleged Sipser endorsement

Peter repeatedly quotes Michael Sipser as having agreed to the following 
words:

    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.

Read carefully what this actually says:

    IF H CORRECTLY DETERMINES ...

Of course.

If H has correctly determined that a computation will never halt, then H 
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 detector 
correctly establishes this premise.

Nothing there endorses his HHH implementation.

Nothing there says that Peter's repeated-CALL criterion proves 
non-halting.

Nothing there proves that his nested simulation must continue forever.

The entire disputed issue is hidden inside the premise:

    correctly determines

So Sipser's quoted agreement with that conditional statement cannot 
reasonably be presented as Sipser's endorsement of Peter's claim that HHH 
actually satisfies its premise.

Peter still has to prove that independently.


4. The same problem occurred with statements of mine

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

For example, I agreed that application of 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 that this nesting continues forever.

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 has therefore been proved 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.

This is important.

Peter explicitly acknowledged that he had misunderstood what I meant.

An initial misunderstanding can happen.

But once the person being quoted has explicitly corrected that 
misunderstanding, continuing to present the earlier statement as that 
person's endorsement of the stronger claim is no longer a reasonable 
interpretation of that person's position.

The logical distinction is simply:

    I agreed with A.

Peter additionally claims:

    A -> B.

I did NOT agree with that implication.

Therefore my agreement with A cannot be cited as my agreement with B.

In this particular case:

    A = the simulation exhibits the recursive pattern above.

The disputed additional proposition is essentially:

    that recursive pattern necessarily continues forever.

That is exactly the step I have NOT agreed to.

Agreement with an observation is not agreement with every conclusion 
somebody else claims follows from that observation.

The same caution applies when Peter invokes Sipser: always distinguish the 
exact proposition somebody agreed to from the additional proposition Peter 
wants to establish using it.


5. Representation versus computation

There is another recurring source of confusion worth recording.

Peter emphasizes that the input to HHH is a static finite string -- for 
example the machine code representing DD.

Fine.

Let:

    <DD>

denote that finite representation.

But <DD> and the computation DD described by <DD> are not the same thing.

A static finite string does not:

    run forever,
    halt,
    invoke HHH,
    return,
    or get aborted.

A COMPUTATION represented by that string can do those things.

There is therefore no contradiction whatsoever between:

    <DD> is finite static data supplied as input to HHH

and:

    DD, the computation represented by <DD>,
    calls HHH(<DD>).

Peter has claimed that:

    inputs and callers are mutually exclusive

because inputs are static finite strings whereas callers are executable 
processes.

That misses the distinction entirely.

Nobody requires the finite representation <DD> itself to become an 
executable process.

<DD> is the input.

DD is the computation represented by that input.

DD can call HHH(<DD>).

This distinction between a representation and what it represents is 
fundamental to the halting problem, not an escape from it.


6. For future participants

So 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 HHH actually satisfies that premise.

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

When he calls his conclusion a "simulation invariant", ask for the proof 
that the alleged invariant is actually preserved -- in particular, the 
proof that the relevant HHH invocation cannot return 0.

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

Finally, when Peter says that somebody agreed with him, distinguish 
carefully between:

    "this intermediate observation is correct"

and:

    "therefore Peter's HHH is correct."

Those are very different claims.

Keeping these few points in mind can save future participants a 
considerable amount of circular discussion.
Technical Details
Message-ID: <8rSwJY-pE7l7V3J5aYi8d9wepzE@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
References: <6wvpgJm9dppjKFX0AC8z2D7gNHk@jntp>

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: <8rSwJY-pE7l7V3J5aYi8d9wepzE@jntp>
JNTP-Route: nemoweb.net
JNTP-DataType: Article
Subject: Re: Olcott's HHH: a concrete counterexample and the claimed endorsements
References: <6wvpgJm9dppjKFX0AC8z2D7gNHk@jntp>
Newsgroups: comp.theory
JNTP-HashClient: GbGBMK7eKJmbqPP7LLc8k-Gd3SY
JNTP-ThreadID: 3QTPt07ZwQMLyHsjYTJL_m6rRfI
JNTP-ReferenceUserID: 190@nemoweb.net
JNTP-Uri: https://www.nemoweb.net/?DataID=8rSwJY-pE7l7V3J5aYi8d9wepzE@jntp
User-Agent: Nemo/1.0
JNTP-OriginServer: nemoweb.net
Date: Fri, 30 Oct 26 23:13:50 +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:13:50Z/9862190"; 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>