Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Richard Heathfield Newsgroups: comp.theory Subject: Re: Formal systems that cannot possibly be incomplete except for unknowns and unknowable Date: Wed, 7 May 2025 23:16:37 +0100 Organization: Fix this later Lines: 50 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 08 May 2025 00:16:37 +0200 (CEST) Injection-Info: dont-email.me; posting-host="fc99c878bc8892c2ff7fc287d1c7246a"; logging-data="1329358"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rlMPfTZ21ZaGKEIIDLNjBTfRbONa4s1p3sScFNtaAJA==" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:vjM8EqxUQw4h3nmFal8n1SK7U90= In-Reply-To: Content-Language: en-GB Bytes: 3155 On 07/05/2025 22:59, olcott wrote: > On 5/7/2025 4:52 PM, Richard Heathfield wrote: >> On 07/05/2025 22:46, olcott wrote: >>> On 5/7/2025 4:30 PM, Richard Heathfield wrote: >> >> >> >>>> If the simulation can't reach code that the directly executed >>>> program reaches, then it's not a faithful simulation. >>>> >>> >>> If is was true that it is not a faithful simulation >>> then you would be able to show exactly what sequence >>> of instructions would be a faithful simulation. >> >> If it were false, you'd be able to chop out the unreachable >> code without any adverse effects. Can you? >> >> >> > > I already know the answer. Then you already know why your simulation code fails to simulate correctly... but of course you /don't/ know, so I'll explain. Let us postulate a program that contains a function as follows: void invisible(void) { secret(); } When directly executed, the program calls invisible(), but when simulated, the invisible() call is unreachable. secret() could do nothing, or it might launch a for(;;); or it could catch SIGABRT with a returning handler and call abort(). The simulator has no way of knowing which is which. Therefore a termination analyser that attempts to analyse this program but cannot reach all the code is doomed to be unable to run a correct simulation and is necessarily reduced to guesswork. -- Richard Heathfield Email: rjh at cpax dot org dot uk "Usenet is a strange place" - dmr 29 July 1999 Sig line 4 vacant - apply within