Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: dbush Newsgroups: comp.theory Subject: Re: DD specifies non-terminating behavior to HHH --- RECURSIVE CHAIN --- Saving Democracy Date: Sat, 22 Feb 2025 15:59:04 -0500 Organization: A noiseless patient Spider Lines: 56 Message-ID: References: <855e571c6668207809e1eb67138de6af48d164fa@i2pn2.org> <8fa176d46bf5b8c36def9e32ced67a1a3f81bae1@i2pn2.org> <2e999502c40f736a3f3579d23bdb2b42dc74e897@i2pn2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 22 Feb 2025 21:59:03 +0100 (CET) Injection-Info: dont-email.me; posting-host="71441c56d83220426f9b7c1ba6da31b6"; logging-data="112820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IYOBcuXrHzXdB7ndRnT6Q" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:nwYR78bFjZ/QLqj6YhxM16F6Q2c= Content-Language: en-US In-Reply-To: Bytes: 3802 On 2/22/2025 3:53 PM, olcott wrote: > On 2/22/2025 2:09 PM, dbush wrote: >> On 2/22/2025 3:03 PM, olcott wrote: > > 01 int F(int i) > 02 { > 03   if (i > 10) > 04     return 0; > 05   else > 06     return F(i+1); > 07 } > 08 > 09 int no_numbers_greater_than_10() > 10 { > 11   return F(0); > 12 } > 13 > 14 int main() > 15 { > 16   F((int)no_numbers_greater_than_10); > 17   return 0; > 18 } > >> >> So if the address of no_numbers_greater_than_10 is greater than 10 >> then 0 is returned right away, otherwise as most 10 recursive calls >> will be made before the condition is matched and 0 is returned. >> >> This doesn't change the fact that no_numbers_greater_than_10 correctly >> simulated by F cannot possibly return so F(no_numbers_greater_than_10) >> is correct to report non-halting, which means that there is no natural >> number greater than 10. >> >> Agreed? > > I think that you will find more bugs when you try to > provide the line number by line number execution trace. > > #1 bug F never simulates anything. > It is a verified fact that no_numbers_greater_than_10 correctly simulated by F cannot possibly return so F(no_numbers_greater_than_10) is correct to report non-halting. This answer is correct even if F gets it by a wild guess, as you have previously stated. You stated that HHH is correct to report DD as non-halting because replacing the code of HHH by an unconditional simulator causes DD to not halt. Similarly, F is correct to report no_numbers_greater_than_10 as non-halting because replacing the code of F by an unconditional simulator causes no_numbers_greater_than_10 to not halt. Agreed?