Exercise 9
\[% 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
Let \(\Sigma\) be a set of sentences in the language of arithmetic, and let \(\cN\) be the standard model. In lecture, we used different formulations of the assumptions in the incompleteness theorem. In this problem, we investigate how those formulations relate to one another.
1.1 Completeness
Consider the following conditions:
- For every sentence \(A\), if \(\cN \models A\), then \(\Sigma \proves A\).
- For every sentence \(A\), either \(\Sigma \proves A\) or \(\Sigma \proves \neg A\).
Are these conditions equivalent? If not, does one imply the other? Justify each implication you claim, and give a counterexample for any implication that fails.
Solution
Condition 1 implies condition 2. For every sentence \(A\), either \(\cN \models A\) or \(\cN \models \neg A\). By condition 1, either \(\Sigma \proves A\) or \(\Sigma \proves \neg A\).
The converse does not hold. Let \(\cM\) be a one-element structure in the language of arithmetic, and let \(\Sigma = \operatorname{Th}(\cM)\). For every sentence \(A\), either \(A\) or \(\neg A\) is true in \(\cM\), so one of them belongs to \(\Sigma\) and is therefore provable from \(\Sigma\). Thus condition 2 holds.
However, the sentence \(\exists x\,\exists y\,\neg(x=y)\) is true in \(\cN\) and false in \(\cM\). Since \(\cM \models \Sigma\), soundness implies that this sentence is not provable from \(\Sigma\). Thus condition 1 fails.
1.2 Soundness
Consider the following conditions:
- For every sentence \(A\), if \(\Sigma \proves A\), then \(\cN \models A\).
- \(\cN \models \Sigma\).
Are these conditions equivalent? If not, does one imply the other? Justify your answer.
Solution
The conditions are equivalent.
Suppose condition 1 holds. For every \(A \in \Sigma\), we have \(\Sigma \proves A\), since an axiom can be used in a proof. Hence \(\cN \models A\) for every \(A \in \Sigma\), so \(\cN \models \Sigma\).
Conversely, suppose \(\cN \models \Sigma\). If \(\Sigma \proves A\), the soundness theorem gives \(\Sigma \models A\). Since \(\cN\) is a model of \(\Sigma\), it follows that \(\cN \models A\).
2 More Sequence Operations
In lecture, we discussed how to express the length of a sequence and how to access an entry at a given index.
Let \(b \geq 2\), and reserve the digit \(b-1\) as a leading marker. Let \(u_n,\ldots,u_0\) be a sequence of natural numbers, each less than \(b-1\). Encode this sequence by the number whose base-\(b\) digits are the marker followed by the sequence: \[ u = (b-1)b^{n+1} + u_n b^n + \cdots + u_1 b + u_0 = (b-1)b^{n+1} + \sum_{i=0}^{n} u_i b^i. \]
Think about how to express the following relations using formulas.
- \(\operatorname{Append}(u,v,b,x)\): \(v\) codes the sequence \(x,u_n,\ldots,u_0\).
- \(\operatorname{Prepend}(u,v,b,x)\): \(v\) codes the sequence \(u_n,\ldots,u_0,x\).
- \(\operatorname{Pop0}(u,v,b)\): \(v\) codes the sequence \(u_n,\ldots,u_1\), obtained by removing \(u_0\). Assume the input sequence is nonempty. The resulting sequence has length \(n\), whereas the original sequence has length \(n+1\); when \(n=0\), the result is the empty sequence.