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 046dd4b3..a402f1fb 100644 --- a/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex @@ -22,13 +22,15 @@ \begin{defn}[Rules for quantifiers] \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{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 ee8b9413..b80c632c 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),\\ diff --git a/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex b/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex index 2e2ee013..40f745aa 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$, diff --git a/content/first-order-logic/axiomatic-deduction/identity.tex b/content/first-order-logic/axiomatic-deduction/identity.tex index 82635689..41b2fb5c 100644 --- a/content/first-order-logic/axiomatic-deduction/identity.tex +++ b/content/first-order-logic/axiomatic-deduction/identity.tex @@ -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 d36ce9e4..1f509ca4 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-quantifiers.tex b/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex index 2e60b409..a82cbde7 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 dced2594..f72e645a 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} @@ -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 @@ -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 bea1d636..0d0caff3 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 d3dcd567..37e0fc3f 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 29cce925..f6a18e67 100644 --- a/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex +++ b/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex @@ -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 ff619e70..6d211b83 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 @@ -118,12 +132,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/natural-deduction/derivations.tex b/content/first-order-logic/natural-deduction/derivations.tex index 72e933e1..df69bafd 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 17aa3d0e..bfa78891 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/propositional-rules.tex b/content/first-order-logic/natural-deduction/propositional-rules.tex index 6dc2d8a0..30378697 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 74225028..2799b8b4 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 09f8780f..6e312b6d 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 0962ebd5..4d978d87 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 c963a427..c1ad359c 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 diff --git a/content/first-order-logic/natural-deduction/soundness-identity.tex b/content/first-order-logic/natural-deduction/soundness-identity.tex index 44f0c757..830bf122 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 ad856a3a..03757cc3 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 dce22bfb..628e4826 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/natural-deduction.tex b/content/first-order-logic/proof-systems/natural-deduction.tex index 54737918..bcef96ba 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 bc1fcf6e..f3065907 100644 --- a/content/first-order-logic/proof-systems/sequent-calculus.tex +++ b/content/first-order-logic/proof-systems/sequent-calculus.tex @@ -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 diff --git a/content/first-order-logic/proof-systems/tableaux.tex b/content/first-order-logic/proof-systems/tableaux.tex index 141990c1..a7e01a0c 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] ] ] ] @@ -77,10 +80,11 @@ computer. However, !!a{tableau} is often hard to read and their connection to proofs are 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 355e85f9..dcab665c 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 a8eaf757..1b7a1c6f 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 850d945f..a0d46d92 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 1f0dd69c..de6fee20 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 6ad9237b..5b23cfa1 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 84edc50b..230fae13 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 4cabc00a..87217f51 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 2a9a7d05..cf73f72a 100644 --- a/content/first-order-logic/sequent-calculus/sequent-calculus.tex +++ b/content/first-order-logic/sequent-calculus/sequent-calculus.tex @@ -11,7 +11,7 @@ \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. \end{editorial} diff --git a/content/first-order-logic/sequent-calculus/soundness-identity.tex b/content/first-order-logic/sequent-calculus/soundness-identity.tex index e934b6ef..8e8b61d4 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 d744de04..1866798d 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 diff --git a/content/first-order-logic/tableaux/derivations.tex b/content/first-order-logic/tableaux/derivations.tex index 5ed8b370..754dd030 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$ 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 889b8ae9..8d7da21f 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 f71ee6c3..947446ca 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 fa21b1ce..fdf07e98 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 04498b4b..e05b8a7f 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 4e50f27b..b28e0f1a 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 ] ] ] diff --git a/content/first-order-logic/tableaux/proving-things-quant.tex b/content/first-order-logic/tableaux/proving-things-quant.tex index b7472dae..1c43fb9b 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/rules-and-proofs.tex b/content/first-order-logic/tableaux/rules-and-proofs.tex index fba66e59..44819c22 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 4ba3ab30..a338cadd 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,7 +29,7 @@ \{\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 diff --git a/content/first-order-logic/tableaux/soundness.tex b/content/first-order-logic/tableaux/soundness.tex index 136f3a8f..a76903e7 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 6592aaf8..fa8fb95c 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}