Deutsch English Français Italiano |
<v44qin$3g17f$5@i2pn2.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: joes <noreply@example.com> Newsgroups: comp.theory, Subject: Re: Simplified proof that DDD correctly simulated by HHH does not halt Date: Sun, 9 Jun 2024 17:59:51 -0000 (UTC) Organization: i2pn2 (i2pn.org) Message-ID: <v44qin$3g17f$5@i2pn2.org> References: <v44dle$3i5jo$2@dont-email.me> <v44jvn$3jnc8$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 9 Jun 2024 17:59:51 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="3671279"; mail-complaints-to="usenet@i2pn2.org"; posting-account="nS1KMHaUuWOnF/ukOJzx6Ssd8y16q9UPs1GZ+I3D0CM"; User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2) X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 2181 Lines: 39 Am Sun, 09 Jun 2024 11:07:19 -0500 schrieb olcott: > typedef void (*ptr)(); // pointer to void function > 01 void HHH(ptr P, ptr I) > 02 { > 03 P(I); > 04 return; > 05 } > 06 07 void DDD(int (*x)()) > 08 { > 09 HHH(x, x); > 10 return; > 11 } > 12 13 int main() > 14 { > 15 HHH(DDD,DDD); > 16 } > 17 > In the above Neither DDD nor HHH ever reach their own return statement > thus never halt. > Most of my reviewers incorrectly believe that when HH(DD,DD) aborts its > simulated input that this simulated input halts. If HH aborts the simulation of DD(DD), the call to itself also does, and returns, making the whole chain terminate. Therefore the abortion was premature. > When HHH is a simulating halt decider just like HH then DDD correctly > simulated by HHH cannot possibly terminate normally HHH must be the same as HH. There is no distinction by simulation level. That's the whole point of the argument. >> When HHH is a simulating halt decider then HHH sees that DDD >> cannot possibly reach its return statement, AKA >> simulating halt decider HHH simulates its input DDD >> until HHH determines that DDD would never >> stop running unless aborted and aborts it. -- joes