Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Base 8 is just like base 10, if you are missing two fingers. -- Tom Lehrer


devel / comp.theory / Does this criteria prove that Y calls X in infinite recursion?

SubjectAuthor
* Does this criteria prove that Y calls X in infinite recursion?olcott
+* Re: Does this criteria prove that Y calls X in infinite recursion?wij
|`* Re: Does this criteria prove that Y calls X in infinite recursion?olcott
| `- Re: Does this criteria prove that Y calls X in infinite recursion?Richard Damon
+- Re: Does this criteria prove that Y calls X in infinite recursion?Richard Damon
+* Re: Does this criteria prove that Y calls X in infinite recursion?Mikko
|`* Re: Does this criteria prove that Y calls X in infinite recursion?olcott
| +* Re: Does this criteria prove that Y calls X in infinite recursion?Mikko
| |`* Re: Does this criteria prove that Y calls X in infinite recursion?olcott
| | `* Re: Does this criteria prove that Y calls X in infinite recursion?Richard Damon
| |  `* Re: Does this criteria prove that Y calls X in infinite recursion?olcott
| |   `- Re: Does this criteria prove that Y calls X in infinite recursion?Richard Damon
| +- Re: Does this criteria prove that Y calls X in infinite recursion?Richard Damon
| `- Re: Does this criteria prove that Y calls X in infinite recursion?immibis
+* Re: Does this criteria prove that Y calls X in infinite recursion?Mikko
|`* Re: Does this criteria prove that Y calls X in infinite recursion?olcott
| +- Re: Does this criteria prove that Y calls X in infinite recursion?Richard Damon
| `- Re: Does this criteria prove that Y calls X in infinite recursion?Mikko
`- Re: Does this criteria prove that Y calls X in infinite recursion?immibis

1
Does this criteria prove that Y calls X in infinite recursion?

<upgjnj$25gir$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53101&group=comp.theory#53101

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: polcott2@gmail.com (olcott)
Newsgroups: comp.theory
Subject: Does this criteria prove that Y calls X in infinite recursion?
Date: Thu, 1 Feb 2024 11:17:39 -0600
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <upgjnj$25gir$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 1 Feb 2024 17:17:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="569595a5e6c1bb7e77f469380067402c";
logging-data="2277979"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xFprFxRFlYqnwduAVjs7E"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3ZWF2gck7sJE2xxDGw+dmx+/XeU=
Content-Language: en-US
 by: olcott - Thu, 1 Feb 2024 17:17 UTC

#include <stdint.h>
typedef int(*ptr)();

int X(ptr P, ptr I)
{ P(I);
return 0;
}

int Y(ptr P)
{ X(P, P);
return 1;
}

int main()
{ X(Y, Y);
}

Does this criteria prove that Y calls X in infinite recursion?
An examination its x86 machine language proves that Y calls X with its
same parameters and there are no conditional branch instructions between
the invocation of Y and its call to X.

_X()
[00001cf3] 55 push ebp
[00001cf4] 8bec mov ebp,esp
[00001cf6] 8b450c mov eax,[ebp+0c]
[00001cf9] 50 push eax ; push Y
[00001cfa] ff5508 call dword [ebp+08] ; call Y
[00001cfd] 83c404 add esp,+04
[00001d00] 33c0 xor eax,eax
[00001d02] 5d pop ebp
[00001d03] c3 ret
Size in bytes:(0017) [00001d03]

_Y()
[00001d13] 55 push ebp
[00001d14] 8bec mov ebp,esp
[00001d16] 8b4508 mov eax,[ebp+08]
[00001d19] 50 push eax ; push Y
[00001d1a] 8b4d08 mov ecx,[ebp+08]
[00001d1d] 51 push ecx ; push Y
[00001d1e] e8d0ffffff call 00001cf3 ; call X
[00001d23] 83c408 add esp,+08
[00001d26] b801000000 mov eax,00000001
[00001d2b] 5d pop ebp
[00001d2c] c3 ret
Size in bytes:(0026) [00001d2c]

--
Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer

Re: Does this criteria prove that Y calls X in infinite recursion?

<52c7ba1b748f4b9e34c4f2d5c73842c6a5f5023b.camel@gmail.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53112&group=comp.theory#53112

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wyniijj5@gmail.com (wij)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 02 Feb 2024 10:31:15 +0800
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <52c7ba1b748f4b9e34c4f2d5c73842c6a5f5023b.camel@gmail.com>
References: <upgjnj$25gir$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
Injection-Info: dont-email.me; posting-host="507c896de0ca06a6c0a615984f0c725e";
logging-data="2446475"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+o/QLi35uxqFYnDiTbPSOL"
User-Agent: Evolution 3.50.2 (3.50.2-1.fc39)
Cancel-Lock: sha1:fWlZ2JxXTSGodWXWonTZYGtonCc=
In-Reply-To: <upgjnj$25gir$1@dont-email.me>
 by: wij - Fri, 2 Feb 2024 02:31 UTC

On Thu, 2024-02-01 at 11:17 -0600, olcott wrote:
> #include <stdint.h>
> typedef int(*ptr)();
>
> int X(ptr P, ptr I)
> {
>    P(I);
>    return 0;
> }
>
> int Y(ptr P)
> {
>    X(P, P);
>    return 1;
> }
>
> int main()
> {
>    X(Y, Y);
> }
>
> Does this criteria prove that Y calls X in infinite recursion?
> An examination its x86 machine language proves that Y calls X with
> its
> same parameters and there are no conditional branch instructions
> between
> the invocation of Y and its call to X.
>

There are several problems in this piece of program
I recommend this is posted in comp.lang.c

> _X()
> [00001cf3] 55         push ebp
> [00001cf4] 8bec       mov ebp,esp
> [00001cf6] 8b450c     mov eax,[ebp+0c]
> [00001cf9] 50         push eax            ; push Y
> [00001cfa] ff5508     call dword [ebp+08] ; call Y
> [00001cfd] 83c404     add esp,+04
> [00001d00] 33c0       xor eax,eax
> [00001d02] 5d         pop ebp
> [00001d03] c3         ret
> Size in bytes:(0017) [00001d03]
>
> _Y()
> [00001d13] 55         push ebp
> [00001d14] 8bec       mov ebp,esp
> [00001d16] 8b4508     mov eax,[ebp+08]
> [00001d19] 50         push eax            ; push Y
> [00001d1a] 8b4d08     mov ecx,[ebp+08]
> [00001d1d] 51         push ecx            ; push Y
> [00001d1e] e8d0ffffff call 00001cf3       ; call X
> [00001d23] 83c408     add esp,+08
> [00001d26] b801000000 mov eax,00000001
> [00001d2b] 5d         pop ebp
> [00001d2c] c3         ret
> Size in bytes:(0026) [00001d2c]
>

Re: Does this criteria prove that Y calls X in infinite recursion?

<uphkmk$2anjo$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53113&group=comp.theory#53113

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: polcott2@gmail.com (olcott)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Thu, 1 Feb 2024 20:40:20 -0600
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <uphkmk$2anjo$1@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me>
<52c7ba1b748f4b9e34c4f2d5c73842c6a5f5023b.camel@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 02:40:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="745c16fd3cf5f037356083d009434984";
logging-data="2449016"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BUrYw8wECNtAm0TQkx8so"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BdLvyhIwJxb2R+es9BDakNhB/U4=
In-Reply-To: <52c7ba1b748f4b9e34c4f2d5c73842c6a5f5023b.camel@gmail.com>
Content-Language: en-US
 by: olcott - Fri, 2 Feb 2024 02:40 UTC

On 2/1/2024 8:31 PM, wij wrote:
> On Thu, 2024-02-01 at 11:17 -0600, olcott wrote:
>> #include <stdint.h>
>> typedef int(*ptr)();
>>
>> int X(ptr P, ptr I)
>> {
>>    P(I);
>>    return 0;
>> }
>>
>> int Y(ptr P)
>> {
>>    X(P, P);
>>    return 1;
>> }
>>
>> int main()
>> {
>>    X(Y, Y);
>> }
>>
>> Does this criteria prove that Y calls X in infinite recursion?
>> An examination its x86 machine language proves that Y calls X with
>> its
>> same parameters and there are no conditional branch instructions
>> between
>> the invocation of Y and its call to X.
>>
>
> There are several problems in this piece of program
> I recommend this is posted in comp.lang.c
>

It has been reviewed on another forum and agreed that:

You can easily do this by manually "expanding" the calls. X(Y,Y)
performs call P(I), where P=Y and I=Y, so it becomes Y(Y). This performs
call X(P, P), where P=Y. So it becomes X(Y,Y). So we are back to the
initial call.

--
Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer

Re: Does this criteria prove that Y calls X in infinite recursion?

<upho5j$1a12s$2@i2pn2.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53116&group=comp.theory#53116

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!.POSTED!not-for-mail
From: richard@damon-family.org (Richard Damon)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Thu, 1 Feb 2024 22:39:31 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <upho5j$1a12s$2@i2pn2.org>
References: <upgjnj$25gir$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 03:39:31 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1377372"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
In-Reply-To: <upgjnj$25gir$1@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
Content-Language: en-US
 by: Richard Damon - Fri, 2 Feb 2024 03:39 UTC

On 2/1/24 12:17 PM, olcott wrote:
> #include <stdint.h>
> typedef int(*ptr)();
>
> int X(ptr P, ptr I)
> {
>   P(I);
>   return 0;
> }
>
> int Y(ptr P)
> {
>   X(P, P);
>   return 1;
> }
>
> int main()
> {
>   X(Y, Y);
> }
>
> Does this criteria prove that Y calls X in infinite recursion?

Nope.

> An examination its x86 machine language proves that Y calls X with its
> same parameters and there are no conditional branch instructions between
> the invocation of Y and its call to X.

Which isn't a valid rule. The ACTUAL rule would be no conditional branch
in the FULL cycle to the point of repeating, thus Y calling X calling Y
is enough, or x calling y calling x.

Thus, when you try to expand to your "simulation" case, you need the
simulation to be also unconditional (and thus, NOT part of a decider
that might abort its simulation)

>
> _X()
> [00001cf3] 55         push ebp
> [00001cf4] 8bec       mov ebp,esp
> [00001cf6] 8b450c     mov eax,[ebp+0c]
> [00001cf9] 50         push eax            ; push Y
> [00001cfa] ff5508     call dword [ebp+08] ; call Y
> [00001cfd] 83c404     add esp,+04
> [00001d00] 33c0       xor eax,eax
> [00001d02] 5d         pop ebp
> [00001d03] c3         ret
> Size in bytes:(0017) [00001d03]
>
> _Y()
> [00001d13] 55         push ebp
> [00001d14] 8bec       mov ebp,esp
> [00001d16] 8b4508     mov eax,[ebp+08]
> [00001d19] 50         push eax            ; push Y
> [00001d1a] 8b4d08     mov ecx,[ebp+08]
> [00001d1d] 51         push ecx            ; push Y
> [00001d1e] e8d0ffffff call 00001cf3       ; call X
> [00001d23] 83c408     add esp,+08
> [00001d26] b801000000 mov eax,00000001
> [00001d2b] 5d         pop ebp
> [00001d2c] c3         ret
> Size in bytes:(0026) [00001d2c]
>

Re: Does this criteria prove that Y calls X in infinite recursion?

<upho5l$1a12s$3@i2pn2.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53117&group=comp.theory#53117

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!.POSTED!not-for-mail
From: richard@damon-family.org (Richard Damon)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Thu, 1 Feb 2024 22:39:33 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <upho5l$1a12s$3@i2pn2.org>
References: <upgjnj$25gir$1@dont-email.me>
<52c7ba1b748f4b9e34c4f2d5c73842c6a5f5023b.camel@gmail.com>
<uphkmk$2anjo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 03:39:33 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1377372"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
In-Reply-To: <uphkmk$2anjo$1@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
Content-Language: en-US
 by: Richard Damon - Fri, 2 Feb 2024 03:39 UTC

On 2/1/24 9:40 PM, olcott wrote:
> On 2/1/2024 8:31 PM, wij wrote:
>> On Thu, 2024-02-01 at 11:17 -0600, olcott wrote:
>>> #include <stdint.h>
>>> typedef int(*ptr)();
>>>
>>> int X(ptr P, ptr I)
>>> {
>>>     P(I);
>>>     return 0;
>>> }
>>>
>>> int Y(ptr P)
>>> {
>>>     X(P, P);
>>>     return 1;
>>> }
>>>
>>> int main()
>>> {
>>>     X(Y, Y);
>>> }
>>>
>>> Does this criteria prove that Y calls X in infinite recursion?
>>> An examination its x86 machine language proves that Y calls X with
>>> its
>>> same parameters and there are no conditional branch instructions
>>> between
>>> the invocation of Y and its call to X.
>>>
>>
>> There are several problems in this piece of program
>> I recommend this is posted in comp.lang.c
>>
>
> It has been reviewed on another forum and agreed that:
>
> You can easily do this by manually "expanding" the calls. X(Y,Y)
> performs call P(I), where P=Y and I=Y, so it becomes Y(Y). This performs
> call X(P, P), where P=Y. So it becomes X(Y,Y). So we are back to the
> initial call.
>

So you need to look at BOTH X, and Y, not just Y.

And BOTH need to be without conditionals, so the fact that H might
decide to abort its simulation invalidates your criteria.

Re: Does this criteria prove that Y calls X in infinite recursion?

<upihcd$2im2e$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53123&group=comp.theory#53123

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mikko.levanto@iki.fi (Mikko)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 12:49:49 +0200
Organization: -
Lines: 58
Message-ID: <upihcd$2im2e$1@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="7395a4626f839299ff0b353c8e241222";
logging-data="2709582"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rx+krqHZ4DtzZvJzkmGds"
User-Agent: Unison/2.2
Cancel-Lock: sha1:W60QlA4BmT8ikDMp57sjYdOR5o8=
 by: Mikko - Fri, 2 Feb 2024 10:49 UTC

On 2024-02-01 17:17:39 +0000, olcott said:

> #include <stdint.h>
> typedef int(*ptr)();
>
> int X(ptr P, ptr I)
> {
> P(I);
> return 0;
> }
>
> int Y(ptr P)
> {
> X(P, P);
> return 1;
> }
>
> int main()
> {
> X(Y, Y);
> }
>
> Does this criteria prove that Y calls X in infinite recursion?
> An examination its x86 machine language proves that Y calls X with its
> same parameters and there are no conditional branch instructions
> between the invocation of Y and its call to X.

The recursion is indirect so the criteria above are insufficient. The
folowing satisfies these criteria but there is no infinite recursion:

#include <stdint.h>
typedef int(*ptr)();

static int c = 3;

int X(ptr P, ptr I)
{ if (c-- > 0) P(I);
return 0;
}

int Y(ptr P)
{ X(P, P);
return 1;
}

int main()
{ X(Y, Y);
}

You may compile that and examine the machine code but it is
actually easier to examine the C code.

--
Mikko

Re: Does this criteria prove that Y calls X in infinite recursion?

<upiv89$2kuv6$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53129&group=comp.theory#53129

  copy link   Newsgroups: comp.theory sci.logic
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: polcott2@gmail.com (olcott)
Newsgroups: comp.theory,sci.logic
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 08:46:33 -0600
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <upiv89$2kuv6$1@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me> <upihcd$2im2e$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 14:46:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="745c16fd3cf5f037356083d009434984";
logging-data="2784230"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/K3/YGDVZ7VizkPhozFdhY"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ba7b06SicHc8x32Bpx1OfExjIAw=
In-Reply-To: <upihcd$2im2e$1@dont-email.me>
Content-Language: en-US
 by: olcott - Fri, 2 Feb 2024 14:46 UTC

On 2/2/2024 4:49 AM, Mikko wrote:
> On 2024-02-01 17:17:39 +0000, olcott said:
>
>> #include <stdint.h>
>> typedef int(*ptr)();
>>
>> int X(ptr P, ptr I)
>> {
>>    P(I);
>>    return 0;
>> }
>>
>> int Y(ptr P)
>> {
>>    X(P, P);
>>    return 1;
>> }
>>
>> int main()
>> {
>>    X(Y, Y);
>> }
>>
>> Does this criteria prove that Y calls X in infinite recursion?
>> An examination its x86 machine language proves that Y calls X with its
>> same parameters and there are no conditional branch instructions
>> between the invocation of Y and its call to X.
>
> The recursion is indirect so the criteria above are insufficient. The
> folowing satisfies these criteria but there is no infinite recursion:
>
> #include <stdint.h>
> typedef int(*ptr)();
>
> static int c = 3;
>
> int X(ptr P, ptr I)
> {
>   if (c-- > 0) P(I);
>   return 0;
> }
>
> int Y(ptr P)
> {
>   X(P, P);
>   return 1;
> }
>
> int main()
> {
>   X(Y, Y);
> }
>
> You may compile that and examine the machine code but it is
> actually easier to examine the C code.
>

Both functions must be pure functions, thus globals are not allowed.

--
Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer

Re: Does this criteria prove that Y calls X in infinite recursion?

<upj0a0$2l6m2$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53130&group=comp.theory#53130

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mikko.levanto@iki.fi (Mikko)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 17:04:32 +0200
Organization: -
Lines: 78
Message-ID: <upj0a0$2l6m2$1@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me> <upihcd$2im2e$1@dont-email.me> <upiv89$2kuv6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="c86f9e79b31957c02f7224cd4dcc149a";
logging-data="2792130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fa8RPWL8tx5upd5gYZ3MC"
User-Agent: Unison/2.2
Cancel-Lock: sha1:hMmgKgiK3sfIO2Tdm2434dt1dcg=
 by: Mikko - Fri, 2 Feb 2024 15:04 UTC

On 2024-02-02 14:46:33 +0000, olcott said:

> On 2/2/2024 4:49 AM, Mikko wrote:
>> On 2024-02-01 17:17:39 +0000, olcott said:
>>
>>> #include <stdint.h>
>>> typedef int(*ptr)();
>>>
>>> int X(ptr P, ptr I)
>>> {
>>>    P(I);
>>>    return 0;
>>> }
>>>
>>> int Y(ptr P)
>>> {
>>>    X(P, P);
>>>    return 1;
>>> }
>>>
>>> int main()
>>> {
>>>    X(Y, Y);
>>> }
>>>
>>> Does this criteria prove that Y calls X in infinite recursion?
>>> An examination its x86 machine language proves that Y calls X with its
>>> same parameters and there are no conditional branch instructions
>>> between the invocation of Y and its call to X.
>>
>> The recursion is indirect so the criteria above are insufficient. The
>> folowing satisfies these criteria but there is no infinite recursion:
>>
>> #include <stdint.h>
>> typedef int(*ptr)();
>>
>> static int c = 3;
>>
>> int X(ptr P, ptr I)
>> {
>>   if (c-- > 0) P(I);
>>   return 0;
>> }
>>
>> int Y(ptr P)
>> {
>>   X(P, P);
>>   return 1;
>> }
>>
>> int main()
>> {
>>   X(Y, Y);
>> }
>>
>> You may compile that and examine the machine code but it is
>> actually easier to examine the C code.
>>
>
> Both functions must be pure functions, thus globals are not allowed.

It is allowed as the C language allows that and the criteria don't
prohibit.

The variable c is static, not global. With

int X(ptr P, ptr I)
{ static int c = 3;
  if (c-- > 0) P(I);
  return 0;
}

the same effect would be achieved.

--
Mikko

Re: Does this criteria prove that Y calls X in infinite recursion?

<upj19a$1bkhe$6@i2pn2.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53131&group=comp.theory#53131

  copy link   Newsgroups: comp.theory sci.logic
Path: i2pn2.org!.POSTED!not-for-mail
From: richard@damon-family.org (Richard Damon)
Newsgroups: comp.theory,sci.logic
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 10:21:14 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <upj19a$1bkhe$6@i2pn2.org>
References: <upgjnj$25gir$1@dont-email.me> <upihcd$2im2e$1@dont-email.me>
<upiv89$2kuv6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 15:21:14 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1430062"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <upiv89$2kuv6$1@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Richard Damon - Fri, 2 Feb 2024 15:21 UTC

On 2/2/24 9:46 AM, olcott wrote:
> On 2/2/2024 4:49 AM, Mikko wrote:
>> On 2024-02-01 17:17:39 +0000, olcott said:
>>
>>> #include <stdint.h>
>>> typedef int(*ptr)();
>>>
>>> int X(ptr P, ptr I)
>>> {
>>>    P(I);
>>>    return 0;
>>> }
>>>
>>> int Y(ptr P)
>>> {
>>>    X(P, P);
>>>    return 1;
>>> }
>>>
>>> int main()
>>> {
>>>    X(Y, Y);
>>> }
>>>
>>> Does this criteria prove that Y calls X in infinite recursion?
>>> An examination its x86 machine language proves that Y calls X with
>>> its same parameters and there are no conditional branch instructions
>>> between the invocation of Y and its call to X.
>>
>> The recursion is indirect so the criteria above are insufficient. The
>> folowing satisfies these criteria but there is no infinite recursion:
>>
>> #include <stdint.h>
>> typedef int(*ptr)();
>>
>> static int c = 3;
>>
>> int X(ptr P, ptr I)
>> {
>>    if (c-- > 0) P(I);
>>    return 0;
>> }
>>
>> int Y(ptr P)
>> {
>>    X(P, P);
>>    return 1;
>> }
>>
>> int main()
>> {
>>    X(Y, Y);
>> }
>>
>> You may compile that and examine the machine code but it is
>> actually easier to examine the C code.
>>
>
> Both functions must be pure functions, thus globals are not allowed.
>

Which is effectively violated by your H, that conditionally simulates
its input.

This conditional is equivalent to that global state.

The fact that you are trying to establish that ONE input could be
correctly detected doesn't show that the rule works for ALL inputs.

A proper condition for showing X/Y have infinite recursion requires
criteria on BOTH X and Y.

Changine X from calling to simulating isn't isomorphic unless the
simulation is UNCONDITIONAL, and that doesn't includes simulates until
...., only actual unconditional simulation.

Any "conditions" on the simulation become equivalent state passed from
invocations of X to its indirectly called X, which you are trying to
prohibit, because it shows the "trick" your H is trying to use.

Your H wants to presume the H it sees is somehow different then itself,
but it can't be and be the proof case.

Re: Does this criteria prove that Y calls X in infinite recursion?

<upj2vs$2lkm1$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53133&group=comp.theory#53133

  copy link   Newsgroups: comp.theory sci.logic
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: polcott2@gmail.com (olcott)
Newsgroups: comp.theory,sci.logic
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 09:50:20 -0600
Organization: A noiseless patient Spider
Lines: 86
Message-ID: <upj2vs$2lkm1$2@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me> <upihcd$2im2e$1@dont-email.me>
<upiv89$2kuv6$1@dont-email.me> <upj0a0$2l6m2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 15:50:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="745c16fd3cf5f037356083d009434984";
logging-data="2806465"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19P0JKvi0OTq9afE5JQ+qKB"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rioqyNnmSktlwODxtT0/3938go0=
Content-Language: en-US
In-Reply-To: <upj0a0$2l6m2$1@dont-email.me>
 by: olcott - Fri, 2 Feb 2024 15:50 UTC

On 2/2/2024 9:04 AM, Mikko wrote:
> On 2024-02-02 14:46:33 +0000, olcott said:
>
>> On 2/2/2024 4:49 AM, Mikko wrote:
>>> On 2024-02-01 17:17:39 +0000, olcott said:
>>>
>>>> #include <stdint.h>
>>>> typedef int(*ptr)();
>>>>
>>>> int X(ptr P, ptr I)
>>>> {
>>>>    P(I);
>>>>    return 0;
>>>> }
>>>>
>>>> int Y(ptr P)
>>>> {
>>>>    X(P, P);
>>>>    return 1;
>>>> }
>>>>
>>>> int main()
>>>> {
>>>>    X(Y, Y);
>>>> }
>>>>
>>>> Does this criteria prove that Y calls X in infinite recursion?
>>>> An examination its x86 machine language proves that Y calls X with
>>>> its same parameters and there are no conditional branch instructions
>>>> between the invocation of Y and its call to X.
>>>
>>> The recursion is indirect so the criteria above are insufficient. The
>>> folowing satisfies these criteria but there is no infinite recursion:
>>>
>>> #include <stdint.h>
>>> typedef int(*ptr)();
>>>
>>> static int c = 3;
>>>
>>> int X(ptr P, ptr I)
>>> {
>>>   if (c-- > 0) P(I);
>>>   return 0;
>>> }
>>>
>>> int Y(ptr P)
>>> {
>>>   X(P, P);
>>>   return 1;
>>> }
>>>
>>> int main()
>>> {
>>>   X(Y, Y);
>>> }
>>>
>>> You may compile that and examine the machine code but it is
>>> actually easier to examine the C code.
>>>
>>
>> Both functions must be pure functions, thus globals are not allowed.
>
> It is allowed as the C language allows that and the criteria don't
> prohibit.

*IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
*IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
*IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*

>
> The variable c is static, not global. With
>
> int X(ptr P, ptr I)
> {
>  static int c = 3;
>   if (c-- > 0) P(I);
>   return 0;
> }
>
> the same effect would be achieved.
>

--
Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer

Re: Does this criteria prove that Y calls X in infinite recursion?

<upj47o$1bkhf$2@i2pn2.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53137&group=comp.theory#53137

  copy link   Newsgroups: comp.theory sci.logic
Path: i2pn2.org!.POSTED!not-for-mail
From: richard@damon-family.org (Richard Damon)
Newsgroups: comp.theory,sci.logic
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 11:11:35 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <upj47o$1bkhf$2@i2pn2.org>
References: <upgjnj$25gir$1@dont-email.me> <upihcd$2im2e$1@dont-email.me>
<upiv89$2kuv6$1@dont-email.me> <upj0a0$2l6m2$1@dont-email.me>
<upj2vs$2lkm1$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 16:11:36 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1430063"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
In-Reply-To: <upj2vs$2lkm1$2@dont-email.me>
Content-Language: en-US
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Richard Damon - Fri, 2 Feb 2024 16:11 UTC

On 2/2/24 10:50 AM, olcott wrote:
> On 2/2/2024 9:04 AM, Mikko wrote:
>> On 2024-02-02 14:46:33 +0000, olcott said:
>>
>>> On 2/2/2024 4:49 AM, Mikko wrote:
>>>> On 2024-02-01 17:17:39 +0000, olcott said:
>>>>
>>>>> #include <stdint.h>
>>>>> typedef int(*ptr)();
>>>>>
>>>>> int X(ptr P, ptr I)
>>>>> {
>>>>>    P(I);
>>>>>    return 0;
>>>>> }
>>>>>
>>>>> int Y(ptr P)
>>>>> {
>>>>>    X(P, P);
>>>>>    return 1;
>>>>> }
>>>>>
>>>>> int main()
>>>>> {
>>>>>    X(Y, Y);
>>>>> }
>>>>>
>>>>> Does this criteria prove that Y calls X in infinite recursion?
>>>>> An examination its x86 machine language proves that Y calls X with
>>>>> its same parameters and there are no conditional branch
>>>>> instructions between the invocation of Y and its call to X.
>>>>
>>>> The recursion is indirect so the criteria above are insufficient.
>>>> The folowing satisfies these criteria but there is no infinite
>>>> recursion:
>>>>
>>>> #include <stdint.h>
>>>> typedef int(*ptr)();
>>>>
>>>> static int c = 3;
>>>>
>>>> int X(ptr P, ptr I)
>>>> {
>>>>   if (c-- > 0) P(I);
>>>>   return 0;
>>>> }
>>>>
>>>> int Y(ptr P)
>>>> {
>>>>   X(P, P);
>>>>   return 1;
>>>> }
>>>>
>>>> int main()
>>>> {
>>>>   X(Y, Y);
>>>> }
>>>>
>>>> You may compile that and examine the machine code but it is
>>>> actually easier to examine the C code.
>>>>
>>>
>>> Both functions must be pure functions, thus globals are not allowed.
>>
>> It is allowed as the C language allows that and the criteria don't
>> prohibit.
>
> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*

Then not applicable to your H.

Fallacy of proof by example being used to try to claim the general case.

>
>>
>> The variable c is static, not global. With
>>
>> int X(ptr P, ptr I)
>> {
>>   static int c = 3;
>>    if (c-- > 0) P(I);
>>    return 0;
>> }
>>
>> the same effect would be achieved.
>>
>

Re: Does this criteria prove that Y calls X in infinite recursion?

<upj4n2$2lqlt$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53139&group=comp.theory#53139

  copy link   Newsgroups: comp.theory sci.logic
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: polcott2@gmail.com (olcott)
Newsgroups: comp.theory,sci.logic
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 10:19:46 -0600
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <upj4n2$2lqlt$2@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me> <upihcd$2im2e$1@dont-email.me>
<upiv89$2kuv6$1@dont-email.me> <upj0a0$2l6m2$1@dont-email.me>
<upj2vs$2lkm1$2@dont-email.me> <upj47o$1bkhf$2@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 16:19:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="745c16fd3cf5f037356083d009434984";
logging-data="2812605"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GlZxDzC8f4R4Vw+vLyssg"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fQYsPC5KuLdV7vradmCl/B6siAQ=
Content-Language: en-US
In-Reply-To: <upj47o$1bkhf$2@i2pn2.org>
 by: olcott - Fri, 2 Feb 2024 16:19 UTC

On 2/2/2024 10:11 AM, Richard Damon wrote:
> On 2/2/24 10:50 AM, olcott wrote:
>> On 2/2/2024 9:04 AM, Mikko wrote:
>>> On 2024-02-02 14:46:33 +0000, olcott said:
>>>
>>>> On 2/2/2024 4:49 AM, Mikko wrote:
>>>>> On 2024-02-01 17:17:39 +0000, olcott said:
>>>>>
>>>>>> #include <stdint.h>
>>>>>> typedef int(*ptr)();
>>>>>>
>>>>>> int X(ptr P, ptr I)
>>>>>> {
>>>>>>    P(I);
>>>>>>    return 0;
>>>>>> }
>>>>>>
>>>>>> int Y(ptr P)
>>>>>> {
>>>>>>    X(P, P);
>>>>>>    return 1;
>>>>>> }
>>>>>>
>>>>>> int main()
>>>>>> {
>>>>>>    X(Y, Y);
>>>>>> }
>>>>>>
>>>>>> Does this criteria prove that Y calls X in infinite recursion?
>>>>>> An examination its x86 machine language proves that Y calls X with
>>>>>> its same parameters and there are no conditional branch
>>>>>> instructions between the invocation of Y and its call to X.
>>>>>
>>>>> The recursion is indirect so the criteria above are insufficient.
>>>>> The folowing satisfies these criteria but there is no infinite
>>>>> recursion:
>>>>>
>>>>> #include <stdint.h>
>>>>> typedef int(*ptr)();
>>>>>
>>>>> static int c = 3;
>>>>>
>>>>> int X(ptr P, ptr I)
>>>>> {
>>>>>   if (c-- > 0) P(I);
>>>>>   return 0;
>>>>> }
>>>>>
>>>>> int Y(ptr P)
>>>>> {
>>>>>   X(P, P);
>>>>>   return 1;
>>>>> }
>>>>>
>>>>> int main()
>>>>> {
>>>>>   X(Y, Y);
>>>>> }
>>>>>
>>>>> You may compile that and examine the machine code but it is
>>>>> actually easier to examine the C code.
>>>>>
>>>>
>>>> Both functions must be pure functions, thus globals are not allowed.
>>>
>>> It is allowed as the C language allows that and the criteria don't
>>> prohibit.
>>
>> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
>> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
>> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
>
> Then not applicable to your H.

*Your ADD prevents you from paying attention*
*I DID NOT MENTION ANY FREAKING H*
*The question is about X and Y*

--
Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer

Re: Does this criteria prove that Y calls X in infinite recursion?

<upjbpb$2n75s$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53140&group=comp.theory#53140

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mikko.levanto@iki.fi (Mikko)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 20:20:27 +0200
Organization: -
Lines: 58
Message-ID: <upjbpb$2n75s$1@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="0459e385baa3215fcf572835c81c4567";
logging-data="2858172"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19O95jlHy/Le45sQjiX+za3"
User-Agent: Unison/2.2
Cancel-Lock: sha1:pQaCGI/JNwvWriCKqxfZPPtZnhs=
 by: Mikko - Fri, 2 Feb 2024 18:20 UTC

On 2024-02-01 17:17:39 +0000, olcott said:

> #include <stdint.h>
> typedef int(*ptr)();
>
> int X(ptr P, ptr I)
> {
> P(I);
> return 0;
> }
>
> int Y(ptr P)
> {
> X(P, P);
> return 1;
> }
>
> int main()
> {
> X(Y, Y);
> }
>
> Does this criteria prove that Y calls X in infinite recursion?
> An examination its x86 machine language proves that Y calls X with its
> same parameters and there are no conditional branch instructions
> between the invocation of Y and its call to X.
>
> _X()
> [00001cf3] 55 push ebp
> [00001cf4] 8bec mov ebp,esp
> [00001cf6] 8b450c mov eax,[ebp+0c]
> [00001cf9] 50 push eax ; push Y
> [00001cfa] ff5508 call dword [ebp+08] ; call Y
> [00001cfd] 83c404 add esp,+04
> [00001d00] 33c0 xor eax,eax
> [00001d02] 5d pop ebp
> [00001d03] c3 ret
> Size in bytes:(0017) [00001d03]
>
> _Y()
> [00001d13] 55 push ebp
> [00001d14] 8bec mov ebp,esp
> [00001d16] 8b4508 mov eax,[ebp+08]
> [00001d19] 50 push eax ; push Y
> [00001d1a] 8b4d08 mov ecx,[ebp+08]
> [00001d1d] 51 push ecx ; push Y
> [00001d1e] e8d0ffffff call 00001cf3 ; call X
> [00001d23] 83c408 add esp,+08
> [00001d26] b801000000 mov eax,00000001
> [00001d2b] 5d pop ebp
> [00001d2c] c3 ret
> Size in bytes:(0026) [00001d2c]

OP does not stipulate that.

--
Mikko

Re: Does this criteria prove that Y calls X in infinite recursion?

<upjjnl$2ok01$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53141&group=comp.theory#53141

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: polcott2@gmail.com (olcott)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 14:36:05 -0600
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <upjjnl$2ok01$1@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me> <upjbpb$2n75s$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 2 Feb 2024 20:36:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="745c16fd3cf5f037356083d009434984";
logging-data="2904065"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ufNVgfLH4WHRDjofBQAqp"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YV0EVxJ8wslWA7Zpjmj2i3j0fik=
Content-Language: en-US
In-Reply-To: <upjbpb$2n75s$1@dont-email.me>
 by: olcott - Fri, 2 Feb 2024 20:36 UTC

On 2/2/2024 12:20 PM, Mikko wrote:
> On 2024-02-01 17:17:39 +0000, olcott said:
>
>> #include <stdint.h>
>> typedef int(*ptr)();
>>
>> int X(ptr P, ptr I)
>> {
>>    P(I);
>>    return 0;
>> }
>>
>> int Y(ptr P)
>> {
>>    X(P, P);
>>    return 1;
>> }
>>
>> int main()
>> {
>>    X(Y, Y);
>> }
>>
>> Does this criteria prove that Y calls X in infinite recursion?
>> An examination its x86 machine language proves that Y calls X with its
>> same parameters and there are no conditional branch instructions
>> between the invocation of Y and its call to X.
>>
>> _X()
>> [00001cf3] 55         push ebp
>> [00001cf4] 8bec       mov ebp,esp
>> [00001cf6] 8b450c     mov eax,[ebp+0c]
>> [00001cf9] 50         push eax            ; push Y
>> [00001cfa] ff5508     call dword [ebp+08] ; call Y
>> [00001cfd] 83c404     add esp,+04
>> [00001d00] 33c0       xor eax,eax
>> [00001d02] 5d         pop ebp
>> [00001d03] c3         ret
>> Size in bytes:(0017) [00001d03]
>>
>> _Y()
>> [00001d13] 55         push ebp
>> [00001d14] 8bec       mov ebp,esp
>> [00001d16] 8b4508     mov eax,[ebp+08]
>> [00001d19] 50         push eax            ; push Y
>> [00001d1a] 8b4d08     mov ecx,[ebp+08]
>> [00001d1d] 51         push ecx            ; push Y
>> [00001d1e] e8d0ffffff call 00001cf3       ; call X
>> [00001d23] 83c408     add esp,+08
>> [00001d26] b801000000 mov eax,00000001
>> [00001d2b] 5d         pop ebp
>> [00001d2c] c3         ret
>> Size in bytes:(0026) [00001d2c]
>
> OP does not stipulate that.
>

Stipulate what?
You cannot erase what you are responding to.

--
Copyright 2024 Olcott "Talent hits a target no one else can hit; Genius
hits a target no one else can see." Arthur Schopenhauer

Re: Does this criteria prove that Y calls X in infinite recursion?

<upk0c8$1cv75$1@i2pn2.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53142&group=comp.theory#53142

  copy link   Newsgroups: comp.theory sci.logic
Path: i2pn2.org!.POSTED!not-for-mail
From: richard@damon-family.org (Richard Damon)
Newsgroups: comp.theory,sci.logic
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 19:11:51 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <upk0c8$1cv75$1@i2pn2.org>
References: <upgjnj$25gir$1@dont-email.me> <upihcd$2im2e$1@dont-email.me>
<upiv89$2kuv6$1@dont-email.me> <upj0a0$2l6m2$1@dont-email.me>
<upj2vs$2lkm1$2@dont-email.me> <upj47o$1bkhf$2@i2pn2.org>
<upj4n2$2lqlt$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 3 Feb 2024 00:11:52 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1473765"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <upj4n2$2lqlt$2@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Richard Damon - Sat, 3 Feb 2024 00:11 UTC

On 2/2/24 11:19 AM, olcott wrote:
> On 2/2/2024 10:11 AM, Richard Damon wrote:
>> On 2/2/24 10:50 AM, olcott wrote:
>>> On 2/2/2024 9:04 AM, Mikko wrote:
>>>> On 2024-02-02 14:46:33 +0000, olcott said:
>>>>
>>>>> On 2/2/2024 4:49 AM, Mikko wrote:
>>>>>> On 2024-02-01 17:17:39 +0000, olcott said:
>>>>>>
>>>>>>> #include <stdint.h>
>>>>>>> typedef int(*ptr)();
>>>>>>>
>>>>>>> int X(ptr P, ptr I)
>>>>>>> {
>>>>>>>    P(I);
>>>>>>>    return 0;
>>>>>>> }
>>>>>>>
>>>>>>> int Y(ptr P)
>>>>>>> {
>>>>>>>    X(P, P);
>>>>>>>    return 1;
>>>>>>> }
>>>>>>>
>>>>>>> int main()
>>>>>>> {
>>>>>>>    X(Y, Y);
>>>>>>> }
>>>>>>>
>>>>>>> Does this criteria prove that Y calls X in infinite recursion?
>>>>>>> An examination its x86 machine language proves that Y calls X
>>>>>>> with its same parameters and there are no conditional branch
>>>>>>> instructions between the invocation of Y and its call to X.
>>>>>>
>>>>>> The recursion is indirect so the criteria above are insufficient.
>>>>>> The folowing satisfies these criteria but there is no infinite
>>>>>> recursion:
>>>>>>
>>>>>> #include <stdint.h>
>>>>>> typedef int(*ptr)();
>>>>>>
>>>>>> static int c = 3;
>>>>>>
>>>>>> int X(ptr P, ptr I)
>>>>>> {
>>>>>>   if (c-- > 0) P(I);
>>>>>>   return 0;
>>>>>> }
>>>>>>
>>>>>> int Y(ptr P)
>>>>>> {
>>>>>>   X(P, P);
>>>>>>   return 1;
>>>>>> }
>>>>>>
>>>>>> int main()
>>>>>> {
>>>>>>   X(Y, Y);
>>>>>> }
>>>>>>
>>>>>> You may compile that and examine the machine code but it is
>>>>>> actually easier to examine the C code.
>>>>>>
>>>>>
>>>>> Both functions must be pure functions, thus globals are not allowed.
>>>>
>>>> It is allowed as the C language allows that and the criteria don't
>>>> prohibit.
>>>
>>> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
>>> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
>>> *IT IS STIPULATED THAT X AND Y ARE PURE FUNCTIONS*
>>
>> Then not applicable to your H.
>
> *Your ADD prevents you from paying attention*
> *I DID NOT MENTION ANY FREAKING H*
> *The question is about X and Y*
>

As a precursor for you comparing it to H.

Right?

Or do you stipulate that you will never try to migrate this observation
to your Halt Decider?

The fact that I am a couple of steps ahead of your should give you pause
for how dumb you think I am.

It isn't that surprising that I can see this future, as you have done it
in the past.

YOU are the one stuck in an infinite recursion, and you don't know how
to get out,

Re: Does this criteria prove that Y calls X in infinite recursion?

<upk0hb$1cv75$2@i2pn2.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53143&group=comp.theory#53143

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!.POSTED!not-for-mail
From: richard@damon-family.org (Richard Damon)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Fri, 2 Feb 2024 19:14:35 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <upk0hb$1cv75$2@i2pn2.org>
References: <upgjnj$25gir$1@dont-email.me> <upjbpb$2n75s$1@dont-email.me>
<upjjnl$2ok01$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 3 Feb 2024 00:14:35 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="1473765"; mail-complaints-to="usenet@i2pn2.org";
posting-account="diqKR1lalukngNWEqoq9/uFtbkm5U+w3w6FQ0yesrXg";
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <upjjnl$2ok01$1@dont-email.me>
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Richard Damon - Sat, 3 Feb 2024 00:14 UTC

On 2/2/24 3:36 PM, olcott wrote:
> On 2/2/2024 12:20 PM, Mikko wrote:
>> On 2024-02-01 17:17:39 +0000, olcott said:
>>
>>> #include <stdint.h>
>>> typedef int(*ptr)();
>>>
>>> int X(ptr P, ptr I)
>>> {
>>>    P(I);
>>>    return 0;
>>> }
>>>
>>> int Y(ptr P)
>>> {
>>>    X(P, P);
>>>    return 1;
>>> }
>>>
>>> int main()
>>> {
>>>    X(Y, Y);
>>> }
>>>
>>> Does this criteria prove that Y calls X in infinite recursion?
>>> An examination its x86 machine language proves that Y calls X with
>>> its same parameters and there are no conditional branch instructions
>>> between the invocation of Y and its call to X.
>>>
>>> _X()
>>> [00001cf3] 55         push ebp
>>> [00001cf4] 8bec       mov ebp,esp
>>> [00001cf6] 8b450c     mov eax,[ebp+0c]
>>> [00001cf9] 50         push eax            ; push Y
>>> [00001cfa] ff5508     call dword [ebp+08] ; call Y
>>> [00001cfd] 83c404     add esp,+04
>>> [00001d00] 33c0       xor eax,eax
>>> [00001d02] 5d         pop ebp
>>> [00001d03] c3         ret
>>> Size in bytes:(0017) [00001d03]
>>>
>>> _Y()
>>> [00001d13] 55         push ebp
>>> [00001d14] 8bec       mov ebp,esp
>>> [00001d16] 8b4508     mov eax,[ebp+08]
>>> [00001d19] 50         push eax            ; push Y
>>> [00001d1a] 8b4d08     mov ecx,[ebp+08]
>>> [00001d1d] 51         push ecx            ; push Y
>>> [00001d1e] e8d0ffffff call 00001cf3       ; call X
>>> [00001d23] 83c408     add esp,+08
>>> [00001d26] b801000000 mov eax,00000001
>>> [00001d2b] 5d         pop ebp
>>> [00001d2c] c3         ret
>>> Size in bytes:(0026) [00001d2c]
>>
>> OP does not stipulate that.
>>
>
> Stipulate what?
> You cannot erase what you are responding to.
>

Are you forgetting what you just claimed to have stipulated, when you
didn't?

That X was a pure function.

You didn't stipulate it in the first place, and when using hidden state
(as you H effectively does) you the when back and tried to re-con that
you meant to stipulate that the functions were pure functions.

I guess you mind has just gone all mushy.

Re: Does this criteria prove that Y calls X in infinite recursion?

<upl2t2$330jq$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53144&group=comp.theory#53144

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mikko.levanto@iki.fi (Mikko)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Sat, 3 Feb 2024 12:01:06 +0200
Organization: -
Lines: 25
Message-ID: <upl2t2$330jq$1@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me> <upjbpb$2n75s$1@dont-email.me> <upjjnl$2ok01$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="7b6c071e01bde4b2b6b0c118dae3112e";
logging-data="3244666"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3GyHwNdsoRmav0PZitxm5"
User-Agent: Unison/2.2
Cancel-Lock: sha1:Ella+Sc1RWUco7vIVT2YL8+ZKBs=
 by: Mikko - Sat, 3 Feb 2024 10:01 UTC

On 2024-02-02 20:36:05 +0000, olcott said:

> On 2/2/2024 12:20 PM, Mikko wrote:

>> OP does not stipulate that.

> Stipulate what?

Actually, OP did not stipulate anything, just asked a
question:

> Does this criteria prove that Y calls X in infinite recursion?
> An examination its x86 machine language proves that Y calls X with its
> same parameters and there are no conditional branch instructions
> between the invocation of Y and its call to X.

That question has been answered: no, those criteria don't prove it.

> You cannot erase what you are responding to.

Sorry, my mistake.

--
Mikko

Re: Does this criteria prove that Y calls X in infinite recursion?

<uprdo0$e466$7@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53213&group=comp.theory#53213

  copy link   Newsgroups: comp.theory
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: news@immibis.com (immibis)
Newsgroups: comp.theory
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Mon, 5 Feb 2024 20:42:56 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <uprdo0$e466$7@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Feb 2024 19:42:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7dc69157f83826a19951c628d05ce10d";
logging-data="463046"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hSMcTzG5ys8D57YOpJsLp"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:95YjUuSTxq54ZRaIXsAAltQWA4E=
Content-Language: en-US
In-Reply-To: <upgjnj$25gir$1@dont-email.me>
 by: immibis - Mon, 5 Feb 2024 19:42 UTC

On 1/02/24 18:17, olcott wrote:
> #include <stdint.h>
> typedef int(*ptr)();
>
> int X(ptr P, ptr I)
> {
>   P(I);
>   return 0;
> }
>
> int Y(ptr P)
> {
>   X(P, P);
>   return 1;
> }
>
> int main()
> {
>   X(Y, Y);
> }
>
> Does this criteria prove that Y calls X in infinite recursion?

Irrelevant. This is different from the halting decider because it calls
Y(Y) instead of beginning a simulating of Y(Y) and stepping the
simulation and making a termination decision after each step.

Re: Does this criteria prove that Y calls X in infinite recursion?

<uprdsa$e466$8@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=53214&group=comp.theory#53214

  copy link   Newsgroups: comp.theory sci.logic
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: news@immibis.com (immibis)
Newsgroups: comp.theory,sci.logic
Subject: Re: Does this criteria prove that Y calls X in infinite recursion?
Date: Mon, 5 Feb 2024 20:45:14 +0100
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <uprdsa$e466$8@dont-email.me>
References: <upgjnj$25gir$1@dont-email.me> <upihcd$2im2e$1@dont-email.me>
<upiv89$2kuv6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Feb 2024 19:45:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7dc69157f83826a19951c628d05ce10d";
logging-data="463046"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kaes34ksWw2A84wCsbpDP"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:V897EdlLaRpwKoBnAYWdcigTvxM=
In-Reply-To: <upiv89$2kuv6$1@dont-email.me>
Content-Language: en-US
 by: immibis - Mon, 5 Feb 2024 19:45 UTC

On 2/02/24 15:46, olcott wrote:
> On 2/2/2024 4:49 AM, Mikko wrote:
>> On 2024-02-01 17:17:39 +0000, olcott said:
>>
>>> #include <stdint.h>
>>> typedef int(*ptr)();
>>>
>>> int X(ptr P, ptr I)
>>> {
>>>    P(I);
>>>    return 0;
>>> }
>>>
>>> int Y(ptr P)
>>> {
>>>    X(P, P);
>>>    return 1;
>>> }
>>>
>>> int main()
>>> {
>>>    X(Y, Y);
>>> }
>>>
>>> Does this criteria prove that Y calls X in infinite recursion?
>>> An examination its x86 machine language proves that Y calls X with
>>> its same parameters and there are no conditional branch instructions
>>> between the invocation of Y and its call to X.
>>
>> The recursion is indirect so the criteria above are insufficient. The
>> folowing satisfies these criteria but there is no infinite recursion:
>>
>> #include <stdint.h>
>> typedef int(*ptr)();
>>
>> static int c = 3;
>>
>> int X(ptr P, ptr I)
>> {
>>    if (c-- > 0) P(I);
>>    return 0;
>> }
>>
>> int Y(ptr P)
>> {
>>    X(P, P);
>>    return 1;
>> }
>>
>> int main()
>> {
>>    X(Y, Y);
>> }
>>
>> You may compile that and examine the machine code but it is
>> actually easier to examine the C code.
>>
>
> Both functions must be pure functions, thus globals are not allowed.
>
Is this meant to apply to your halting decider code? Globals are not
allowed because they are undeclared inputs which mean that your program
is different from Linz's counterexample which has no other inputs. Your
halting decider code uses an execution trace as an undeclared input so
it is different from Linz's counterexample.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor