Re: How to write a self-referencial TM?

Liste des GroupesRevenir à c theory 
Sujet : Re: How to write a self-referencial TM?
De : wyniijj5 (at) *nospam* gmail.com (wij)
Groupes : comp.theory
Date : 16. May 2025, 02:47:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <4bce5af2b2b8cd198af611e5d8d56598cab15b0a.camel@gmail.com>
References : 1 2 3 4 5 6 7 8
User-Agent : Evolution 3.54.3 (3.54.3-1.fc41)
On Fri, 2025-05-16 at 01:40 +0100, Mike Terry wrote:
On 15/05/2025 19:49, wij wrote:
On Thu, 2025-05-15 at 17:08 +0100, Mike Terry wrote:
On 14/05/2025 18:53, wij wrote:
On Wed, 2025-05-14 at 12:24 -0500, olcott wrote:
On 5/14/2025 11:43 AM, wij wrote:
On Wed, 2025-05-14 at 09:51 -0500, olcott wrote:
On 5/14/2025 12:13 AM, wij wrote:
Q: Write a turing machine that performs D function (which calls itself):
 
void D() {
     D();
}
 
Easy?
 
 
 
That is not a TM.
 
It is a C program that exists. Therefore, there must be a equivalent TM.
 
To make a TM that references itself the closest
thing is a UTM that simulates its own TM source-code.
 
How does a UTM simulate its own TM source-code?
 
 
You run a UTM that has its own source-code on its tape.
 
What is exactly the source-code on its tape?
 
 
Every UTM has some scheme which can be applied to a (TM & input tape) that is to be simulated. 
The
scheme says how to turn the (TM + input tape) into a string of symbols that represent that
computation.
 
So to answer your question, the "source-code on its tape" is the result of applying the UTM's
particular scheme to the combination (UTM, input tape) that is to be simulated.
 
If you're looking for the exact string symbols, obviously you would need to specify the exact
UTM
being used, because every UTM will have a different answer to your question.
 
 
Mike.
 
People used to say UTM can simulate all TM. I was questing such a UTM.
Because you said "Every UTM ...", so what is the source of such UTM?
 
Yes, a UTM can simulate any TM including itself.  (Nothing magical changes when a UTM simulates
itself, as opposed to some other TM.)

Supposed UTM exists, and denoted as U(X), X denotes the tape contents of the
encoding of a TM. And, U(X) should function the same like X.
Given instance U(U(f)), it should function like f from the above definition..
But, U(U(f)) would fall into a 'self-reference' trap.

Your question "what is the source of such UTM?" seems to be asking to be pointed to some sample
source code for a UTM?  I don't have any!  But I'm sure someone somewhere will have gone to all the
trouble of coding an actual UTM, and will have made that available online somewhere.  Note that a
UTM is a firstly a TM, but TMs can be described as text "source code" and someone could have made
that available online.
 
Perhaps someone else here knows of useful sources for this?  Otherwise you would need to search for
it with Google or whatever.   IF THIS IS WHAT YOU REALLY WANT, which seems unlikely to me.
 
Most people aren't interested in specific source code for an actual UTM, because the role of a UTM
is /theoretical/, and most people can /see/ what a UTM needs to do, and how it can do it, so there
is no doubt in their mind that such a UTM /could/ be written.  I daresay that most programmers could
easily write one themselves, were it not for the huge burden of having to work within the TM
architecture with only the low level facilities TMs provide.  So they consider it a lot of work, and
at the end they would have a UTM source code, but /what would they plan to do with it/ ??  You would
only do all this work if you needed to actually /use/ the UTM, but TMs are not /intended/ as a
practical programming tool.
 
So... Do you /really/ need an actual UTM source code? I wonder.  What do you intend to use it for?
 
If you need to develop/test/debug your own TMs, rather than a UTM source code you need some kind of
TM development environment.  I don't know if such a thing exists for serious use!
 
If you're just playing/learning about TMs then probably you really just want a very basic TM
emulator (NOT a UTM) that can take a TM description and output for you the successive steps of its
execution, showing the tape contents and position of the tape head.  Loads of (most?) CS students
will have done this themselves at some point, using their own favourite language - you could use
Python, C++, Java, whatever you like.  I once wrote myself one of these as a play thing in C++ and
it took a few hours perhaps.  (Most of the time was fiddling with output formats to make the output
appear in a way I liked.  I got bored eventually!)  You could do this yourself...
 
Or... is it that you don't /understand/ something about UTMs and need convincing?  I think just
explaining what is confusing you and asking questions would be a better way to go!
 
Mike.

No need to make things such complicated and thus unnecessary long comments. 
We can simply assume the 'source-code' is machine code, the debuger in every OS is already a 'UTM'
except it cannot simulate itself....  No UTM exists that can simulate any TM including itself.



