|
| 1 | +% Part: incompleteness |
| 2 | +% Chapter: representability-in-q |
| 3 | +% Section: undecidability |
| 4 | + |
| 5 | +\documentclass[../../include/open-logic-section]{subfiles} |
| 6 | + |
| 7 | +\begin{document} |
| 8 | + |
| 9 | +\olfileid{inc}{req}{und} |
| 10 | +\olsection{Undecidability} |
| 11 | + |
| 12 | +We call a theory $\Th{T}$ \emph{undecidable} if there is no |
| 13 | +computational procedure which, after finitely many steps and |
| 14 | +unfailingly, provides a correct answer to the question ``does $\Th{T}$ |
| 15 | +prove~$!A$'' for any sentence~$!A$ in the language of~$\Th{T}$. So |
| 16 | +$\Th{Q}$ would be decidable iff there were a computational procedure |
| 17 | +which decides, given a sentence~$A$ in the language of arithmetic, |
| 18 | +whether $\Th{Q} \Proves !A$ or not. We can make this more precise by |
| 19 | +asking: Is the relation~$\fn{Prov}_{\Th{Q}}(x)$, which holds of~$x$ |
| 20 | +iff $x$ is the G\"odel number of a sentence provable in~$\Th{Q}$, |
| 21 | +recursive? The answer is: no. |
| 22 | + |
| 23 | +\begin{thm} |
| 24 | +$\Th{Q}$ is undecidable, i.e., the relation |
| 25 | +\[ |
| 26 | +\fn{Prov}_{\Th{Q}}(x) \defiff \fn{Sent}(x) \land |
| 27 | +\lexists[y][\fn{Pr}_{\Th{Q}}(x, y)] |
| 28 | +\] |
| 29 | +is not recursive. |
| 30 | +\end{thm} |
| 31 | + |
| 32 | +\begin{proof} |
| 33 | +Suppose it were. Then we could solve the halting problem as follows: |
| 34 | +Given $e$ and $n$, we know that $\cfind{e}(n) \defined$ iff there is |
| 35 | +an~$s$ such that $T(e, x, s)$, where $T$ is Kleene's predicate from |
| 36 | +\olref[cmp][rec][nft]{thm:kleene-nf}. Since $\Char{T}$ is primitive |
| 37 | +recursive it is representable in~$\Th{Q}$ by a formula |
| 38 | +$!B_T(e,x,s,y)$, that is, $\Th{Q} \Proves !B_T(\num{e}, \num{x}, |
| 39 | +\num{s}, \num{1})$ iff $T(e, x, s)$. If $\Th{Q} \Proves !B_T(\num{e}, |
| 40 | +\num{x}, \num{s}, \num{1})$ then also $\Th{Q} \Proves \Th{Q} \Proves |
| 41 | +\lexists[y][!B_T(\num{e}, \num{x}, y, \num{1})]$. If no such $s$ |
| 42 | +exists, then $\Th{Q} \Proves \lnot !B_T(\num{e}, \num{x}, \num{s}, |
| 43 | +\num{1})$ for every~$s$. Since $\Th{Q}$ is $\omega$-consistent, |
| 44 | +$\Th{Q} \Proves/ \lexists[y][!B_T(\num{e}, \num{x}, y, \num{1})]$. In |
| 45 | +other words, $\Th{Q} \Proves \lexists[y][!B_T(\num{e}, \num{x}, y, |
| 46 | + \num{1})]$ iff there is an $s$ such that $T(e, n, s)$, i.e., iff |
| 47 | +$\cfind{e}(n) \defined$. From $e$ and~$n$ we can compute |
| 48 | +$\Gn{\lexists[y][!B_T(\num{e}, \num{n}, y, \num{1})]}$, let $g(e, n)$ |
| 49 | + be the primitive recursive function which does that. So |
| 50 | +\[ |
| 51 | +h(e, n) = |
| 52 | +\begin{cases} |
| 53 | +1 & \text{if $\fn{Pr}_{\Th{Q}}(g(e, n))$}\\ |
| 54 | +0 & \text{otherwise}. |
| 55 | +\end{cases} |
| 56 | +\] |
| 57 | +This would show that $h$ is recursive if $\fn{Pr}_{\Th{Q}}$ is. But $h$ is not |
| 58 | +recursive, by \olref[cmp][rec][hlt]{thm:halting-problem}, so $\fn{Pr}_{\Th{Q}}$ |
| 59 | +cannot be either. |
| 60 | +\end{proof} |
| 61 | + |
| 62 | +\begin{cor} |
| 63 | +First-order logic is undecidable. |
| 64 | +\end{cor} |
| 65 | + |
| 66 | +\begin{proof} |
| 67 | +If first-order logic were decidable, provability in~$\Th{Q}$ would be |
| 68 | +as well, since $\Th{Q} \Proves !A$ iff $\Proves !O \lif !A$, where |
| 69 | +$!O$ is the conjunction of the axioms of~$\Th{Q}$. |
| 70 | +\end{proof} |
| 71 | + |
| 72 | +\end{document} |
0 commit comments