From e5989807a5d0788ccdad339c46c81064a6be1b56 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:29:53 +0100 Subject: [PATCH 1/4] computability: spelling, grammar, markup, references (22 places) No change of meaning. Co-Authored-By: Claude Opus 5.5 --- .../computability-theory/ce-closed-cup-cap.tex | 2 +- .../computability-theory/coding-computations.tex | 2 +- .../computability/computability-theory/computable-sets.tex | 2 +- .../computability-theory/def-functions-self-reference.tex | 2 +- .../computability/computability-theory/equiv-ce-defs.tex | 6 +++--- .../computability/computability-theory/fixed-point-thm.tex | 1 + .../computability/computability-theory/halting-problem.tex | 2 +- content/computability/computability-theory/prop-reduce.tex | 4 ++-- content/computability/computability-theory/reducibility.tex | 4 ++-- content/computability/computability-theory/total.tex | 2 +- content/computability/computability.tex | 3 +-- .../recursive-functions/bounded-minimization.tex | 2 +- .../computability/recursive-functions/partial-functions.tex | 2 +- content/computability/recursive-functions/pr-functions.tex | 2 +- content/computability/recursive-functions/primes.tex | 4 ++-- content/computability/recursive-functions/sequences.tex | 2 +- content/computability/recursive-functions/trees.tex | 2 +- 17 files changed, 22 insertions(+), 22 deletions(-) diff --git a/content/computability/computability-theory/ce-closed-cup-cap.tex b/content/computability/computability-theory/ce-closed-cup-cap.tex index 7f8f4a18c..783d490e7 100644 --- a/content/computability/computability-theory/ce-closed-cup-cap.tex +++ b/content/computability/computability-theory/ce-closed-cup-cap.tex @@ -37,7 +37,7 @@ Here is what is going on, in computational terms: given procedures that enumerate $A$ and $B$, we can semi-decide if an element $x$ is in $A \cup B$ by looking for $x$ in either enumeration; -and we can semi-decide if an element $x$ is in $A \cap B$ for looking +and we can semi-decide if an element $x$ is in $A \cap B$ by looking for $x$ in both enumerations at the same time. \end{explain} diff --git a/content/computability/computability-theory/coding-computations.tex b/content/computability/computability-theory/coding-computations.tex index 6d936cacc..7a43fa098 100644 --- a/content/computability/computability-theory/coding-computations.tex +++ b/content/computability/computability-theory/coding-computations.tex @@ -27,7 +27,7 @@ \item Extract from such a description of the complete record of a computation the value of the function for a given input. For instance, the contents of the tape in the very last step of a - halting Turing machine computation is the value. + halting Turing machine computation are the value. \end{enumerate} Using coding, it is possible to assign to each description of a diff --git a/content/computability/computability-theory/computable-sets.tex b/content/computability/computability-theory/computable-sets.tex index 7e6a82eb2..12b0fad34 100644 --- a/content/computability/computability-theory/computable-sets.tex +++ b/content/computability/computability-theory/computable-sets.tex @@ -36,7 +36,7 @@ returns the output of the function, for input values at which the function is defined; the Turing machine computing a set returns either $1$ or~$0$, after deciding whether or not the input value is in - the set or not.}{} + the set.}{} \end{explain} \end{document} diff --git a/content/computability/computability-theory/def-functions-self-reference.tex b/content/computability/computability-theory/def-functions-self-reference.tex index 8878ca35d..92199fd29 100644 --- a/content/computability/computability-theory/def-functions-self-reference.tex +++ b/content/computability/computability-theory/def-functions-self-reference.tex @@ -51,7 +51,7 @@ support definitions of functions in terms of themselves, one way or another. Note that this is a little bit less dramatic than being able to define a function in terms of an \emph{index} for an algorithm -computing the functions, which is what, in full generality, the +computing the function, which is what, in full generality, the fixed-point theorem lets you do. \end{document} diff --git a/content/computability/computability-theory/equiv-ce-defs.tex b/content/computability/computability-theory/equiv-ce-defs.tex index 23bf64035..6b22d0b3f 100644 --- a/content/computability/computability-theory/equiv-ce-defs.tex +++ b/content/computability/computability-theory/equiv-ce-defs.tex @@ -8,7 +8,7 @@ \olfileid{cmp}{thy}{eqc} -\olsection[Definitions of C. E. Sets]{Equivalent Defininitions of +\olsection[Definitions of C. E. Sets]{Equivalent Definitions of Computably Enumerable Sets} @@ -36,7 +36,7 @@ \[ S = \Setabs{x}{\cfind{e}(x) \fdefined}. \] -In other words, $S$ is the set of inputs on for which the computation +In other words, $S$ is the set of inputs for which the computation of $\cfind{e}$ halts. For that reason, computably enumerable sets are sometimes called \emph{semi-decidable}: if a number is in the set, you eventually get a ``yes,'' but if it isn't, you never get a ``no''!{} @@ -69,7 +69,7 @@ are. \iftag{TMs}{Expressed in terms of Turing machines, if $z$ codes a pair $\tuple{(z)_0, (z)_1}$ such that $(z)_1$ is a halting computation of machine~$M_e$ on input $(z)_0$, then $f$ returns the - output of the computation; otherwise, it returns~$a$.} + output of the computation; otherwise, it returns~$a$.}{} We need to show that $S$ is the range of~$f$, i.e., for any natural number~$y$, $y \in S$ if and only if it is in the range of~$f$. In the diff --git a/content/computability/computability-theory/fixed-point-thm.tex b/content/computability/computability-theory/fixed-point-thm.tex index 84fa36661..536db9771 100644 --- a/content/computability/computability-theory/fixed-point-thm.tex +++ b/content/computability/computability-theory/fixed-point-thm.tex @@ -183,6 +183,7 @@ accepts a string $x$ and another numeric argument $y$, and prints the string $x$ repeatedly, $y$ times. Then the ``program'' \begin{quote} +\footnotesize \begin{verbatim} getinput(y); print(diag('getinput(y); print(diag(x), y)'), y) diff --git a/content/computability/computability-theory/halting-problem.tex b/content/computability/computability-theory/halting-problem.tex index 6138b8b1f..31cd9348e 100644 --- a/content/computability/computability-theory/halting-problem.tex +++ b/content/computability/computability-theory/halting-problem.tex @@ -93,7 +93,7 @@ into an infinite loop, and if $H$ reports that $M_x$ doesn't halt on input~$x$, then $G$ just halts. Does $G$ halt on its own index as input? The argument above shows that it does if and only if it -doesn't---a contradiction. So our supposition that there is a such +doesn't---a contradiction. So our supposition that there is such a Turing machine~$H$ must be false. \end{explain} \end{tagblock} diff --git a/content/computability/computability-theory/prop-reduce.tex b/content/computability/computability-theory/prop-reduce.tex index 5767a56e8..e5ffd1e26 100644 --- a/content/computability/computability-theory/prop-reduce.tex +++ b/content/computability/computability-theory/prop-reduce.tex @@ -11,10 +11,10 @@ We write $A \leq_m B$ if $A$ reduces to~$B$, and this notation suggests that if $A \leq_m B$, then $A$ is ``no harder than''~$B$ and -that $B$ is ``as hard or harder than''~$A$, and that $\le_m$, like the +that $B$ is ``as hard as or harder than''~$A$, and that $\le_m$, like the usual $\le$ on numbers, orders sets (or decision problems) by their complexity. The following two propositions support this intuition. The -first one say taht $\le_m$ is transitive. +first one says that $\le_m$ is transitive. \begin{prop} \ollabel{prop:trans-red} diff --git a/content/computability/computability-theory/reducibility.tex b/content/computability/computability-theory/reducibility.tex index 92aeef87e..933b4c774 100644 --- a/content/computability/computability-theory/reducibility.tex +++ b/content/computability/computability-theory/reducibility.tex @@ -28,13 +28,13 @@ similar to the one described below, only with the added requirement that the reduction can be computed in polynomial time. -We have already used the notion of reduction notion implicitly. Define +We have already used the notion of reduction implicitly. Define the set~$K$ by \[ K = \Setabs{x}{\cfind{x}(x) \fdefined}, \] i.e., $K = \Setabs{x}{x \in W_x}$. Our proof that the halting problem -in unsolvable (\olref[hlt]{thm:halting-problem}) shows most directly +is unsolvable (\olref[hlt]{thm:halting-problem}) shows most directly that $K$ is not computable. Recall that $K_0$ is the set \[ K_0 = \Setabs{\tuple{e, x}}{\cfind{e}(x) \fdefined }, diff --git a/content/computability/computability-theory/total.tex b/content/computability/computability-theory/total.tex index 78d72dcf4..dd4d6593d 100644 --- a/content/computability/computability-theory/total.tex +++ b/content/computability/computability-theory/total.tex @@ -32,7 +32,7 @@ \end{cases} \] Note that $h(x,y)$ does not depend on $y$ at all. It should -not be hard to see that $h$~is partial computable: on input $x, y$, the +not be hard to see that $h$~is partial computable: on input $x, y$, we compute~$h$ by first simulating the function~$\cfind{x}$ on input~$x$; if this computation halts, $h(x,y)$ outputs $0$ and halts. So $h(x,y)$ is just $\Zero(\umin{s}{T(x,x,s)})$, where $\Zero$ is the constant zero diff --git a/content/computability/computability.tex b/content/computability/computability.tex index eb1b8a893..e4f9f64a3 100644 --- a/content/computability/computability.tex +++ b/content/computability/computability.tex @@ -8,8 +8,7 @@ \begin{editorial} This part is based on Jeremy Avigad's notes on computability - theory. Only the chapter on recursive functions contains exercises - yet, and everything could stand to be expanded with motivation, + theory. Both chapters contain exercises, and everything could stand to be expanded with motivation, examples, details, and exercises. \end{editorial} diff --git a/content/computability/recursive-functions/bounded-minimization.tex b/content/computability/recursive-functions/bounded-minimization.tex index bd361e519..c67879ed7 100644 --- a/content/computability/recursive-functions/bounded-minimization.tex +++ b/content/computability/recursive-functions/bounded-minimization.tex @@ -35,7 +35,7 @@ \end{prop} \begin{proof} -Note than there can be no~$z < 0$ such that $R(\vec{x}, z)$ since +Note that there can be no~$z < 0$ such that $R(\vec{x}, z)$ since there is no $z < 0$ at all. So $m_R(\vec x, 0) = 0$. In case the bound is of the form $y + 1$ we have three cases: diff --git a/content/computability/recursive-functions/partial-functions.tex b/content/computability/recursive-functions/partial-functions.tex index 2241f1040..edd057517 100644 --- a/content/computability/recursive-functions/partial-functions.tex +++ b/content/computability/recursive-functions/partial-functions.tex @@ -58,7 +58,7 @@ is defined if and only if each $g_i$ is defined at $\vec x$, and $h$ is defined at $g_0(\vec x)$, \dots,~$g_k(\vec x)$. With this understanding, the definitions of composition and primitive recursion -for partial functions is just as above, except that we have to replace +for partial functions are just as above, except that we have to replace ``$=$'' by ``$\simeq$''. What we will add to the definition of the primitive recursive diff --git a/content/computability/recursive-functions/pr-functions.tex b/content/computability/recursive-functions/pr-functions.tex index 09febbe5b..b3a50ceee 100644 --- a/content/computability/recursive-functions/pr-functions.tex +++ b/content/computability/recursive-functions/pr-functions.tex @@ -76,7 +76,7 @@ \[ S = \bigcup_{i \in \Nat} S_i \] -is the set of all primitive recursive functions +is the set of all primitive recursive functions. \end{explain} Let us verify that $\Add$ is a primitive recursive function. diff --git a/content/computability/recursive-functions/primes.tex b/content/computability/recursive-functions/primes.tex index ee3e8053f..7ad5419c2 100644 --- a/content/computability/recursive-functions/primes.tex +++ b/content/computability/recursive-functions/primes.tex @@ -41,7 +41,7 @@ The primes are $2$, $3$, $5$, $7$, $11$, etc. Consider the function $p(x)$ which returns the $x$th prime in that sequence, i.e., $p(0) = 2$, $p(1) = 3$, $p(2) = 5$, etc. (For convenience we will often write -$p(x)$ as $p_x$ ($p_0=2$, $p_1=3$, etc.) +$p(x)$ as $p_x$ ($p_0=2$, $p_1=3$, etc.)) If we had a function $\fn{nextPrime(x)}$, which returns the first prime number larger @@ -58,7 +58,7 @@ \fn{nextPrime(x)} = \bmin{y \leq \fact{x}+1}{(y > x \land \fn{Prime}(y))}. \] -This shows, that $\fn{nextPrime}(x)$ and hence $p(x)$ are (not just +This shows that $\fn{nextPrime}(x)$ and hence $p(x)$ are (not just computable but) primitive recursive. (If you're curious, here's a quick proof of Euclid's theorem. Suppose diff --git a/content/computability/recursive-functions/sequences.tex b/content/computability/recursive-functions/sequences.tex index 98d6f1476..458f62113 100644 --- a/content/computability/recursive-functions/sequences.tex +++ b/content/computability/recursive-functions/sequences.tex @@ -10,7 +10,7 @@ \olsection{Sequences} The set of primitive recursive functions is remarkably robust. But we -will be able to do even more once we have developed a adequate means +will be able to do even more once we have developed an adequate means of handling \emph{sequences}. We will identify finite sequences of natural numbers with natural numbers in the following way: the sequence $\langle a_0, a_1, a_2, \dots, a_k \rangle$ corresponds to diff --git a/content/computability/recursive-functions/trees.tex b/content/computability/recursive-functions/trees.tex index 95388abb3..10facef04 100644 --- a/content/computability/recursive-functions/trees.tex +++ b/content/computability/recursive-functions/trees.tex @@ -16,7 +16,7 @@ can be either a single node (possibly with a label) or else a node (possibly with a label) connected to a number of subtrees. The node is called the \emph{root} of the tree, and the subtrees it is connected -to its \emph{immediate subtrees}. +to are called its \emph{immediate subtrees}. We code trees recursively as a sequence $\tuple{k, d_1, \dots, d_k}$, where $k$ is the number of immediate subtrees and $d_1$, \dots,~$d_k$ From a68aa64498c9791622fdae21db434c6d8fd7b0aa Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:29:55 +0100 Subject: [PATCH 2/4] incompleteness: spelling, grammar, markup, references (49 places) No change of meaning. Co-Authored-By: Claude Opus 5.5 --- .../arithmetization-syntax/coding-formulas.tex | 6 +++--- .../arithmetization-syntax/introduction.tex | 8 ++++---- .../arithmetization-syntax/proofs-in-ax.tex | 2 +- .../arithmetization-syntax/proofs-in-lk.tex | 10 +++++----- .../arithmetization-syntax/proofs-in-nd.tex | 2 +- .../arithmetization-syntax/substitution.tex | 2 +- .../incompleteness-provability/fixed-point-lemma.tex | 2 +- .../incompleteness-provability/godels-paper.tex | 2 +- .../incompleteness-provability.tex | 2 +- .../incompleteness-provability/introduction.tex | 2 +- .../incompleteness-provability/lob-thm.tex | 4 ++-- .../provability-conditions.tex | 4 ++-- .../second-incompleteness-thm.tex | 6 +++--- .../incompleteness-provability/tarski-thm.tex | 4 ++-- content/incompleteness/incompleteness.tex | 2 +- content/incompleteness/introduction/definitions.tex | 6 +++--- .../introduction/historical-background.tex | 8 ++++---- content/incompleteness/introduction/overview.tex | 2 +- content/incompleteness/introduction/undecidability.tex | 4 ++-- .../representability-in-q/basic-representable.tex | 2 +- .../composition-representable.tex | 2 +- .../incompleteness/representability-in-q/prim-rec.tex | 2 +- .../extensions-of-q-not-decidable.tex | 4 ++-- .../theories-computability/first-incompleteness.tex | 4 ++-- .../theories-computability/interpretability.tex | 2 +- .../theories-computability/introduction.tex | 4 ++-- .../theories-computability/oconsis-ext-of-q-undec.tex | 2 +- 27 files changed, 50 insertions(+), 50 deletions(-) diff --git a/content/incompleteness/arithmetization-syntax/coding-formulas.tex b/content/incompleteness/arithmetization-syntax/coding-formulas.tex index 336b55f7c..c1bb96bb4 100644 --- a/content/incompleteness/arithmetization-syntax/coding-formulas.tex +++ b/content/incompleteness/arithmetization-syntax/coding-formulas.tex @@ -15,7 +15,7 @@ \begin{prop} The relation $\fn{Atom}(x)$ which holds iff $x$ is the G\"odel number -of an atomic !!{formula}, is primitive recursive. +of an atomic !!{formula} is primitive recursive. \end{prop} \begin{proof} @@ -44,8 +44,8 @@ \end{prop} \begin{proof} -A sequence of symbols~$s$ is !!a{formula} iff there is formation -sequence~$s_0$, \dots, $s_{k-1} = s$ of !!{formula} which records +A sequence of symbols~$s$ is !!a{formula} iff there is a formation +sequence~$s_0$, \dots, $s_{k-1} = s$ of !!{formula}s which records how~$s$ was formed from atomic !!{formula}s according to the formation rules. The code for each $s_i$ (and indeed of the code of the sequence $\tuple{s_0, \dots, s_{k-1}}$) is less than the code~$x$ diff --git a/content/incompleteness/arithmetization-syntax/introduction.tex b/content/incompleteness/arithmetization-syntax/introduction.tex index 977a75e1f..9d4d92ae7 100644 --- a/content/incompleteness/arithmetization-syntax/introduction.tex +++ b/content/incompleteness/arithmetization-syntax/introduction.tex @@ -16,9 +16,9 @@ this directly, by considering computable functions and relations on symbols, sequences of symbols, and other objects built from them. Since the objects of logical syntax are all finite and built from -!!a{enumerable} sets of symbols, this is possible for some models of +!!{enumerable} sets of symbols, this is possible for some models of computation. But other models of computation---such as the recursive -functions----are restricted to numbers, their relations and functions. +functions---are restricted to numbers, their relations and functions. Moreover, ultimately we also want to be able to deal with syntax within certain theories, specifically, in theories formulated in the language of arithmetic. In these cases it is necessary to @@ -66,14 +66,14 @@ number to $\Subst{!A}{t}{x}$, say,~$n$. This mapping---of $k$, $l$, and $m$ to $n$---is the arithmetical analog of the substitution operation. When the substitution operation maps $!A$, $x$, $t$ to -$\Subst{!A}{t}{x}$, the arithmetized substitution functions maps the +$\Subst{!A}{t}{x}$, the arithmetized substitution function maps the G\"odel numbers $k$, $l$, $m$ to the G\"odel number~$n$. We will see that this function is primitive recursive. Arithmetization of syntax is not just of abstract interest, although it was originally a non-trivial insight that languages like the language of arithmetic, which do not come with mechanisms for -``talking about'' languages can, after all, formalize complex +``talking about'' languages, can, after all, formalize complex properties of expressions. It is then just a small step to ask what a theory in this language, such as Peano arithmetic, can \emph{prove} about its own language (including, e.g., whether !!{sentence}s are diff --git a/content/incompleteness/arithmetization-syntax/proofs-in-ax.tex b/content/incompleteness/arithmetization-syntax/proofs-in-ax.tex index 2a816ae76..2fbdae298 100644 --- a/content/incompleteness/arithmetization-syntax/proofs-in-ax.tex +++ b/content/incompleteness/arithmetization-syntax/proofs-in-ax.tex @@ -57,7 +57,7 @@ The following relations are primitive recursive: \begin{enumerate} \item $!A$ is an axiom. -\item The $i$-th line in $\delta$ is justified by modus ponens +\item The $i$-th line in $\delta$ is justified by modus ponens. \item The $i$-th line in $\delta$ is justified by \QR. \item $\delta$ is a correct !!{derivation}. \end{enumerate} diff --git a/content/incompleteness/arithmetization-syntax/proofs-in-lk.tex b/content/incompleteness/arithmetization-syntax/proofs-in-lk.tex index 337b3c0f7..7641f60b9 100644 --- a/content/incompleteness/arithmetization-syntax/proofs-in-lk.tex +++ b/content/incompleteness/arithmetization-syntax/proofs-in-lk.tex @@ -83,9 +83,9 @@ $\LeftR{\land}$ has one premise, the G\"odel number of the conclusion~$!A \land !B \Sequent !A$, and $9$ is the number coding $\LeftR{\land}$). The G\"odel number of the entire !!{derivation} then - is $\tuple{1, p_1, \Gn{\Sequent (!A \land !B) \lif !A)}, 14}$, i.e., + is $\tuple{1, p_1, \Gn{\Sequent (!A \land !B) \lif !A}, 14}$, i.e., \[ - \tuple{1, \tuple{1, \tuple{0, \Gn{!A \Sequent !A)}}, \Gn{!A \land !B \Sequent !A}, 9}, + \tuple{1, \tuple{1, \tuple{0, \Gn{!A \Sequent !A}}, \Gn{!A \land !B \Sequent !A}, 9}, \Gn{\Sequent (!A \land !B) \lif !A}, 14}. \] \end{ex} @@ -110,7 +110,7 @@ \begin{prop}\ollabel{prop:followsby} The property $\fn{Correct}(p)$ which holds iff the last inference in - the !!{derivation}~$\pi$ with G\"odel number~$p$ is correct, is + the !!{derivation}~$\pi$ with G\"odel number~$p$ is correct is primitive recursive. \end{prop} @@ -207,7 +207,7 @@ [(\fn{LastRule}(p) = 1 \land \fn{FollowsBy}_{\LeftR\Weakening}(p)) \lor \dots \lor {}\\ (\fn{LastRule}(p) = 20 \land \fn{FollowsBy}_{\eq}(p)) \lor {}\\ - (p)_0 = 0 \land \fn{InitialSeq}(\fn{EndSequent}(p))] + (p)_0 = 0 \land \fn{InitSeq}(\fn{EndSequent}(p))] \end{multline*} The first line ensures that the end-sequent of~$d$ is actually a sequent consisting of !!{sentence}s. The last line covers the case @@ -243,7 +243,7 @@ sub-!!{derivation}s ends in a correct inference. So, $\fn{Deriv}(d)$ iff \[ - \bforall{i<\len{\fn{SubtreeSeq}(p)}}{\fn{Correct}((\fn{SubtreeSeq}(p))_i}. + \bforall{i<\len{\fn{SubtreeSeq}(p)}}{\fn{Correct}((\fn{SubtreeSeq}(p))_i)}. \] \end{proof} diff --git a/content/incompleteness/arithmetization-syntax/proofs-in-nd.tex b/content/incompleteness/arithmetization-syntax/proofs-in-nd.tex index f26816744..993dc2b57 100644 --- a/content/incompleteness/arithmetization-syntax/proofs-in-nd.tex +++ b/content/incompleteness/arithmetization-syntax/proofs-in-nd.tex @@ -139,7 +139,7 @@ \begin{prop} \ollabel{prop:followsby} The property $\fn{Correct}(d)$ which holds iff the last inference in - the !!{derivation}~$\delta$ with G\"odel number~$d$ is correct, is + the !!{derivation}~$\delta$ with G\"odel number~$d$ is correct is primitive recursive. \end{prop} diff --git a/content/incompleteness/arithmetization-syntax/substitution.tex b/content/incompleteness/arithmetization-syntax/substitution.tex index d949944c6..1e6a50649 100644 --- a/content/incompleteness/arithmetization-syntax/substitution.tex +++ b/content/incompleteness/arithmetization-syntax/substitution.tex @@ -50,7 +50,7 @@ \begin{proof} Exercise. \end{proof} \begin{prob} -Prove \olref[inc][art][sub]{prop:free-for} +Prove \olref[inc][art][sub]{prop:free-for}. \end{prob} \end{document} diff --git a/content/incompleteness/incompleteness-provability/fixed-point-lemma.tex b/content/incompleteness/incompleteness-provability/fixed-point-lemma.tex index aee58c258..1a25fc8d4 100644 --- a/content/incompleteness/incompleteness-provability/fixed-point-lemma.tex +++ b/content/incompleteness/incompleteness-provability/fixed-point-lemma.tex @@ -32,7 +32,7 @@ sentence itself involves diagonalization!{} In the language of arithmetic, we form quotations of !!a{formula} with -one free variable by computing its G\"odel numbers and then +one free variable by computing its G\"odel number and then substituting the standard numeral for that G\"odel number into the free variable. The diagonalization of~$!E(x)$ is $!E(\num{n})$, where $n = \Gn{!E(x)}$. (From now on, let's abbreviate $\num{\Gn{!E(x)}}$ as diff --git a/content/incompleteness/incompleteness-provability/godels-paper.tex b/content/incompleteness/incompleteness-provability/godels-paper.tex index 9ab864260..81f77634c 100644 --- a/content/incompleteness/incompleteness-provability/godels-paper.tex +++ b/content/incompleteness/incompleteness-provability/godels-paper.tex @@ -22,7 +22,7 @@ take the unprovable assertion to be a sentence in the language of arithmetic. This is the origin of the $\beta$-lemma, which is what we also used to handle sequences in showing that the recursive functions -are representable in $\Th{Q}$. G\"odel doesn't go so far to isolate a +are representable in $\Th{Q}$. G\"odel doesn't go so far as to isolate a minimal set of axioms that suffice, but we now know that $\Th{Q}$ will do the trick. Finally, in Section 4, he sketches a proof of the second incompleteness theorem. diff --git a/content/incompleteness/incompleteness-provability/incompleteness-provability.tex b/content/incompleteness/incompleteness-provability/incompleteness-provability.tex index 32a26c6b0..8363508ab 100644 --- a/content/incompleteness/incompleteness-provability/incompleteness-provability.tex +++ b/content/incompleteness/incompleteness-provability/incompleteness-provability.tex @@ -1,5 +1,5 @@ % Part: incompleteness -% Chapter: first-incompleteness +% Chapter: incompleteness-provability \documentclass[../../../include/open-logic-chapter]{subfiles} diff --git a/content/incompleteness/incompleteness-provability/introduction.tex b/content/incompleteness/incompleteness-provability/introduction.tex index b22550c22..44c6d5c8e 100644 --- a/content/incompleteness/incompleteness-provability/introduction.tex +++ b/content/incompleteness/incompleteness-provability/introduction.tex @@ -14,7 +14,7 @@ such as the natural numbers, is inadequate unless it allows one to derive all true statements about the structure. Combined with his later interest in formal systems of deduction, this suggests that he -thought that we should guarantee that, say, the formal systems we are +thought that we should guarantee that, say, the formal system we are using to reason about the natural numbers is not only consistent, but also \emph{complete}, i.e., every statement in its language is either !!{derivable} or its negation is. G\"odel's first incompleteness theorem diff --git a/content/incompleteness/incompleteness-provability/lob-thm.tex b/content/incompleteness/incompleteness-provability/lob-thm.tex index 5b93347f4..63ad85b3e 100644 --- a/content/incompleteness/incompleteness-provability/lob-thm.tex +++ b/content/incompleteness/incompleteness-provability/lob-thm.tex @@ -48,7 +48,7 @@ \begin{thm}\ollabel{thm:lob} Let $\Th{T}$ be !!a{axiomatizable} theory extending $\Th{Q}$, and suppose $\OProv[\Th{T}](y)$ is a formula satisfying conditions P1--P3 from -\olref[2in]{sec}. If $\Th{T}$ !!{derive}s $\OProv[\Th{T}](\gn{!A}) \lif !A$, +\olref[prc]{sec}. If $\Th{T}$ !!{derive}s $\OProv[\Th{T}](\gn{!A}) \lif !A$, then in fact $\Th{T}$ !!{derive}s $!A$. \end{thm} @@ -114,7 +114,7 @@ & \qquad\text{from \olref{L-9} and \olref{L-10}}\notag \\ & \OProv[\Th{T}](\gn{!D}) \ollabel{L-12}\\ & \qquad\text{from \olref{L-11} by condition~P1}\notag \\ - & !A \qquad\qquad\text{from \olref{L-8} and \olref{L-12}}\notag + & !A \qquad\qquad\text{from \olref{L-9} and \olref{L-12}}\notag \end{align} \end{proof} diff --git a/content/incompleteness/incompleteness-provability/provability-conditions.tex b/content/incompleteness/incompleteness-provability/provability-conditions.tex index 51e21872c..f5f12c5d4 100644 --- a/content/incompleteness/incompleteness-provability/provability-conditions.tex +++ b/content/incompleteness/incompleteness-provability/provability-conditions.tex @@ -71,8 +71,8 @@ being now. At the end of the 1931 paper, he sketches the proof of the second incompleteness theorem, and promises the details in a later paper. He never got around to it; since everyone who understood the -argument believed that it could be carried out (he did not need to -fill in the details.) +argument believed that it could be carried out, he did not need to +fill in the details. \end{digress} \end{document} diff --git a/content/incompleteness/incompleteness-provability/second-incompleteness-thm.tex b/content/incompleteness/incompleteness-provability/second-incompleteness-thm.tex index 31bc519d5..e3e4d1197 100644 --- a/content/incompleteness/incompleteness-provability/second-incompleteness-thm.tex +++ b/content/incompleteness/incompleteness-provability/second-incompleteness-thm.tex @@ -66,7 +66,7 @@ !G \lif (\OProv(\gn{!G}) \lif \lfalse) }) \ollabel{G2-4}\\ - & \qquad\text{by from \olref{G2-3} by condition P1} \notag\\ + & \qquad\text{from \olref{G2-3} by condition P1} \notag\\ & \OProv(\gn{!G}) \lif \OProv(\gn{ (\OProv(\gn{!G}) \lif \lfalse) @@ -84,14 +84,14 @@ & \OCon \lif !G \notag\\ & \qquad\text{from \olref{G2-1} and \olref{G2-9} by logic}\notag \end{align} -The use of logic in the above just elementary facts from propositional +The use of logic in the above involves just elementary facts from propositional logic, e.g., \olref{G2-3} uses $\Proves \lnot!A \liff (!A\lif \lfalse)$ and \olref{G2-8} uses $!A \lif (!B \lif !C), !A \lif !B \Proves !A \lif !C$. The use of condition~P2 in \olref{G2-5} and \olref{G2-6} relies on instances of~P2, $\OProv(\gn{!A \lif !B}) \lif (\OProv(\gn{!A}) \lif \OProv(\gn{!B}))$. In the first one, $!A \ident !G$ and $!B \ident \OProv(\gn{!G}) \lif \lfalse$; in the second, $!A -\ident \OProv(\gn{G})$ and $!B \ident \lfalse$. +\ident \OProv(\gn{!G})$ and $!B \ident \lfalse$. The more abstract version of the second incompleteness theorem is as follows: diff --git a/content/incompleteness/incompleteness-provability/tarski-thm.tex b/content/incompleteness/incompleteness-provability/tarski-thm.tex index c75c37275..f21e1a023 100644 --- a/content/incompleteness/incompleteness-provability/tarski-thm.tex +++ b/content/incompleteness/incompleteness-provability/tarski-thm.tex @@ -1,6 +1,6 @@ % Part: incompleteness % Chapter: incompleteness-provability -% Section: lob-thm +% Section: tarski-thm \documentclass[../../../include/open-logic-section]{subfiles} @@ -110,7 +110,7 @@ Given that we do not want a truth predicate to declare some sentences to be both true and false, Tarski concluded that one cannot specify a truth predicate for all sentences in a language without, somehow, -stepping outside the bounds of the language. In other words, a the +stepping outside the bounds of the language. In other words, the truth predicate for a language cannot be defined in the language itself. diff --git a/content/incompleteness/incompleteness.tex b/content/incompleteness/incompleteness.tex index 6f7794d69..78b4e531a 100755 --- a/content/incompleteness/incompleteness.tex +++ b/content/incompleteness/incompleteness.tex @@ -9,7 +9,7 @@ \begin{editorial} Material in this part covers the incompleteness theorems. It depends on material in the parts on first-order logic (esp., the proof - system), the material on recursive functions (in the computability + system) and on the material on recursive functions (in the computability part). It is based on Jeremy Avigad's notes with revisions by Richard Zach. \end{editorial} diff --git a/content/incompleteness/introduction/definitions.tex b/content/incompleteness/introduction/definitions.tex index cddb016e7..959c0add6 100644 --- a/content/incompleteness/introduction/definitions.tex +++ b/content/incompleteness/introduction/definitions.tex @@ -113,7 +113,7 @@ & \lforall[x][\lforall[y][\eq[(x \times y')][((x \times y) + x)]]] \tag{$!Q_7$}\\ & \lforall[x][\lforall[y][(x < y \liff \lexists[z][\eq[(z' + x)][y]])]] \tag{$!Q_8$} \end{align*} -The set of !!{sentence}s $\{!Q_1, \dots, !Q_8\}$ are the axioms of +The !!{sentence}s $!Q_1, \dots, !Q_8$ are the axioms of $\Th{Q}$, so $\Th{Q}$ consists of all !!{sentence}s entailed by them: \[ \Th{Q} = \Setabs{!A}{\{!Q_1, \dots, !Q_8\} \Entails !A}. @@ -251,13 +251,13 @@ !!{decidable} relations. By ``basic facts,'' we mean !!{sentence}s which express what the values of computable functions are for each of their arguments. And by ``strong enough'' we mean that the theories -in question count these sentences among its theorems. For instance, +in question count these sentences among their theorems. For instance, consider a prototypical computable function: addition. The value of $+$ for arguments $2$ and $3$ is~$5$, i.e., $2+3 = 5$. A sentence in the language of arithmetic that expresses that the value of $+$ for arguments $2$ and $3$ is~$5$ is: $(\num{2} + \num{3}) = \num{5}$. And, e.g., $\Th{Q}$ proves this sentence. More generally, we would -like there to be, for each computable function $f(x_1, x_2)$ +like there to be, for each computable function $f(x_1, x_2)$, !!a{formula}~$!A_f(x_1, x_2, y)$ in~$\Lang{L_A}$ such that $\Th{Q} \Proves !A_f(\num{n_1}, \num{n_2}, \num{m})$ whenever $f(n_1, n_2) = m$. In this way, $\Th{Q}$ proves that the value of~$f$ for arguments diff --git a/content/incompleteness/introduction/historical-background.tex b/content/incompleteness/introduction/historical-background.tex index 397b90124..a28f6a13c 100644 --- a/content/incompleteness/introduction/historical-background.tex +++ b/content/incompleteness/introduction/historical-background.tex @@ -51,7 +51,7 @@ included higher-order logic as well, and more. In his \emph{Basic Laws of Arithmetic}, Frege set out to show that all of arithmetic could be derived in his Begriffsschrift from purely logical -assumption. Unfortunately, these assumptions turned out to be +assumptions. Unfortunately, these assumptions turned out to be inconsistent, as Russell showed in 1902. But setting aside the inconsistent axiom, Frege more or less invented modern logic singlehandedly, a startling achievement. Quantificational logic was @@ -106,7 +106,7 @@ they be?'') which aimed to explain the natural numbers in purely ``logical'' terms. In 1887 Kronecker wrote ``\"Uber den Zahlbegriff'' (``On the concept of number'') where he spoke of representing all -mathematical object in terms of the integers; in 1889 Giuseppe Peano +mathematical objects in terms of the integers; in 1889 Giuseppe Peano gave formal, symbolic axioms for the natural numbers. The end of the nineteenth century also brought a new boldness in dealing @@ -115,7 +115,7 @@ many'' was understood as ``as many as you want,'' and ``approaches in the limit'' was understood as ``gets as close as you want.'' But Georg Cantor showed that it was possible to take the infinite at face -value. Work by Cantor, Dedekind, and others help to introduce the +value. Work by Cantor, Dedekind, and others helped to introduce the general set-theoretic understanding of mathematics that is now widely accepted. This brings us to twentieth century developments in logic and foundations. @@ -130,7 +130,7 @@ infinity and an axiom of ``reducibility.'' In the 1900's Poincar\'e criticized the use of ``impredicative definitions'' in mathematics, and in the 1910's Brouwer began proposing to refound all of -mathematics in an ``intuitionistic'' basis, which avoided the use of +mathematics on an ``intuitionistic'' basis, which avoided the use of the law of the excluded middle ($!A \lor \lnot !A$). Strange days indeed!{} The program of reducing all of mathematics to diff --git a/content/incompleteness/introduction/overview.tex b/content/incompleteness/introduction/overview.tex index 857935f6d..046b3147c 100644 --- a/content/incompleteness/introduction/overview.tex +++ b/content/incompleteness/introduction/overview.tex @@ -26,7 +26,7 @@ mathematics, but that \emph{no} acceptable theory does. It took a while to isolate the features of theories that suffice for the incompleteness theorems to apply, and to generalize G\"odel's proof to -apply make it depend only on these features. But we are now in a +make it depend only on these features. But we are now in a position to state a very general version of the first incompleteness theorem for theories in the language $\Lang L_A$ of arithmetic. diff --git a/content/incompleteness/introduction/undecidability.tex b/content/incompleteness/introduction/undecidability.tex index a6589b489..0f7761b64 100644 --- a/content/incompleteness/introduction/undecidability.tex +++ b/content/incompleteness/introduction/undecidability.tex @@ -10,7 +10,7 @@ \olsection{Undecidability and Incompleteness} -G\"odel's proof of the incompleteness theorems require arithmetization +G\"odel's proof of the incompleteness theorems requires arithmetization of syntax. But even without that we can obtain some nice results just on the assumption that a theory !!{represents} all !!{decidable} relations. The proof is a diagonal argument similar to the proof of @@ -127,7 +127,7 @@ It should be noted that not every \emph{interesting} theory is incomplete or undecidable. There are many theories that are sufficiently strong to describe interesting mathematical facts that do -not satisify the conditions of G\"odel's result. For instance, +not satisfy the conditions of G\"odel's result. For instance, $\Th{Pres} = \Setabs{!A \in \Lang{L_{A^+}}}{\Sat{N}{!A}}$, the set of !!{sentence}s of the language of arithmetic without~$\times$ true in the standard model, is both complete and decidable. This theory is diff --git a/content/incompleteness/representability-in-q/basic-representable.tex b/content/incompleteness/representability-in-q/basic-representable.tex index 0264ce611..9ad42ae10 100644 --- a/content/incompleteness/representability-in-q/basic-representable.tex +++ b/content/incompleteness/representability-in-q/basic-representable.tex @@ -58,7 +58,7 @@ \Char{=}(x_0, x_1) = \begin{cases} 1 & \text{if } x_0 =x_1\\ - 0 & otherwise + 0 & \text{otherwise} \end{cases} \] is represented in~$\Th{Q}$ by diff --git a/content/incompleteness/representability-in-q/composition-representable.tex b/content/incompleteness/representability-in-q/composition-representable.tex index cb6389257..4be8d15f2 100644 --- a/content/incompleteness/representability-in-q/composition-representable.tex +++ b/content/incompleteness/representability-in-q/composition-representable.tex @@ -93,7 +93,7 @@ \end{proof} \begin{prob} -Using the proofs of \olref[inc][req][cmp]{prop:rep2} and +Using the proofs of \olref[inc][req][cmp]{prop:rep1} and \olref[inc][req][cmp]{prop:rep2} as a guide, carry out the proof of \olref[inc][req][cmp]{prop:rep-composition} in detail. \end{prob} diff --git a/content/incompleteness/representability-in-q/prim-rec.tex b/content/incompleteness/representability-in-q/prim-rec.tex index 5471d7e87..98164d8b6 100644 --- a/content/incompleteness/representability-in-q/prim-rec.tex +++ b/content/incompleteness/representability-in-q/prim-rec.tex @@ -42,7 +42,7 @@ x, y)}$. We can write $\hat h$ as \[ \hat h(\vec x, y) = \umin{d}{(\beta(d,0) = f(\vec x) \land \bforall{i < - y}{\beta(d,i+1) = g(\vec x, i,\beta(d,i)})}. + y}{\beta(d,i+1) = g(\vec x, i,\beta(d,i))})}. \] Note: no primitive recursion is needed here, just minimization. The function we minimize is regular because of the beta function lemma diff --git a/content/incompleteness/theories-computability/extensions-of-q-not-decidable.tex b/content/incompleteness/theories-computability/extensions-of-q-not-decidable.tex index cc78dc914..979353ed4 100644 --- a/content/incompleteness/theories-computability/extensions-of-q-not-decidable.tex +++ b/content/incompleteness/theories-computability/extensions-of-q-not-decidable.tex @@ -14,9 +14,9 @@ Remember that a theory is \emph{consistent} if it does not prove both $!A$ and $\lnot !A$ for any formula~$!A$. Since anything follows from a contradiction, an inconsistent theory is trivial: every sentence is -provable. Clearly, if a theory if $\omega$-consistent, then it is +provable. Clearly, if a theory is $\omega$-consistent, then it is consistent. But being consistent is a weaker requirement (i.e., there -are theories that are consistent but not $\omega$-consistent.). We can +are theories that are consistent but not $\omega$-consistent). We can weaken the assumption in \olref[oqn]{thm:oconsis-q} to simple consistency to obtain a stronger theorem. \end{explain} diff --git a/content/incompleteness/theories-computability/first-incompleteness.tex b/content/incompleteness/theories-computability/first-incompleteness.tex index d9494f2e6..d4d3d774b 100644 --- a/content/incompleteness/theories-computability/first-incompleteness.tex +++ b/content/incompleteness/theories-computability/first-incompleteness.tex @@ -26,7 +26,7 @@ \begin{explain} This theorem is not that far from G\"odel's original 1931 formulation of the First Incompleteness Theorem. Aside from the more modern -terminology, the key differences are this: G\"odel has +terminology, the key differences are these: G\"odel has ``$\omega$-consistent'' instead of ``consistent''; and he could not say ``!!{axiomatizable}'' in full generality, since the formal notion of computability was not in place yet. (The formal models of @@ -39,7 +39,7 @@ these, though, you can have the other two: $\Th{Q}$ is consistent and computably axiomatized, but not complete; the inconsistent theory is complete, and computably axiomatized (say, by $\{ \eq/[0][0] \}$), but -not consistent; and the set of true sentence of arithmetic is complete +not consistent; and the set of true sentences of arithmetic is complete and consistent, but it is not computably axiomatized. \end{explain} \end{document} diff --git a/content/incompleteness/theories-computability/interpretability.tex b/content/incompleteness/theories-computability/interpretability.tex index 56264246a..549c414f1 100644 --- a/content/incompleteness/theories-computability/interpretability.tex +++ b/content/incompleteness/theories-computability/interpretability.tex @@ -1,6 +1,6 @@ % Part: incompleteness % Chapter: theories-computability -% Section: intepretability +% Section: interpretability \documentclass[../../../include/open-logic-section]{subfiles} diff --git a/content/incompleteness/theories-computability/introduction.tex b/content/incompleteness/theories-computability/introduction.tex index 68beaff5e..ec49f4f62 100644 --- a/content/incompleteness/theories-computability/introduction.tex +++ b/content/incompleteness/theories-computability/introduction.tex @@ -25,7 +25,7 @@ (\olref[req][int]{thm:representable-iff-comp}) \item a theorem asserting that the representable relations of $\Th{Q}$ are exactly the computable ones - \olref[req][rel]{thm:representing-rels}) + (\olref[req][rel]{thm:representing-rels}) \end{enumerate} A {\em theory} is a set of sentences that is deductively closed, that @@ -34,7 +34,7 @@ sentences, together with all the things that these sentences imply. From now on, we will use $\Th{Q}$ to refer to the {\em theory} consisting of the set of sentences derivable from the eight axioms in -\olref[req][int]{sec}. Remember that we can code formula of $\Th{Q}$ +\olref[req][int]{sec}. Remember that we can code formulas of $\Th{Q}$ as numbers; if $!A$ is such a formula, let $\Gn{!A}$ denote the number coding $!A$. Modulo this coding, we can now ask whether various sets of formulas are computable or not. diff --git a/content/incompleteness/theories-computability/oconsis-ext-of-q-undec.tex b/content/incompleteness/theories-computability/oconsis-ext-of-q-undec.tex index 23056e2cb..f1a00b944 100644 --- a/content/incompleteness/theories-computability/oconsis-ext-of-q-undec.tex +++ b/content/incompleteness/theories-computability/oconsis-ext-of-q-undec.tex @@ -23,7 +23,6 @@ \end{explain} \begin{defn} -\ollabel{thm:oconsis-q} A theory $\Th{T}$ is $\omega$-consistent if the following holds: if $\lexists[x][!A(x)]$ is any sentence and $\Th{T}$ proves $\lnot !A(\num 0)$, $\lnot !A(\num 1)$, $\lnot !A(\num 2)$, \dots then $\Th{T}$ @@ -31,6 +30,7 @@ \end{defn} \begin{thm} + \ollabel{thm:oconsis-q} Let $\Th{T}$ be any $\omega$-consistent theory that includes $\Th{Q}$. Then $\Th{T}$ is not decidable. \end{thm} From c7d111aaa7b7171f1a877b35bf8411d811638717 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:29:57 +0100 Subject: [PATCH 3/4] turing-machines: spelling, grammar, markup, references (31 places) No change of meaning. Co-Authored-By: Claude Opus 5.5 --- .../machines-computations/church-turing-thesis.tex | 6 +++--- .../machines-computations/combining-machines.tex | 4 ++-- .../turing-machines/machines-computations/configuration.tex | 2 +- .../machines-computations/disciplined-machines.tex | 4 ++-- .../machines-computations/representing-tms.tex | 6 +++--- .../turing-machines/machines-computations/unary-numbers.tex | 2 +- content/turing-machines/undecidability/decision-problem.tex | 4 ++-- content/turing-machines/undecidability/enumerating-tms.tex | 2 +- content/turing-machines/undecidability/halting-problem.tex | 6 +++--- content/turing-machines/undecidability/introduction.tex | 6 +++--- content/turing-machines/undecidability/representing-tms.tex | 4 ++-- content/turing-machines/undecidability/trakhtenbrot.tex | 6 +++--- content/turing-machines/undecidability/universal-tm.tex | 4 ++-- .../undecidability/unsolvability-decision-problem.tex | 6 +++--- content/turing-machines/undecidability/verification.tex | 6 +++--- 15 files changed, 34 insertions(+), 34 deletions(-) diff --git a/content/turing-machines/machines-computations/church-turing-thesis.tex b/content/turing-machines/machines-computations/church-turing-thesis.tex index 502db0d18..302bc4604 100644 --- a/content/turing-machines/machines-computations/church-turing-thesis.tex +++ b/content/turing-machines/machines-computations/church-turing-thesis.tex @@ -1,5 +1,5 @@ -% Part: computability -% Chapter: tm-computations +% Part: turing-machines +% Chapter: machines-computations % Section: church-turing-thesis \documentclass[../../../include/open-logic-section]{subfiles} @@ -35,7 +35,7 @@ The other use of the Church--Turing thesis is more philosophically interesting. It can be shown that there are functions which cannot be computed by Turing machines. From this, using the Church--Turing -thesis, one can conclude that it cannot be effectively computed, using +thesis, one can conclude that such a function cannot be effectively computed, using any procedure whatsoever. For if there were such a procedure, by the Church--Turing thesis, it would follow that there would be a Turing machine for it. So if we can prove that there is no Turing machine diff --git a/content/turing-machines/machines-computations/combining-machines.tex b/content/turing-machines/machines-computations/combining-machines.tex index e406fe0c1..62d4bbfb8 100644 --- a/content/turing-machines/machines-computations/combining-machines.tex +++ b/content/turing-machines/machines-computations/combining-machines.tex @@ -20,7 +20,7 @@ constituent parts, we can tackle the problem in several stages, creating several simple Turing machines and combining them into one machine that can solve the problem. This point is especially important -when tackling the Halting Problem in the next section. +when tackling the Halting Problem in the next chapter. How do we combine Turing machines $M = \tuple{Q, \Sigma, q_0, \delta}$ and~$M' = \tuple{Q', \Sigma', q_0', \delta'}$? We now use the @@ -47,7 +47,7 @@ Q'$. When it is in a state $q \in Q$ and is scanning a symbol~$\sigma$ for which $M$ has no transition (i.e., $M$ would have halted), it enters the start state of~$M'$ (and leaves the tape contents and head -position as it is). +position as they are). Note that unless the machine~$M$ is disciplined, we don't know where the tape head is when $M$~halts, so the halting configuration of~$M$ diff --git a/content/turing-machines/machines-computations/configuration.tex b/content/turing-machines/machines-computations/configuration.tex index abe28f2ff..f2988057d 100644 --- a/content/turing-machines/machines-computations/configuration.tex +++ b/content/turing-machines/machines-computations/configuration.tex @@ -1,4 +1,4 @@ -% Part: computability +% Part: turing-machines % Chapter: machines-computations % Section: configuration diff --git a/content/turing-machines/machines-computations/disciplined-machines.tex b/content/turing-machines/machines-computations/disciplined-machines.tex index e11f77c16..36025e715 100644 --- a/content/turing-machines/machines-computations/disciplined-machines.tex +++ b/content/turing-machines/machines-computations/disciplined-machines.tex @@ -1,6 +1,6 @@ % Part: turing-machines % Chapter: machines-computations -% Section: well-behaved-machines +% Section: disciplined-machines \documentclass[../../../include/open-logic-section]{subfiles} @@ -17,7 +17,7 @@ machines in general to be. There are other restrictions we might impose on the behavior of Turing machines. For instance, we also have not prohibited Turing machines from ever erasing the tape-end marker -on square~$0$, or to attempt to move left from square~$0$. (Our +on square~$0$, or attempting to move left from square~$0$. (Our definition states that the head simply stays on square~$0$ in this case; other definitions have the machine halt.) It is likewise sometimes desirable to be able to assume that a Turing machine, if diff --git a/content/turing-machines/machines-computations/representing-tms.tex b/content/turing-machines/machines-computations/representing-tms.tex index 7336ab8c4..869144e44 100644 --- a/content/turing-machines/machines-computations/representing-tms.tex +++ b/content/turing-machines/machines-computations/representing-tms.tex @@ -172,8 +172,8 @@ table, at the intersection of each state and symbol, is written the rest of the instruction---the new state, new symbol, and direction of movement. Machine tables make it easy to determine in what state, and -for what symbol, the machine halts. Whenever there is a gap in the -table is a possible point for the machine to halt. Unlike state +for what symbol, the machine halts. Wherever there is a gap in the +table, there is a possible point for the machine to halt. Unlike state diagrams and instruction sets, where the points at which the machine halts are not always immediately obvious, any halting points are quickly identified by finding the gaps in the machine table. @@ -288,7 +288,7 @@ \begin{prob} \emph{Alphabetizer:} Design a Turing-machine with alphabet $\{\TMendtape,\TMblank, A, B\}$ that takes as input a finite sequence -of $A$'s and $B$'s rearranges them so that all the $A$'s are to the +of $A$'s and $B$'s and rearranges them so that all the $A$'s are to the left of all the~$B$'s. (e.g., the sequence $BABAA$ should become the sequence $AAABB$, and the sequence $ABBABB$ should become the sequence $AABBBB$). diff --git a/content/turing-machines/machines-computations/unary-numbers.tex b/content/turing-machines/machines-computations/unary-numbers.tex index 0d595a11d..46b887216 100644 --- a/content/turing-machines/machines-computations/unary-numbers.tex +++ b/content/turing-machines/machines-computations/unary-numbers.tex @@ -187,7 +187,7 @@ \begin{prob} In \olref[tur][mac][una]{ex:mover} we described a machine consisting of a combination of the doubler machine from -\olref[tur][mac][una]{fig:doubler-disc} and the mover machine from +\olref[tur][mac][rep]{ex:doubler} and the mover machine from \olref[tur][mac][una]{fig:mover}. What happens if you start this combined machine on input~$x=0$, i.e., on an empty tape? How would you fix the machine so that in this case the machine halts with diff --git a/content/turing-machines/undecidability/decision-problem.tex b/content/turing-machines/undecidability/decision-problem.tex index 2bf561391..584b85330 100644 --- a/content/turing-machines/undecidability/decision-problem.tex +++ b/content/turing-machines/undecidability/decision-problem.tex @@ -1,6 +1,6 @@ % Part: turing-machines % Chapter: undecidability -% Section: unsolvability-decision-problem +% Section: decision-problem \documentclass[../../../include/open-logic-section]{subfiles} @@ -31,7 +31,7 @@ Turing machine described by~$e$ halts on input~$w$ and outputs~$0$ otherwise, is not Turing computable. We will show that if there were a Turing machine that decides validity of first-order sentences, then -there is also Turing machine that computes~$h$. Since $h$ cannot be +there is also a Turing machine that computes~$h$. Since $h$ cannot be computed by a Turing machine, there cannot be a Turing machine that decides validity either. diff --git a/content/turing-machines/undecidability/enumerating-tms.tex b/content/turing-machines/undecidability/enumerating-tms.tex index ce7d9110b..78a1538e5 100644 --- a/content/turing-machines/undecidability/enumerating-tms.tex +++ b/content/turing-machines/undecidability/enumerating-tms.tex @@ -127,7 +127,7 @@ (\cref{sfr:siz:zigzag:prob:posint-star}). This gives us that the set of descriptions of standard Turing machines, as a subset of~$(\PosInt)^*$, is itself enumerable. Every Turing computable -function $\Nat$ to~$\Nat$ is computed by some (in fact, many) Turing +function from $\Nat$ to~$\Nat$ is computed by some (in fact, many) Turing machines. By renaming its states and symbols to positive integers (in particular, $\TMendtape$ as~$1$, $\TMblank$ as~$2$, and $\TMstroke$ as~$3$) we can see that every Turing computable function is computed diff --git a/content/turing-machines/undecidability/halting-problem.tex b/content/turing-machines/undecidability/halting-problem.tex index 34f105b56..dd7a8cb22 100644 --- a/content/turing-machines/undecidability/halting-problem.tex +++ b/content/turing-machines/undecidability/halting-problem.tex @@ -1,5 +1,5 @@ -% Part: computability -% Chapter: machines-computations +% Part: turing-machines +% Chapter: undecidability % Section: halting-problem \documentclass[../../../include/open-logic-section]{subfiles} @@ -135,7 +135,7 @@ why or why not. \end{prob} -\begin{prob} Show that the \emph{partial} function~$s'$ is defined as +\begin{prob} Show that the \emph{partial} function~$s'$ defined as \[ s'(e) = \begin{cases} diff --git a/content/turing-machines/undecidability/introduction.tex b/content/turing-machines/undecidability/introduction.tex index 7188c5833..566c20a85 100644 --- a/content/turing-machines/undecidability/introduction.tex +++ b/content/turing-machines/undecidability/introduction.tex @@ -43,7 +43,7 @@ the associated $1/0$-valued function is effectively computable. To prove mathematically that there are functions which cannot be -effectively computed, or problems that cannot effectively decided, it +effectively computed, or problems that cannot be effectively decided, it is essential to fix a specific model of computation, and show that there are functions it cannot compute or problems it cannot decide. We can show, for instance, that not every function can be @@ -59,7 +59,7 @@ systematic fashion. Once we see that this can be done, then the existence of Turing-uncomputable functions follows by simple cardinality considerations: the set of functions from $\Nat$ to~$\Nat$ (in -fact, even just from $\Nat$ to $\{0, 1\}$) are !!{nonenumerable}, but +fact, even just from $\Nat$ to $\{0, 1\}$) is !!{nonenumerable}, but since we can enumerate all the Turing machines, the set of Turing-computable functions is only !!{denumerable}. @@ -79,7 +79,7 @@ be such a Turing machine. There cannot be a single Turing machine which, when started on input consisting of a description of a Turing machine $M$ and some number~$n$, will always halt with either output -$1$ or $0$ according to whether $M$ machine would have halted when +$1$ or $0$ according to whether $M$ would have halted when started on input $n$ or not. Once we have examples of specific undecidable problems we can use them diff --git a/content/turing-machines/undecidability/representing-tms.tex b/content/turing-machines/undecidability/representing-tms.tex index 7dac94bb0..f4ece6540 100644 --- a/content/turing-machines/undecidability/representing-tms.tex +++ b/content/turing-machines/undecidability/representing-tms.tex @@ -50,7 +50,7 @@ w)$, i.e., the !!{sentence}s which, taken together, describe the behavior of~$M$ when run on input~$w$. There will be !!{sentence}s which lay down conditions on $\Obj 0$, $\prime$, and $<$, -!!{sentence}s that describes the input configuration, and +!!{sentence}s that describe the input configuration, and !!{sentence}s that describe what the configuration of $M$ is after it executes a particular instruction. \end{explain} @@ -163,7 +163,7 @@ $q_i$ and square~$0$ contains symbol~$\sigma$, then after $y+1$ steps it's still scanning square~$0$, is now in state~$q_j$, the symbol on square~$0$ is $\sigma'$, and the squares other than square~$0$ contain -the same symbols they contained ofter $y$~steps. +the same symbols they contained after $y$~steps. \item \ollabel{rep-stay} For every instruction $\delta(q_i, \sigma) = \tuple{q_j, \sigma', \TMstay}$, the !!{sentence}: \begin{align*} diff --git a/content/turing-machines/undecidability/trakhtenbrot.tex b/content/turing-machines/undecidability/trakhtenbrot.tex index e26a01871..82f8403a8 100644 --- a/content/turing-machines/undecidability/trakhtenbrot.tex +++ b/content/turing-machines/undecidability/trakhtenbrot.tex @@ -16,10 +16,10 @@ that $!T(M,w) \lif !E(M,w)$ is valid iff $M$, started on input~$w$, eventually halts. Since the Halting Problem is undecidable, this implies that validity and satisfiability of !!{sentence}s of - first-order logic is undecidable + first-order logic are undecidable (\cref{tur:und:uns:thm:decision-prob,tur:und:uns:cor:undecidable-sat}). - But validity and satisfiability of sentences is defined for + But validity and satisfiability of sentences are defined for arbitrary !!{structure}s, finite or infinite. You might suspect that it is easier to decide if !!a{sentence} is satisfiable in a finite !!{structure} (or valid in all finite !!{structure}s). We can adapt @@ -181,7 +181,7 @@ \end{align*} where $n = \max(k,\len{w})$ and $k$~is the least number such that $M$ started on input~$w$ has halted after~$k$ steps. We leave the - verification that $\Sat{M'}{!T'(M,w) \land E(M,w)}$ as an exercise. + verification that $\Sat{M'}{!T'(M,w) \land !E(M,w)}$ as an exercise. \end{proof} \begin{prob} diff --git a/content/turing-machines/undecidability/universal-tm.tex b/content/turing-machines/undecidability/universal-tm.tex index 177859c46..d3989e755 100644 --- a/content/turing-machines/undecidability/universal-tm.tex +++ b/content/turing-machines/undecidability/universal-tm.tex @@ -33,7 +33,7 @@ Importantly, it is possible to give the enumeration of Turing machine descriptions in such a way that we can effectively compute the -description of~$M$ from its index, and to effectively compute an index +description of~$M$ from its index, and effectively compute an index of a machine~$M$ from its description. By the Church--Turing thesis, it is then possible to find a Turing machine which recovers the description of the Turing machine with index~$e$ and writes the @@ -50,7 +50,7 @@ started on a tape containing a single block of $e$~$\TMstroke$'s, it would first decode $e$ into its description. The description is now represented by a sequence of blocks of~$\TMstroke$'s on the tape. -Since the first !!{element} in this sequence is the number of states. +The first !!{element} in this sequence is the number of states. So all that has to be done now is to erase everything but the first block of $\TMstroke$'s and then halt. diff --git a/content/turing-machines/undecidability/unsolvability-decision-problem.tex b/content/turing-machines/undecidability/unsolvability-decision-problem.tex index 94456e06d..acd36a640 100644 --- a/content/turing-machines/undecidability/unsolvability-decision-problem.tex +++ b/content/turing-machines/undecidability/unsolvability-decision-problem.tex @@ -13,7 +13,7 @@ \ollabel{thm:decision-prob} The decision problem is unsolvable: There is no Turing machine~$D$, which when started on a tape that contains !!a{sentence}~$!B$ of -first-order logic as input, $D$~eventually halts, and outputs~$1$ iff +first-order logic as input, eventually halts, and outputs~$1$ iff $!B$ is valid and $0$ otherwise. \end{thm} @@ -43,7 +43,7 @@ \begin{proof} Suppose satisfiability were decidable by a Turing machine~$S$. Then we could solve the decision problem as follows: Given - !!a{sentence}~$B$ as input, move $!B$ to the right one square. + !!a{sentence}~$!B$ as input, move $!B$ to the right one square. Return to square~$1$ and write the symbol~$\lnot$. Now run the Turing machine~$S$. It eventually halts with output @@ -71,7 +71,7 @@ \ollabel{thm:valid-ce}% Validity of first-order !!{sentence}s is semi-decidable: There is a Turing machine~$E$, which when started on a tape that contains - !!a{sentence}~$!B$ of first-order logic as input, $E$~eventually + !!a{sentence}~$!B$ of first-order logic as input, eventually halts and outputs~$1$ iff $!B$ is valid, but does not halt otherwise. \end{thm} diff --git a/content/turing-machines/undecidability/verification.tex b/content/turing-machines/undecidability/verification.tex index a0316f755..e0643bf5b 100644 --- a/content/turing-machines/undecidability/verification.tex +++ b/content/turing-machines/undecidability/verification.tex @@ -38,7 +38,7 @@ will be in a halting configuration after $n$~steps. Hence, $!T(M, w) \Entails !C(M, w, n)$ where $!C(M, w, n)$ describes a halting configuration, and since in that case $!C(M, w, n) \Entails !E(M, w)$, -we get that $T(M, w) \Entails !E(M, w)$, i.e., that $\Entails !T(M, w) +we get that $!T(M, w) \Entails !E(M, w)$, i.e., that $\Entails !T(M, w) \lif !E(M, w)$. The strategy for the converse is very different. Here we assume that @@ -168,7 +168,7 @@ \end{align*} as follows: The first line comes directly from the consequent of the preceding conditional, by modus ponens. Each conjunct in the middle -line---which excludes $S_{\sigma_m}(\num{m},\num{n}')$---follows from +line---which excludes $\Obj S_{\sigma_m}(\num{m},\num{n}')$---follows from the corresponding conjunct in~$!C(M, w, n)$ together with $!A(\num{m}, \num{n})$. @@ -254,7 +254,7 @@ S_\TMblank(x, \num{n}'))]$ from $\lforall[x][(\num{k} < x \lif \Obj S_\TMblank(x, \num{n}'))]$, $\lforall[x][x < x']$, and $\lforall[x][\lforall[y][\lforall[z][ ((x < y \land y < z) \lif x < - z)]]]$.) + z)]]]$. \end{prob} From 7aa55b5eb6b93f2fa1ccddf98ff13f73fd688a14 Mon Sep 17 00:00:00 2001 From: Richard Zach Date: Mon, 30 Nov 2026 19:27:52 -0600 Subject: [PATCH 4/4] Remove footnotesize from code example Removed footnotesize formatting from the code block. (Not sure where this caused problems) --- content/computability/computability-theory/fixed-point-thm.tex | 1 - 1 file changed, 1 deletion(-) diff --git a/content/computability/computability-theory/fixed-point-thm.tex b/content/computability/computability-theory/fixed-point-thm.tex index 536db9771..84fa36661 100644 --- a/content/computability/computability-theory/fixed-point-thm.tex +++ b/content/computability/computability-theory/fixed-point-thm.tex @@ -183,7 +183,6 @@ accepts a string $x$ and another numeric argument $y$, and prints the string $x$ repeatedly, $y$ times. Then the ``program'' \begin{quote} -\footnotesize \begin{verbatim} getinput(y); print(diag('getinput(y); print(diag(x), y)'), y)