diff --git a/content/first-order-logic/axiomatic-deduction/axioms-rules-propositional.tex b/content/first-order-logic/axiomatic-deduction/axioms-rules-propositional.tex index c9e0eb0ce..1143aa58c 100644 --- a/content/first-order-logic/axiomatic-deduction/axioms-rules-propositional.tex +++ b/content/first-order-logic/axiomatic-deduction/axioms-rules-propositional.tex @@ -13,7 +13,7 @@ \olsection{Axioms and Rules for the Propositional Connectives} \begin{defn}[Axioms] -The set of $\PAx$ of \emph{axioms} for the propositional connectives comprises +The set $\PAx$ of \emph{axioms} for the propositional connectives comprises all !!{formula}s of the following forms: \begin{align} & (!A \land !B) \lif !A \ollabel{ax:land1}\\ diff --git a/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex b/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex index 046dd4b36..b69bd7502 100644 --- a/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex @@ -21,14 +21,18 @@ \end{defn} \begin{defn}[Rules for quantifiers] +\begin{enumerate} \item If $!B \lif !A(a)$ already occurs in the !!{derivation} and $a$ - does not occur in~$\Gamma$ or~$!B$, then $!B \lif + is a constant that does not occur in~$\Gamma$, $!B$, or~$!A(x)$, then $!B \lif \lforall[x][!A(x)]$ is a correct inference step. \item If $!A(a) \lif !B$ already occurs in the !!{derivation} and $a$ - does not occur in~$\Gamma$ or~$!B$, then $\lexists[x][!A(x)] \lif + is a constant that does not occur in~$\Gamma$, $!B$, or~$!A(x)$, then $\lexists[x][!A(x)] \lif !B$ is a correct inference step. +\end{enumerate} \end{defn} We'll abbreviate either of these by ``\QR.'' +Here $\Gamma$ is the finite premise set chosen to witness derivability. + \end{document} diff --git a/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex b/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex index ee8b94137..712e21a9a 100644 --- a/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex @@ -16,6 +16,11 @@ \end{thm} \begin{proof} +Choose a finite support for the given !!{derivation}, and rename +quantifier-rule eigenconstants as in \olref[ptn]{prop:transitivity} so +that adjoining $!A$ as a premise is permitted. It suffices to prove the +claim for this finite set of other premises, which we again call +$\Gamma$; the result for the original set follows by monotonicity. We again proceed by induction on the length of the !!{derivation} of $!B$ from $\Gamma \cup \{!A\}$. @@ -28,7 +33,7 @@ as in the proof of \olref[ded]{thm:deduction-thm}. If the inference rule is \QR, we know that $!B \ident !C \lif \lforall[x][!D(x)]$ and !!a{formula} of the form $!C \lif !D(a)$ appears earlier in the -!!{derivation}, where $a$ does not occur in~$!C$, $!A$, or $\Gamma$. We +!!{derivation}, where $a$ does not occur in~$!C$, $!A$, $!D(x)$, or $\Gamma$. We thus have that \begin{align*} \Gamma \cup \{!A\} & \Proves !C \lif !D(a),\\ @@ -41,7 +46,7 @@ \intertext{Since the eigenvariable condition still applies, we can add a step to this !!{derivation} justified by \QR, and get} \Gamma & \Proves (!A \land !C) \lif \lforall[x][!D(x)].\\ \intertext{We also have} - & \Proves ((!A \land !C) \lif \lforall[x][!D(x)]) \lif (!A \lif (!C \lif \lforall[x][!D(x)]),\\ + & \Proves ((!A \land !C) \lif \lforall[x][!D(x)]) \lif (!A \lif (!C \lif \lforall[x][!D(x)])),\\ \intertext{so by modus ponens,} \Gamma & \Proves !A \lif (!C \lif \lforall[x][!D(x)]), \end{align*} diff --git a/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex b/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex index 2e2ee0130..1867e30fa 100644 --- a/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex +++ b/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex @@ -68,13 +68,15 @@ is an axiom, then $\Gamma \Proves !B$. We also have that $\Gamma \Proves !B \lif (!A \lif !B)$ by \olref[prp]{ax:lif1}, and \olref{prop:mp} gives $\Gamma \Proves !A \lif !B$. If $!B \in \{ !A\}$ -then $\Gamma \Proves !A \lif !B$ because the last !!{sentence}~$!A +then $\Gamma \Proves !A \lif !B$ because the last !!{formula}~$!A \lif !B$ is the same as $!A \lif !A$, and we have !!{derive}d that in \olref[pro]{ex:identity}. For the inductive step, suppose !!a{derivation} of~$!B$ from $\Gamma \cup \{!A\}$ ends with a step~$!B$ which is justified by modus -ponens. (If it is not justified by modus ponens, $!B \in \Gamma$, $!B +ponens. \iftag{FOL}{The additional quantifier-rule cases are proved in +\olref[ddq]{thm:deduction-thm-q}.}{} +(If it is not justified by modus ponens\iftag{FOL}{ or \QR}{}, $!B \in \Gamma$, $!B \ident !A$, or $!B$ is an axiom, and the same reasoning as in the induction basis applies.) Then some previous steps in the !!{derivation} are $!C \lif !B$ and $!C$, for some !!{formula}~$!C$, @@ -104,7 +106,7 @@ \ollabel{prop:derivfacts} \begin{enumerate} \item $\Proves (!A \lif !B) \lif ((!B \lif !C) - \lif (!A \lif !C)$; \ollabel{derivfacts:a} + \lif (!A \lif !C))$; \ollabel{derivfacts:a} \item If $\Gamma \cup \{ \lnot !A\} \Proves \lnot !B$ then $\Gamma \cup \{ !B\} \Proves !A$ (Contraposition); \ollabel{derivfacts:b} diff --git a/content/first-order-logic/axiomatic-deduction/identity.tex b/content/first-order-logic/axiomatic-deduction/identity.tex index 82635689d..d95bc74e9 100644 --- a/content/first-order-logic/axiomatic-deduction/identity.tex +++ b/content/first-order-logic/axiomatic-deduction/identity.tex @@ -1,5 +1,5 @@ % Part: first-order-logic -% Chapter: axiomatic-proofs +% Chapter: axiomatic-deduction % Section: identity \documentclass[../../../include/open-logic-section]{subfiles} @@ -36,12 +36,12 @@ \end{prob} \begin{prop}\ollabel{prop:iden1} - $\Gamma \Proves \eq[t][t]$, for any term $t$ and set~$\Gamma$. + $\Gamma \Proves \eq[t][t]$, for any closed term $t$ and set~$\Gamma$. \end{prop} \begin{prop}\ollabel{prop:iden2} - If $\Gamma \Proves !A(t_1)$ and $\Gamma \Proves - \eq[t_1][t_2]$, then $\Gamma \Proves !A(t_2)$. + If $t_1$ and $t_2$ are closed terms, $\Gamma \Proves !A(t_1)$, and + $\Gamma \Proves \eq[t_1][t_2]$, then $\Gamma \Proves !A(t_2)$. \end{prop} \begin{proof} diff --git a/content/first-order-logic/axiomatic-deduction/proof-theoretic-notions.tex b/content/first-order-logic/axiomatic-deduction/proof-theoretic-notions.tex index d36ce9e47..1f509ca47 100644 --- a/content/first-order-logic/axiomatic-deduction/proof-theoretic-notions.tex +++ b/content/first-order-logic/axiomatic-deduction/proof-theoretic-notions.tex @@ -27,6 +27,11 @@ !!^a{formula}~$!A$ is \emph{!!{derivable}} from $\Gamma$, written $\Gamma \Proves !A$, if there is !!a{derivation} from~$\Gamma$ ending in~$!A$. +\iftag{FOL}{For an arbitrary premise set, $\Gamma \Proves !A$ means +that there is such a !!{derivation} from a finite subset +$\Gamma_0 \subseteq \Gamma$. Fresh constants may be chosen in a finite +expansion of the language, and the freshness conditions on quantifier +rules refer to this chosen finite premise set.}{} \end{defn} \begin{defn}[Theorems] @@ -56,8 +61,11 @@ \end{prop} \begin{proof} -Any !!{derivation} of $!A$ from $\Gamma$ is also !!a{derivation} of -$!A$ from~$\Delta$. +\iftag{FOL}{A finite $\Gamma_0 \subseteq \Gamma$ witnessing +$\Gamma \Proves !A$ is also a finite subset of~$\Delta$. The same +!!{derivation} from~$\Gamma_0$ therefore witnesses $\Delta \Proves !A$.}{Any +!!{derivation} of $!A$ from $\Gamma$ is also !!a{derivation} of +$!A$ from~$\Delta$.} \end{proof} \begin{prop}[Transitivity] @@ -67,6 +75,14 @@ \end{prop} \begin{proof} +\iftag{FOL}{First choose finite premise supports for the two +!!{derivation}s. Before combining them, make each quantifier-rule +eigenconstant fresh for their union: copy the subderivation leading to +that rule's premise and rename its eigenconstant throughout the copy to +a new constant. The rule's conclusion and the original premises do not +contain that eigenconstant, so they stay unchanged. Repeating this for +the finitely many rule applications makes both !!{derivation}s legal +over the combined support.}{} Suppose $\{!A\} \cup \Delta \Proves !B$. Then there is !!a{derivation} $!B_1$, \dots, $!B_l = !B$ from~$\{!A\} \cup \Delta$. Some of the steps in that !!{derivation} will be correct @@ -79,7 +95,7 @@ !A_1, \dots, !A_k = !A, !B_1, \dots, !B_l = !B. \] This is a correct !!{derivation} of~$!B$ from $\Gamma \cup \Delta$ - since every $B_i = !A$ is now justified by the same rule which + since every $!B_i = !A$ is now justified by the same justification which justifies~$!A_k = !A$. \end{proof} @@ -124,8 +140,8 @@ \item If $\Gamma \Proves !A$, then there is a finite sequence of !!{formula}s $!A_1$, \dots,~$!A_n$ so that $!A \ident !A_n$ and each $!A_i$ is either a logical axiom, !!a{element} of~$\Gamma$ - or follows from previous !!{formula}s by modus ponens. Take - $\Gamma_0$ to be those $!A_i$ which are in~$\Gamma$. Then the + or follows from previous !!{formula}s by a rule of inference. Take + $\Gamma_0$ to consist of the !!{formula}s used as premise steps. Then the !!{derivation} is likewise !!a{derivation} from~$\Gamma_0$, and so $\Gamma_0 \Proves !A$. \item This is the contrapositive of~(1) for the special case $!A diff --git a/content/first-order-logic/axiomatic-deduction/provability-propositional.tex b/content/first-order-logic/axiomatic-deduction/provability-propositional.tex index 94086f3bf..db0feda28 100644 --- a/content/first-order-logic/axiomatic-deduction/provability-propositional.tex +++ b/content/first-order-logic/axiomatic-deduction/provability-propositional.tex @@ -30,7 +30,7 @@ \begin{proof} \begin{enumerate} - \item From \olref[prp]{ax:land1} and \olref[prp]{ax:land1} by + \item From \olref[prp]{ax:land1} and \olref[prp]{ax:land2} by modus ponens. \item From \olref[prp]{ax:land3} by two applications of modus ponens. @@ -47,7 +47,7 @@ \begin{proof} \begin{enumerate} - \item From \olref[prp]{ax:lnot1} we get $\Proves \lnot !A \lif (!A + \item From \olref[prp]{ax:lnot2} we get $\Proves \lnot !A \lif (!A \lif \lfalse)$ and $\Proves \lnot !B \lif (!B \lif \lfalse)$. So by the deduction theorem, we have $\{\lnot !A\} \Proves !A \lif \lfalse$ and $\{\lnot !B\} \Proves !B \lif \lfalse$. From @@ -55,7 +55,7 @@ \lor !B) \lif \lfalse$. By the deduction theorem, $\{!A \lor !B, \lnot !A, \lnot !B\} \Proves \lfalse$. \item From \olref[prp]{ax:lor1} and \olref[prp]{ax:lor2} by modus - ponsens. + ponens. \end{enumerate} \end{proof} diff --git a/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex b/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex index 2e60b409e..a82cbde7e 100644 --- a/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex @@ -27,12 +27,13 @@ \begin{proof} By the deduction theorem, $\Gamma \Proves \ltrue \lif !A(c)$. Since $c$ does not occur in $\Gamma$ or~$\top$, we get $\Gamma \Proves -\ltrue \lif \lforall[x][!A(x)]$. By the deduction theorem again, $\Gamma \Proves -\lforall[x][!A(x)]$. +\ltrue \lif \lforall[x][!A(x)]$. Since $\Proves \ltrue$ by \olref[prp]{ax:ltrue}, \olref[ded]{prop:mp} +gives $\Gamma \Proves \lforall[x][!A(x)]$. \end{proof} \begin{prop} \ollabel{prop:provability-quantifiers} +For any closed term~$t$: \begin{tagenumerate}{prvEx,prvAll} \tagitem{prvEx}{$!A(t) \Proves \lexists[x][!A(x)]$.}{} diff --git a/content/first-order-logic/axiomatic-deduction/provability.tex b/content/first-order-logic/axiomatic-deduction/provability.tex index dced25942..7b0961977 100644 --- a/content/first-order-logic/axiomatic-deduction/provability.tex +++ b/content/first-order-logic/axiomatic-deduction/provability.tex @@ -15,6 +15,23 @@ \olsection{Properties of \usetoken{S}{derivability}} +\begin{editorial} +This section uses a separate classical axiom presentation. Ax0 consists +of all propositional tautology instances. Ax1 consists of +$\lforall[x][!A] \lif \Subst{!A}{t}{x}$, where $t$ is !!{free for} $x$; +Ax2 is $\lforall[x][(!A \lif !B)] \lif +(\lforall[x][!A] \lif \lforall[x][!B])$; and Ax3 is +$!A \lif \lforall[x][!A]$ when $x$ is not free in $!A$. +All finite universal closures of these axioms are also axioms. +If the existential quantifier is primitive, also include all finite +universal closures of $\lexists[x][!A] \liff \lnot\lforall[x][\lnot !A]$. +The sole inference rule is modus ponens. Here $\mathsf{Thm}_\Gamma$ is +the set obtained from the axioms and $\Gamma$ by that rule, so each +!!{derivation} uses only finitely many premises. The Ax0--Ax3 names and +the following proofs refer to this presentation, not to the quantifier +rules in \olref[qua]{sec}. +\end{editorial} + \begin{prop}[Monotonicity] If $\Gamma \subseteq \Delta$ and $\Gamma \Proves !A$ then also $\Delta \Proves !A$ \end{prop} @@ -25,7 +42,7 @@ \begin{prop}\ollabel{prop:provability} $\Gamma \Proves !A$ if and only if $\Gamma\cup \{\lnot!A \}$ is inconsistent. \end{prop} -\begin{prop} \begin{enumerate} +\begin{prop}\ollabel{prop:provability-properties} \begin{enumerate} \item \ollabel{prop:provability-contr} If $\Gamma \Proves !A$ and $\Gamma \cup \{ !A\} \Proves \lfalse$, then $\Gamma$ is inconsistent. @@ -73,16 +90,16 @@ Since $\Gamma_0 \subseteq \Gamma$ and $\Gamma_1 \subseteq \Gamma$, $\Gamma_0 \cup \Gamma_1 \subseteq \Gamma$, hence $\Gamma \Proves \lfalse$. -\item We assume that $\Gamma_0 \cup\{\lnot !A\} \Proves \lfalse$. +\item We assume that $\Gamma_0 \cup\{!A\} \Proves \lfalse$. \begin{derivation} -1. & $\Gamma_0 \cup\{\lnot !A\} \Proves \lfalse$ & hyp. \\ -2. & $\Gamma_0 \Proves \lnot !A \lif \lfalse$ & Deduction Theorem\\ -3. & $\Gamma_0 \Proves (\lnot !A \lif \lfalse) \lif !A$ & Ax0\\ -4. & $\Gamma_0 \Proves !A$ & MP 2, 3 \\ +1. & $\Gamma_0 \cup\{!A\} \Proves \lfalse$ & hyp. \\ +2. & $\Gamma_0 \Proves !A \lif \lfalse$ & Deduction Theorem\\ +3. & $\Gamma_0 \Proves (!A \lif \lfalse) \lif \lnot !A$ & Ax0\\ +4. & $\Gamma_0 \Proves \lnot !A$ & MP 2, 3 \\ \end{derivation} -\item We assume that $\Gamma \cup \{ !A \} \Proves \lfalse$ and that +\item We assume that $\Gamma_0 \cup \{ !A \} \Proves \lfalse$ and that $\Gamma_1 \cup \{\lnot !A \} \Proves \lfalse$. \begin{derivation} @@ -121,7 +138,7 @@ \begin{derivation} 1. & $\Gamma_0 \Proves !A \land !B$ & hyp \\ 2. & $\Gamma_0 \Proves (!A\land !B) \lif !A $ & Ax0\\ -3. & $\Gamma_0 \Proves !A \lor !B$ & MP 1, 2 \\ +3. & $\Gamma_0 \Proves !A$ & MP 1, 2 \\ \end{derivation} Hence, $\Gamma \Proves !A$. A similar !!{derivation} starting shows that @@ -132,7 +149,8 @@ % prop:provability-mp \tagitem{defIf}{}{ \iftag{probIf}{Exercise.}{ We -assume both that $\Gamma_0 \Proves !A$ and $\Gamma_0 \Proves !A \lif !B $. +choose a common finite $\Gamma_0 \subseteq \Gamma$ such that +$\Gamma_0 \Proves !A$ and $\Gamma_0 \Proves !A \lif !B $. \begin{derivation} 1. & $\Gamma_0 \Proves !A$ & hyp \\ @@ -140,7 +158,7 @@ 3. & $\Gamma_0 \Proves !B$ & MP 1, 2\\ \end{derivation} -Since $\Gamma_0 \cup \Gamma_1 \subseteq \Gamma$, this means that $\Gamma +Since $\Gamma_0 \subseteq \Gamma$, this means that $\Gamma \Proves !B$.}} % prop:provability-lif @@ -165,7 +183,7 @@ \end{proof} \begin{probtag}{probOr,probAnd,probIf} Complete the proof of -\olref[fol][axd][prv]{prop:provability}. +\olref[fol][axd][prv]{prop:provability-properties}. \end{probtag} \begin{thm}[Generalization] \ollabel{thm:Generalization} If $\Gamma \Proves @@ -194,7 +212,7 @@ that $!A=!A_n$. Pick a variable $x$ not in $!A_1,\ldots,!A_n$, and consider the new sequence: $\Subst{!A_1}{x}{c},\ldots,\Subst{!A_n}{x}{c}.$ Such a sequence is a proof of $\Subst{!A}{x}{c}$ from $\Gamma$. In fact, for each -$i=1,\ldots,n$: \begin{itemize} \item if $!A$ is an axiom, then so is +$i=1,\ldots,n$: \begin{itemize} \item if $!A_i$ is an axiom, then so is $\Subst{!A_i}{x}{c}$; \item if $!A_i \in \Gamma$, then since $c$ is not in $\Gamma$, we have $\Subst{!A_i}{x}{c} = !A_i \in \Gamma$; \item if $!A_i$ is obtained from $!A_j$ and $!A_j \lif !A_i$ then $\Subst{!A_i}{x}{c}$ @@ -223,7 +241,7 @@ is !!{free for} $y$ in $\Subst{!A}{y}{c}$. \end{lem} -\begin{proof} If $x$ is not !!{free for} $y$ in $\Subst{!A}{y}{x}$, then +\begin{proof} If $x$ is not !!{free for} $y$ in $\Subst{!A}{y}{c}$, then some free occurrence of $y$ in $\Subst{!A}{y}{c}$ falls within the scope of a quantifier $\lforall[x]$. But $y$ is not free in $!A$, by hypothesis, so all such occurrences come from the substitution $\Subst{}{y}{c}$. So some diff --git a/content/first-order-logic/axiomatic-deduction/proving-things-quant.tex b/content/first-order-logic/axiomatic-deduction/proving-things-quant.tex index bea1d636a..0d0caff3d 100644 --- a/content/first-order-logic/axiomatic-deduction/proving-things-quant.tex +++ b/content/first-order-logic/axiomatic-deduction/proving-things-quant.tex @@ -14,6 +14,8 @@ Let us give !!a{derivation} of $(\lforall[x][!A(x)] \land \lforall[y][!B(y)]) \lif \lforall[x][(!A(x) \land !B(x))]$. +Assume that the only possible free variables of $!A(x)$ and $!B(y)$ +are $x$ and $y$, respectively, and choose $a$ absent from both matrices. First, note that \begin{align*} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[x][!A(x)]\\ @@ -26,7 +28,7 @@ \lforall[y][!B(y)] & \lif !B(a)\\ \intertext{are instances of \olref[prp]{ax:land2} and \olref[qua]{ax:q1}, respectively,} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif !B(a)\\ - \intertext{is derivable by \olref[pro]{prop:chain}. Using an appropriate instance of \olref[prp]{ax:land3} and two applications of~\MP, we see that} + \intertext{is derivable by \olref[pro]{prop:chain}. By \olref[prp]{ax:land3} and \olref[pro]{prop:chain}, the first implication above yields an implication from the same antecedent to $!B(a) \lif (!A(a) \land !B(a))$. The corresponding instance of \olref[prp]{ax:lif2}, followed by two applications of~\MP, combines this with the second implication and shows that} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif (!A(a) \land !B(a))\\ \intertext{is derivable. We can now apply \QR{} to obtain} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[x][(!A(x) \land !B(x))]. diff --git a/content/first-order-logic/axiomatic-deduction/proving-things.tex b/content/first-order-logic/axiomatic-deduction/proving-things.tex index d3dcd5674..37e0fc3f5 100644 --- a/content/first-order-logic/axiomatic-deduction/proving-things.tex +++ b/content/first-order-logic/axiomatic-deduction/proving-things.tex @@ -16,7 +16,7 @@ \begin{ex} Suppose we want to prove $(\lnot !D \lor !E) \lif (!D \lif !E)$. Clearly, this is not an instance of any of our axioms, so we -have to use the \MP{} rule to !!{derive} it. Our only rule is~MP, which +have to use the \MP{} rule to !!{derive} it. The only rule needed here is~MP, which given $!A$ and $!A \lif !B$ allows us to justify~$!B$. One strategy would be to use \olref[prp]{ax:lor3} with $!A$ being $\lnot !D$, $!B$ being $!E$, and $!C$ being $!D \lif !E$, i.e., the instance diff --git a/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex b/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex index 29cce9257..61f581032 100644 --- a/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex +++ b/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex @@ -37,7 +37,7 @@ What counts as a correct !!{derivation} depends on which inference rules we allow (and of course what we take to be axioms). And an inference rule is an if-then statement that tells us that, under -certain conditions, a step~$A_i$ in !!a{derivation} is a correct +certain conditions, a step~$!A_i$ in !!a{derivation} is a correct inference step. \begin{defn}[Rule of inference] @@ -84,6 +84,11 @@ A !!{formula}~$!A$ is \emph{!!{derivable}} from $\Gamma$, written $\Gamma \Proves !A$, if there is !!a{derivation} from $\Gamma$ ending in $!A$. +\iftag{FOL}{For an arbitrary premise set, $\Gamma \Proves !A$ means +that there is such a !!{derivation} from a finite subset +$\Gamma_0 \subseteq \Gamma$. Fresh constants may be chosen in a finite +expansion of the language, and the freshness conditions on quantifier +rules refer to this chosen finite premise set.}{} \end{defn} \begin{defn}[Theorems] diff --git a/content/first-order-logic/axiomatic-deduction/soundness.tex b/content/first-order-logic/axiomatic-deduction/soundness.tex index ff619e701..65ade4f9f 100644 --- a/content/first-order-logic/axiomatic-deduction/soundness.tex +++ b/content/first-order-logic/axiomatic-deduction/soundness.tex @@ -53,10 +53,21 @@ \begin{thm}[Soundness] \ollabel{thm:soundness} +\iftag{FOL}{Let $\Gamma$ be a set of sentences and $!A$ a sentence. }{} If $\Gamma \Proves !A$ then $\Gamma \Entails !A$. \end{thm} \begin{proof} +\iftag{FOL}{Choose a finite premise support. Replace each free +variable in its finite !!{derivation} by a distinct new constant, using +the same replacement at every free occurrence. This leaves the sentence +premises and conclusion unchanged and makes all intermediate formulas +sentences. The replacements preserve axiom instances, modus ponens, +and the quantifier rules: the new constants are distinct from every +eigenconstant already in the !!{derivation}. Every structure for the +original language has an expansion interpreting the finitely many new +constants. It therefore suffices to prove soundness for this sentence +!!{derivation} from the finite support, again denoted by $\Gamma$.}{} By induction on the length of the !!{derivation} of $!A$ from $\Gamma$. If there are no steps justified by inferences, then all !!{formula}s in the !!{derivation} are either instances of axioms or are @@ -65,6 +76,9 @@ $\Gamma \Entails !A$. If $!A \in \Gamma$, then trivially $\Gamma \Entails !A$. +The same immediate argument applies whenever the last line is an +axiom or a premise, regardless of earlier inference steps. + If the last step of the !!{derivation} of~$!A$ is justified by modus ponens, then there are !!{formula}s $!B$ and $!B \lif !A$ in the !!{derivation}, and the induction hypothesis applies to the part of @@ -77,9 +91,9 @@ {\olref[pl][syn][sem]{thm:sem-deduction}}. \iftag{FOL}{Now suppose the last step is justified by -\QR. Then that step has the form $!C \lif \lforall[x][B(x)]$ and +\QR. Then that step has the form $!C \lif \lforall[x][!B(x)]$ and there is a preceding step $!C \lif !B(c)$ with $c$ not in $\Gamma$, -$!C$, or $\lforall[x][B(x)]$. By induction hypothesis, $\Gamma +$!C$, or $\lforall[x][!B(x)]$. By induction hypothesis, $\Gamma \Entails !C \lif !B(c)$. By \olref[syn][sem]{thm:sem-deduction}, $\Gamma \cup \{!C\} \Entails !B(c)$. @@ -90,11 +104,12 @@ for every variable assignment~$s$, $\Sat{M}{!B(x)}[s]$ (\olref[syn][ass]{prop:sat-quant}). Since $\Gamma \cup \{!C\}$ consists entirely of sentences, $\Sat{M}{!D}[s]$ for all $!D \in -\Gamma$ by \olref[syn][sat]{defn:satisfaction}. Let $\Struct{M'}$ be +\Gamma$ by \olref[syn][ass]{defn:sat} and +\olref[syn][ass]{defn:satisfaction}. Let $\Struct{M'}$ be like $\Struct{M}$ except that $\Assign{c}{M'} = s(x)$. Since $c$ does not occur in~$\Gamma$ or~$!C$, $\Sat{M'}{\Gamma \cup \{!C\}}$ by \olref[syn][ext]{cor:extensionality-sent}. Since $\Gamma \cup \{!C\} -\Entails !B(c)$, $\Sat{M'}{B(c)}$. Since $!B(c)$ is !!a{sentence}, +\Entails !B(c)$, $\Sat{M'}{!B(c)}$. Since $!B(c)$ is !!a{sentence}, $\Sat{M'}{!B(c)}[s]$ by \olref[syn][ass]{prop:sentence-sat-true}. $\Sat{M'}{!B(x)}[s]$ iff $\Sat{M'}{!B(c)}[s]$ by \olref[syn][ext]{prop:ext-formulas} (recall that @@ -118,12 +133,12 @@ \begin{cor} \ollabel{cor:weak-soundness} -If $\Proves !A$, then $!A$ is \iftag{FOL}{valid}{a tautology}. +If $\Proves !A$\iftag{FOL}{ and $!A$ is a sentence}{}, then $!A$ is \iftag{FOL}{valid}{a tautology}. \end{cor} \begin{cor} \ollabel{cor:consistency-soundness} -If $\Gamma$ is satisfiable, then it is consistent. +If $\Gamma$ is \iftag{FOL}{a satisfiable set of sentences}{satisfiable}, then it is consistent. \end{cor} \begin{proof} diff --git a/content/first-order-logic/beyond/higher-order-logic.tex b/content/first-order-logic/beyond/higher-order-logic.tex index 772c81c3c..d6477472c 100644 --- a/content/first-order-logic/beyond/higher-order-logic.tex +++ b/content/first-order-logic/beyond/higher-order-logic.tex @@ -84,7 +84,7 @@ \[ f(x) = s \] -for any~$x$ of type~$\sigma$; so item (6) gives us a form of +for any~$x$ of type~$\tau$; so item (6) gives us a form of comprehension, enabling us to define functions using terms. !!^{formula}s are built up from !!{identity} statements $\eq[s][t]$ between terms of the same type, the usual propositional connectives, @@ -97,7 +97,7 @@ fact, if one is clever, one can get rid of complex !!{formula}s entirely, replacing them with terms of type $\Omega$!{} The proof system can then be modified accordingly. The result is essentially the -\emph{simple theory of types} set forth by Alonzo Church in the 1930s. +\emph{simple theory of types} set forth by Alonzo Church in 1940. As in the case of second-order logic, there are different versions of higher-type semantics that one might want to use. In the full version, diff --git a/content/first-order-logic/beyond/intuitionistic-logic.tex b/content/first-order-logic/beyond/intuitionistic-logic.tex index e180ee5b4..98bf75e57 100644 --- a/content/first-order-logic/beyond/intuitionistic-logic.tex +++ b/content/first-order-logic/beyond/intuitionistic-logic.tex @@ -112,7 +112,7 @@ that enable us to see that the corresponding !!{formula} is true. Intuitionistic logic is often thought of as being classical logic -``minus'' the law of the excluded middle. This following theorem makes +``minus'' the law of the excluded middle. The following theorem makes this more precise. \begin{thm} Intuitionistically, the following axiom schemata are equivalent: @@ -134,13 +134,15 @@ The \emph{double-negation translation} describes an important relationship between classical and intuitionist logic. It is defined -inductively follows (think of $!A^N$ as the ``intuitionist'' +inductively as follows (think of $!A^N$ as the ``intuitionist'' translation of the classical !!{formula}~$!A$): \begin{align*} !A^N & \ident \lnot\lnot !A \quad \text{for atomic !!{formula}s $!A$} \\ (!A \land !B)^N & \ident (!A^N \land !B^N) \\ (!A \lor !B)^N & \ident \lnot\lnot (!A^N \lor !B^N) \\ (!A \lif !B)^N & \ident (!A^N \lif !B^N) \\ +(\lnot !A)^N & \ident \lnot !A^N \\ +(!A \liff !B)^N & \ident ((!A^N \lif !B^N) \land (!B^N \lif !A^N)) \\ (\lforall[x][!A])^N & \ident \lforall[x][!A^N] \\ (\lexists[x][!A])^N & \ident \lnot\lnot\lexists[x][!A^N] \end{align*} @@ -199,12 +201,14 @@ A Kripke !!{structure}~$\mModel M = \tuple{W, R, V}$ for a propositional language consists of a set~$W$, partial order~$R$ on~$W$ with a least -!!{element}, and an ``monotone'' assignment of propositional variables to +!!{element}, and a ``monotone'' assignment of propositional variables to the !!{element}s of~$W$. The intuition is that the !!{element}s of $W$ represent ``worlds,'' or ``states of knowledge''; an element $v \geq u$ represents a ``possible future state'' of~$u$; and the propositional variables assigned to~$u$ are the propositions that are -known to be true in state~$u$. The forcing relation $\mSat{M}{!A}[w]$ +known to be true in state~$u$. For the forcing clauses below, read $\lnot !A$ as $!A\lif\lfalse$, +$!A\liff !B$ as $(!A\lif !B)\land(!B\lif !A)$, and $\ltrue$ as +$\lfalse\lif\lfalse$. The forcing relation $\mSat{M}{!A}[w]$ then extends this relationship to arbitrary !!{formula}s in the language; read $\mSat{M}{!A}[w]$ as ``$!A$ is true in state~$w$.'' The relationship is defined inductively, as follows: diff --git a/content/first-order-logic/beyond/many-sorted-logic.tex b/content/first-order-logic/beyond/many-sorted-logic.tex index a8116d41d..6ec439e25 100644 --- a/content/first-order-logic/beyond/many-sorted-logic.tex +++ b/content/first-order-logic/beyond/many-sorted-logic.tex @@ -21,7 +21,8 @@ ``!!{domain}'' it is supposed to inhabit. One then has !!{variable}s and quantifiers for each sort, and (usually) an !!{identity} for each sort. Functions and relations are also ``typed'' by the sorts of -objects they can take as arguments. Otherwise, one keeps the usual +objects they can take as arguments; each function also has a specified +result sort. Sort domains are nonempty. Otherwise, one keeps the usual rules of first-order logic, with versions of the quantifier-rules repeated for each sort. @@ -35,8 +36,8 @@ we use variables $a$, $b$, $c$ to range over French citizens and $x$, $y$, $z$ to range over German citizens, then \[ -\lforall[a][\lforall x][(\Atom{\Obj{MarriedTo}}{a,x} \lif -(\Atom{\Obj{DrinksWine}}{a} \lor \lnot \Atom{\Obj{EatsWurst}}{x})]] +\lforall[a][\lforall[x][(\Atom{\Obj{MarriedTo}}{a,x} \lif +(\Atom{\Obj{DrinksWine}}{a} \lor \lnot \Atom{\Obj{EatsWurst}}{x}))]] \] asserts that if any French person is married to a German, either the French person drinks wine or the German doesn't eat wurst. @@ -55,7 +56,9 @@ $\lforall[x][\lnot (\Atom{\Obj{German}}{x} \land \Atom{\Obj{French}}{x})]$---as well as axioms that guarantee that ``drinks wine'' only holds of objects satisfying the predicate -$\Atom{\Obj{French}}{x}$, etc. With these conventions and axioms, it +$\Atom{\Obj{French}}{x}$, etc. Add an existence axiom for each sort, and axioms placing constants +and function values in their specified result sorts whenever the +arguments have their specified sorts. With these conventions and axioms, it is not difficult to show that many-sorted !!{sentence}s translate to first-order !!{sentence}s, and many-sorted !!{derivation}s translate to first-order !!{derivation}s. Also, many-sorted !!{structure}s diff --git a/content/first-order-logic/beyond/modal-logics.tex b/content/first-order-logic/beyond/modal-logics.tex index db401dc5c..1581cd6b2 100644 --- a/content/first-order-logic/beyond/modal-logics.tex +++ b/content/first-order-logic/beyond/modal-logics.tex @@ -51,7 +51,7 @@ to an ``extensional'' one. The intended semantics for an extensional logic, like classical logic, will only refer to a single world, the ``actual'' one; while the semantics for an ``intensional'' logic -relies on a more elaborate ontology. In addition to !!{structure}ing +relies on a more elaborate ontology. In addition to modeling necessity, one can use modality to !!{structure} other linguistic constructions, reinterpreting $\Box$ and $\Diamond$ according to the application. For example: diff --git a/content/first-order-logic/beyond/other-logics.tex b/content/first-order-logic/beyond/other-logics.tex index 0c969c04d..151682dfb 100644 --- a/content/first-order-logic/beyond/other-logics.tex +++ b/content/first-order-logic/beyond/other-logics.tex @@ -11,7 +11,7 @@ \olsection{Other Logics} As you may have gathered by now, it is not hard to design a new logic. -You too can create your own a syntax, make up a deductive system, and +You too can create your own syntax, make up a deductive system, and fashion a semantics to go with it. You might have to be a bit clever if you want the !!{derivation} system to be complete for the semantics, and it might take some effort to convince the world at large that your logic @@ -31,7 +31,7 @@ ``deontic'' logics, which are designed to model reasoning about moral and ethical obligations. Depending on whether the primary motivation for introducing these systems is philosophical, -mathematical, or computational, you may find such creatures studies +mathematical, or computational, you may find such creatures studied under the rubric of mathematical logic, philosophical logic, artificial intelligence, cognitive science, or elsewhere. diff --git a/content/first-order-logic/beyond/second-order-logic.tex b/content/first-order-logic/beyond/second-order-logic.tex index 35869f541..95fe2f28a 100644 --- a/content/first-order-logic/beyond/second-order-logic.tex +++ b/content/first-order-logic/beyond/second-order-logic.tex @@ -53,7 +53,7 @@ \] where $\Subst{!A}{\lambd[\vec x][!B(\vec x)]}{R}$ denotes the result of replacing every atomic !!{formula} of the form -$\Obj{R}{t_1,\dots,t_k}$ in~$!A$ by $!B(t_1, \dots, t_k)$. This last +$\Atom{R}{t_1,\dots,t_k}$ in~$!A$ by $!B(t_1, \dots, t_k)$. This last rule is equivalent to having a {\em comprehension schema}, i.e., an axiom of the form \[ @@ -139,7 +139,7 @@ behavior: \begin{enumerate} \item $\lforall[x][\lnot x' = \Obj 0]$ -\item $\lforall[x][\lforall[y][(s(x) = s(y) \lif x = y)]]$ +\item $\lforall[x][\lforall[y][(x' = y' \lif x = y)]]$ \item $\lforall[x][(x + \Obj 0) = x]$ \item $\lforall[x][\lforall[y][(x + y') = (x + y)']]$ \item $\lforall[x][(x \times \Obj 0) = \Obj 0]$ diff --git a/content/first-order-logic/completeness/compactness-direct.tex b/content/first-order-logic/completeness/compactness-direct.tex index 19e31ad82..aa29c084d 100644 --- a/content/first-order-logic/completeness/compactness-direct.tex +++ b/content/first-order-logic/completeness/compactness-direct.tex @@ -136,10 +136,24 @@ \olref[mod]{prop:quant-termmodel} did not rely on the fact that $\Gamma^*$ is consistent (or !!{complete} or saturated, for that matter), but just on the fact that $\Struct{M(\Gamma^*)}$ is covered.}{} +\iftag{FOL}{If identity occurs, instead use the quotient construction +of \olref[ide]{defn:term-model-factor}, with $t \approx t'$ iff +$\eq[t][t'] \in \Gamma^*$ for closed terms. Completeness and finite +satisfiability of $\Gamma^*$ establish reflexivity, symmetry, +transitivity, and compatibility with functions and predicates: a +failure of any one would put the finitely many relevant identities +and the negation of their semantic consequence into $\Gamma^*$, +an unsatisfiable finite subset. Thus the quotient interpretations +are well defined. It is covered by closed terms, and its atomic +identity case is exactly +$\equivrep{t}{\approx} = \equivrep{t'}{\approx}$ iff +$\eq[t][t'] \in \Gamma^*$. The truth lemma in \olref[ide]{lem:truth} +then uses the same finite-satisfiability replacements below.}{} The proof of the Truth Lemma (\olref[mod]{lem:truth}) goes through if -we replace references to \olref[ccs]{prop:ccs}\iftag{FOL}{ and +we replace references to \olref[ccs]{prop:ccs} by references to +\olref{prop:fsat-ccs}\iftag{FOL}{, and references to \olref[hen]{prop:saturated-instances} by references to -\olref{prop:fsat-ccs} and \olref{prop:fsat-instances}}. +\olref{prop:fsat-instances}}{}. \end{proof} \tagprob{FOL} diff --git a/content/first-order-logic/completeness/compactness.tex b/content/first-order-logic/completeness/compactness.tex index 37149d2c9..857ea2a02 100644 --- a/content/first-order-logic/completeness/compactness.tex +++ b/content/first-order-logic/completeness/compactness.tex @@ -32,7 +32,7 @@ \begin{thm}[Compactness Theorem] \ollabel{thm:compactness} -The following hold for any sentences $\Gamma$ and $!A$: +The following hold for any set of sentences $\Gamma$ and sentence $!A$: \begin{enumerate} \item $\Gamma \Entails !A$ iff there is a finite $\Gamma_0 \subseteq \Gamma$ such that $\Gamma_0 \Entails !A$. @@ -89,18 +89,18 @@ \iftag{FOL}{% \begin{ex} -In every model~$\Struct{M}$ of a theory~$\Gamma$, each term~$t$ of +In every model~$\Struct{M}$ of a theory~$\Gamma$, each closed term~$t$ of course picks out !!a{element} of~$\Domain{M}$. Can we guarantee that it is also true that every !!{element} of~$\Domain{M}$ is picked out -by some term or other? In other words, are there theories~$\Gamma$ all +by some closed term or other? In other words, are there theories~$\Gamma$ all models of which are covered? The compactness theorem shows that this is not the case if $\Gamma$ has infinite models. Here's how to see this: Let $\Struct{M}$ be an infinite model of~$\Gamma$, and let $c$ be !!a{constant} not in the language of~$\Gamma$. Let $\Delta$ be the -set of all sentences $\eq/[c][t]$ for $t$ a term in the +set of all sentences $\eq/[c][t]$ for $t$ a closed term in the language~$\Lang{L}$ of~$\Gamma$, i.e., \[ - \Delta = \Setabs{\eq/[c][t]}{t \in \Trm[L]}. + \Delta = \Setabs{\eq/[c][t]}{t \in \Trm[L]\text{ is closed}}. \] A finite subset of $\Gamma \cup \Delta$ can be written as $\Gamma' \cup \Delta'$, with $\Gamma' \subseteq \Gamma$ and $\Delta' \subseteq @@ -115,9 +115,9 @@ every finite subset $\Gamma' \cup \Delta'$ of $\Gamma \cup \Delta$. So every finite subset of $\Gamma \cup \Delta$ is satisfiable. By compactness, $\Gamma \cup \Delta$ itself is satisfiable. So there are -models~$\Sat{M}{\Gamma \cup \Delta}$. Every such $\Struct{M}$ is a +models~$\Sat{M}{\Gamma \cup \Delta}$. The reduct of every such $\Struct{M}$ to $\Lang{L}$ is a model of~$\Gamma$, but is not covered, since $\Value{c}{M} \neq -\Value{t}{M}$ for all terms~$t$ of~$\Lang{L}$. +\Value{t}{M}$ for all closed terms~$t$ of~$\Lang{L}$. \end{ex} \begin{ex} @@ -142,7 +142,7 @@ \] (where $\num{k} = (\Obj{1} + (\Obj{1} + \dots + (\Obj{1} + \Obj{1})\dots))$ with $k$~$\Obj{1}$'s). For any finite -subset~$\Delta_0$ of~$\Delta$ there is a~$K$ such that for all the +subset~$\Delta_0$ of~$\Delta$ there is a positive integer~$K$ such that all the !!{sentence}s $c \times \num{k} < \Obj{1}$ in~$\Delta_0$ have $k < K$. If we expand $\Struct{Q}$ to~$\Struct{Q'}$ with $\Assign{c}{Q'} = 1/K$ we have that $\Sat{Q'}{\Gamma_0 \cup \Delta_0}$ for any finite @@ -187,8 +187,8 @@ !!{structure}s. Then $\Delta \cup \Lambda$ is finitely satisfiable. Why? Suppose $\Delta' \cup \Lambda' \subseteq \Delta \cup \Lambda$ is finite with $\Delta' \subseteq \Delta$ and $\Lambda' -\subseteq \Lambda$. Let $n$ be the largest number such that $!A_{\ge n} -\in \Delta'$. $\Lambda$, being satisfied in all finite structures, has +\subseteq \Lambda$. If $\Delta'$ is empty, let $n=1$; otherwise let $n$ be the +largest number such that $!A_{\ge n} \in \Delta'$. $\Lambda$, being satisfied in all finite structures, has a model~$\Struct{M}$ with finitely many but $\ge n$ !!{element}s. But then $\Sat{M}{\Delta' \cup \Lambda'}$. By compactness, $\Delta \cup \Lambda$ has an infinite model, contradicting the assumption that diff --git a/content/first-order-logic/completeness/complete-consistent-sets.tex b/content/first-order-logic/completeness/complete-consistent-sets.tex index c172ac985..5fd59a8ed 100755 --- a/content/first-order-logic/completeness/complete-consistent-sets.tex +++ b/content/first-order-logic/completeness/complete-consistent-sets.tex @@ -38,7 +38,7 @@ !!{sentence}~$!A$, either $!A$ or its negation $\lnot !A$, but not both. This is true in particular for \iftag{FOL}{atomic !!{sentence}s}{propositional variables}, so from !!a{complete} -consistent set\iftag{FOL}{ in a language suitably expanded by +consistent set\iftag{FOL}{ that is saturated in a language suitably expanded by !!{constant}s}{}, we can construct \iftag{FOL}{!!a{structure}}{!!a{valuation}} where the \iftag{FOL}{interpretation of !!{predicate}s}{truth value assigned to diff --git a/content/first-order-logic/completeness/construction-of-model.tex b/content/first-order-logic/completeness/construction-of-model.tex index ed9f84ba5..d709b2af6 100644 --- a/content/first-order-logic/completeness/construction-of-model.tex +++ b/content/first-order-logic/completeness/construction-of-model.tex @@ -131,7 +131,7 @@ $\Sat{M(\Gamma^*)}{\lexists[x][!A(x)]}$ iff for at least one variable assignment~$s$, $\Sat{M(\Gamma^*)}{!A(x)}[s]$. As $\Domain{M(\Gamma^*)}$ consists of the closed terms of~$\Lang{L}$, - this is the case iff there is at least one closed term~$t$ such + this is the case iff there are a variable assignment~$s$ and a closed term~$t$ such that $s(x) = t$ and $\Sat{M(\Gamma^*)}{!A(x)}[s]$. By \olref[fol][syn][ext]{prop:ext-formulas}, $\Sat{M(\Gamma^*)}{!A(x)}[s]$ iff $\Sat{M(\Gamma^*)}{!A(t)}[s]$, @@ -143,8 +143,8 @@ $\Sat{M(\Gamma^*)}{\lforall[x][!A(x)]}$ iff for every variable assignment $s$, $\Sat{M(\Gamma^*)}{!A(x)}[s]$. Recall that $\Domain{M(\Gamma^*)}$ consists of the closed terms of~$\Lang{L}$, - so for every closed term~$t$, $s(x) = t$ is such a variable - assignment, and for any variable assignment, $s(x)$ is some closed + so for every closed term~$t$, there is a variable assignment~$s$ + such that $s(x) = t$, and for any variable assignment, $s(x)$ is some closed term~$t$. By \olref[fol][syn][ext]{prop:ext-formulas}, $\Sat{M(\Gamma^*)}{!A(x)}[s]$ iff $\Sat{M(\Gamma^*)}{!A(t)}[s]$, where $s(x) = t$. By \olref[fol][syn][ass]{prop:sentence-sat-true}, @@ -235,24 +235,38 @@ \lif !C) \in \Gamma^*$ (by \olref[ccs]{prop:ccs}\olref[ccs]{prop:ccs-if}).}}}{} +\tagitem{prvIff}{% +\iftag{probIff}{% + \indcase!{!A}{!B \liff !C}{}}{% + \indcase{!A}{!B \liff !C} + {By the propositional rules and + \olref[ccs]{prop:ccs}\olref[ccs]{prop:ccs-prov-in}, together with + \olref[ccs]{prop:ccs}\olref[ccs]{prop:ccs-if} for the two + implications, $(!B\liff !C)\in\Gamma^*$ iff either both + $!B$ and $!C$ belong to~$\Gamma^*$ or neither does. + By the induction hypotheses, this holds iff $!B$ and $!C$ have + the same truth value in + \iftag{FOL}{$\Struct{M(\Gamma^*)}$}{$\pAssign{v(\Gamma^*)}$}, + which is exactly the satisfaction condition for $!B\liff !C$.}}}{} + \iftag{FOL}{% \tagitem{prvAll}{% \iftag{probAll}{% \indcase!{!A}{\lforall[x][!B(x)]}{}}{% \indcase{!A}{\lforall[x][!B(x)]}{$\Sat{M(\Gamma^*)}{\indfrm}$ iff - $\Sat{M(\Gamma^*)}{!B(t)}$ for all terms~$t$ + $\Sat{M(\Gamma^*)}{!B(t)}$ for all closed terms~$t$ (\olref{prop:quant-termmodel}). By induction hypothesis, this - is the case iff $!B(t) \in \Gamma^*$ for all terms~$t$, by + is the case iff $!B(t) \in \Gamma^*$ for all closed terms~$t$, by \olref[hen]{prop:saturated-instances}, this in turn is the case - iff $\lforall[x][!A(x)] \in \Gamma^*$.}}}{} + iff $\lforall[x][!B(x)] \in \Gamma^*$.}}}{} \tagitem{prvEx}{% \iftag{probEx}{% \indcase!{!A}{\lexists[x][!B(x)]}{}}{% \indcase{!A}{\lexists[x][!B(x)]}{$\Sat{M(\Gamma^*)}{\indfrm}$ iff - $\Sat{M(\Gamma^*)}{!B(t)}$ for at least one term~$t$ + $\Sat{M(\Gamma^*)}{!B(t)}$ for at least one closed term~$t$ (\olref{prop:quant-termmodel}). By induction hypothesis, this - is the case iff $!B(t) \in \Gamma^*$ for at least one term~$t$. + is the case iff $!B(t) \in \Gamma^*$ for at least one closed term~$t$. By \olref[hen]{prop:saturated-instances}, this in turn is the case iff $\lexists[x][!B(x)] \in \Gamma^*$.}}}{} }{} @@ -260,7 +274,7 @@ \end{proof} -\tagprob[FOL]{probOr,probAnd,probIf,probEx,probAll} +\tagprob[FOL]{probOr,probAnd,probIf,probIff,probEx,probAll} \begin{prob} Complete the proof of \olref[fol][com][mod]{lem:truth}. @@ -268,7 +282,7 @@ \tagendprob -\tagprob[notFOL]{probOr,probAnd,probIf} +\tagprob[notFOL]{probOr,probAnd,probIf,probIff} \begin{prob} Complete the proof of \olref[pl][com][mod]{lem:truth}. diff --git a/content/first-order-logic/completeness/downward-ls.tex b/content/first-order-logic/completeness/downward-ls.tex index 5db185696..f50c23780 100644 --- a/content/first-order-logic/completeness/downward-ls.tex +++ b/content/first-order-logic/completeness/downward-ls.tex @@ -41,7 +41,7 @@ If $\Gamma$ is consistent and contains no sentences in which identity appears, then the !!{structure}~$\Struct M$ delivered by the proof of the completeness theorem has a domain $\Domain{M}$ identical to the set -of terms of the language~$\Lang L'$. So $\Struct{M}$ is +of closed terms of the language~$\Lang L'$. So $\Struct{M}$ is !!{denumerable}, since $\Trm[L']$ is. \end{proof} diff --git a/content/first-order-logic/completeness/henkin-expansions.tex b/content/first-order-logic/completeness/henkin-expansions.tex index 17f6331f8..05a0112f4 100755 --- a/content/first-order-logic/completeness/henkin-expansions.tex +++ b/content/first-order-logic/completeness/henkin-expansions.tex @@ -150,7 +150,7 @@ We'll now show that \emph{complete}, consistent sets which are saturated have the property that \iftag{prvAll}{it contains a universally quantified !!{sentence} iff it contains all its - instances}{}\iftag{defAll,defEx}{}{ and }\iftag{prvAll}{it contains an + instances}{}\iftag{defAll,defEx}{}{ and }\iftag{prvEx}{it contains an existentially quantified !!{sentence} iff it contains at least one instance}{}. We'll use this to show that the !!{structure} we'll generate from a complete, consistent, saturated set makes all its diff --git a/content/first-order-logic/completeness/identity.tex b/content/first-order-logic/completeness/identity.tex index 1534c8576..7f4ab7640 100644 --- a/content/first-order-logic/completeness/identity.tex +++ b/content/first-order-logic/completeness/identity.tex @@ -66,7 +66,7 @@ \item If $\Gamma^* \Proves \eq[t][t']$, then \[ \Gamma^* \Proves -\eq[\Atom{f}{t_1,\dots,t_{i-1},t,t_{i+1},,\dots,t_n}][\Atom{f}{t_1,\dots,t_{i-1},t',t_{i+1},\dots,t_n}] +\eq[\Atom{f}{t_1,\dots,t_{i-1},t,t_{i+1},\dots,t_n}][\Atom{f}{t_1,\dots,t_{i-1},t',t_{i+1},\dots,t_n}] \] for every $n$-place !!{function}~$f$ and closed terms $t_1$, \dots, $t_{i-1}$, $t_{i+1}$, \dots,~$t_n$. @@ -86,11 +86,11 @@ \begin{defn} Suppose $\Gamma^*$ is a consistent and !!{complete} set in a language~$\Lang L$, $t$ is a closed term, and $\approx$ as in the -previous definition. Then: +previous definition. Let $T_0$ be the set of closed terms of $\Lang L$. Then: \[ -\equivrep{t}{\approx} = \Setabs{t'}{t'\in \Trm[L], t \approx t'} +\equivrep{t}{\approx} = \Setabs{t'}{t'\in T_0, t \approx t'} \] -and $\equivclass{\Trm[L]}{\approx} = \Setabs{\equivrep{t}{\approx}}{t \in \Trm[L]}$. +and $\equivclass{T_0}{\approx} = \Setabs{\equivrep{t}{\approx}}{t \in T_0}$. \end{defn} \begin{defn} @@ -99,7 +99,7 @@ for~$\Gamma^*$ from \olref[mod]{defn:termmodel}. Then $\Struct{\equivclass{M}{\approx}}$ is the following !!{structure}: \begin{enumerate} -\item $\Domain{\equivclass{M}{\approx}} = \equivclass{\Trm[L]}{\approx}$. +\item $\Domain{\equivclass{M}{\approx}} = \equivclass{T_0}{\approx}$. \item $\Assign{c}{\equivclass{M}{\approx}} = \equivrep{c}{\approx}$ \item $\Assign{f}{\equivclass{M}{\approx}}(\equivrep{t_1}{\approx}, \dots, \equivrep{t_n}{\approx}) = \equivrep{\Atom{f}{t_1,\dots, t_n}}{\approx}$ @@ -113,7 +113,7 @@ \begin{explain} Note that we have defined $\Assign{f}{\equivclass{M}{\approx}}$ and $\Assign{R}{\equivclass{M}{\approx}}$ for elements of -$\equivclass{\Trm[L]}{\approx}$ by referring to them as +$\equivclass{T_0}{\approx}$ by referring to them as $\equivrep{t}{\approx}$, i.e., via \emph{representatives}~$t \in \equivrep{t}{\approx}$. We have to make sure that these definitions do not depend on the choice of these representatives, i.e., that for diff --git a/content/first-order-logic/completeness/introduction.tex b/content/first-order-logic/completeness/introduction.tex index 3a716099e..6b8956c40 100644 --- a/content/first-order-logic/completeness/introduction.tex +++ b/content/first-order-logic/completeness/introduction.tex @@ -27,8 +27,8 @@ !!{derivation} system is unable to produce certain !!{derivation}s. But who's to say that just because there are no !!{derivation}s of a certain sort from~$\Gamma$, it's guaranteed that there is -\iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!{valuation}{~$\pAssign{v}$} -with $\iftag{FOL}{\Sat{M}}{\pSat{v}}{\Gamma}$}? Before the +\iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!a{valuation}~$\pAssign{v}$} +with $\iftag{FOL}{\Sat{M}}{\pSat{v}}{\Gamma}$? Before the completeness theorem was first proved---in fact before we had the !!{derivation} systems we now do---the great German mathematician David Hilbert held the view that consistency of mathematical theories @@ -57,10 +57,10 @@ $\Gamma$ is consistent, then $\Gamma$ itself must be consistent. Although the compactness theorem follows from the completeness theorem -via the detour through !!{derivation}s, it is also possible to use the +via the detour through !!{derivation}s, it is also possible to use \emph{the proof of} the completeness theorem to establish it directly. For what the proof does is take a set of !!{sentence}s with -a certain property---consistency---and constructs !!a{structure} out +a certain property---consistency---and constructs \iftag{FOL}{!!a{structure}}{!!a{valuation}} out of this set that has certain properties (in this case, that it satisfies the set). Almost the very same construction can be used to directly establish compactness, by starting from ``finitely diff --git a/content/first-order-logic/completeness/lindenbaums-lemma.tex b/content/first-order-logic/completeness/lindenbaums-lemma.tex index 7f89a297f..edfd9dfde 100755 --- a/content/first-order-logic/completeness/lindenbaums-lemma.tex +++ b/content/first-order-logic/completeness/lindenbaums-lemma.tex @@ -75,7 +75,7 @@ From this it follows that $\Gamma^*$ is consistent. Here's why: Let $\Gamma' \subseteq \Gamma^*$ be finite. Each $!B \in \Gamma'$ is also -in~$\Gamma_i$ for some~$i$. Let $n$ be the largest of these. Since +in~$\Gamma_i$ for some~$i$. If $\Gamma\prime$ is empty, let $n=0$; otherwise let $n$ be the largest of these. Since $\Gamma_i \subseteq \Gamma_n$ if $i \le n$, every $!B \in \Gamma'$ is also $\in \Gamma_n$, i.e., $\Gamma' \subseteq \Gamma_n$, and $\Gamma_n$~is consistent. So, every finite subset $\Gamma' \subseteq diff --git a/content/first-order-logic/completeness/maximally-consistent-sets.tex b/content/first-order-logic/completeness/maximally-consistent-sets.tex index 8ce29e7d1..3b34df590 100755 --- a/content/first-order-logic/completeness/maximally-consistent-sets.tex +++ b/content/first-order-logic/completeness/maximally-consistent-sets.tex @@ -104,14 +104,14 @@ For the forward direction, suppose $(!A \land !B) \in \Gamma$. Then $\Gamma \Proves !A \land !B$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-land-left},prfND/{fol:ntd:prv:prop:provability-land-left}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-land-left},prfND/{fol:ntd:ppr:prop:provability-land-left}}, $\Gamma \Proves !A$ and $\Gamma \Proves !B$. By \olref{prop:mcs-prov-in}, $!A \in \Gamma$ and $!B \in \Gamma$, as required. For the reverse direction, let $!A \in \Gamma$ and $!B \in \Gamma$. Then $\Gamma \Proves !A$ and $\Gamma \Proves !B$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-land-right},prfND/{fol:ntd:prv:prop:provability-land-right}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-land-right},prfND/{fol:ntd:ppr:prop:provability-land-right}}, $\Gamma \Proves !A \land !B$. By \olref{prop:mcs-prov-in}, $(!A \land !B) \in \Gamma$.}} @@ -123,14 +123,15 @@ \notin \Gamma$ and $!B \notin \Gamma$. We want to show that $(!A \lor !B) \notin \Gamma$. Since $\Gamma$ is maximally consistent, $\Gamma \cup \{!A\} \Proves \lfalse$ and $\Gamma \cup \{!B\} \Proves \lfalse$. -By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-lor-left},prfND/{fol:ntd:prv:prop:provability-lor-left}}, +Also, \olref{prop:mcs-either-or} gives $\lnot !A,\lnot !B \in \Gamma$. +By transitivity and +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lor},prfND/{fol:ntd:ppr:prop:provability-lor}}, $\Gamma \cup \{(!A \lor !B)\}$ is inconsistent. Hence, $(!A \lor !B) \notin \Gamma$, as required. For the reverse direction, suppose that $!A \in \Gamma$ or $!B \in \Gamma$. Then $\Gamma \Proves !A$ or $\Gamma \Proves !B$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-lor-right},prfND/{fol:ntd:prv:prop:provability-lor-right}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lor},prfND/{fol:ntd:ppr:prop:provability-lor}}, $\Gamma \Proves !A \lor !B$. By \olref{prop:mcs-prov-in}, $(!A \lor !B) \in \Gamma$, as required.}} @@ -141,20 +142,20 @@ For the forward direction, let $(!A \lif !B) \in \Gamma$, and suppose to the contrary that $!A \in \Gamma$ and $!B \notin \Gamma$. On these assumptions, $\Gamma \Proves !A \lif !B$ and $\Gamma \Proves !A$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-mp},prfND/{fol:ntd:prv:prop:provability-mp}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lif-left},prfND/{fol:ntd:ppr:prop:provability-lif-left}}, $\Gamma \Proves !B$. But then by \olref{prop:mcs-prov-in}, $!B \in \Gamma$, contradicting the assumption that $!B \notin \Gamma$. For the reverse direction, first consider the case where $!A \notin \Gamma$. By \olref{prop:mcs-either-or}, $\lnot !A \in \Gamma$ and hence $\Gamma \Proves \lnot !A$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-lif},prfND/{fol:ntd:prv:prop:provability-lif}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lif-right},prfND/{fol:ntd:ppr:prop:provability-lif-right}}, $\Gamma \Proves !A \lif !B$. Again by \olref{prop:mcs-prov-in}, we get that $(!A \lif !B) \in \Gamma$, as required. Now consider the case where $!B \in \Gamma$. Then $\Gamma \Proves !B$ and by -\tagrefs{prfSC/{fol:seq:prv:prop:provability-lif},prfND/{fol:ntd:prv:prop:provability-lif}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lif-right},prfND/{fol:ntd:ppr:prop:provability-lif-right}}, $\Gamma \Proves !A \lif !B$. By \olref{prop:mcs-prov-in}, $(!A \lif !B) \in \Gamma$.}} \end{enumerate} diff --git a/content/first-order-logic/completeness/outline.tex b/content/first-order-logic/completeness/outline.tex index 8a593dfad..d26f07f6a 100644 --- a/content/first-order-logic/completeness/outline.tex +++ b/content/first-order-logic/completeness/outline.tex @@ -65,15 +65,15 @@ This suggests the following idea: we add additional !!{formula}s to~$\Gamma$ so as to (a)~keep the resulting set consistent and -(b)~make sure that for every possible atomic !!{sentence}~$!A$, either +(b)~make sure that for every possible !!{sentence}~$!A$, either $!A$ is in the resulting set, or $\lnot !A$ is, and (c)~such that, whenever $!A \land !B$ is in the set, so are both $!A$ and $!B$, if $!A \lor !B$ is in the set, at least one of $!A$ or $!B$ is also, etc. -We keep doing this (potentially forever). Call the set of all +We keep doing this (potentially forever). Call the set consisting of $\Gamma$ and all !!{formula}s so added~$\Gamma^*$. Then our construction above would provide us with \iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!a{valuation}~$\pAssign{v}$} for which we could prove, by induction, that it satisfies all sentences -in~$\Gamma^*$, and hence also all sentence in~$\Gamma$ +in~$\Gamma^*$, and hence also all sentences in~$\Gamma$ since $\Gamma \subseteq \Gamma^*$. It turns out that guaranteeing (a) and~(b) is enough. A set of sentences for which (b) holds is called \emph{complete}. So our task will be to extend the consistent @@ -104,26 +104,25 @@ interpret $\Obj c_i$, just take the set of !!{constant}s itself as the domain. Then $\Struct M$ can assign every !!{constant} to itself: $\Assign{\Obj c_i}{M} = \Obj c_i$. But why not go all the way: let -$\Domain{M}$ be all \emph{terms} of the language!{} If we do this, +$\Domain{M}$ be all \emph{closed terms} of the language!{} If we do this, there is an obvious assignment of functions (that take terms as arguments and have terms as values) to !!{function}s: we assign to the -!!{function}~$\Obj f^n_i$ the function which, given $n$ terms $t_1$, +!!{function}~$\Obj f^n_i$ the function which, given $n$ closed terms $t_1$, \dots,~$t_n$ as input, produces the term $\Obj f^n_i(t_1, \dots, t_n)$ as value. The last piece of the puzzle is what to do with~$\eq$. The !!{predicate}~$\eq$ has a fixed interpretation: $\Sat{M}{\eq[t][t']}$ iff $\Value{t}{M} = \Value{t'}{M}$. Now if we set things up so that the -!!{value} of a term~$t$ is $t$ itself, then this !!{structure} +!!{value} of a closed term~$t$ is $t$ itself, then this !!{structure} will make \emph{no} sentence of the form $\eq[t][t']$ true unless $t$ and $t'$ are one and the same term. And of course this is a problem, since basically every interesting theory in a language with !!{function}s will have as theorems sentences $\eq[t][t']$ where $t$ and $t'$ are not the same term (e.g., in theories of arithmetic: $\eq[(\Obj 0+ \Obj 0)][\Obj 0]$). To solve -this problem, we change the domain of~$\Struct M$: instead of using terms as -the objects in~$\Domain{M}$, we use sets of terms, and each set is so -that it contains all those terms which the sentences in~$\Gamma$ +this problem, we change the domain of~$\Struct M$: instead of using closed terms as +the objects in~$\Domain{M}$, we use sets of terms, and each set contains all those terms which the sentences in~$\Gamma^*$ require to be equal. So, e.g., if $\Gamma$ is a theory of arithmetic, one of these sets will contain: $\Obj 0$, $(\Obj 0 + \Obj 0)$, $(\Obj 0 \times \Obj 0)$, etc. This will be the set we assign to $\Obj 0$, diff --git a/content/first-order-logic/introduction/first-order-logic.tex b/content/first-order-logic/introduction/first-order-logic.tex index 2d9e147ca..f48252600 100644 --- a/content/first-order-logic/introduction/first-order-logic.tex +++ b/content/first-order-logic/introduction/first-order-logic.tex @@ -48,8 +48,8 @@ done, we can also give precise definitions of the other semantical terms such as ``follows from'' or ``is logically true.'' These definitions will make it possible to settle, again with mathematical -precision, whether, e.g., $\lforall[x][(!A(x) \lif !B(x)), -\lexists[x][!A(x)] \Entails \lexists[x][!B(x)]]$. The answer will, of +precision, whether, e.g., $\lforall[x][(!A(x) \lif !B(x))], +\lexists[x][!A(x)] \Entails \lexists[x][!B(x)]$. The answer will, of course, be ``yes.'' If you've already been trained to symbolize sentences of English in first-order logic, you will recognize this as, e.g., the symbolizations of, say, ``All ants are insects, there are @@ -66,8 +66,8 @@ ``natural deduction'' or ``truth trees,'' but there are many others. The purpose of !!{derivation} systems is to provide tools using which the logicians' questions above can be answered: e.g., a natural deduction -!!{derivation} in which $\lforall[x][(!A(x) \lif !B(x))$ and -$\lexists[x][!A(x)]$ are premises and $\lexists[x][!B(x)]]$ is the +!!{derivation} in which $\lforall[x][(!A(x) \lif !B(x))]$ and +$\lexists[x][!A(x)]$ are premises and $\lexists[x][!B(x)]$ is the conclusion (last line) \emph{verifies} that $\lexists[x][!B(x)]$ logically follows from $\lforall[x][(!A(x) \lif !B(x))]$ and $\lexists[x][!A(x)]$. @@ -80,8 +80,8 @@ mathematical proof, e.g., that a formal !!{derivation} of $\lexists[x][!B(x)]$ from premises $\lforall[x][(!A(x) \lif !B(x))]$ and $\lexists[x][!A(x)]$ is possible, if, and only if, $\lforall[x][(!A(x) -\lif !B(x))$ and $\lexists[x][!A(x)]$ together -entail~$\lexists[x][!B(x)]]$. Before this can be done, however, a +\lif !B(x))]$ and $\lexists[x][!A(x)]$ together +entail~$\lexists[x][!B(x)]$. Before this can be done, however, a lot of painstaking work has to be carried out to get the definitions of syntax and semantics correct. diff --git a/content/first-order-logic/introduction/models-theories.tex b/content/first-order-logic/introduction/models-theories.tex index f2927425b..bbfa72a6d 100644 --- a/content/first-order-logic/introduction/models-theories.tex +++ b/content/first-order-logic/introduction/models-theories.tex @@ -21,8 +21,8 @@ big or small do they have to be? But we might also start with a single !!{structure} or collection of !!{structure}s and ask: what !!{sentence}s are true in them? Are there !!{sentence}s that -\emph{characterize} these !!{structure}s in the sense that they, and -only they, are true in them? These kinds of questions are the domain +\emph{characterize} these !!{structure}s in the sense that exactly +these !!{structure}s satisfy all of the chosen !!{sentence}s? These kinds of questions are the domain of \emph{model theory}. They also underlie the \emph{axiomatic method}: describing a collection of !!{structure}s by a set of !!{sentence}s, the axioms of a theory. This is made possible by the @@ -31,7 +31,8 @@ As a very simple example, consider preorders. A preorder is a relation~$R$ on some set~$A$ which is both reflexive and transitive. -A set~$A$ with a two-place relation $R \subseteq A \times A$ on it is +In this example, restrict attention to preorders on nonempty sets. +A nonempty set~$A$ with a two-place relation $R \subseteq A \times A$ on it is exactly what we would need to give !!a{structure} for a first-order language with a single two-place relation symbol~$\Obj P$: we would set $\Domain{M} = A$ and $\Assign{\Obj P}{M} = R$. Since $R$~is a diff --git a/content/first-order-logic/introduction/satisfaction.tex b/content/first-order-logic/introduction/satisfaction.tex index 3ec75b194..8ef50b8e2 100644 --- a/content/first-order-logic/introduction/satisfaction.tex +++ b/content/first-order-logic/introduction/satisfaction.tex @@ -21,7 +21,7 @@ just these three things: $\Domain{M}$, $\Assign{\Obj a}{M} \in \Domain{M}$ and $\Assign{\Obj P}{M} \subseteq \Domain{M}$. The general case will be more complicated, since there will be many !!{predicate}s -and !!{constant}s, the !!{constant}s can have more than one place, and +and !!{constant}s, the !!{predicate}s can have more than one place, and there will also be !!{function}s. This is enough to give a definition of satisfaction for !!{formula}s @@ -60,7 +60,7 @@ v_0$. To this end, we introduce !!{variable} \emph{assignments}. !!^a{variable} assignment is simply a function~$s$ that maps !!{variable}s to !!{element}s of~$\Domain{M}$ (in our example, to one -of $1$, $2$, or~$3$). Since we don't know beforehand which +of $0$, $1$, or~$2$). Since we don't know beforehand which !!{variable}s might appear in !!a{formula} we can't limit which !!{variable}s $s$ assigns values to. The simple solution is to require that $s$ assigns values to \emph{all} !!{variable}s~$\Obj diff --git a/content/first-order-logic/introduction/substitution.tex b/content/first-order-logic/introduction/substitution.tex index bbae5e773..f29ed655c 100644 --- a/content/first-order-logic/introduction/substitution.tex +++ b/content/first-order-logic/introduction/substitution.tex @@ -14,7 +14,7 @@ how the development of syntax and semantics lays the foundation for our more advanced investigations later. Our !!{derivation} systems should let us !!{derive} $\Atom{\Obj P}{\Obj a}$ from $\lforall[\Obj -v_0][\Atom{\Obj P}]{\Obj v_0}$. Maybe we even want to state this as a +v_0][\Atom{\Obj P}{\Obj v_0}]$. Maybe we even want to state this as a rule of inference. However, to do so, we must be able to state it in the most general terms: not just for $\Obj P$, $\Obj a$, and $\Obj v_0$, but for any !!{formula}~$!A$, and term~$t$, and diff --git a/content/first-order-logic/models-theories/expressing-props-of-structures.tex b/content/first-order-logic/models-theories/expressing-props-of-structures.tex index 8d3effa95..43f7df6fd 100644 --- a/content/first-order-logic/models-theories/expressing-props-of-structures.tex +++ b/content/first-order-logic/models-theories/expressing-props-of-structures.tex @@ -26,7 +26,7 @@ !!a{structure}~$\Struct M$ can we express by !!a{sentence} (or perhaps a set of !!{sentence}s) in the language of~$\Struct M$? There are some conditions that we will not be able to express. For instance, -there is no sentence of~$\Lang L_A$ which is only true in a +there is no satisfiable sentence of~$\Lang L_A$ which is only true in a !!{structure}~$\Struct M$ if $\Domain M = \Nat$. We cannot express ``the domain contains only natural numbers.'' But there are ``structural properties'' of !!{structure}s that we perhaps can diff --git a/content/first-order-logic/models-theories/expressing-relations.tex b/content/first-order-logic/models-theories/expressing-relations.tex index 4f4c0a3b3..d54750bee 100644 --- a/content/first-order-logic/models-theories/expressing-relations.tex +++ b/content/first-order-logic/models-theories/expressing-relations.tex @@ -61,7 +61,7 @@ $\eq[\Obj v_1][\Obj v_2']$ expresses the predecessor relation. The !!{formula}s $\lexists[\Obj v_3][(\eq/[\Obj v_3][\Obj 0] \land \eq[\Obj v_2][(\Obj v_1 + \Obj v_3)])]$ and $\lexists[\Obj - v_3][\eq[(\Obj v_1 + {\Obj v_3}')][v_2]]$ both express the $\Obj <$ + v_3][\eq[(\Obj v_1 + {\Obj v_3}')][\Obj v_2]]$ both express the $\Obj <$ relation. This means that the predicate symbol~$<$ is actually superfluous in the language of arithmetic; it can be defined. \end{ex} @@ -82,8 +82,8 @@ \begin{enumerate} \item $n$ is between $i$ and $j$; \item $n$ evenly divides $m$ (i.e., $m$ is a multiple of $n$); -\item $n$ is a prime number (i.e., no number other than $1$ and $n$ evenly - divides~$n$). +\item $n$ is a prime number (i.e., $n > 1$ and no number other than $1$ + and $n$ evenly divides~$n$). \end{enumerate} \end{prob} diff --git a/content/first-order-logic/models-theories/set-theory.tex b/content/first-order-logic/models-theories/set-theory.tex index b04c16a01..e5c629858 100644 --- a/content/first-order-logic/models-theories/set-theory.tex +++ b/content/first-order-logic/models-theories/set-theory.tex @@ -15,7 +15,7 @@ First, it requires a set of axioms for the relation~$\in$. A number of different axiom systems have been developed, sometimes with conflicting properties of~$\in$. The axiom system known as -$\Log{ZFC}$, Zermelo--Fraenkel set theory with the axiom of choice +$\Log{ZFC}$, Zermelo--Fraenkel set theory with the axiom of choice, stands out: it is by far the most widely used and studied, because it turns out that its axioms suffice to prove almost all the things mathematicians expect to be able to prove. But before that can be @@ -84,8 +84,8 @@ this doesn't allow us to use $x \cup y$ or $\Pow{x}$ as if they were terms: we can only use the entire !!{formula}s that define the relations $X \cup Y = Z$ and $\Pow{X} = Y$. In fact, we do not know -that these relations are ever satisfied, i.e., we do not know that -unions and power sets always exist. For instance, the !!{sentence} +from these definitions alone that the relations have a satisfying +output for every input, i.e., that unions and power sets always exist. For instance, the !!{sentence} $\lforall[x][\lexists[y][\Pow{x} = y]]$ is another axiom of~$\Log{ZFC}$ (the power set axiom). @@ -100,7 +100,7 @@ \lforall[v][(v \in u \liff (v = x \lor v = y))]))] \] This says that the !!{element}s~$u$ of~$z$ are exactly those sets which -either have $x$ as its only !!{element} or have $x$ and~$y$ as its +either have $x$ as their only !!{element} or have $x$ and~$y$ as their only !!{element}s (in other words, those sets that are either identical to $\{x\}$ or identical to $\{x, y\}$). Once we have this, we can say further things, e.g., that $X \times Y = Z$: @@ -123,7 +123,7 @@ \lforall[x][(x \in X \lif {}] & (\lexists[y][(y \in Y \land \mathrm{maps}(f, x, y))] \land {}\\ & (\lforall[y][\lforall[y'][((\mathrm{maps}(f, x, y) \land - \mathrm{maps}(f, x, y')) \lif y = y')]])) + \mathrm{maps}(f, x, y')) \lif y = y')]]))) \end{align*} where $\mathrm{maps}(f, x, y)$ abbreviates $\lexists[v][(v \in f \land \tuple{x, y} = v)]$ (this !!{formula} expresses ``$f(x) = y$''). @@ -148,8 +148,9 @@ One might think that set theory requires another axiom that guarantees the existence of a set for every defining property. If $!A(x)$ is a -formula of set theory with the variable~$x$ free, we can consider the -!!{sentence} +formula of set theory with the variable~$x$ free, choose $y$ not +occurring in $!A(x)$. We can consider the universal closure, over any +remaining free parameters, of the following !!{formula} \[ \lexists[y][\lforall[x][(x \in y \liff !A(x))]]. \] @@ -164,10 +165,11 @@ i.e., it states the existence of a set of all sets that are not !!{element}s of themselves. No such set can exist---this is Russell's Paradox. $\Log{ZFC}$, in fact, contains a restricted---and -consistent---version of this principle, the separation principle: +consistent---version of this principle, the separation principle +(again taking universal closure over any remaining free parameters): \[ \lforall[z][\lexists[y][\lforall[x][(x \in y \liff (x \in z \land - !A(x))]]]. + !A(x)))]]]. \] \begin{prob} diff --git a/content/first-order-logic/models-theories/theories.tex b/content/first-order-logic/models-theories/theories.tex index 12c303d64..442313920 100644 --- a/content/first-order-logic/models-theories/theories.tex +++ b/content/first-order-logic/models-theories/theories.tex @@ -20,10 +20,11 @@ & \lforall[x][\lforall[y][\lforall[z][((x < y \land y < z) \lif x < z)]]] \quad \} \end{align*} -It completely captures the intended !!{structure}s: every strict -linear order is a model of this axiom system, and vice versa, if $R$ -is a linear order on a set $X$, then the structure $\Struct M$ with -$\Domain M = X$ and $\Assign{<}{M} = R$ is a model of this theory. +It completely captures the intended !!{structure}s: if $R$ is a strict +linear order on a non-empty set $X$, then the structure $\Struct M$ with +$\Domain M = X$ and $\Assign{<}{M} = R$ is a model of this theory, and +vice versa, if $\Struct M$ is a model of this theory, then +$\Assign{<}{M}$ is a strict linear order on~$\Domain M$. \end{ex} \begin{ex} @@ -56,7 +57,7 @@ \emph{induction schema}. (Actually, the induction schema is a bit more complicated than we let on here.) -The last axiom is an \emph{explicit definition} of~$<$. +The last axiom before the induction schema is an \emph{explicit definition} of~$<$. \end{ex} \begin{ex} @@ -78,7 +79,8 @@ (\eq[u][x] \lor \eq[u][y]))]]]]\\ & \lforall[x][\lexists[y][\lforall[z][(z \in y \liff \lexists[u][(z \in u \land u \in x)])]]]\\ -\intertext{plus all sentences of the form} & +\intertext{plus the universal closures of all formulas of the form below, +where $x$ does not occur in $!A(y)$} & \lexists[x][\lforall[y][(y \in x \liff !A(y))]] \end{align*} The first axiom says that there is a set with no !!{element}s (i.e., diff --git a/content/first-order-logic/natural-deduction/derivations.tex b/content/first-order-logic/natural-deduction/derivations.tex index 72e933e13..df69bafda 100644 --- a/content/first-order-logic/natural-deduction/derivations.tex +++ b/content/first-order-logic/natural-deduction/derivations.tex @@ -16,7 +16,8 @@ We've said what an assumption is, and we've given the rules of inference. !!^{derivation}s in natural deduction are inductively generated from these: each !!{derivation} either is an assumption -on its own, or consists of one, two, or three !!{derivation}s followed +on its own, is the conclusion of a correct inference with no +premises, or consists of one, two, or three !!{derivation}s followed by a correct inference. \end{explain} @@ -25,16 +26,17 @@ assumptions~$\Gamma$ is a finite tree of !!{sentence}s satisfying the following conditions: \begin{enumerate} -\item The topmost !!{sentence}s of the tree are either in $\Gamma$ or - are !!{discharged} by an inference in the tree. +\item Each topmost !!{sentence} is either the conclusion of a correct + inference with no premises or an assumption. Every assumption is in + $\Gamma$ or is !!{discharged} by an inference on its branch. \item The bottommost !!{sentence} of the tree is~$!A$. -\item Every !!{sentence} in the tree except the sentence~$!A$ at - the bottom is a premise of a correct application of an inference - rule whose conclusion stands directly below that !!{sentence} in the - tree. +\item At every node with premises, the complete list of its immediate + predecessors and that node form one correct application of an + inference rule, including the rule's discharge and eigenvariable + conditions. \end{enumerate} We then say that $!A$ is the \emph{conclusion} of the !!{derivation} -and $\Gamma$ its !!{undischarged} assumptions. +and its !!{undischarged} assumptions belong to $\Gamma$. If !!a{derivation} of $!A$ from~$\Gamma$ exists, we say that $!A$ is \emph{!!{derivable}} from~$\Gamma$, or in symbols: $\Gamma \Proves diff --git a/content/first-order-logic/natural-deduction/identity.tex b/content/first-order-logic/natural-deduction/identity.tex index 17aa3d0ec..bfa788911 100644 --- a/content/first-order-logic/natural-deduction/identity.tex +++ b/content/first-order-logic/natural-deduction/identity.tex @@ -63,7 +63,8 @@ \intertext{from the !!{sentence}} & \lexists[x][\lforall[y][(!A(y) \lif \eq[y][x])]] \end{align*} -We develop the !!{derivation} backwards: +Choose distinct constants $a$, $b$, and $c$ not occurring in the +displayed premise or in $!A(x)$. We develop the !!{derivation} backwards: \begin{prooftree} \AxiomC{$\lexists[x][\lforall[y][(!A(y) \lif \eq[y][x])]] \quad \Discharge{!A(a) \land !A(b)}{1}$} diff --git a/content/first-order-logic/natural-deduction/proof-theoretic-notions.tex b/content/first-order-logic/natural-deduction/proof-theoretic-notions.tex index 49589dc77..e19b30686 100644 --- a/content/first-order-logic/natural-deduction/proof-theoretic-notions.tex +++ b/content/first-order-logic/natural-deduction/proof-theoretic-notions.tex @@ -13,7 +13,7 @@ \olsection{Proof-Theoretic Notions} \begin{editorial} -This section collects the definitions the provability relation +This section collects the definitions of the provability relation and consistency for natural deduction. \end{editorial} diff --git a/content/first-order-logic/natural-deduction/propositional-rules.tex b/content/first-order-logic/natural-deduction/propositional-rules.tex index 6dc2d8a09..303786979 100644 --- a/content/first-order-logic/natural-deduction/propositional-rules.tex +++ b/content/first-order-logic/natural-deduction/propositional-rules.tex @@ -110,7 +110,7 @@ \subsection{Rules for $\lfalse$} Note that $\Intro{\lnot}$ and $\FalseCl$ are very similar: The difference is that $\Intro{\lnot}$ derives a negated -!!{sentence}~$\lnot !A$ but $\FalseCl$ a positive !!{sentence}~$!A$. +!!{sentence}~$\lnot !A$ but $\FalseCl$ the !!{sentence}~$!A$ itself. Whenever a rule indicates that some assumption may be discharged, we take this to be a permission, but not a requirement. E.g., in the diff --git a/content/first-order-logic/natural-deduction/proving-things-quant.tex b/content/first-order-logic/natural-deduction/proving-things-quant.tex index 742250289..2799b8b4d 100644 --- a/content/first-order-logic/natural-deduction/proving-things-quant.tex +++ b/content/first-order-logic/natural-deduction/proving-things-quant.tex @@ -36,8 +36,9 @@ we will proceed by setting up the !!{derivation} so we can use the \Elim{\lexists} rule. Here we must pay attention to the eigenvariable condition, and choose a constant that does not appear in -$\lexists[x][!A(x)]$ or any assumptions that it depends on. -(Since no !!{constant}s appear, however, any choice will do fine.) +$\lexists[x][\lnot !A(x)]$, the conclusion, or any other +!!{undischarged} assumptions. Choose it fresh for the actual matrix +$!A(x)$, which may contain !!{constant}s. \begin{prooftree} \AxiomC{$\Discharge{\lexists[x][\lnot !A(x)]}{1}$} \AxiomC{$\Discharge{\lnot !A(a)}{2}$} @@ -89,7 +90,8 @@ check at this point that the eigenvariable condition has not been violated. Since the only rule we applied that is subject to the eigenvariable condition was \Elim{\exists}, and the eigenvariable~$a$ -does not occur in any assumptions it depends on, this is a +does not occur in the existential premise, the conclusion, or any +assumptions left !!{undischarged} by this inference, this is a correct !!{derivation}. \end{ex} @@ -112,8 +114,10 @@ We have two premises to work with. To use the first, i.e., try to find !!a{derivation} of $\lexists[x][!C(x, b)]$ from $\lexists[x][(!A(x) \land !B(x))]$ we would use the \Elim{\lexists} rule. Since it has -an eigenvariable condition, we will apply that rule first. We get the -following: +an eigenvariable condition, we will apply that rule first. Choose a +constant $a$ distinct from $b$ and absent from both original +assumptions and from the conclusion $\lexists[x][!C(x,b)]$. +We get the following: \begin{prooftree} \AxiomC{$\lexists[x][(!A(x) \land !B(x))]$} \AxiomC{$\Discharge{!A(a) \land !B(a)}{1}$} diff --git a/content/first-order-logic/natural-deduction/proving-things.tex b/content/first-order-logic/natural-deduction/proving-things.tex index 09f8780f8..6e312b6da 100644 --- a/content/first-order-logic/natural-deduction/proving-things.tex +++ b/content/first-order-logic/natural-deduction/proving-things.tex @@ -64,7 +64,7 @@ look at the logical connectives in the conclusion: $\lnot$, $\lor$, and $\lif$. We only care at the moment about the first occurrence of $\lif$ because it is the !!{main operator} of the -!!{sentence} in the end-sequent, while $\lnot$, $\lor$ and the second +!!{sentence} at the bottom of the !!{derivation}, while $\lnot$, $\lor$ and the second occurrence of $\lif$ are inside the scope of another connective, so we will take care of those later. We therefore start with the \Intro{\lif} rule. A correct application must look like this: @@ -115,7 +115,7 @@ For the two missing parts of the !!{derivation}, we need !!{derivation}s of $!B$ from $\lnot !A$ and $!A$ in the middle, and -from $!A$ and $!B$ on the left. Let's take the former first. $\lnot +from $!A$ and $!B$ on the right. Let's take the former first. $\lnot !A$ and $!A$ are the two premises of \Elim{\lnot}: \begin{prooftree} \AxiomC{$\Discharge{\lnot !A}{2}$} diff --git a/content/first-order-logic/natural-deduction/quantifier-rules.tex b/content/first-order-logic/natural-deduction/quantifier-rules.tex index 0962ebd52..4d978d873 100644 --- a/content/first-order-logic/natural-deduction/quantifier-rules.tex +++ b/content/first-order-logic/natural-deduction/quantifier-rules.tex @@ -55,10 +55,9 @@ \subsection{Rules for $\lexists$} with the two premises (other than the assumptions $!A(a)$). We call $a$ the \emph{eigenvariable} of the \Elim{\lexists} inference. -The condition that an eigenvariable neither occur in the premises nor -in any assumption that is !!{undischarged} in the !!{derivation}s -leading to the premises for the \Intro{\lforall} or \Elim{\lexists} -inference is called the \emph{eigenvariable condition}. +The respective nonoccurrence restrictions just stated for +\Intro{\lforall} and \Elim{\lexists} are called the +\emph{eigenvariable conditions}. \begin{explain} Recall the convention that when $!A$ is !!a{formula} with the @@ -97,7 +96,7 @@ \subsection{Rules for $\lexists$} \AxiomC{$\Discharge{!A(a)}{1}$} \RightLabel{*\Intro{\lforall}} \UnaryInfC{$\lforall[x][!A(x)]$} - \RightLabel{\Elim{\lexists}} + \DischargeRule{\Elim{\lexists}}{1} \BinaryInfC{$\lforall[x][!A(x)]$} \end{prooftree} However, $\lexists[x][!A(x)] \Entails/ \lforall[x][!A(x)]$. diff --git a/content/first-order-logic/natural-deduction/rules-and-proofs.tex b/content/first-order-logic/natural-deduction/rules-and-proofs.tex index c963a4273..7925ef588 100644 --- a/content/first-order-logic/natural-deduction/rules-and-proofs.tex +++ b/content/first-order-logic/natural-deduction/rules-and-proofs.tex @@ -12,25 +12,30 @@ \olsection{Rules and \usetoken{P}{derivation}} +In this chapter, $\ltrue$ abbreviates $(\lfalse \lif \lfalse)$ and +$(!A \liff !B)$ abbreviates $((!A \lif !B) \land (!B \lif !A))$. +Expand these abbreviations recursively before applying the rules. + \begin{explain} Natural deduction systems are meant to closely parallel the informal reasoning used in mathematical proof (hence it is somewhat ``natural''). Natural deduction proofs begin with assumptions. Inference rules are then applied. Assumptions are ``!!{discharged}'' -by the \Intro{\lnot}, \Intro{\lif}, \iftag{FOL}{\Elim{\lor} and +by the \Intro{\lnot}, \Intro{\lif}, \FalseCl, \iftag{FOL}{\Elim{\lor} and \Elim{\lexists}}{ and \Elim{\lor}} inference rules, and the label of the !!{discharged} assumption is placed beside the inference for clarity. \end{explain} \begin{defn}[Assumption] -An \emph{assumption} is any !!{sentence} -in the topmost position of any branch. +An \emph{assumption} is a !!{sentence} in the topmost position of a +branch that is not justified by an inference with no premises. \end{defn} !!^{derivation}s in natural deduction are certain trees of -!!{sentence}s, where the topmost !!{sentence}s are assumptions, and if -!!a{sentence} stands below one, two, or three other sequents, it must +!!{sentence}s, where each topmost !!{sentence} is an assumption or +the conclusion of an inference with no premises, and if +!!a{sentence} stands below one, two, or three other !!{sentence}s, it must follow correctly by a rule of inference. The !!{sentence}s at the top of the inference are called the \emph{premises} and the !!{sentence} below the \emph{conclusion} of the inference. The rules come in @@ -42,10 +47,10 @@ also assign labels to both the assumption and the inference. This is indicated by writing the assumption as ``$\Discharge{!A}{n}$.'' -% Only include this sentence is on of \land, lor, lif or lnot is defined. +% Only include this sentence if one of \land, lor, lif or lnot is defined. -\iftag{notprvNot,notprvAnd,notprvOr,notprvIf}{}% - {It is customary to consider rules for all the !!{operator}s $\land$, $\lor$, $\lif$, $\lnot$, and $\lfalse$, even if some of those are defined.} +\iftag{defNot,defAnd,defOr,defIf}% + {It is customary to consider rules for all the !!{operator}s $\land$, $\lor$, $\lif$, $\lnot$, and $\lfalse$, even if some of those are defined.}{} diff --git a/content/first-order-logic/natural-deduction/soundness-identity.tex b/content/first-order-logic/natural-deduction/soundness-identity.tex index 44f0c7570..830bf1223 100644 --- a/content/first-order-logic/natural-deduction/soundness-identity.tex +++ b/content/first-order-logic/natural-deduction/soundness-identity.tex @@ -42,6 +42,8 @@ \olref[fol][syn][ext]{prop:ext-formulas}, $\Sat{M}{!A(t_1)}[s]$ iff $\Sat{M}{!A(x)}[\Subst{s}{m}{x}]$ iff $\Sat{M}{!A(t_2)}[s]$. Since $\Sat{M}{!A(t_1)}$, we have $\Sat{M}{!A(t_2)}$. +The other identity-elimination rule is sound by the same equivalence +with the roles of $t_1$ and $t_2$ reversed. \end{proof} \end{document} diff --git a/content/first-order-logic/natural-deduction/soundness.tex b/content/first-order-logic/natural-deduction/soundness.tex index ad856a3ab..03757cc37 100644 --- a/content/first-order-logic/natural-deduction/soundness.tex +++ b/content/first-order-logic/natural-deduction/soundness.tex @@ -95,7 +95,7 @@ \end{prooftree} By inductive hypothesis, $!A \land !B$ follows from the !!{undischarged} assumptions~$\Gamma$ of~$\delta_1$. Consider - !!a{structure}~\iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$}. We need to + \iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!a{valuation}~$\pAssign{v}$}. We need to show that, if $\iftag{FOL}{\Sat{M}}{\pSat{v}}{\Gamma}$, then $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$. Suppose $\iftag{FOL}{\Sat{M}}{\pSat{v}}{\Gamma}$. By our inductive @@ -188,7 +188,8 @@ assignment~$s$, $\Sat{M}{!A(x)}[s]$ (\olref[syn][ass]{prop:sat-quant}). Since $\Gamma$ consists entirely of sentences, $\Sat{M}{!B}[s]$ for all $!B \in \Gamma$ by - \olref[syn][sat]{defn:satisfaction}. Let $\Struct{M'}$ be like + \olref[syn][ass]{defn:sat} and + \olref[syn][ass]{defn:satisfaction}. Let $\Struct{M'}$ be like $\Struct{M}$ except that $\Assign{a}{M'} = s(x)$. Since $a$ does not occur in~$\Gamma$, $\Sat{M'}{\Gamma}$ by \olref[syn][ext]{cor:extensionality-sent}. Since $\Gamma \Entails @@ -209,7 +210,7 @@ \end{enumerate} Now let's consider the possible inferences with several premises: -\Elim{\lor}, \Intro{\land}, \iftag{FOL}{\Elim{\lif}, and +\Elim{\lor}, \Intro{\land}, \Elim{\lnot}, \iftag{FOL}{\Elim{\lif}, and \Elim{\lexists}}{and \Elim{\lif}}. \begin{enumerate} diff --git a/content/first-order-logic/proof-systems/axiomatic-deduction.tex b/content/first-order-logic/proof-systems/axiomatic-deduction.tex index dce22bfbc..628e4826c 100644 --- a/content/first-order-logic/proof-systems/axiomatic-deduction.tex +++ b/content/first-order-logic/proof-systems/axiomatic-deduction.tex @@ -12,8 +12,8 @@ \olsection{Axiomatic \usetoken{P}{derivation}} -Axiomatic !!{derivation}s are the oldest and simplest logical -!!{derivation} systems. Its !!{derivation}s are simply sequences of +Axiomatic !!{derivation} systems are the oldest and simplest logical +!!{derivation} systems. Their !!{derivation}s are simply sequences of !!{sentence}s. A sequence of !!{sentence}s counts as a correct !!{derivation} if every !!{sentence}~$!A$ in it satisfies one of the following conditions: @@ -45,8 +45,8 @@ The $\Proves$ relation based on axiomatic !!{derivation}s is defined as follows: $\Gamma \Proves !A$ iff there is !!a{derivation} with the -!!{sentence}~$!A$ as its last formula (and $\Gamma$ is taken as the -set of !!{sentence}s in that !!{derivation} which are justified by~(2) above). $!A$ +!!{sentence}~$!A$ as its last formula (and every !!{sentence} in that !!{derivation} which is justified +by~(2) above belongs to $\Gamma$). $!A$ is a theorem if~$!A$ has !!a{derivation} where~$\Gamma$ is empty, i.e., every !!{sentence} in the !!{derivation} is justified either by (1) or~(3). For instance, here is !!a{derivation} that shows that $\Proves diff --git a/content/first-order-logic/proof-systems/introduction.tex b/content/first-order-logic/proof-systems/introduction.tex index 204ffd6ec..88efc6d9e 100644 --- a/content/first-order-logic/proof-systems/introduction.tex +++ b/content/first-order-logic/proof-systems/introduction.tex @@ -83,7 +83,7 @@ \emph{consistency}. A set of !!{sentence}s is called inconsistent if anything whatsoever can be !!{derive}d from it, and consistent otherwise. Inconsistency is the syntactic counterpart to -unsatisfiablity: like unsatisfiable sets, inconsistent sets of +unsatisfiability: like unsatisfiable sets, inconsistent sets of !!{sentence}s do not make good theories, they are defective in a fundamental way. Consistent sets of !!{sentence}s may not be true or useful, but at least they pass that minimal threshold of logical diff --git a/content/first-order-logic/proof-systems/natural-deduction.tex b/content/first-order-logic/proof-systems/natural-deduction.tex index 547379187..bcef96bab 100644 --- a/content/first-order-logic/proof-systems/natural-deduction.tex +++ b/content/first-order-logic/proof-systems/natural-deduction.tex @@ -22,9 +22,9 @@ to a contradiction. Conditional proof establishes a conditional claim ``if \dots then \dots'' by showing that the consequent follows from the antecedent. Natural deduction is a formalization of some of these -natural inferences. Each of the logical connectives and quantifiers -comes with two rules, an introduction and an elimination rule, and -they each correspond to one such natural inference pattern. For +natural inferences. Many of its rules are introduction or elimination rules for the +logical connectives\iftag{FOL}{ and the quantifiers}{}, corresponding +to such natural inference patterns. For instance, $\Intro{\lif}$ corresponds to conditional proof, and $\Elim{\lor}$ to proof by cases. A particularly simple rule is $\Elim{\land}$ which allows the inference from $!A \land !B$ to~$!A$ diff --git a/content/first-order-logic/proof-systems/sequent-calculus.tex b/content/first-order-logic/proof-systems/sequent-calculus.tex index bc1fcf6e1..f5f93306a 100644 --- a/content/first-order-logic/proof-systems/sequent-calculus.tex +++ b/content/first-order-logic/proof-systems/sequent-calculus.tex @@ -1,6 +1,6 @@ % Part: first-order-logic % Chapter: proof-systems -% Section: seqeunt-calculus +% Section: sequent-calculus \documentclass[../../../include/open-logic-section]{subfiles} @@ -16,7 +16,7 @@ !!{sentence}s, the sequent calculus operates with \emph{sequents}. A sequent is an expression of the form \[ -!A_1, \dots, !A_m \Sequent !B_1, \dots, !B_m, +!A_1, \dots, !A_m \Sequent !B_1, \dots, !B_n, \] that is a pair of sequences of !!{sentence}s, separated by the sequent symbol~$\Sequent$. Either sequence may be empty. !!^a{derivation} in @@ -60,7 +60,7 @@ formalism for developing a theory of !!{derivation}s. It is relatively easy to find !!{derivation}s in the sequent calculus, but these !!{derivation}s are often hard to read and their connection to proofs -are sometimes not easy to see. It has proved to be a very elegant +is sometimes not easy to see. It has proved to be a very elegant approach to !!{derivation} systems, however, and many logics have sequent calculus systems. diff --git a/content/first-order-logic/proof-systems/tableaux.tex b/content/first-order-logic/proof-systems/tableaux.tex index 141990c1d..c9cf69479 100644 --- a/content/first-order-logic/proof-systems/tableaux.tex +++ b/content/first-order-logic/proof-systems/tableaux.tex @@ -21,21 +21,24 @@ \] !!^a{tableau} consists of !!{signed formula}s arranged in a downward-branching tree. It begins with a number of \emph{assumptions} -and continues with !!{signed formula}s which result from one of the -!!{signed formula}s above it by applying one of the rules of -inference. Each rule allows us to add one or more !!{signed formula}s +and continues by complete applications of the inference rules to a +branch, using the required !!{signed formula}s already on that branch +(none for \Cut{}\iftag{FOL}{ or identity reflexivity, and two for +identity substitution}{}). Each rule allows us to add one or more !!{signed formula}s to the end of a branch, or two !!{signed formula}s side by side---in this case a branch splits into two, with the two added !!{signed formula}s forming the ends of the two branches. -A rule applied to a complex !!{signed formula} results in the addition -of !!{signed formula}s which are immediate sub-!!{formula}s. They come +A propositional connective rule adds signed versions of immediate +sub-!!{formula}s of its principal !!{formula}. +\iftag{FOL}{Quantifier rules add suitable substitution instances of +their quantified matrices. }{} They come in pairs, one rule for each of the two signs. For instance, the $\TRule{\True}{\land}$ rule applies to $\sFmla{\True}{!A \land !B}$, and allows the addition of both the two !!{signed formula}s $\sFmla{\True}{!A}$ and~$\sFmla{\True}{!B}$ to the end of any branch containing $\sFmla{\True}{!A \land !B}$, and the rule -$\TRule{\False}{!A \land !B}$ allows a branch to be split by adding +$\TRule{\False}{\land}$ allows a branch to be split by adding $\sFmla{\False}{!A}$ and $\sFmla{\False}{!B}$ side-by-side. !!^a{tableau} is closed if every one of its branches contains a matching pair of !!{signed formula}s $\sFmla{\True}{!A}$ and @@ -54,8 +57,8 @@ [\sFmla{\False}{(\formula{A} \land \formula{B}) \lif \formula{A}}, just = \TAss [\sFmla{\True}{\formula{A} \land \formula{B}}, just = {\TRule{\False}{\lif}[1]} [\sFmla{\False}{\formula{A}}, just = {\TRule{\False}{\lif}[1]} - [\sFmla{\True}{\formula{A}}, just = {\TRule{\True}{\lif}[2]} - [\sFmla{\True}{\formula{B}}, just = {\TRule{\True}{\lif}[2]}, close] + [\sFmla{\True}{\formula{A}}, just = {\TRule{\True}{\land}[2]} + [\sFmla{\True}{\formula{B}}, just = {\TRule{\True}{\land}[2]}, close] ] ] ] @@ -74,13 +77,14 @@ Smullyan. They are very easy to use, since constructing !!a{tableau} is a very systematic procedure. Because of the systematic nature of !!{tableau}s, they also lend themselves to implementation by -computer. However, !!a{tableau} is often hard to read and their -connection to proofs are sometimes not easy to see. The approach is +computer. However, !!a{tableau} is often hard to read and its +connection to proofs is sometimes not easy to see. The approach is also quite general, and many different logics have !!{tableau} -systems. !!^{tableau}s also help us to find !!{structure}s that -satisfy given (sets of) !!{sentence}s: if the set is satisfiable, it +systems. !!^{tableau}s also help us to find +\iftag{FOL}{!!{structure}s}{!!{valuation}s} that satisfy given (sets of) +!!{sentence}s: if the set is satisfiable, it won't have a closed !!{tableau}, i.e., any !!{tableau} will have an -open branch. The satisfying !!{structure} can be ``read off'' an open +open branch. The satisfying \iftag{FOL}{!!{structure}}{!!{valuation}} can be ``read off'' an open branch, provided every rule it is possible to apply has been applied on that branch. There is also a very close connection to the sequent calculus: essentially, a closed !!{tableau} is a condensed diff --git a/content/first-order-logic/sequent-calculus/derivations.tex b/content/first-order-logic/sequent-calculus/derivations.tex index 355e85f95..dcab665c6 100644 --- a/content/first-order-logic/sequent-calculus/derivations.tex +++ b/content/first-order-logic/sequent-calculus/derivations.tex @@ -26,9 +26,9 @@ \begin{enumerate} \item The topmost sequents of the tree are initial sequents. \item The bottommost sequent of the tree is~$S$. -\item Every sequent in the tree except $S$ is a premise of a correct - application of an inference rule whose conclusion stands directly - below that sequent in the tree. +\item At each nonleaf node, the complete ordered list of immediate + predecessor sequents and that node form one correct application of + an inference rule, including its eigenvariable conditions. \end{enumerate} We then say that $S$ is the \emph{end-sequent} of the !!{derivation} and that $S$ is \emph{!!{derivable} in $\Log{LK}$} (or $\Log{LK}$-!!{derivable}). diff --git a/content/first-order-logic/sequent-calculus/proof-theoretic-notions.tex b/content/first-order-logic/sequent-calculus/proof-theoretic-notions.tex index a8eaf7575..1b7a1c6f8 100644 --- a/content/first-order-logic/sequent-calculus/proof-theoretic-notions.tex +++ b/content/first-order-logic/sequent-calculus/proof-theoretic-notions.tex @@ -8,7 +8,7 @@ \begin{editorial} This section collects the definitions of the provability relation and - consistency for natural deduction. + consistency for the sequent calculus. \end{editorial} \iftag{FOL} diff --git a/content/first-order-logic/sequent-calculus/provability-consistency.tex b/content/first-order-logic/sequent-calculus/provability-consistency.tex index 850d945fb..a0d46d928 100755 --- a/content/first-order-logic/sequent-calculus/provability-consistency.tex +++ b/content/first-order-logic/sequent-calculus/provability-consistency.tex @@ -48,23 +48,26 @@ \end{prop} \begin{proof} -First suppose $\Gamma \Proves !A$, i.e., there is -!!a{derivation}~$\pi_0$ of $\Gamma \Sequent !A$. By adding a -$\LeftR{\lnot}$ rule, we obtain !!a{derivation} of~$\lnot !A, \Gamma -\Sequent \quad$, i.e., $\Gamma \cup \{\lnot !A\}$ is inconsistent. - -If $\Gamma \cup \{\lnot !A\}$ is inconsistent, there is -!!a{derivation}~$\pi_1$ of $\lnot !A, \Gamma \Sequent \quad$. The -following is !!a{derivation} of $\Gamma \Sequent !A$: +First suppose $\Gamma \Proves !A$. Choose a finite subset +$\Gamma_0 \subseteq \Gamma$ and !!a{derivation}~$\pi_0$ of +$\Gamma_0 \Sequent !A$. By adding a $\LeftR{\lnot}$ rule, we obtain +!!a{derivation} of~$\lnot !A, \Gamma_0 \Sequent \quad$, so +$\Gamma \cup \{\lnot !A\}$ is inconsistent. + +If $\Gamma \cup \{\lnot !A\}$ is inconsistent, choose a finite +witness to this. By weakening and exchange if necessary, there is +!!a{derivation}~$\pi_1$ of $\lnot !A, \Gamma_0 \Sequent \quad$ for a +finite $\Gamma_0 \subseteq \Gamma$. The following is !!a{derivation} +of $\Gamma_0 \Sequent !A$, and hence witnesses $\Gamma \Proves !A$: \begin{prooftree} \Axiom$!A \fCenter !A$ \RightLabel{\RightR{\lnot}} \UnaryInf$\fCenter !A, \lnot !A$ \AxiomC{} \RightLabel{$\pi_1$} - \Deduce$\lnot !A, \Gamma \fCenter$ + \Deduce$\lnot !A, \Gamma_0 \fCenter$ \RightLabel{\Cut} - \BinaryInf$\Gamma \fCenter !A$ + \BinaryInf$\Gamma_0 \fCenter !A$ \end{prooftree} \end{proof} diff --git a/content/first-order-logic/sequent-calculus/provability-propositional.tex b/content/first-order-logic/sequent-calculus/provability-propositional.tex index 1f0dd69c0..de6fee202 100755 --- a/content/first-order-logic/sequent-calculus/provability-propositional.tex +++ b/content/first-order-logic/sequent-calculus/provability-propositional.tex @@ -48,7 +48,13 @@ \item Here is !!a{derivation} of the sequent $!A, !B \Sequent !A \land !B$: \begin{prooftree} \Axiom$!A \fCenter !A$ + \RightLabel{\LeftR{\Weakening}} + \UnaryInf$!B, !A \fCenter !A$ + \RightLabel{\LeftR{\Exchange}} + \UnaryInf$!A, !B \fCenter !A$ \Axiom$!B \fCenter !B$ + \RightLabel{\LeftR{\Weakening}} + \UnaryInf$!A, !B \fCenter !B$ \RightLabel{\RightR{\land}} \BinaryInf$!A, !B \fCenter !A \land !B$ \end{prooftree} diff --git a/content/first-order-logic/sequent-calculus/proving-things-quant.tex b/content/first-order-logic/sequent-calculus/proving-things-quant.tex index 6ad9237bc..5b23cfa13 100644 --- a/content/first-order-logic/sequent-calculus/proving-things-quant.tex +++ b/content/first-order-logic/sequent-calculus/proving-things-quant.tex @@ -23,7 +23,7 @@ initial sequent might look like. In our case, it will have to be something like $!A(a) \Sequent !A(a)$. That means that when we are ``reversing'' the quantifier rules, we will have to pick the same -term---what we will call $a$---for both the $\lforall$ and the +term---a constant $a$ chosen not to occur in $!A(x)$---for both the $\lforall$ and the $\lexists$ rule. If we picked different terms for each rule, we would end up with something like $!A(a) \Sequent !A(b)$, which, of course, is not derivable. @@ -104,7 +104,7 @@ \item $(\lforall[x][!A(x)] \lif !B) \Sequent \lexists[y][(!A(y) \lif !B)]$. \item $\Sequent \lexists[x][(!A(x) \lif \lforall[y][!A(y)])]$. \end{enumerate} -(These all require the $\RightR{\Contraction}$~rule.) +(The $\RightR{\Contraction}$~rule is useful for these.) \end{prob} \end{document} diff --git a/content/first-order-logic/sequent-calculus/proving-things.tex b/content/first-order-logic/sequent-calculus/proving-things.tex index 84edc50b8..230fae139 100644 --- a/content/first-order-logic/sequent-calculus/proving-things.tex +++ b/content/first-order-logic/sequent-calculus/proving-things.tex @@ -83,7 +83,7 @@ \UnaryInf$!B, !A \fCenter !B$ \RightLabel{\LeftR{\lor}} \BinaryInf$ \lnot !A \lor !B, !A \fCenter !B $ -\RightLabel{\RightR{\Exchange}} +\RightLabel{\LeftR{\Exchange}} \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $ \RightLabel{\RightR{\lif}} \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $ @@ -101,7 +101,7 @@ \UnaryInf$!B, !A \fCenter !B$ \RightLabel{\LeftR{\lor}} \BinaryInf$\lnot !A \lor !B, !A \fCenter !B $ -\RightLabel{\RightR{\Exchange}} +\RightLabel{\LeftR{\Exchange}} \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $ \RightLabel{\RightR{\lif}} \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $ @@ -122,7 +122,7 @@ \UnaryInf$!B, !A \fCenter !B$ \RightLabel{\LeftR{\lor}} \BinaryInf$\lnot !A \lor !B, !A \fCenter !B $ -\RightLabel{\RightR{\Exchange}} +\RightLabel{\LeftR{\Exchange}} \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $ \RightLabel{\RightR{\lif}} \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $ @@ -144,7 +144,7 @@ \UnaryInf$!B, !A \fCenter !B$ \RightLabel{\LeftR{\lor}} \BinaryInf$\lnot !A \lor !B, !A \fCenter !B $ -\RightLabel{\RightR{\Exchange}} +\RightLabel{\LeftR{\Exchange}} \UnaryInf$ !A, \lnot !A \lor !B \fCenter !B $ \RightLabel{\RightR{\lif}} \UnaryInf$ \lnot !A \lor !B \fCenter !A \lif !B $ @@ -175,8 +175,8 @@ Now we have a choice of whether to look at the \LeftR{\land} or the \LeftR{\lor} rule. Let's see what happens when we apply the \LeftR{\land} rule: we have a choice to start with either the sequent $!A, -\lnot !A \lor !B \Sequent \quad$ or the sequent $!B, \lnot !A -\lor !B \Sequent \quad$. Since the !!{derivation} is symmetric with +\lnot !A \lor \lnot !B \Sequent \quad$ or the sequent $!B, \lnot !A +\lor \lnot !B \Sequent \quad$. Since the !!{derivation} is symmetric with regards to $!A$ and $!B$, let's go with the former: \begin{prooftree} \AxiomC{} @@ -337,6 +337,6 @@ \item $(!A \lif !B) \lif !A \Sequent !A$. \item $\Sequent (!A \lif !B) \lor (!B \lif !C)$. \end{enumerate} -(These all require the $\RightR{\Contraction}$~rule.) +(The $\RightR{\Contraction}$~rule is useful for these.) \end{prob} \end{document} diff --git a/content/first-order-logic/sequent-calculus/rules-and-proofs.tex b/content/first-order-logic/sequent-calculus/rules-and-proofs.tex index 4cabc00ae..87217f519 100644 --- a/content/first-order-logic/sequent-calculus/rules-and-proofs.tex +++ b/content/first-order-logic/sequent-calculus/rules-and-proofs.tex @@ -12,6 +12,10 @@ \olsection{Rules and \usetoken{P}{derivation}} +In this chapter, $(!A \liff !B)$ abbreviates +$((!A \lif !B) \land (!B \lif !A))$. Expand this abbreviation +recursively before applying the sequent rules. + For the following, let $\Gamma, \Delta, \Pi, \Lambda$ represent finite sequences of !!{sentence}s. diff --git a/content/first-order-logic/sequent-calculus/sequent-calculus.tex b/content/first-order-logic/sequent-calculus/sequent-calculus.tex index 2a9a7d05d..ce20c105a 100644 --- a/content/first-order-logic/sequent-calculus/sequent-calculus.tex +++ b/content/first-order-logic/sequent-calculus/sequent-calculus.tex @@ -11,9 +11,9 @@ \begin{editorial} This chapter presents Gentzen's standard sequent calculus LK for - classical first-order logic. It could use more examples and + classical \iftag{FOL}{first-order}{propositional} logic. It could use more examples and exercises. To include or exclude material relevant to the sequent - calculus as a proof system, use the ``prfLK'' tag. + calculus as a proof system, use the ``prfSC'' tag. \end{editorial} \olimport{rules-and-proofs} diff --git a/content/first-order-logic/sequent-calculus/soundness-identity.tex b/content/first-order-logic/sequent-calculus/soundness-identity.tex index e934b6efb..8e8b61d40 100644 --- a/content/first-order-logic/sequent-calculus/soundness-identity.tex +++ b/content/first-order-logic/sequent-calculus/soundness-identity.tex @@ -20,7 +20,7 @@ we assume the term $t$ to be closed, i.e., it contains no variables, so variable assignments are irrelevant). -Suppose the last inference in !!a{derivation} is $=$. Then the premise +Suppose the last inference in !!a{derivation} is the first $=$ rule. Then the premise is $\eq[t_1][t_2], \Gamma \Sequent \Delta, !A(t_1)$ and the conclusion is $\eq[t_1][t_2], \Gamma \Sequent \Delta, !A(t_2)$. Consider !!a{structure}~$\Struct M$. We need to show that the conclusion is @@ -39,6 +39,8 @@ \olref[syn][ext]{prop:ext-formulas} again, we also have $\Sat{M}{!A(t_2)}[s]$. By \olref[syn][ass]{prop:sentence-sat-true}, $\Sat{M}{!A(t_2)}$. +The second $=$ rule is handled by the same equivalence, with $t_1$ +and $t_2$ interchanged. \end{proof} \end{document} diff --git a/content/first-order-logic/sequent-calculus/soundness.tex b/content/first-order-logic/sequent-calculus/soundness.tex index d744de04d..2872d4a99 100644 --- a/content/first-order-logic/sequent-calculus/soundness.tex +++ b/content/first-order-logic/sequent-calculus/soundness.tex @@ -95,7 +95,7 @@ \Delta$ such that $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$. If $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some $!C \in \Gamma$, - then $!C \in \Theta$ as well since $\Theta = !A, \Gamma$, and so + then $!C \in \Theta$ as well since $\Theta = !A, \Gamma$ for left weakening and $\Theta = \Gamma$ for right weakening, and so $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some $!C \in \Theta$. Similarly, if $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for some $!C \in \Delta$, as $!C \in \Xi$, $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for @@ -246,7 +246,7 @@ \Gamma$, $\Sat{M}{!C}$, and for all $!C \in \Delta$, $\Sat/{M}{!C}$. We have to show that (a)~holds, i.e., $\Sat{M}{\lforall[x][!A(x)]}$. By - \olref[syn][ass]{prop:sat-quant}, if suffices to show that + \olref[syn][ass]{prop:sat-quant}, it suffices to show that $\Sat{M}{!A(x)}[s]$ for all variable assignments~$s$. So let $s$ be an arbitrary variable assignment. Consider the structure~$\Struct{M'}$ which is just like~$\Struct{M}$ except @@ -322,7 +322,7 @@ $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A \lif !B}$. If \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} doesn't satisfy $\Gamma, \Pi \Sequent \Delta, \Lambda$, it satisfies neither $\Gamma \Sequent - \Delta$ nor $\Pi \Sequent \Lambda$. Since, $\Gamma \Sequent \Delta, + \Delta$ nor $\Pi \Sequent \Lambda$. Since $\Gamma \Sequent \Delta, !A$ is valid, we have $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$. Since $!B, \Pi \Sequent \Lambda$ is valid, we have $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!B}$. But then diff --git a/content/first-order-logic/syntax-and-semantics/assignments.tex b/content/first-order-logic/syntax-and-semantics/assignments.tex index ed2c6c103..a371d1b74 100644 --- a/content/first-order-logic/syntax-and-semantics/assignments.tex +++ b/content/first-order-logic/syntax-and-semantics/assignments.tex @@ -88,7 +88,7 @@ \] For $i = 1$, \dots,~$k$, $\Value{t_i}{M}[s_1] = \Value{t_i}{M}[s_2]$ by \olref{prop:valindep}. So we also have - $\langle \Value{t_i}{M}[s_2], \ldots, \Value{t_k}{M}[s_2] \rangle + $\langle \Value{t_1}{M}[s_2], \ldots, \Value{t_k}{M}[s_2] \rangle \in \Assign{R}{M}$, and hence $\Sat{M}{\indfrm}[s_2]$.} \item \indcase{!A}{\eq[t_1][t_2]}{suppose $\Sat{M}{\indfrm}[s_1]$. @@ -104,8 +104,9 @@ so $\Sat{M}{\eq[t_1][t_2]}[s_2]$.} \end{enumerate} -Now assume $\Sat{M}{!B}[s_1]$ iff $\Sat{M}{!B}[s_2]$ for all -!!{formula}s $!B$ less complex than~$!A$. The induction step proceeds +Now assume, for all !!{formula}s $!B$ less complex than~$!A$ and all +variable assignments $s_1$, $s_2$ that agree on the free variables +of~$!B$, that $\Sat{M}{!B}[s_1]$ iff $\Sat{M}{!B}[s_2]$. The induction step proceeds by cases determined by the main operator of~$!A$. In each case, we only demonstrate the forward direction of the !!{biconditional}; the proof of the reverse direction is symmetrical. In all cases except @@ -178,8 +179,8 @@ every $m \in \Domain{M}$, $\Sat{M}{!B}[\Subst{s_1}{m}{x}]$. We want to show that also, for every $m \in \Domain{M}$, $\Sat{M}{!B}[\Subst{s_2}{m}{x}]$. So let $m \in \Domain{M}$ be - arbitrary, and consider $s_1' = \Subst{s}{m}{x}$ and $s_2' = - \Subst{s}{m}{x}$. We have that $\Sat{M}{!B}[s_1']$. The free + arbitrary, and consider $s_1' = \Subst{s_1}{m}{x}$ and $s_2' = + \Subst{s_2}{m}{x}$. We have that $\Sat{M}{!B}[s_1']$. The free variables of~$!B$ are among $x_1$, \dots, $x_n$, and $x$. $s_1'(x_i) = s_2'(x_i)$, since $s_1'$ and $s_2'$ are $x$-variants of $s_1$ and~$s_2$, respectively, and by hypothesis @@ -238,7 +239,7 @@ \begin{defn} \ollabel{defn:sat} -If $\Gamma$ is a set of !!{sentence}s~$\Gamma$, we say that +If $\Gamma$ is a set of !!{sentence}s, we say that !!a{structure}~$\Struct M$ \emph{satisfies}~$\Gamma$, $\Sat{M}{\Gamma}$, iff $\Sat{M}{!A}$ for all $!A \in \Gamma$. \end{defn} @@ -277,10 +278,12 @@ \begin{prob} \DeclareRobustCommand{\VDash}{\mathrel{||}\joinrel\Relbar} -Suppose $\Lang L$ is a language without !!{function}s. Given a +Suppose $\Lang L$ is a language without !!{function}s. If necessary, +expand it by fresh constants. Given a !!{structure}~$\Struct M$, $c$ !!a{constant} and $a \in \Domain M$, define $\Struct M[a/c]$ to be the !!{structure} that is just -like~$\Struct M$, except that $\Assign{c}{M[a/c]} = a$. Define +like~$\Struct M$, except that $\Assign{c}{M[a/c]} = a$ (expanding +the language when $c$ is new). Define $\Struct M \VDash !A$ for !!{sentence}s~$!A$ by: \begin{enumerate} \tagitem{prvFalse}{% @@ -329,7 +332,7 @@ in~$!B$.}}{} \end{enumerate} Let $x_1$, \dots, $x_n$ be all free !!{variable}s in~$!A$, -$c_1$, \dots, $c_n$ constant symbols not in~$!A$, +$c_1$, \dots, $c_n$ pairwise distinct constant symbols not in~$!A$, $a_1$, \dots, $a_n \in \Domain M$, and $s(x_i) = a_i$. Show that $\Sat{M}{!A}[s]$ iff $\Struct M[a_1/c_1,\dots,a_n/c_n] @@ -346,7 +349,7 @@ M'$ such that $\Sat{M'}{\lforall[x][!A(x,f(x))]}$. (This problem is a special case of what's known as Skolem's Theorem; -$\lforall[x][!A(x,f(x))]$ is called a \emph{Skolem normal form} of +$\lforall[x][!A(x,f(x))]$ is called a \emph{Skolemization} of $\lforall[x][\lexists[y][!A(x,y)]]$.) \end{prob} diff --git a/content/first-order-logic/syntax-and-semantics/covered-structures.tex b/content/first-order-logic/syntax-and-semantics/covered-structures.tex index 7205721e9..dec2f5f4d 100644 --- a/content/first-order-logic/syntax-and-semantics/covered-structures.tex +++ b/content/first-order-logic/syntax-and-semantics/covered-structures.tex @@ -45,13 +45,13 @@ $c_1$ is less than~$c_2$: for example, $\tuple{1, 3} \in \Assign{<}{M}$ but $\tuple{2, 2} \notin \Assign{<}{M}$. For the binary !!{function} $+$, define $\Assign{+}{M}$ in the usual way---for -example, $\Assign{+}{M}(2,3)$ maps to~$5$, and similarly for the +example, $\Assign{+}{M}(2,3)$ is~$5$, and similarly for the binary !!{function}~$\times$. Hence, the !!{value} of $\Obj{four}$ is just~$4$, and the !!{value} of $\times(\Obj{two}, +(\Obj{three},\Obj{zero}))$ (or in infix notation, $\Obj{two} \times (\Obj{three} + \Obj{zero})$) is \begin{multline*} -\Value{\times(\Obj{two}, +(\Obj{three},\Obj{zero}))}{M} =\\ +\Value{\times(\Obj{two}, +(\Obj{three},\Obj{zero}))}{M} \\ \begin{aligned} & =\Assign{\times}{M}(\Value{\Obj{two}}{M}, \Value{+(\Obj{three}, \Obj{zero})}{M})\\ & = \Assign{\times}{M}(\Value{\Obj{two}}{M}, \Assign{+}{M}(\Value{\Obj{three}}{M}, diff --git a/content/first-order-logic/syntax-and-semantics/extensionality.tex b/content/first-order-logic/syntax-and-semantics/extensionality.tex index f1d9999e3..c9c12dbd5 100644 --- a/content/first-order-logic/syntax-and-semantics/extensionality.tex +++ b/content/first-order-logic/syntax-and-semantics/extensionality.tex @@ -1,6 +1,6 @@ % Part: first-order-logic % Chapter: syntax-and-semantics -% Section: substitution +% Section: extensionality \documentclass[../../../include/open-logic-section]{subfiles} @@ -14,7 +14,7 @@ Extensionality, sometimes called relevance, can be expressed informally as follows: the only factors that bear upon the satisfaction of !!{formula}~$!A$ in !!a{structure}~$\Struct M$ -relative to !!a{variable} assignment~$s$, are the size of the +relative to !!a{variable} assignment~$s$, are the !!{domain} and the assignments made by~$\Struct M$ and~$s$ to the elements of the language that actually appear in~$!A$. @@ -37,7 +37,7 @@ \end{prop} \begin{proof} - First prove (by induction on~$t$) that for every term, + First prove (by induction on~$t$) that for every term whose constants and function symbols occur in~$!A$, $\Value{t}{M_1}[s] = \Value{t}{M_2}[s]$. Then prove the proposition by induction on~$!A$, making use of the claim just proved for the induction basis (where $!A$ is atomic). @@ -85,7 +85,7 @@ \item If $t \ident \Atom{f}{t_1,\dots,t_n}$ then we have: \begin{multline*} - \Value{\Subst{t}{t'}{x}}{M}[s] = \\ + \Value{\Subst{t}{t'}{x}}{M}[s] \\ \begin{aligned}[b] & = \Value{\Atom{f}{\Subst{t_1}{t'}{x}, \dots, \Subst{t_n}{t'}{x}}}{M}[s]\\ & \qquad \text{ by definition of $\Subst{t}{t'}{x}$}\\ diff --git a/content/first-order-logic/syntax-and-semantics/first-order-languages.tex b/content/first-order-logic/syntax-and-semantics/first-order-languages.tex index 35b5b1b56..750e64a54 100644 --- a/content/first-order-logic/syntax-and-semantics/first-order-languages.tex +++ b/content/first-order-logic/syntax-and-semantics/first-order-languages.tex @@ -101,7 +101,7 @@ \iftag{defAll}{\ycomma $\lforall$ (universal quantifier)}{}% \iftag{defEx}{\ycomma $\lexists$ (existential quantifier)}{}% \iftag{defFalse}{\ycomma !!{falsity}~$\lfalse$}{}% - \iftag{defTrue}{\ycomma !!{truth}~$\ltrue$}}{}. + \iftag{defTrue}{\ycomma !!{truth}~$\ltrue$}{}}{}. \begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll} \begin{explain} @@ -127,7 +127,7 @@ or ``(material) equivalence'' are $\leftrightarrow$, $\Leftrightarrow$, and $\equiv$.}{} \iftag{prvFalse,defFalse}{The $\lfalse$ symbol is variously called - ``falsity,'' ``falsum,'', ``absurdity,'' or ``bottom.''}{} + ``falsity,'' ``falsum,'' ``absurdity,'' or ``bottom.''}{} \iftag{prvTrue,defTrue}{The $\ltrue$ symbol is variously called ``truth,'' ``verum,'' or ``top.''}{} diff --git a/content/first-order-logic/syntax-and-semantics/formation-sequences.tex b/content/first-order-logic/syntax-and-semantics/formation-sequences.tex index 64cc604fb..673cfa349 100644 --- a/content/first-order-logic/syntax-and-semantics/formation-sequences.tex +++ b/content/first-order-logic/syntax-and-semantics/formation-sequences.tex @@ -43,7 +43,7 @@ \emph{formation sequence} for a term $t$ if $t \ident t_n$ and for all $i \leq n$, either $t_i$ is !!a{variable} or !!a{constant}, or $\Lang L$ contains a $k$-ary !!{function}~$f$ and there exist -$m_0,\dotsc,m_k < i$ such that $t_i \ident f(t_{m_0},\dotsc,t_{m_k})$. +$m_1,\dotsc,m_k < i$ such that $t_i \ident f(t_{m_1},\dotsc,t_{m_k})$. When it is necessary to distinguish, we will refer to formation sequences for terms as \emph{term formation sequences}. \end{defn} @@ -182,7 +182,7 @@ Suppose $!A$ has a formation sequence $\tuple{!A_0,\dotsc,!A_n}$. We prove that $!A \in \Frm[L]$ by strong induction on~$n$. Our induction hypothesis is that every string of symbols with a -formation sequence of length $m < n$ is in $\Frm[L]$. +formation sequence $\tuple{!B_0,\dotsc,!B_m}$ with $m < n$ is in $\Frm[L]$. By the definition of a formation sequence, either $!A \ident !A_n$ is atomic or there must exist $j,k < n$ such that one of the following is the case: @@ -196,14 +196,14 @@ \tagitem{prvEx}{$!A \ident \lexists[x][!A_j]$.}{}% \end{enumerate} Now we reason by cases. If $!A$ is atomic then -$!A_n \in \Frm[L_0]$. Suppose instead that -$!A \equiv (!A_j \land !A_k)$. By +$!A_n \in \Frm[L]$. Suppose instead that +$!A \ident (!A_j \land !A_k)$. By \olref[fol][syn][fseq]{lem:fseq-init}, $\tuple{!A_0,\dotsc,!A_j}$ and $\tuple{!A_0,\dotsc,!A_k}$ are formation sequences for $!A_j$ and~$!A_k$, respectively. Since these are proper initial subsequences of the formation sequence -for~$!A$, they both have length less than~$n$. Therefore by -the induction hypothesis, $!A_j$ and~$!A_k$ are in~$\Frm[L_0]$, +for~$!A$, they both end at an index less than~$n$. Therefore by +the induction hypothesis, $!A_j$ and~$!A_k$ are in~$\Frm[L]$, and by the definition of !!a{formula}, so is $(!A_j \land !A_k)$. The other cases follow by parallel reasoning. @@ -230,7 +230,7 @@ There are two types of ``junk'' that can appear in formation sequences: repeated elements, and elements that are irrelevant -to the construction of the formation or term. We can eliminate +to the construction of the formula or term. We can eliminate both by looking at minimal formation sequences. \begin{defn}[Minimal formation sequences] diff --git a/content/first-order-logic/syntax-and-semantics/intro-semantics.tex b/content/first-order-logic/syntax-and-semantics/intro-semantics.tex index bac67ec61..56a9c908f 100644 --- a/content/first-order-logic/syntax-and-semantics/intro-semantics.tex +++ b/content/first-order-logic/syntax-and-semantics/intro-semantics.tex @@ -16,7 +16,7 @@ of the language: !!a{domain} is a non-empty set of objects. The quantifiers are interpreted as ranging over this domain, !!{constant}s are assigned elements in the domain, !!{function}s are assigned -functions from the !!{domain} to itself, and !!{predicate}s are +functions from the appropriate Cartesian power of the !!{domain} to the !!{domain}, and !!{predicate}s are assigned relations on the !!{domain}. The !!{domain} together with assignments to the basic vocabulary constitutes !!a{structure}. !!^{variable}s may appear in !!{formula}s, and in order to give a diff --git a/content/first-order-logic/syntax-and-semantics/intro-syntax.tex b/content/first-order-logic/syntax-and-semantics/intro-syntax.tex index 948a77a1d..532c00463 100644 --- a/content/first-order-logic/syntax-and-semantics/intro-syntax.tex +++ b/content/first-order-logic/syntax-and-semantics/intro-syntax.tex @@ -19,7 +19,7 @@ from atomic !!{formula}s we can form more complex ones using logical connectives and quantifiers. There are many different ways to set down the formation rules; we give just one possible one. Other systems -will chose different symbols, will select different sets of +will choose different symbols, will select different sets of connectives as primitive, will use parentheses differently (or even not at all, as in the case of so-called Polish notation). What all approaches have in common, though, is that the formation rules define diff --git a/content/first-order-logic/syntax-and-semantics/introduction.tex b/content/first-order-logic/syntax-and-semantics/introduction.tex index 5c30e2c66..c34e3db0e 100644 --- a/content/first-order-logic/syntax-and-semantics/introduction.tex +++ b/content/first-order-logic/syntax-and-semantics/introduction.tex @@ -19,7 +19,7 @@ from atomic !!{formula}s we can form more complex ones using logical connectives and quantifiers. There are many different ways to set down the formation rules; we give just one possible one. Other systems -will chose different symbols, will select different sets of +will choose different symbols, will select different sets of connectives as primitive, will use parentheses differently (or even not at all, as in the case of so-called Polish notation). What all approaches have in common, though, is that the formation rules define @@ -36,7 +36,7 @@ of the language: !!a{domain} is a non-empty set of objects. The quantifiers are interpreted as ranging over this domain, !!{constant}s are assigned elements in the domain, !!{function}s are assigned -functions from the !!{domain} to itself, and !!{predicate}s are +functions from the appropriate Cartesian power of the !!{domain} to the !!{domain}, and !!{predicate}s are assigned relations on the !!{domain}. The !!{domain} together with assignments to the basic vocabulary constitutes !!a{structure}. !!^{variable}s may appear in !!{formula}s, and in diff --git a/content/first-order-logic/syntax-and-semantics/main-operator.tex b/content/first-order-logic/syntax-and-semantics/main-operator.tex index a95d17615..515900b6a 100644 --- a/content/first-order-logic/syntax-and-semantics/main-operator.tex +++ b/content/first-order-logic/syntax-and-semantics/main-operator.tex @@ -56,7 +56,7 @@ occurrence of $\lif$ is the !!{main operator}. \begin{explain} -This is a \emph{recursive} definition of a function which maps all +This is an explicit definition by cases of a function which maps all non-atomic !!{formula}s to their !!{main operator} occurrence. Because of the way !!{formula}s are defined inductively, every !!{formula}~$!A$ satisfies one of the cases in \olref{def:main-op}. diff --git a/content/first-order-logic/syntax-and-semantics/satisfaction.tex b/content/first-order-logic/syntax-and-semantics/satisfaction.tex index 3f0df1d1a..2f61af3e6 100644 --- a/content/first-order-logic/syntax-and-semantics/satisfaction.tex +++ b/content/first-order-logic/syntax-and-semantics/satisfaction.tex @@ -12,7 +12,7 @@ in \article{structure} \printtoken{S}{structure}} \begin{explain} -The basic notion that relates expressions such as terms and +The basic notions that relate expressions such as terms and !!{formula}s, on the one hand, and !!{structure}s on the other, are those of \emph{!!{value}} of a term and \emph{satisfaction} of !!a{formula}. Informally, the !!{value} of a term is an !!{element} of @@ -30,7 +30,7 @@ satisfied. The case of the quantifiers here is a bit tricky, as the -immediate !!{subformula} of a quantified !!{formula} has a free +immediate !!{subformula} of a quantified !!{formula} may have a free !!{variable}, and !!{structure}s don't specify the !!{value}s of !!{variable}s. In order to deal with this difficulty, we also introduce \emph{variable assignments} and define satisfaction not with @@ -213,8 +213,8 @@ $\Sat/{M}{R(x, f(a,b))}[s]$ since $\tuple{1, 3} \notin \Assign{R}{M}$. To determine if a non-atomic formula~$!A$ is satisfied, you apply the -clauses in the inductive definition that applies to the main -connective. For instance, the main connective in $R(a, a) \lif (R(b, +clause in the inductive definition that applies to the main +operator (connective or quantifier). For instance, the main connective in $R(a, a) \lif (R(b, x) \lor R(x, b))$ is the~$\lif$, and \begin{align*} & \Sat{M}{R(a, a) \lif (R(b, x) \lor R(x, b))}[s] \text{ iff }\\ diff --git a/content/first-order-logic/syntax-and-semantics/semantic-notions.tex b/content/first-order-logic/syntax-and-semantics/semantic-notions.tex index 29823842c..d286d0b81 100644 --- a/content/first-order-logic/syntax-and-semantics/semantic-notions.tex +++ b/content/first-order-logic/syntax-and-semantics/semantic-notions.tex @@ -53,7 +53,7 @@ For the contrapositive of the reverse direction, let $!A$ be invalid, so there is !!a{structure}~$\Struct M$ with $\Sat/{M}{!A}$. When $\Gamma -= \{ \ltrue \}$, since $\ltrue$ is valid, $\Sat{M}{\Gamma}$. Hence, += \emptyset$, we have $\Sat{M}{\Gamma}$. Hence, there is !!a{structure}~$\Struct M$ so that $\Sat{M}{\Gamma}$ but $\Sat/{M}{!A}$, hence $\Gamma$ does not entail $!A$. \end{proof} @@ -80,6 +80,8 @@ \end{proof} \begin{prob} +If falsity is a defined symbol, use the negation of a universally +closed tautology as its abbreviation in this exercise. \begin{enumerate} \item Show that $\Gamma \Entails \bot$ iff $\Gamma$ is unsatisfiable. \item Show that $\Gamma \cup \{!A\} \Entails \bot$ iff $\Gamma \Entails \lnot !A$. diff --git a/content/first-order-logic/syntax-and-semantics/structures.tex b/content/first-order-logic/syntax-and-semantics/structures.tex index 5ffecb882..ddd2f7432 100644 --- a/content/first-order-logic/syntax-and-semantics/structures.tex +++ b/content/first-order-logic/syntax-and-semantics/structures.tex @@ -74,7 +74,7 @@ \begin{ex} A structure~$\Struct M$ for the language~$\Lang L_Z$ of set theory requires -just a set and a single-two place relation. So technically, e.g., the +just a set and a single two-place relation. So technically, e.g., the set of people plus the relation ``$x$ is older than $y$'' could be used as !!a{structure} for $\Lang L_Z$, as well as $\Nat$ together with $n \ge m$ for $n, m \in \Nat$. diff --git a/content/first-order-logic/syntax-and-semantics/terms-formulas.tex b/content/first-order-logic/syntax-and-semantics/terms-formulas.tex index 4e417155e..8ad74e14d 100644 --- a/content/first-order-logic/syntax-and-semantics/terms-formulas.tex +++ b/content/first-order-logic/syntax-and-semantics/terms-formulas.tex @@ -145,7 +145,7 @@ \lnot !B)$}.}{} \tagitem{defIf}{$!A \lif !B$ abbreviates - \iftag{prvOr}{$\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{} + \iftag{prvOr}{$(\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{} \tagitem{defIff}{$!A \liff !B$ abbreviates $(!A \lif !B) \land (!B \lif !A)$.}{} @@ -164,7 +164,7 @@ successor function in the language of arithmetic is even written conventionally \emph{after} its argument:~$t'$. Officially, however, these are just conventional abbreviations for $\Atom{\Obj A^2_0}{t_1, t_2}$, -$\Obj f^2_0(t_1, t_2)$, $\Atom{\Obj A^2_0}{t_1, t_2}$ and $f^1_0(t)$, +$\Obj f^2_0(t_1, t_2)$, $\Atom{\Obj A^2_0}{t_1, t_2}$ and $\Obj f^1_0(t)$, respectively. \begin{defn}[Syntactic identity] diff --git a/content/first-order-logic/syntax-and-semantics/unique-readability.tex b/content/first-order-logic/syntax-and-semantics/unique-readability.tex index d9ecd7279..604a84938 100644 --- a/content/first-order-logic/syntax-and-semantics/unique-readability.tex +++ b/content/first-order-logic/syntax-and-semantics/unique-readability.tex @@ -16,7 +16,7 @@ constructing it according to our formation rules for !!{formula}s and only one way of ``interpreting'' it. If this were not so, we would have ambiguous !!{formula}s, i.e., !!{formula}s that have more than -one reading or intepretation---and that is clearly something we want +one reading or interpretation---and that is clearly something we want to avoid. But more importantly, without this property, most of the definitions and proofs we are going to give will not go through. @@ -49,7 +49,7 @@ above, then in one case we get the first occurrence of $\lif$ as the !!{main operator}, and in the second case the second occurrence. But we intend the !!{main operator} to be a \emph{function} of the -!!{formula}, i.e., every !!{formula} must have exactly one !!{main +non-atomic !!{formula}, i.e., every non-atomic !!{formula} must have exactly one !!{main operator} occurrence. \end{explain} diff --git a/content/first-order-logic/tableaux/derivations.tex b/content/first-order-logic/tableaux/derivations.tex index 5ed8b3702..95a9da29d 100644 --- a/content/first-order-logic/tableaux/derivations.tex +++ b/content/first-order-logic/tableaux/derivations.tex @@ -23,32 +23,37 @@ \begin{defn}[!!^{tableau}] !!^a{tableau} for assumptions $\sFmla{S_1}{!A_1}$, \dots, $\sFmla{S_n}{!A_n}$ (where each $S_i$ is either $\True$ or~$\False$) is -a finite tree of !!{signed formula}s satisfying the following conditions: +a finite tree obtained from the nonempty branch of these assumptions by +finitely many complete rule applications to selected branches. A branching +rule adds both resulting branches; a nonbranching rule adds all of its +conclusions. In particular, the following conditions hold: \begin{enumerate} \item The $n$ topmost !!{signed formula}s of the tree are $\sFmla{S_i}{!A_i}$, one below the other. \item Every !!{signed formula} in the tree that is not one of the assumptions results from a correct application of an inference rule - to !!a{signed formula} in the branch above it. + using the required !!{signed formula}s on the branch above it + (none for \Cut{}\iftag{FOL}{ or identity reflexivity, and two for + identity substitution}{}). \end{enumerate} A branch of !!a{tableau} is \emph{closed} iff it contains both -$\sFmla{\True}{!A}$ and~$\sFmla{\False}{!A}$, and \emph{open} -otherwise. !!^a{tableau} in which every branch is closed is a +$\sFmla{\True}{!A}$ and~$\sFmla{\False}{!A}$\iftag{prvTrue}{, or contains +$\sFmla{\False}{\ltrue}$}{}\iftag{prvFalse}{, or contains +$\sFmla{\True}{\lfalse}$}{}, and \emph{open} otherwise. !!^a{tableau} in which every branch is closed is a \emph{closed !!{tableau}} (for its set of assumptions). If !!a{tableau} is not closed, i.e., if it contains at least one open branch, it is \emph{open}. \end{defn} \begin{ex} - Every set of assumptions on its own is !!a{tableau}, but it will - generally not be closed. (Obviously, it is closed only if the - assumptions already contain a pair of !!{signed formula}s - $\sFmla{\True}{!A}$ and~$\sFmla{\False}{!A}$.) + Every finite nonempty set of assumptions on its own is !!a{tableau}, but it will + generally not be closed. (It is closed exactly when the assumptions already contain one + of the closing configurations just specified.) From !!a{tableau} (open or closed) we can obtain a new, larger one by - applying one of the rules of inference to !!a{signed formula}~$!A$ + applying one of the rules of inference to !!a{signed formula}~$\sFmla{S}{!A}$ in it. The rule will append one or more !!{signed formula}s to the end of - any branch containing the occurrence of~$!A$ to which we apply the + any branch containing the occurrence of~$\sFmla{S}{!A}$ to which we apply the rule. For instance, consider the assumption $\sFmla{\True}{!A \land \lnot @@ -77,8 +82,8 @@ !!{signed formula} on that line is the result of applying the $\TRule{\True}{\land}$ rule to the !!{signed formula} on line~$1$). This new !!{tableau} now contains additional !!{signed formula}s, - but to only one ($\sFmla{\True}{\lnot !A}$) can we apply a rule (in - this case, the $\TRule{\True}{\lnot}$ rule). This results in the closed + and we can apply the $\TRule{\True}{\lnot}$ rule to + $\sFmla{\True}{\lnot !A}$. This results in the closed !!{tableau} \begin{center} \begin{tableau}{} diff --git a/content/first-order-logic/tableaux/identity.tex b/content/first-order-logic/tableaux/identity.tex index 889b8ae98..8d7da21fa 100644 --- a/content/first-order-logic/tableaux/identity.tex +++ b/content/first-order-logic/tableaux/identity.tex @@ -66,7 +66,7 @@ \end{oltableau} Here, line $2$ is the first prerequisite !!{formula}~$\sFmla{\True}{\eq[s_1][s_2]}$ of $\TRule{\True}{\eq}$. -Line~$3$ is the second one, of the form $\sFmla{\True}{!A(s_2)}$---think of +Line~$3$ is the second one, of the form $\sFmla{\True}{!A(s_1)}$---think of $!A(x)$ as $\eq[x][s_1]$, then $!A(s_1)$ is $\eq[s_1][s_1]$ and $!A(s_2)$ is $\eq[s_2][s_1]$. @@ -86,7 +86,7 @@ ($s_2$ plays the role of~$t_1$, and $s_3$ the role of~$t_2$). The second prerequisite, of the form~$\sFmla{\True}{!A(s_2)}$ is line~$2$. Here, think of $!A(x)$ as $\eq[s_1][x]$; that makes $!A(s_2)$ into -$\eq[t_1][t_2]$ (i.e., line~$2$) and $!A(s_3)$ into the +$\eq[s_1][s_2]$ (i.e., line~$2$) and $!A(s_3)$ into the !!{formula}~$\eq[s_1][s_3]$ in the conclusion. \end{ex} diff --git a/content/first-order-logic/tableaux/proof-theoretic-notions.tex b/content/first-order-logic/tableaux/proof-theoretic-notions.tex index f71ee6c33..947446cae 100644 --- a/content/first-order-logic/tableaux/proof-theoretic-notions.tex +++ b/content/first-order-logic/tableaux/proof-theoretic-notions.tex @@ -102,7 +102,7 @@ \{\sFmla{\False}{!B}, & \sFmla{\True}{!A}, \sFmla{\True}{!C_1}, \dots, \sFmla{\True}{!C_n}\} \intertext{has a closed !!{tableau}. If $\Gamma \Proves !A$ then there - are $!D_1$, \dots, $!D_m \subseteq \Gamma$ such that} + are $!D_1$, \dots, $!D_m \in \Gamma$ such that} \{\sFmla{\False}{!A}, & \sFmla{\True}{!D_1}, \dots, \sFmla{\True}{!D_m}\} \end{align*} @@ -121,7 +121,12 @@ \{\sFmla{\False}{!B}, \sFmla{\True}{!A}, \sFmla{\True}{!C_1}, \dots, \sFmla{\True}{!C_n}\} \] -are available. Since there is a closed !!{tableau} for these +are available. \iftag{FOL}{Before attaching either tableau, uniformly rename +its eigenconstants to new constants absent from the combined assumptions +and the cut formula. The original assumptions contain none of those +eigenconstants, so they are fixed; all rule applications and branch +closures are preserved.}{} +Since there is a closed !!{tableau} for these assumptions, we can attach it to that branch; every branch through $\sFmla{\True}{!A}$ closes. On the other branch, all of \[ diff --git a/content/first-order-logic/tableaux/propositional-rules.tex b/content/first-order-logic/tableaux/propositional-rules.tex index fa21b1cef..fdf07e981 100644 --- a/content/first-order-logic/tableaux/propositional-rules.tex +++ b/content/first-order-logic/tableaux/propositional-rules.tex @@ -12,6 +12,10 @@ \olsection{Propositional Rules} +In this chapter, $!A \liff !B$ is treated as an abbreviation for +$(!A \lif !B) \land (!B \lif !A)$. Expand this abbreviation +recursively before applying the !!{tableau} rules. + \subsection{Rules for $\lnot$} \begin{defish} diff --git a/content/first-order-logic/tableaux/provability-consistency.tex b/content/first-order-logic/tableaux/provability-consistency.tex index 04498b4bc..e05b8a7f0 100644 --- a/content/first-order-logic/tableaux/provability-consistency.tex +++ b/content/first-order-logic/tableaux/provability-consistency.tex @@ -23,14 +23,19 @@ \begin{proof} There are finite $\Gamma_0 = \{!B_1, \dots, !B_n\}$ and $\Gamma_1 - =\{!C_1, \dots, !C_n\} \subseteq \Gamma$ such that + =\{!C_1, \dots, !C_m\} \subseteq \Gamma$ such that \begin{align*} \{\sFmla{\False}{!A}, & \sFmla{\True}{!B_1}, \dots, \sFmla{\True}{!B_n}\} \\ \{\sFmla{\True}{!A}, & \sFmla{\True}{!C_1}, \dots, \sFmla{\True}{!C_m}\} \end{align*} - have closed !!{tableau}s. Using the \Cut{} rule on $!A$ we can + have closed !!{tableau}s. \iftag{FOL}{Before attaching either tableau, uniformly rename +its eigenconstants to new constants absent from the combined assumptions +and the cut formula. The original assumptions contain none of those +eigenconstants, so they are fixed; all rule applications and branch +closures are preserved.}{} +Using the \Cut{} rule on $!A$ we can combine these into a single closed !!{tableau} that shows $\Gamma_0 \cup \Gamma_1$ is inconsistent. Since $\Gamma_0 \subseteq \Gamma$ and $\Gamma_1 \subseteq \Gamma$, $\Gamma_0 \cup @@ -56,20 +61,16 @@ \sFmla{\True}{!B_1}, \dots, \sFmla{\True}{!B_n}\}. \] -On the other hand, if there is a closed !!{tableau} for the latter, we -can turn it into a closed !!{tableau} of the former by removing every -formula that results from \TRule{\True}{\lnot} applied to the first -assumption~$\sFmla{\True}{\lnot !A}$ as well as that assumption, and -adding the assumption $\sFmla{\False}{!A}$. For if a branch was closed -before because it contained the conclusion of \TRule{\True}{\lnot} -applied to $\sFmla{\True}{\lnot !A}$, i.e., $\sFmla{\False}{!A}$, the -corresponding branch in the new !!{tableau} is also closed. If a -branch in the old tableau was closed because it contained the -assumption $\sFmla{\True}{\lnot !A}$ as well as $\sFmla{\False}{\lnot - !A}$ we can turn it into a closed branch by applying -$\TRule{\False}{\lnot}$ to $\sFmla{\False}{\lnot !A}$ to obtain -$\sFmla{\True}{!A}$. This closes the branch since we added -$\sFmla{\False}{!A}$ as an assumption. +On the other hand, suppose there is a closed !!{tableau} for the +latter set. Begin with the former assumptions and apply \Cut{} to +$\lnot !A$. On the branch containing $\sFmla{\True}{\lnot !A}$, +all assumptions of the given closed !!{tableau} are available; append +its part below those assumptions, retaining all its !!{signed formula}s +and rule applications. Every resulting branch closes. On the branch +containing $\sFmla{\False}{\lnot !A}$, apply $\TRule{\False}{\lnot}$ +to obtain $\sFmla{\True}{!A}$. This branch closes against the initial +assumption $\sFmla{\False}{!A}$. Thus the former set also has a closed +!!{tableau}. \end{proof} \begin{prob} @@ -89,10 +90,10 @@ \] has a closed tableau. Replace the assumption \sFmla{\False}{!A} by \sFmla{\True}{\lnot !A}, and insert the conclusion of - \TRule{\True}{\lnot} applied to \sFmla{\False}{!A} after the + \TRule{\True}{\lnot} applied to \sFmla{\True}{\lnot !A} after the assumptions. Any !!{sentence} in the !!{tableau} justified by appeal to line~$1$ in the old !!{tableau} is now justified by appeal to - line~$n+1$. So if the old !!{tableau} was closed, the new one is. + line~$n+2$. So if the old !!{tableau} was closed, the new one is. It shows that $\Gamma$ is inconsistent, since all assumptions are in~$\Gamma$. \end{proof} @@ -119,32 +120,27 @@ branches, one starting with $\sFmla{\True}{!A}$, the other with $\sFmla{\False}{!A}$. +\iftag{FOL}{Before attaching either tableau, uniformly rename +its eigenconstants to new constants absent from the combined assumptions +and the cut formula. The original assumptions contain none of those +eigenconstants, so they are fixed; all rule applications and branch +closures are preserved.}{} + On the left side, add the part of the first !!{tableau} below its assumptions. Here, every rule application is still correct, since each of the assumptions of the first !!{tableau}, including $\sFmla{\True}{!A}$, is available. Thus, every branch below $\sFmla{\True}{!A}$ closes. - On the right side, add the part of the second !!{tableau} below its - assumption, with the results of any applications - of~$\TRule{\True}{\lnot}$ to $\sFmla{\True}{\lnot !A}$ removed. The - conclusion of $\TRule{\True}{\lnot}$ to $\sFmla{\True}{\lnot !A}$ is - $\sFmla{\False}{!A}$, which is nevertheless available, as it is the - conclusion of the \Cut{} rule on the right side of the combined !!{tableau}. - - If a branch in the second tableau was closed because it contained - the assumption $\sFmla{\True}{\lnot !A}$ (which no longer appears as - an assumption in the combined !!{tableau}) as well as - $\sFmla{\False}{\lnot !A}$, we can applying $\TRule{\False}{\lnot}$ - to $\sFmla{\False}{\lnot !A}$ to obtain $\sFmla{\True}{!A}$. Now the - corresponding branch in the combined !!{tableau} also closes, - because it contains the right-hand conclusion of the \Cut{} rule, - $\sFmla{\False}{!A}$. If a branch in the second !!{tableau} closed - for any other reason, the corresponding branch in the combined - !!{tableau} also closes, since any !!{signed formula}s other than - $\sFmla{\True}{\lnot !A}$ occurring on the branch in the old, second - !!{tableau} also occur on the corresponding branch in the combined - !!{tableau}. + On the right side, where $\sFmla{\False}{!A}$ is available, apply + \Cut{} to $\lnot !A$. On its $\sFmla{\True}{\lnot !A}$ branch, + all assumptions of the second !!{tableau} are available. Append + the part of that !!{tableau} below its assumptions, retaining all + its !!{signed formula}s and rule applications; every resulting + branch closes. On the $\sFmla{\False}{\lnot !A}$ branch, apply + $\TRule{\False}{\lnot}$ to obtain $\sFmla{\True}{!A}$, which + closes against $\sFmla{\False}{!A}$. Hence both sides of the + original \Cut{} close, showing that $\Gamma$ is inconsistent. \end{proof} \end{document} diff --git a/content/first-order-logic/tableaux/provability-propositional.tex b/content/first-order-logic/tableaux/provability-propositional.tex index 4e50f27bc..fc39401c2 100644 --- a/content/first-order-logic/tableaux/provability-propositional.tex +++ b/content/first-order-logic/tableaux/provability-propositional.tex @@ -40,8 +40,8 @@ \begin{oltableau}{} [\sFmla{\False}{\formula{A}}, just=\TAss [\sFmla{\True}{\formula{A} \land \formula{B}}, just=\TAss - [\sFmla{\True{\formula{A}}},just={\TRule{\True}{\land}[2]} - [\sFmla{\True{\formula{B}}},just={\TRule{\True}{\land}[2]}, close + [\sFmla{\True}{\formula{A}},just={\TRule{\True}{\land}[2]} + [\sFmla{\True}{\formula{B}},just={\TRule{\True}{\land}[2]}, close ] ] ] @@ -50,8 +50,8 @@ \begin{oltableau}{} [\sFmla{\False}{\formula{B}}, just=\TAss [\sFmla{\True}{\formula{A} \land \formula{B}}, just=\TAss - [\sFmla{\True{\formula{A}}},just={\TRule{\True}{\land}[2]} - [\sFmla{\True{\formula{B}}},just={\TRule{\True}{\land}[2]}, close + [\sFmla{\True}{\formula{A}},just={\TRule{\True}{\land}[2]} + [\sFmla{\True}{\formula{B}},just={\TRule{\True}{\land}[2]}, close ] ] ] @@ -103,8 +103,8 @@ \begin{oltableau}{} [\sFmla{\False}{\formula{A} \lor \formula{B}}, just=\TAss [\sFmla{\True}{\formula{A}}, just=\TAss - [\sFmla{\False{\formula{A}}},just={\TRule{\False}{\lor}[1]} - [\sFmla{\False{\formula{B}}},just={\TRule{\False}{\lor}[1]}, close + [\sFmla{\False}{\formula{A}},just={\TRule{\False}{\lor}[1]} + [\sFmla{\False}{\formula{B}},just={\TRule{\False}{\lor}[1]}, close ] ] ] @@ -113,8 +113,8 @@ \begin{oltableau}{} [\sFmla{\False}{\formula{A} \lor \formula{B}}, just=\TAss [\sFmla{\True}{\formula{B}}, just=\TAss - [\sFmla{\False{\formula{A}}},just={\TRule{\False}{\lor}[1]} - [\sFmla{\False{\formula{B}}},just={\TRule{\False}{\lor}[1]}, close + [\sFmla{\False}{\formula{A}},just={\TRule{\False}{\lor}[1]} + [\sFmla{\False}{\formula{B}},just={\TRule{\False}{\lor}[1]}, close ] ] ] diff --git a/content/first-order-logic/tableaux/provability-quantifiers.tex b/content/first-order-logic/tableaux/provability-quantifiers.tex index bdecf0319..13aa1d9ca 100644 --- a/content/first-order-logic/tableaux/provability-quantifiers.tex +++ b/content/first-order-logic/tableaux/provability-quantifiers.tex @@ -76,7 +76,7 @@ [\sFmla{\False}{\formula{A}(t)}, just = {\TRule{\False}{\lexists}[1]}, close]]] \end{oltableau}}{} \tagitem{prvAll}{A closed !!{tableau} for - $\sFmla{\False}{\formula{A}(t)}, \sFmla{\True}{\lforall[x][!A(x)]}, $ is: + $\sFmla{\False}{\formula{A}(t)}, \sFmla{\True}{\lforall[x][!A(x)]}$ is: \begin{oltableau} [\sFmla{\False}{\formula{A}(t)}, just = \TAss [\sFmla{\True}{\lforall[x][\formula{A}(x)]}, just = \TAss diff --git a/content/first-order-logic/tableaux/proving-things-quant.tex b/content/first-order-logic/tableaux/proving-things-quant.tex index b7472daef..1c43fb9bc 100644 --- a/content/first-order-logic/tableaux/proving-things-quant.tex +++ b/content/first-order-logic/tableaux/proving-things-quant.tex @@ -37,8 +37,8 @@ ] \end{oltableau} The next line to deal with is~$2$. We use -$\TRule{\True}{\lexists}$. This requires a new !!{constant}; since no -!!{constant}s yet occur, we can pick any one, say,~$a$. +$\TRule{\True}{\lexists}$. This requires a new !!{constant}; choose +$a$ not occurring anywhere on the actual branch, including in~$!A(x)$. \begin{oltableau} [\sFmla{\False}{\lexists[x][\lnot \formula{A}(x)]\lif \lnot \lforall[x][\formula{A}(x)]}, just=\TAss, checked @@ -112,8 +112,9 @@ \end{oltableau} We should always apply a rule with the eigenvariable condition first; in this case that would be $\TRule{\True}{\lexists}$ to -line~$2$. Since the assumptions contain the !!{constant}~$b$, we have -to use a different one; let's pick~$a$ again. +line~$2$. Choose $a$ absent from all the assumptions, including +the !!{formula}s represented by $!A$, $!B$, and~$!C$; in particular, +$a$ must differ from~$b$. \begin{oltableau} [\sFmla{\False}{\lexists[x][\formula{C}(x,b)]}, just=\TAss [\sFmla{\True}{\lexists[x][(\formula{A}(x) \land \formula{B}(x))]}, @@ -257,8 +258,9 @@ ] ] \end{oltableau} -Both new !!{signed formula}s require rules with eigenvariable conditions, so -these should be next: +Both new !!{signed formula}s require rules with eigenvariable conditions. +Choose !!{constant}s $b$ and $c$ not occurring in the assumptions, and +apply these rules next: \begin{oltableau} [\sFmla{\True}{\lforall[x][\formula{A}(x)]}, just=\TAss [\sFmla{\True}{\lforall[x][\formula{A}(x)] \lif @@ -278,7 +280,7 @@ ] \end{oltableau} To close the branches, we have to use the !!{signed formula}s on lines $1$ -and~$3$. The corresponding rules (\TRule{\True}{\lforall} and +and~$4$. The corresponding rules (\TRule{\True}{\lforall} and \TRule{\False}{\lexists}) don't have eigenvariable conditions, so we are free to pick whichever terms are suitable. In this case, that's $b$ and~$c$, respectively. diff --git a/content/first-order-logic/tableaux/proving-things.tex b/content/first-order-logic/tableaux/proving-things.tex index b02d87859..594f5d505 100644 --- a/content/first-order-logic/tableaux/proving-things.tex +++ b/content/first-order-logic/tableaux/proving-things.tex @@ -436,7 +436,7 @@ \item $\sFmla{\False}{\lnot(!A \lif !B) \lif \lnot !B}$. \item $\sFmla{\True}{!A \lif !C}, \sFmla{\False}{\lnot (!A \land \lnot !C)}$. \item $\sFmla{\True}{!A \land \lnot !C}, \sFmla{\False}{\lnot (!A \lif !C)}$. -\item $\sFmla{\True}{!A \lor !B, \lnot !B}, \sFmla{\False}{!A}$. +\item $\sFmla{\True}{!A \lor !B}, \sFmla{\True}{\lnot !B}, \sFmla{\False}{!A}$. \item $\sFmla{\True}{\lnot !A \lor \lnot !B}, \sFmla{\False}{\lnot(!A \land !B)}$. \item $\sFmla{\False}{(\lnot !A \land \lnot !B) \lif\lnot(!A \lor !B)}$. \item $\sFmla{\False}{\lnot(!A \lor !B) \lif (\lnot !A \land \lnot !B)}$. diff --git a/content/first-order-logic/tableaux/rules-and-proofs.tex b/content/first-order-logic/tableaux/rules-and-proofs.tex index fba66e597..44819c228 100644 --- a/content/first-order-logic/tableaux/rules-and-proofs.tex +++ b/content/first-order-logic/tableaux/rules-and-proofs.tex @@ -13,7 +13,7 @@ \olsection{Rules and \usetoken{P}{tableau}} !!^a{tableau} is a systematic survey of the possible ways -!!a{sentence} can be true or false in !!a{structure}. The building +!!a{sentence} can be true or false in \iftag{FOL}{!!a{structure}}{!!a{valuation}}. The building blocks of a tableau are !!{signed formula}s: !!{sentence}s plus a truth value ``sign,'' either $\True$ or~$\False$. These signed !!{formula}s are arranged in a (downward growing) tree. @@ -28,12 +28,13 @@ Intuitively, we might read $\sFmla{\True}{!A}$ as ``$!A$ might be true'' and $\sFmla{\False}{!A}$ as ``$!A$ might be false'' (in some -!!{structure}). +\iftag{FOL}{!!{structure}}{!!{valuation}}). Each !!{signed formula} in the tree is either an \emph{assumption} -(which are listed at the very top of the tree), or it is obtained from -!!a{signed formula} above it by one of a number of rules of -inference. There are two rules for each possible !!{main operator} of +(which are listed at the very top of the tree), or it is obtained by a +rule of inference using the required !!{signed formula}s on its branch +(none for \Cut{}\iftag{FOL}{ or identity reflexivity, and two for +identity substitution}{}). There are two rules for each possible !!{main operator} of the preceding !!{formula}, one for the case where the sign is~$\True$, and one for the case where the sign is~$\False$. Some rules allow the tree to branch, and some only add !!{signed formula}s to the branch. @@ -42,7 +43,9 @@ branch from the root to the place the rule is applied. A branch is \emph{closed} when it contains both $\sFmla{\True}{!A}$ -and $\sFmla{\False}{!A}$. A closed !!{tableau} is one where every branch +and $\sFmla{\False}{!A}$\iftag{prvTrue}{, or contains +$\sFmla{\False}{\ltrue}$}{}\iftag{prvFalse}{, or contains +$\sFmla{\True}{\lfalse}$}{}. A closed !!{tableau} is one where every branch is closed. Under the intuitive interpretation, any branch describes a joint possibility, but $\sFmla{\True}{!A}$ and $\sFmla{\False}{!A}$ are not jointly possible. In other words, if a branch is closed, the @@ -52,8 +55,8 @@ assumption of the form~$\sFmla{\False}{!A}$ false. A closed !!{tableau} \emph{for $!A$} is a closed !!{tableau} with -root~$\sFmla{\False}{!A}$. If such a closed !!{tableau} exists, all +sole assumption~$\sFmla{\False}{!A}$. If such a closed !!{tableau} exists, all possibilities for~$!A$ being false have been ruled out; i.e., $!A$ -must be true in every !!{structure}. +must be true in every \iftag{FOL}{!!{structure}}{!!{valuation}}. \end{document} diff --git a/content/first-order-logic/tableaux/soundness-identity.tex b/content/first-order-logic/tableaux/soundness-identity.tex index 4ba3ab30b..9ec6d2d9d 100644 --- a/content/first-order-logic/tableaux/soundness-identity.tex +++ b/content/first-order-logic/tableaux/soundness-identity.tex @@ -11,8 +11,9 @@ \olsection{Soundness with \usetoken{S}{identity}} \begin{prop} -!!^{tableau}s with rules for identity are sound: no closed !!{tableau} - is satisfiable. +!!^{tableau}s with rules for identity are sound: if a set of + !!{signed formula}s~$\Gamma$ has a closed !!{tableau}, then + $\Gamma$ is unsatisfiable. \end{prop} \begin{proof} @@ -28,13 +29,13 @@ \{\sFmla{\True}{\eq[t][t]}\}$. If the branch is expanded using $\TRule{\True}{\eq}$, we add a signed -!!{formula}~$\sFmla{S}{!A(t_2)}$, but $\Gamma$ contains +!!{formula}~$\sFmla{\True}{!A(t_2)}$, but $\Gamma$ contains both~$\sFmla{\True}{\eq[t_1][t_2]}$ and $\sFmla{\True}{!A(t_1)}$. Thus we have $\Sat{M}{\eq[t_1][t_2]}$ and $\Sat{M}{!A(t_1)}$. Let $s$ be a variable assignment with $s(x) = \Value{t_1}{M}$. By \olref[syn][ass]{prop:sentence-sat-true}, $\Sat{M}{!A(t_1)}[s]$. Since $\varAssign{s}{s}{x}$, by \olref[syn][ext]{prop:ext-formulas}, -$\Sat{M}{!A(x)}[s]$. since $\Sat{M}{\eq[t_1][t_2]}$, we have +$\Sat{M}{!A(x)}[s]$. Since $\Sat{M}{\eq[t_1][t_2]}$, we have $\Value{t_1}{M} = \Value{t_2}{M}$, and hence $s(x) = \Value{t_2}{M}$. By applying \olref[syn][ext]{prop:ext-formulas} again, we also have $\Sat{M}{!A(t_2)}[s]$. By \olref[syn][ass]{prop:sentence-sat-true}, diff --git a/content/first-order-logic/tableaux/soundness.tex b/content/first-order-logic/tableaux/soundness.tex index 136f3a8fe..a76903e7b 100644 --- a/content/first-order-logic/tableaux/soundness.tex +++ b/content/first-order-logic/tableaux/soundness.tex @@ -33,8 +33,8 @@ !!{tableau}s of some kind or other, proving (1)--(3) above requires proving something about the semantic properties of closed !!{tableau}s. We will first define what it means for !!a{signed - formula} to be satisfied in a structure, and then show that if a -!!{tableau} is closed, no structure satisfies all its assumptions. + formula} to be satisfied in \iftag{FOL}{!!a{structure}}{!!a{valuation}}, and then show that if a +!!{tableau} is closed, no \iftag{FOL}{!!{structure}}{!!{valuation}} satisfies all its assumptions. (1)--(3) then follow as corollaries from this result. \end{explain} @@ -66,9 +66,11 @@ applying rules of inference to the !!{tableau} consisting only of assumptions from~$\Gamma$. So if $\Gamma$ were satisfiable, any !!{tableau} for it would be satisfiable. A closed !!{tableau}, -however, is clearly not satisfiable: every branch contains both -$\sFmla{\True}{!A}$ and $\sFmla{\False}{!A}$, and no structure can -both satisfy and not satisfy~$!A$. +however, is clearly not satisfiable: no \iftag{FOL}{!!{structure}}{!!{valuation}} +can satisfy both $\sFmla{\True}{!A}$ and $\sFmla{\False}{!A}$. +\iftag{prvTrue}{Nor can it satisfy $\sFmla{\False}{\ltrue}$.}{} +\iftag{prvFalse}{Nor can it satisfy $\sFmla{\True}{\lfalse}$.}{} +Thus every closed branch is unsatisfiable. Suppose we have a satisfiable !!{tableau}, i.e., !!a{tableau} with at least one satisfiable branch. Applying a rule of inference either adds @@ -80,7 +82,7 @@ satisfiable branch. Let $\Gamma$ be the set of !!{signed formula}s on that branch, and -let $\sFmla{S}{!A} \in \Gamma$ be the !!{signed formula} to which the +except for \Cut, let $\sFmla{S}{!A} \in \Gamma$ be the !!{signed formula} to which the rule is applied. If the rule does not result in a split branch, we have to show that the extended branch, i.e., $\Gamma$ together with the conclusions of the rule, is still satisfiable. If the rule results @@ -125,7 +127,7 @@ \iftag{FOL}{% \item The branch is expanded by applying $\TRule{\True}{\lforall}$ to - $\sFmla{\True}{\lforall[x][!B(x)]} \in \Gamma$: This results in a + $\sFmla{\True}{\lforall[x][!A(x)]} \in \Gamma$: This results in a new !!{signed formula}~$\sFmla{\True}{!A(t)}$ on the branch. Suppose $\Sat{M}{\Gamma}$, in particular, $\Sat{M}{\lforall[x][!A(x)]}$. By @@ -133,16 +135,16 @@ $\Struct{M}$ satisfies $\sFmla{\True}{!A(t)}$. \item The branch is expanded by applying $\TRule{\False}{\lforall}$ to - $\sFmla{\False}{\lforall[x][!B(x)]} \in \Gamma$: This results in a + $\sFmla{\False}{\lforall[x][!A(x)]} \in \Gamma$: This results in a new !!{signed formula}~$\sFmla{\False}{!A(a)}$ where $a$ is !!a{constant} not occurring in~$\Gamma$. Since $\Gamma$ is satisfiable, there is a $\Struct{M}$ such that $\Sat{M}{\Gamma}$, in - particular $\Sat/{M}{\lforall[x][!B(x)]}$. We have to show that + particular $\Sat/{M}{\lforall[x][!A(x)]}$. We have to show that $\Gamma \cup \{\sFmla{\False}{!A(a)}\}$ is satisfiable. To do this, we define a suitable~$\Struct{M'}$ as follows. - By \olref[syn][ass]{prop:sat-quant}, $\Sat/{M}{\lforall[x][!B(x)]}$ - iff for some $s$, $\Sat/{M}{!B(x)}[s]$. Now let $\Struct{M'}$ be + By \olref[syn][ass]{prop:sat-quant}, $\Sat/{M}{\lforall[x][!A(x)]}$ + iff for some $s$, $\Sat/{M}{!A(x)}[s]$. Now let $\Struct{M'}$ be just like $\Struct{M}$, except $\Assign{a}{M'} = s(x)$. By \olref[syn][ext]{cor:extensionality-sent}, for any $\sFmla{\True}{!C} \in \Gamma$, $\Sat{M'}{!C}$, and for any diff --git a/content/first-order-logic/tableaux/tableaux.tex b/content/first-order-logic/tableaux/tableaux.tex index 6592aaf8d..fa8fb95cf 100644 --- a/content/first-order-logic/tableaux/tableaux.tex +++ b/content/first-order-logic/tableaux/tableaux.tex @@ -12,7 +12,7 @@ \begin{editorial} This chapter presents a signed analytic tableaux system. -To include or exclude material relevant to natural deduction as a +To include or exclude material relevant to tableaux as a proof system, use the ``prfTab'' tag. \end{editorial} diff --git a/content/propositional-logic/propositional-logic.tex b/content/propositional-logic/propositional-logic.tex index 3bb6a1aa6..9c8240ab5 100644 --- a/content/propositional-logic/propositional-logic.tex +++ b/content/propositional-logic/propositional-logic.tex @@ -9,7 +9,7 @@ \begin{editorial} This part contains material on classical propositional logic. The first chapter is relatively rudimentary and just lists definitions - and results, many proofs are not carried out but are left as + and results; many proofs are not carried out but are left as exercises. The material on proof systems and the completeness theorem is included from the part on first-order logic, with the ``FOL'' tag set to false. This leaves out everything related to diff --git a/content/propositional-logic/syntax-and-semantics/completeness.tex b/content/propositional-logic/syntax-and-semantics/completeness.tex index db0b73d5f..d25a1ca7e 100644 --- a/content/propositional-logic/syntax-and-semantics/completeness.tex +++ b/content/propositional-logic/syntax-and-semantics/completeness.tex @@ -33,7 +33,7 @@ \begin{enumerate} \item Suppose $!A \in \Gamma$. If also $\lnot !A \in \Gamma$, then $\Gamma$ is inconsistent; and if neither $!A$ nor $\lnot!A$ is in - $\Gamma$ then by \olref[axd]{prop:phi} one of $\Gamma\cup\{!A\}$ and + $\Gamma$ then by \olref[pl][axd][prv]{prop:provability-exhaustive} one of $\Gamma\cup\{!A\}$ and $\Gamma \cup \{\lnot !A\}$ is consistent, which means that $\Gamma$ is not maximal. The other direction is proved the same way. \item If $!A \in \Gamma$ then of course $\Gamma \Proves !A$. On the @@ -79,7 +79,7 @@ facts: \begin{enumerate} \item For each $n$, the set $\Gamma_n$ is consistent (by induction on - $n$, using \olref[axd]{prop:phi}); + $n$, using \olref[pl][axd][prv]{prop:provability-exhaustive}); \item $\Gamma^*$ is consistent; \item $\Gamma^*$ is maximal. \end{enumerate} @@ -98,7 +98,7 @@ \begin{proof} If $\Gamma\Proves/ !A$ then $\Gamma \cup \{\lnot !A\}$ is consistent, -by \olref[axd]{prop:prov-incons}. So by the completeness theorem, $\Gamma \cup +by \olref[pl][axd][prv]{prop:prov-incons}. So by the completeness theorem, $\Gamma \cup \{\lnot !A\}$ is satisfiable, and $\Gamma \Entails/ !A$. \end{proof} diff --git a/content/propositional-logic/syntax-and-semantics/formation-sequences.tex b/content/propositional-logic/syntax-and-semantics/formation-sequences.tex index 764226b40..64fe522b3 100644 --- a/content/propositional-logic/syntax-and-semantics/formation-sequences.tex +++ b/content/propositional-logic/syntax-and-semantics/formation-sequences.tex @@ -1,4 +1,4 @@ -% Part: first-order-logic +% Part: propositional-logic % Chapter: syntax-and-semantics % Section: formation-sequences @@ -33,6 +33,7 @@ \end{enumerate} \end{defn} +\iftag{notprvNot,notprvAnd,notprvIf}{}{% \begin{ex} \[ \tuple{ @@ -59,6 +60,7 @@ may contain `junk': formulas which are redundant or do not contribute to the construction. \end{ex} +} \begin{prop} \ollabel{prop:formed} @@ -126,7 +128,7 @@ Suppose $!A$ has a formation sequence $\tuple{!A_0,\dotsc,!A_n}$. We prove that $!A \in \Frm[L_0]$ by strong induction on~$n$. Our induction hypothesis is that every string of symbols with a -formation sequence of length $m < n$ is in~$\Frm[L_0]$. +formation sequence with final index $m < n$ is in $\Frm[L_0]$. By the definition of a formation sequence, either $!A_n$ is atomic or there must exist $j,k < n$ such that one of the following is the case: @@ -143,7 +145,7 @@ $\tuple{!A_0,\dotsc,!A_j}$ and $\tuple{!A_0,\dotsc,!A_k}$ are formation sequences for $!A_j$ and~$!A_k$ respectively. Since these are proper initial subsequences of the formation sequence -for~$!A$, they both have length less than~$n$. Therefore by +for~$!A$, they both have final index less than~$n$. Therefore by the induction hypothesis, $!A_j$ and~$!A_k$ are in~$\Frm[L_0]$, and so by the definition of !!a{formula}, so is $(!A_j \land !A_k)$. The other cases follow by parallel diff --git a/content/propositional-logic/syntax-and-semantics/formulas.tex b/content/propositional-logic/syntax-and-semantics/formulas.tex index 521adafb5..b7981c16f 100644 --- a/content/propositional-logic/syntax-and-semantics/formulas.tex +++ b/content/propositional-logic/syntax-and-semantics/formulas.tex @@ -14,7 +14,7 @@ \emph{!!{propositional variable}s}\iftag{prvFalse}{\iftag{prvTrue}{,}{ and} the propositional constant~$\lfalse$}{}\iftag{prvTrue}{\iftag{prvFalse}{ - and}{} the propositional constant~$\ltrue$}{} using \emph{logical + and}{ and} the propositional constant~$\ltrue$}{} using \emph{logical connectives}. \begin{enumerate} @@ -34,7 +34,7 @@ We denote this language of propositional logic by $\Lang L_0$. -\iftag{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll}{% +\iftag{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse}{% In addition to the primitive connectives introduced above, we also use the following \emph{defined} symbols: \startycommalist @@ -44,9 +44,9 @@ \iftag{defIf}{\ycomma $\lif$ (!!{conditional})}{}% \iftag{defIff}{\ycomma $\liff$ (!!{biconditional})}{}% \iftag{defFalse}{\ycomma $\lfalse$ (!!{falsity})}{}% - \iftag{defTrue}{\ycomma $\ltrue$ (!!{truth})}}{}. + \iftag{defTrue}{\ycomma $\ltrue$ (!!{truth})}{}.}{} -\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll} +\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse} \begin{explain} A defined symbol is not officially part of the language, but is introduced as an informal abbreviation: it allows us to abbreviate @@ -130,12 +130,12 @@ using a two-place connective~$\ast$, we will often leave out the outermost pair of parentheses and write simply~$!B \ast !C$. -\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll} +\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse} \begin{defn} Formulas constructed using the defined operators are to be understood as follows: -\begin{tagenumerate}{defTrue,defFalse,defNot,defOr,defAnd,defIf,defIff,defEx,defAll} +\begin{tagenumerate}{defTrue,defFalse,defNot,defOr,defAnd,defIf,defIff} \tagitem{defTrue}{$\ltrue$ abbreviates \iftag{prvFalse}{$\lnot\lfalse$}{$(!A \lor \lnot !A)$ for some @@ -156,7 +156,7 @@ \lnot !B)$}.}{} \tagitem{defIf}{$!A \lif !B$ abbreviates - \iftag{prvOr}{$\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{} + \iftag{prvOr}{$(\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{} \tagitem{defIff}{$!A \liff !B$ abbreviates $(!A \lif !B) \land (!B \lif !A)$.}{} diff --git a/content/propositional-logic/syntax-and-semantics/introduction.tex b/content/propositional-logic/syntax-and-semantics/introduction.tex index 4a72da0a1..a31ae4475 100644 --- a/content/propositional-logic/syntax-and-semantics/introduction.tex +++ b/content/propositional-logic/syntax-and-semantics/introduction.tex @@ -14,8 +14,8 @@ !!{propositional variable}s using the propositional connectives $\lnot$, $\land$, $\lor$, $\lif$, and $\liff$. Intuitively, !!a{propositional variable}~$p$ stands for a sentence or proposition -that is true or false. Whenever the ``truth value'' of the -!!{propositional variable} in !!a{formula} is determined, so is the +that is true or false. Whenever the truth values of all the +!!{propositional variable}s in !!a{formula} are determined, so is the truth value of any !!{formula}s formed from them using propositional connectives. We say that propositional logic is \emph{truth functional}, because its semantics is given by functions of truth diff --git a/content/propositional-logic/syntax-and-semantics/preliminaries.tex b/content/propositional-logic/syntax-and-semantics/preliminaries.tex index 6fcfac52c..0bf2837e8 100644 --- a/content/propositional-logic/syntax-and-semantics/preliminaries.tex +++ b/content/propositional-logic/syntax-and-semantics/preliminaries.tex @@ -1,5 +1,5 @@ % Part: propositional-logic -% Chapter: propositional-logic +% Chapter: syntax-and-semantics % Section: preliminaries \documentclass[../../../include/open-logic-section]{subfiles} diff --git a/content/propositional-logic/syntax-and-semantics/semantic-notions.tex b/content/propositional-logic/syntax-and-semantics/semantic-notions.tex index 04dd30d02..84e25271e 100644 --- a/content/propositional-logic/syntax-and-semantics/semantic-notions.tex +++ b/content/propositional-logic/syntax-and-semantics/semantic-notions.tex @@ -33,7 +33,7 @@ \begin{prob} For each of the following four !!{formula}s determine whether it - is (a)~satisfiable, (b)~tautology, and (c)~contingent. + is (a)~satisfiable, (b)~a tautology, and (c)~contingent. \begin{enumerate} \item \( ( \Obj p_0 \lif ( \lnot \Obj p_1 \lif \lnot \Obj p_0 ) ) \). \item \( ( ( \Obj p_0 \land \lnot \Obj p_1 ) \lif ( \lnot \Obj p_0 \land \Obj p_2 )) \liff ( ( \Obj p_2 \lif \Obj p_0 ) \lif ( \Obj p_0 \lif \Obj p_1 )) \). diff --git a/content/propositional-logic/syntax-and-semantics/soundness.tex b/content/propositional-logic/syntax-and-semantics/soundness.tex index a45fc1acf..6fedccc9d 100644 --- a/content/propositional-logic/syntax-and-semantics/soundness.tex +++ b/content/propositional-logic/syntax-and-semantics/soundness.tex @@ -17,12 +17,12 @@ \end{thm} \begin{proof} -By induction on theorems. If $!A$ is an axiom then $\Entails +By induction on the length of a derivation of $!A$ from $\Gamma$. If $!A$ is an axiom then $\Entails !A$ and hence a fortiori $\Gamma \Entails!A$. Similarly if $!A \in \Gamma$, $\Gamma \Entails!A$. For the inductive step, suppose $!A$ is obtained by \emph{modus ponens} from $!C$ and $!C\lif!A$; also assume as inductive -hypothesis that the theorem holds for $!C\lif !A$ and $!C$. The third item -in \olref[sem]{prop:semanticalfacts} gives the desired result. +hypothesis that the theorem holds for $!C\lif !A$ and $!C$. The second item +in \olref[pl][syn][sem]{prop:semanticalfacts} gives the desired result. \end{proof} \begin{cor}