Exercise 10
\[% Shared mathematical notation for CSC438. % % Keep this file limited to commands supported by both LaTeX and MathJax. % Quarto loads it through filters/shared-macros.lua; TeX preambles can use % \input{../macros} when compiled from a first-level project directory. \renewcommand{\subset}{\subseteq} \renewcommand{\iff}{\leftrightarrow} \newcommand{\N}{\mathbb{N}} \newcommand{\proves}{\vdash} \newcommand{\cA}{\mathcal{A}} \newcommand{\cN}{\mathcal{N}} \newcommand{\cF}{\mathcal{F}} \newcommand{\cL}{\mathcal{L}} \newcommand{\cP}{\mathcal{P}} \newcommand{\cM}{\mathcal{M}} \newcommand{\Var}{\mathrm{Var}} \newcommand{\FV}{\mathrm{FV}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\TR}{\mathbf{TR}} \newcommand{\D}{\mathbf{D}} \newcommand{\R}{\mathbb{R}} \newcommand{\seq}{\Rightarrow} \newcommand{\RA}{\Longrightarrow} \newcommand{\LRA}{\Longleftrightarrow} \newcommand{\OI}{\{0,1\}} \renewcommand{\SS}{\Sigma^*} \newcommand{\powerset}{\mathcal{P}} \newcommand{\blank}{\sqcup} \newcommand{\angles}[1]{\left\langle #1\right\rangle} \newcommand{\enc}[1]{\left\ulcorner #1\right\urcorner} \newcommand{\olec}[1]{\overline{\enc{#1}}} \newcommand{\Lang}{\mathcal{L}} \newcommand{\Th}{\operatorname{Th}} \newcommand{\Cn}{\operatorname{Cn}} \newcommand{\Thm}{\operatorname{Thm}} \newcommand{\Prov}{\operatorname{Prov}} \newcommand{\Con}{\operatorname{Con}} \newcommand{\ATM}{A_{\mathrm{TM}}} \newcommand{\HALTTM}{\operatorname{HALT}_{\mathrm{TM}}} \newcommand{\HALTe}{\operatorname{HALT}_{\epsilon}} \newcommand{\AExp}{A_E} \newcommand{\AMult}{A_M} \newcommand{\green}[1]{\textcolor{green}{#1}} \newcommand{\red}[1]{\textcolor{red}{#1}} \newcommand{\gray}[1]{\textcolor{lightgray}{#1}} \newcommand{\st}[1]{\sout{#1}} \]
1 Incompleteness Assumptions
Show formally that the properties in incompleteness theorem v1 imply the properties in incompleteness theorem v2 (using the strongest form of each version).
Solution
Assume \(\Sigma\) is complete, \(\cN\models\Sigma\), and \(\Sigma\in\TR\). Completeness and recognizability already appear in v2. For consistency, if \(\Sigma\) proved both \(A\) and \(\neg A\), soundness would make both true in \(\cN\), which is impossible.
It remains to show \(\Cn(A_E)\subseteq\Cn(\Sigma)\). Take any \(A\) such that \(A_E\proves A\). Since \(\cN\models A_E\), soundness gives \(\cN\models A\). Thus \(\Sigma\) cannot prove \(\neg A\), since every theorem of \(\Sigma\) is true in \(\cN\). By completeness, \(\Sigma\proves A\).
2 Independence
A sentence \(A\) is independent of a set of axioms \(\Sigma\) if it is a witness to the incompleteness of that set of axioms. That is, \(\Sigma \not\proves A\) and \(\Sigma \not\proves \neg A\).
The easiest way to show that \(\Sigma \not\proves A\) is to show that \(\Sigma \cup \{\neg A\}\) is satisfiable.
In this problem, we’ll show that the sentence \(\varphi = \forall x(x \neq 0 \implies \exists y(Sy = x))\) is independent of \(A_E\).
2.1
Show that \(A_E \not \proves \neg \varphi\) by arguing that \(\cN \models \varphi\).
Solution
Every nonzero \(n\in\N\) is the successor of \(n-1\), so \(\cN\models\varphi\). Since \(\cN\models A_E\), soundness rules out \(A_E\proves\neg\varphi\).
2.2
Show that \(A_E \not \proves \varphi\) by providing a model for \(A_E \cup \{\neg \varphi\}\).
Make sure to say how all the constants, functions, and relations are interpreted in your model.
You do not need to verify all the axioms of \(A_E\) formally. Just give an informal argument for why they are true in your model.
The non-standard model we gave in class is a good place to start.
Solution
Take two disjoint copies of \(\N\), written \(0,1,2,...\) and \(a_0,a_1,\ldots\). Successor works normally, and takes \(a_i \mapsto a_{i+1}\).
The intuition here is that \(a_0\) is going to be this element that is not the sucessor of any other element, so \(\varphi\) is false in this model.
Interpret \(<\) by putting all the \(a_i\) after all the normal numbers, and order \(a_i < a_j\) if \(i < j\).
To interpret the binary functions, we essentially treat \(a_0\) as \(0\) as well when it occurs as the second argument of \(+, \cdot, E\).
3 Definability and Representability
In lecture, I wanted to essentially distill only the facts needed for the proof of the incompleteness theorem. Namely, I just wanted to construct the formulas \(\varphi_M\) and \(\alpha_{x}\) with the following properties.
- \(M\) halts on the empty string iff \(\cN \models \varphi_M\).
- If \(M_x\) accepts the empty string, then \(A_E \proves \alpha_x\).
- If \(M_x\) rejects the empty string, then \(A_E \proves \neg \alpha_x\).
In fact, some other nice and general results are true.
First, we give some definitions.
For a set of strings \(S\), let \(\#S = \{\enc{w} : w \in S\}\) denote the set of numerical encodings of its elements.
A set \(X \subset \N^k\) is definable in \(\cN\) if there is a formula \(\varphi\) with \(k\) free variables such that
\[ (x_1,...,x_k) \in X \iff \cN \models \varphi(\overline{x_1},...,\overline{x_k}) \]
A set \(X \subset \N^k\) is representable in a theory \(T\) if there is a formula \(\varphi\) with \(k\) free variables such that
- \((x_1,...,x_k) \in X \implies T \proves \varphi(\overline{x_1},...,\overline{x_k})\)
- \((x_1,...,x_k) \notin X \implies T \proves \neg \varphi(\overline{x_1},...,\overline{x_k})\)
A set \(X \subset \N^k\) is weakly representable in a theory \(T\) if there is a formula \(\varphi\) with \(k\) free variables such that
- \((x_1,...,x_k) \in X \iff T \proves \varphi(\overline{x_1},...,\overline{x_k})\)
Recall also the following constructions from lecture.
Let \(\mathrm{Accept}_M(x)\) be a formula such that, for every \(n \in \N\),
- \(\cN \models \mathrm{Accept}_M(\overline n)\) iff \(n = \enc{w}\) for some string \(w\) that \(M\) accepts.
Let \(\Phi_M(x)\) be a formula with the following properties for every \(n \in \N\).
- If \(n = \enc{w}\) for some string \(w\) that \(M\) accepts, then \(A_E \proves \Phi_M(\overline n)\).
- If \(n\) is not the code of a string, or \(n = \enc{w}\) for some string \(w\) that \(M\) rejects, then \(A_E \proves \neg\Phi_M(\overline n)\).
3.1
Show that if \(S \subset \Sigma^*\) and \(S \in \TR\), then \(\#S\) is definable in \(\cN\).
Solution
Let \(M\) be a recognizer for \(S\). \(\mathrm{Accept}_M\) defines \(M\).
3.2
Show that \(S \in \TR\) iff \(\#S\) is weakly representable in \(A_E\).
Solution
Suppose \(M\) recognizes \(S\). Again, we use \(\mathrm{Accept}_M(x)\). If \(n\in\#S\), let \(w\) be the string represented by \(n\). Then \(M\) accepts \(n\) so \(\N \models \mathrm{Accept}_M(\overline{n})\). Since this formula is the existential of a bounded formula, and true in the standard model, \(A_E \proves \mathrm{Accept}_M(\overline{n})\). Conversely, if \(A_E\) proves this instance, it is true in \(\cN\) by soundness, so \(n\in\#S\).
Suppose \(B(x)\) weakly represents \(\#S\). We construct a recognizer for \(S\). On input \(w\), search all strings and check if they are proofs of \(B(\overline{\enc{w}}\)).
3.3
Show that \(S \in \D\) iff \(\#S\) is representable in \(A_E\).
Solution
Let \(M\) be a decider for \(S\), use \(\Phi_M(x)\) (the property satisfied by \(\Phi_M(x)\) is basically exactly what we need).
On the other hand, suppose that \(B(x)\) represents \(\#S\). Modify the recognizer from the previous proof to search to search for proofs of \(B(\olec{w})\) and \(\neg B(\olec{w})\).