Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Original file line number Diff line number Diff line change
Expand Up @@ -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}
6 changes: 3 additions & 3 deletions content/computability/computability-theory/equiv-ce-defs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}


Expand Down Expand Up @@ -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''!{}
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions content/computability/computability-theory/prop-reduce.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions content/computability/computability-theory/reducibility.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion content/computability/computability-theory/total.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions content/computability/computability.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion content/computability/recursive-functions/pr-functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions content/computability/recursive-functions/primes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion content/computability/recursive-functions/sequences.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion content/computability/recursive-functions/trees.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
10 changes: 5 additions & 5 deletions content/incompleteness/arithmetization-syntax/proofs-in-lk.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Part: incompleteness
% Chapter: first-incompleteness
% Chapter: incompleteness-provability

\documentclass[../../../include/open-logic-chapter]{subfiles}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions content/incompleteness/incompleteness-provability/lob-thm.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -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}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:

Expand Down
Loading
Loading