Sujet : Re: Proof that DDD specifies non-halting behavior --- point by point
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.theoryDate : 15. Aug 2024, 12:22:16
Autres entêtes
Organisation : -
Message-ID : <v9kkso$u2rh$1@dont-email.me>
References : 1 2 3
User-Agent : Unison/2.2
On 2024-08-14 13:06:27 +0000, olcott said:
On 8/14/2024 3:17 AM, Mikko wrote:
On 2024-08-14 00:52:36 +0000, olcott said:
void DDD()
{
HHH(DDD);
return;
}
In order to prove that the above specifies a non-halting behavour
you must prove that HHH(DDD) does not terminate.
Wrong.
At least the proof that DDD does not terminate also proves as an
intermedate result or an obvious corollary that HHH does not halt.
Non-halting means that an infinite number of instructions can be
executed without halting. That means that at least one instruction
is executed infinitely many times as there are only finitely many
instructions. But not instrunctions of DDD outside HHH is executed
infinitely many times.
-- Mikko