🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.logic
Article #966

Re: How to make a halt decider?

#966
From: Lawrence D’Oliveiro
Date: Sat, 07 Nov 2026 04:56
61 lines
3596 bytes
On Fri, 6 Nov 2026 20:08:54 -0600, olcott wrote:

> Suppose there is a decider H that takes a finite string of source
> code S.

Let us say “program S”. Forget the distinction between “source code”
and “machine code” or whatever other kinds of “code” you are thinking
of. Forget about specific machine architectures and programming
languages and other such irrelevant details. The principles of
computability theory are far more universal than that. If your
reasoning depends on such specific details, then there is something
wrong with your reasoning.

> H applies inference steps to S according to the operational
> semantics of the language of S.
>
> What exactly would that entail?

Program H and program S can run on the same underlying universal
machine. “Code” can be “data”, too. A program is simply some finite
string of symbols in the machine language, that, given some input
which is some other string of symbols, does something “useful” (i.e.
what somebody wants it to do).

Of course, the string of symbols being finite is itself no guarantee
that the execution of that program will terminate in finite time; it
is trivially easy to construct any number of examples of programs that
will never terminate execution.

Consider a run of a given program S(D) with some given input data D;
can you determine in general, for any S and D, that that run will
terminate after a finite number of steps or not?

Assume there is a program H(S, D) that can make that determination for
any combination of S and D: it returns true if S(D) terminates, and
false if it does not.

Now let us define a program H'(S, D) as follows:

    if H(S, D) then
        get stuck in an endless loop
    else
        return true

Now the question is: what result will H(H', H') return? Substituting
those values into the definition of H' gives:

    if H(H', H') then
        get stuck in an endless loop
    else
        return true

In other words, if H says that H' will terminate with H' as input,
then H' will not terminate; and if H says H' will *not* terminate with
H' as input, then H' *will* terminate.

This is a logical contradiction. It indicates there is something wrong
with our reasoning. And the only obvious thing wrong is the assumption
that H exists.

Therefore no H fitting the definition can exist. QED.
Technical Details
Message-ID: <11cmb15$352as$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11cm17m$32os9$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!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups: comp.theory,sci.logic
Subject: Re: How to make a halt decider?
Date: Sat, 7 Nov 2026 04:56:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <11cmb15$352as$1@dont-email.me>
References: <11cm17m$32os9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 07 Nov 2026 04:56:06 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3311964"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19X/vuyAxzDtjJyvt9m86gR"; posting-host="4445ec4f85fbe86abded07bc359f6af4"
User-Agent: Pan/0.165 (Kostiantynivka)
Cancel-Lock: sha1:3eTI3lpd6fRaUrLYgcJKZZPi/Lk= sha256:JpkFCmydxFWYCtSPRrWMxz74X54fCRvDF6UuX2IPkec=
	sha1:xfEjzP5cFUjEfP2twdxttPXnwSM= sha256:7xdtF2YKpSC6vICRHrnwsn+FWbKEKgof8ndnIvjn7Ao=