Date Sujet#  Auteur
14 May 25 * How to write a self-referencial TM?112wij
14 May 25 +- Re: How to write a self-referencial TM?1Richard Heathfield
14 May 25 +* Re: How to write a self-referencial TM?109olcott
14 May 25 i`* Re: How to write a self-referencial TM?108wij
14 May 25 i +* Re: How to write a self-referencial TM?21Richard Heathfield
14 May 25 i i`* Re: How to write a self-referencial TM?20wij
14 May 25 i i `* Re: How to write a self-referencial TM?19Richard Heathfield
14 May 25 i i  `* Re: How to write a self-referencial TM?18wij
14 May 25 i i   `* Re: How to write a self-referencial TM?17Richard Heathfield
14 May 25 i i    `* Re: How to write a self-referencial TM?16Keith Thompson
14 May 25 i i     +* Re: How to write a self-referencial TM?2olcott
14 May 25 i i     i`- Re: How to write a self-referencial TM?1Richard Heathfield
14 May 25 i i     +* Re: How to write a self-referencial TM?11Richard Heathfield
14 May 25 i i     i+* Re: How to write a self-referencial TM?5Keith Thompson
14 May 25 i i     ii+* Re: How to write a self-referencial TM?3Richard Heathfield
14 May 25 i i     iii`* Re: How to write a self-referencial TM?2Keith Thompson
14 May 25 i i     iii `- Re: How to write a self-referencial TM?1Richard Heathfield
15 May 25 i i     ii`- Re: How to write a self-referencial TM?1Mikko
15 May 25 i i     i`* Re: How to write a self-referencial TM?5Andy Walker
15 May 25 i i     i `* Re: How to write a self-referencial TM?4Keith Thompson
15 May 25 i i     i  `* Re: How to write a self-referencial TM?3wij
15 May 25 i i     i   `* Re: How to write a self-referencial TM?2wij
15 May 25 i i     i    `- Re: How to write a self-referencial TM?1wij
15 May 25 i i     +- Re: How to write a self-referencial TM?1Ben Bacarisse
15 May 25 i i     `- Re: How to write a self-referencial TM?1Mikko
14 May 25 i `* Re: How to write a self-referencial TM?86olcott
14 May 25 i  +* Re: How to write a self-referencial TM?3wij
14 May 25 i  i`* Re: How to write a self-referencial TM?2olcott
14 May 25 i  i `- Re: How to write a self-referencial TM?1wij
14 May 25 i  +* Re: How to write a self-referencial TM?80wij
15 May 25 i  i`* Re: How to write a self-referencial TM?79Mike Terry
15 May 25 i  i +* Re: How to write a self-referencial TM?14olcott
15 May 25 i  i i+* Re: How to write a self-referencial TM?6wij
15 May 25 i  i ii`* Re: How to write a self-referencial TM?5olcott
16 May 25 i  i ii `* Re: How to write a self-referencial TM?4Mikko
16 May 25 i  i ii  `* Re: How to write a self-referencial TM?3olcott
16 May 25 i  i ii   +- Re: How to write a self-referencial TM?1Richard Damon
17 May09:58 i  i ii   `- Re: How to write a self-referencial TM?1Mikko
16 May 25 i  i i`* Re: How to write a self-referencial TM?7Mikko
16 May 25 i  i i `* Re: How to write a self-referencial TM?6olcott
19 May09:21 i  i i  +- Re: How to write a self-referencial TM?1Fred. Zwarts
19 May11:39 i  i i  `* Re: How to write a self-referencial TM?4Mikko
21 May05:41 i  i i   `* Re: How to write a self-referencial TM?3olcott
21 May09:47 i  i i    +- Re: How to write a self-referencial TM?1Mikko
21 May12:11 i  i i    `- Re: How to write a self-referencial TM?1Richard Damon
15 May 25 i  i `* Re: How to write a self-referencial TM?64wij
15 May 25 i  i  +* Re: How to write a self-referencial TM?8olcott
15 May 25 i  i  i+* Re: How to write a self-referencial TM?4wij
16 May 25 i  i  ii`* Re: How to write a self-referencial TM?3Mikko
16 May 25 i  i  ii `* Re: How to write a self-referencial TM?2olcott
16 May20:34 i  i  ii  `- Re: How to write a self-referencial TM?1Fred. Zwarts
16 May 25 i  i  i`* Re: How to write a self-referencial TM?3Mikko
16 May 25 i  i  i `* Re: How to write a self-referencial TM?2olcott
17 May10:02 i  i  i  `- Re: How to write a self-referencial TM?1Mikko
16 May 25 i  i  `* Re: How to write a self-referencial TM?55Mike Terry
16 May 25 i  i   +- Re: How to write a self-referencial TM?1Richard Heathfield
16 May 25 i  i   +* Re: How to write a self-referencial TM?46wij
16 May 25 i  i   i`* Re: How to write a self-referencial TM?45Mike Terry
16 May 25 i  i   i `* Re: How to write a self-referencial TM?44wij
16 May 25 i  i   i  `* Re: How to write a self-referencial TM?43Mike Terry
16 May20:35 i  i   i   `* Re: How to write a self-referencial TM?42wij
16 May23:51 i  i   i    `* Re: How to write a self-referencial TM?41Mike Terry
17 May04:01 i  i   i     `* Re: How to write a self-referencial TM?40wij
17 May04:12 i  i   i      +* Re: How to write a self-referencial TM?6olcott
17 May04:23 i  i   i      i+* Re: How to write a self-referencial TM?4wij
17 May04:40 i  i   i      ii`* Re: How to write a self-referencial TM?3olcott
17 May04:49 i  i   i      ii `* Re: How to write a self-referencial TM?2wij
17 May04:58 i  i   i      ii  `- Re: How to write a self-referencial TM?1olcott
17 May14:02 i  i   i      i`- Re: How to write a self-referencial TM?1Richard Damon
17 May15:45 i  i   i      `* Re: How to write a self-referencial TM?33Mike Terry
17 May20:26 i  i   i       `* Re: How to write a self-referencial TM?32wij
17 May20:39 i  i   i        +* Re: How to write a self-referencial TM?28olcott
18 May09:20 i  i   i        i+- Re: How to write a self-referencial TM?1Mikko
18 May21:35 i  i   i        i`* Re: How to write a self-referencial TM?26wij
18 May21:57 i  i   i        i +* Re: How to write a self-referencial TM?24olcott
18 May22:45 i  i   i        i i+- Re: How to write a self-referencial TM?1Richard Damon
18 May22:46 i  i   i        i i+* Re: How to write a self-referencial TM?8wij
18 May23:09 i  i   i        i ii`* Re: How to write a self-referencial TM?7olcott
18 May23:35 i  i   i        i ii +- Re: How to write a self-referencial TM?1wij
19 May00:54 i  i   i        i ii +* Re: How to write a self-referencial TM?2wij
19 May11:52 i  i   i        i ii i`- Re: How to write a self-referencial TM?1Mikko
19 May11:48 i  i   i        i ii `* Re: How to write a self-referencial TM?3Mikko
21 May05:36 i  i   i        i ii  `* Re: How to write a self-referencial TM?2olcott
21 May09:56 i  i   i        i ii   `- Re: How to write a self-referencial TM?1Mikko
18 May22:58 i  i   i        i i+* Re: How to write a self-referencial TM?13André G. Isaak
18 May23:08 i  i   i        i ii`* Re: How to write a self-referencial TM?12olcott
19 May00:19 i  i   i        i ii +- Re: How to write a self-referencial TM?1Richard Damon
19 May04:21 i  i   i        i ii `* Re: How to write a self-referencial TM?10André G. Isaak
19 May05:07 i  i   i        i ii  `* Re: How to write a self-referencial TM?9olcott
19 May08:54 i  i   i        i ii   +- Re: How to write a self-referencial TM?1Fred. Zwarts
19 May13:29 i  i   i        i ii   `* Re: How to write a self-referencial TM?7Mikko
21 May05:33 i  i   i        i ii    `* Re: How to write a self-referencial TM?6olcott
21 May10:03 i  i   i        i ii     +- Re: How to write a self-referencial TM?1Mikko
21 May12:16 i  i   i        i ii     +- Re: How to write a self-referencial TM?1Richard Damon
21 May20:43 i  i   i        i ii     `* Re: How to write a self-referencial TM?3Fred. Zwarts
21 May20:49 i  i   i        i ii      `* Re: How to write a self-referencial TM?2olcott
23 May12:03 i  i   i        i ii       `- Re: How to write a self-referencial TM?1Fred. Zwarts
19 May11:44 i  i   i        i i`- Re: How to write a self-referencial TM?1Mikko
19 May11:41 i  i   i        i `- Re: How to write a self-referencial TM?1Mikko
17 May20:46 i  i   i        `* Re: How to write a self-referencial TM?3Mike Terry
17 May20:55 i  i   i         `* Re: How to write a self-referencial TM?2olcott
16 May 25 i  i   `* Re: How to write a self-referencial TM?7Andy Walker
16 May 25 i  `* Re: How to write a self-referencial TM?2Mikko
15 May 25 `- Re: How to write a self-referencial TM?1Mikko

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal