Skip to content

Commit

Permalink
deploy: feeab90
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoss committed Jan 6, 2025
1 parent dd48d7e commit 4210ff4
Show file tree
Hide file tree
Showing 21 changed files with 2,636 additions and 17 deletions.
1,081 changes: 1,081 additions & 0 deletions _sources/universal/universal.ipynb

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@
<li class="toctree-l1"><a class="reference internal" href="more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@
<li class="toctree-l1"><a class="reference internal" href="more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down Expand Up @@ -484,6 +490,8 @@ <h2>Using the book<a class="headerlink" href="#using-the-book" title="Link to th
</div>
<div class="toctree-wrapper compound">
</div>
<div class="toctree-wrapper compound">
</div>
</section>

<script type="text/x-thebe-config">
Expand Down
6 changes: 6 additions & 0 deletions introOneSharp/functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions introOneSharp/haltDef.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions introOneSharp/instructions.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions introOneSharp/move_copy_write.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions introOneSharp/tidy.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions issues/coding.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions issues/issues.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions issues/problems.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions issues/reduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1"><a class="reference internal" href="../more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
6 changes: 6 additions & 0 deletions more_programs/arithmetic.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@
<li class="toctree-l1"><a class="reference internal" href="primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
12 changes: 9 additions & 3 deletions more_programs/primitive_recursion.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<script>DOCUMENTATION_OPTIONS.pagename = 'more_programs/primitive_recursion';</script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Self-Replicating Programs" href="../self_writing.html" />
<link rel="next" title="Universal Programs" href="../universal/universal.html" />
<link rel="prev" title="Programs for Arithmetic" href="arithmetic.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
Expand Down Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down Expand Up @@ -1265,11 +1271,11 @@ <h2>Testing the ‘prime’ primitive recursive term<a class="headerlink" href="
</div>
</a>
<a class="right-next"
href="../self_writing.html"
href="../universal/universal.html"
title="next page">
<div class="prev-next-info">
<p class="prev-next-subtitle">next</p>
<p class="prev-next-title">Self-Replicating Programs</p>
<p class="prev-next-title">Universal Programs</p>
</div>
<i class="fa-solid fa-angle-right"></i>
</a>
Expand Down
6 changes: 6 additions & 0 deletions more_programs/sanity.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@
<li class="toctree-l1"><a class="reference internal" href="primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="../universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
Binary file modified objects.inv
Binary file not shown.
15 changes: 15 additions & 0 deletions prf-prf.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@
<li class="toctree-l1"><a class="reference internal" href="more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down Expand Up @@ -379,6 +385,7 @@ <h1>Proof Index</h1>
<a href="#cap-definition-11"><strong>definition-11</strong></a> |
<a href="#cap-definition-4"><strong>definition-4</strong></a> |
<a href="#cap-definition-6"><strong>definition-6</strong></a> |
<a href="#cap-my-definition"><strong>my-definition</strong></a> |
<a href="#cap-phi-notation"><strong>phi-notation</strong></a> |
<a href="#cap-proposition-0"><strong>proposition-0</strong></a> |
<a href="#cap-theorem-2"><strong>theorem-2</strong></a>
Expand Down Expand Up @@ -410,6 +417,14 @@ <h1>Proof Index</h1>
<a href="introOneSharp/move_copy_write.html#definition-6"><code class="xref">definition-6</code></a> <em>(introOneSharp/move_copy_write)</em></td><td>
<em>definition</em></td></tr>
<tr class="pcap"><td></td><td>&#160;</td><td></td></tr>
<tr class="cap" id="cap-my-definition"><td></td><td>
<strong>my-definition</strong></td><td></td></tr>
<tr>
<td></td>
<td>
<a href="universal/universal.html#my-definition"><code class="xref">my-definition</code></a> <em>(universal/universal)</em></td><td>
<em>definition</em></td></tr>
<tr class="pcap"><td></td><td>&#160;</td><td></td></tr>
<tr class="cap" id="cap-phi-notation"><td></td><td>
<strong>phi-notation</strong></td><td></td></tr>
<tr>
Expand Down
6 changes: 6 additions & 0 deletions search.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@
<li class="toctree-l1"><a class="reference internal" href="more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="nav bd-sidenav">
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

32 changes: 19 additions & 13 deletions self_writing.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<script>DOCUMENTATION_OPTIONS.pagename = 'self_writing';</script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="prev" title="Primitive Recursion" href="more_programs/primitive_recursion.html" />
<link rel="prev" title="Universal Programs" href="universal/universal.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="" />
Expand Down Expand Up @@ -213,6 +213,12 @@
<li class="toctree-l1"><a class="reference internal" href="more_programs/primitive_recursion.html">Primitive Recursion</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Universal Programs</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="universal/universal.html">Universal Programs</a></li>


</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Self-Writing Programs and the Recursion Theorem</span></p>
<ul class="current nav bd-sidenav">
Expand Down Expand Up @@ -717,7 +723,7 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
to check your work on the interpreter.</p>
<div class="exercise admonition" id="self_writing-exercise-0">

<p class="admonition-title"><span class="caption-number">Exercise 37 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 40 </span></p>
<section id="exercise-content">
<p>If x and y are words, let’s think about
[ [<code class="docutils literal notranslate"><span class="pre">diag</span></code>] (<code class="docutils literal notranslate"><span class="pre">x</span></code>)] (<code class="docutils literal notranslate"><span class="pre">y</span></code>). Is it [[ <code class="docutils literal notranslate"><span class="pre">x</span></code> ]](<code class="docutils literal notranslate"><span class="pre">x</span> <span class="pre">+</span> <span class="pre">y</span></code>), or
Expand All @@ -726,15 +732,15 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
</div>
<div class="exercise admonition" id="self_writing-exercise-1">

<p class="admonition-title"><span class="caption-number">Exercise 38 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 41 </span></p>
<section id="exercise-content">
<p>Write a program which when started on all empty registers
writes itself to <span class="math notranslate nohighlight">\(\Rone\)</span> and also writes <span class="math notranslate nohighlight">\(\hash\)</span> to <span class="math notranslate nohighlight">\(\Rtwo\)</span>.</p>
</section>
</div>
<div class="exercise admonition" id="self_writing-exercise-2">

<p class="admonition-title"><span class="caption-number">Exercise 39 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 42 </span></p>
<section id="exercise-content">
<p>Write a program <span class="math notranslate nohighlight">\(p\)</span> which when started on all empty registers
doesn’t
Expand All @@ -744,15 +750,15 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
</div>
<div class="exercise admonition" id="self_writing-exercise-3">

<p class="admonition-title"><span class="caption-number">Exercise 40 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 43 </span></p>
<section id="exercise-content">
<p>Find an infinite sequence of programs which are all different with the property that each program in the list
writes the next one in the list into R1.</p>
</section>
</div>
<div class="exercise admonition" id="self_writing-exercise-4">

<p class="admonition-title"><span class="caption-number">Exercise 41 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 44 </span></p>
<section id="exercise-content">
<p>Write a program p which when started on all empty registers
doesn’t
Expand All @@ -763,7 +769,7 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
</div>
<div class="exercise admonition" id="self_writing-exercise-5">

<p class="admonition-title"><span class="caption-number">Exercise 42 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 45 </span></p>
<section id="exercise-content">
<p>Write a self-replicating program
that begins with the program to transfer ahead
Expand All @@ -772,7 +778,7 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
</div>
<div class="exercise admonition" id="self_writing-exercise-6">

<p class="admonition-title"><span class="caption-number">Exercise 43 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 46 </span></p>
<section id="exercise-content">
<p>Write a program s which, when run with R2, R3, etc.
empty, ends up with R1 containing s <em>after</em> whatever
Expand All @@ -783,7 +789,7 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
</div>
<div class="exercise admonition" id="self_writing-exercise-7">

<p class="admonition-title"><span class="caption-number">Exercise 44 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 47 </span></p>
<section id="exercise-content">
<p>Write a program <code class="docutils literal notranslate"><span class="pre">selfknow</span></code> with the property that when run with
a string q in R1,
Expand All @@ -795,7 +801,7 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
</div>
<div class="exercise admonition" id="self_writing-exercise-8">

<p class="admonition-title"><span class="caption-number">Exercise 45 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 48 </span></p>
<section id="exercise-content">
<p>Write a program <code class="docutils literal notranslate"><span class="pre">trade</span></code>
which trades places with its input in R1.
Expand All @@ -809,7 +815,7 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading
</div>
<div class="exercise admonition" id="self_writing-exercise-9">

<p class="admonition-title"><span class="caption-number">Exercise 46 </span></p>
<p class="admonition-title"><span class="caption-number">Exercise 49 </span></p>
<section id="exercise-content">
<p>Write two “twin’’ programs s and t with the properties
that s and t are different programs;
Expand Down Expand Up @@ -851,12 +857,12 @@ <h1>Exercises<a class="headerlink" href="#exercises" title="Link to this heading

<div class="prev-next-area">
<a class="left-prev"
href="more_programs/primitive_recursion.html"
href="universal/universal.html"
title="previous page">
<i class="fa-solid fa-angle-left"></i>
<div class="prev-next-info">
<p class="prev-next-subtitle">previous</p>
<p class="prev-next-title">Primitive Recursion</p>
<p class="prev-next-title">Universal Programs</p>
</div>
</a>
</div>
Expand Down
Loading

0 comments on commit 4210ff4

Please sign in to comment.