From b0816115dd8198c60de557a023c89cd82db6347d Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:24 +0100 Subject: [PATCH 1/5] first-order-logic/axiomatic-deduction: corrections (34 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit axioms-rules-quantifiers.tex: - l. 25, 28: Both rules need absence from the matrix as well as the antecedent and premises. With A(x)=P(x)→P(a), its a-instance is a tautology but forall x A(x) can be false when P(a) is false and another object satisfies P. - l. 33: Says which finite set of premises the condition of the rule refers to. deduction-theorem-quantifiers.tex: - l. 18: The induction needs a finite set of other premises and eigenconstants that do not occur in A; both are arranged first. - l. 31: The proof reapplies QR with matrix D(x), so it uses the same matrix freshness needed by the rule definition. deduction-theorem.tex: - l. 71: rules-and-proofs.tex permits open formulas throughout. The identity conditional A→A need not be a closed sentence; formula is the correct common category. - l. 77: In FOL, QR is another possible final inference. The next imported section supplies precisely those cases. Exclude QR from the premise/axiom parenthesis and explicitly point to that existing proof; the propositional case is unchanged. identity.tex: - l. 39, 43: The identity axioms explicitly range over closed terms at identity.tex:23, whereas derivability permits open formulas. The unrestricted propositions therefore exceed the axioms. proof-theoretic-notions.tex: - l. 29: Defines Γ ⊢ A for arbitrary Γ through a finite subset, so that fresh constants exist and the conditions on the quantifier rules refer to finitely many premises. - l. 59: Whole-context eigenconstant freshness can fail under enlarging Γ. - l. 69: Raw concatenation adds premises that can contain an eigenconstant used in the other proof. - l. 82: Every preceding occurrence denotes the same formula metavariable !B_i. - l. 82: The last line Ak can be an axiom or a premise, as well as an inference. Its justification, rather than necessarily a rule application, can be reused for each Bi=A. - l. 127: The FOL axiomatic calculus includes both modus ponens and QR. A general finite derivation can therefore have a QR step. provability-quantifiers.tex: - l. 30: The deduction theorem alone removes the antecedent only by adding True to the premises. The axiom True is explicitly ax:ltrue in axioms-rules-propositional.tex:29; using it with meta-modus-ponens prop:mp yields the stated conclusion with the original premises. - l. 35: The current axiomatic calculus admits open formulas (rules-and-proofs.tex), but ax:q1 and ax:q2 permit only closed instantiating terms. provability.tex: - l. 17: This unimported legacy file uses undefined Ax0–Ax3, closure under universal quantification of axioms, and MP-only induction. The actual imported chapter uses the distinct closed-term/QR presentation (not sentence-only, contrary to part of the record). - l. 76, 79, 85: The proposition requires Gamma plus A proving falsity to imply Gamma proving not-A. The printed proof instead assumes not-A and concludes A. - l. 76, 85: The following derivation begins from Γ0∪{A} and concludes using Γ0∪Γ1⊆Γ. Match the first hypothesis to that finite-support name. - l. 124: Line 1 proves A and B and line 2 proves (A and B)->A. Modus ponens therefore yields A, not A or B. The following prose already concludes A. The branch corrects precisely line 3. - l. 135: The two derivations are taken from one common finite Γ_0 ⊆ Γ. - l. 143: Both displayed MP premises already use the same Γ0. Their finite supports can be united beforehand; Γ1 is not introduced in this argument and has no role in the conclusion. Explicitly choose the common finite support at the beginning. - l. 197: The case split is indexed by i and concerns line Ai; A names the final line and need not be an axiom. The conclusion substitutes into Ai, confirming the missing index. - l. 226: The lemma and the next proof line both concern A[y/c]. The first proof line instead writes A[y/x], which changes the substitution being tested. The branch replaces only that mistaken denominator x by c. proving-things-quant.tex: - l. 16: A(x) notation permits other free variables under substitution.tex. An extra free x in B(y) would be captured by the final forall x and prevent the displayed B(a) from being the required instance. - l. 29: The available lines are P->A(a) and P->B(a), not A(a) and B(a), so the two claimed direct applications of modus ponens to conjunction introduction do not match its premises. Chain P->A(a) with A(a)->(B(a)->(A(a) and B(a))) to obtain P->(B(a)->(A(a) and B(a))). proving-things.tex: - l. 19: In the FOL chapter the quantifier rules have already been imported before this section, so modus ponens is not its only inference rule. This particular propositional example uses only modus ponens, which is the intended local restriction. rules-and-proofs.tex: - l. 86: Defines Γ ⊢ A for arbitrary Γ through a finite subset, so that fresh constants exist and the conditions on the quantifier rules refer to finitely many premises. soundness.tex: - l. 55: Entailment is defined for sentences in syntax-and-semantics/semantic-notions.tex:30–34, whereas the calculus admits open intermediate formulas. For sentence endpoints, simultaneously replace all free variables in a finite proof by globally fresh constants. - l. 59: Entailment is defined for sentences, but a derivation may contain formulas with free variables: these are first replaced by new constants. - l. 67: The induction’s base paragraph assumes no inference steps anywhere, while a longer derivation can end with a premise or axiom. State that its validity/membership argument applies to those final-line cases at every length. The theorem remains unchanged. - l. 121: Validity is defined for sentences. - l. 126: Satisfiability is defined for sets of sentences. Co-Authored-By: Claude Opus 5.5 --- .../axioms-rules-quantifiers.tex | 6 ++- .../deduction-theorem-quantifiers.tex | 7 +++- .../axiomatic-deduction/deduction-theorem.tex | 6 ++- .../axiomatic-deduction/identity.tex | 6 +-- .../proof-theoretic-notions.tex | 26 +++++++++--- .../provability-quantifiers.tex | 5 ++- .../axiomatic-deduction/provability.tex | 40 ++++++++++++++----- .../proving-things-quant.tex | 4 +- .../axiomatic-deduction/proving-things.tex | 2 +- .../axiomatic-deduction/rules-and-proofs.tex | 5 +++ .../axiomatic-deduction/soundness.tex | 18 ++++++++- 11 files changed, 95 insertions(+), 30 deletions(-) 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..a402f1fb1 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 ee8b94137..b80c632ce 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 2e2ee0130..40f745aad 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 82635689d..41b2fb5c3 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 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-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..f72e645ab 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 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..f6a18e674 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 ff619e701..6d211b837 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} From 15307db1ca66fd9017e87ee3032906e04a95ede2 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:25 +0100 Subject: [PATCH 2/5] first-order-logic/natural-deduction: corrections (21 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit derivations.tex: - l. 19: The later identity section explicitly adds reflexivity as an inference from no assumptions. The original global definition treats every topmost sentence as an assumption, so it would incorrectly count t=t as an open hypothesis. - l. 28: A topmost sentence may also be the conclusion of an inference without premises (identity introduction), and an assumption is discharged by an inference on its own branch. - l. 31: The old condition tests each upper node separately. A tree with children P-and-Q and R-and-Q and parent Q passes those separate tests via two different conjunction eliminations, but the entire two-premise node is not an instance of any displayed ND rule. - l. 37: The definition only requires each undischarged top sentence to belong to Γ. A finite tree may use a proper subset, including when Γ is infinite. Match the conclusion to that explicit inclusion. identity.tex: - l. 66: The two universal introductions require a and b absent from the undischarged existential premise and their respective conclusions; the existential elimination requires c absent from that premise, the temporary A(a)-and-A(b) assumption and conclusion a=b. propositional-rules.tex: - l. 113: A is an arbitrary sentence and can itself begin with negation. The displayed FalseCl rule concludes A without adding another outer negation; it imposes no positivity restriction. The summary should express that contrast. proving-things-quant.tex: - l. 39: The actual existential premise is ∃x¬A(x), and A(x) may contain preexisting constants. Choose a fresh constant for that matrix and the exact rule-specific scope, excluding the temporary assumption to be discharged. The conclusion ¬∀xA(x) then also excludes it. - l. 92: The constant must not occur in the existential premise, the conclusion, or an assumption left undischarged by the inference. - l. 115: The second existential-elimination example uses a shared witness a while the other premise and conclusion contain the parameter b and arbitrary matrices may contain further constants. Distinct letter names do not establish all freshness conditions. proving-things.tex: - l. 67: This section defines and displays sentence trees, not sequent trees. The sentence whose main operator is examined is the bottom conclusion of the natural-deduction derivation. - l. 118: The three displayed branches are the disjunction premise, ¬A/A in the middle, and A/B on the right. The next paragraph explicitly calls the latter rightmost. Correct the directional description. quantifier-rules.tex: - l. 58: The universal-introduction premise is A(a), which normally contains a. Existential elimination explicitly permits the temporary A(a) assumptions it discharges. - l. 100: The deliberately invalid universal-introduction example marks its A(a) assumption with discharge label 1, but the following existential elimination omits that matching label. rules-and-proofs.tex: - l. 14: Unlike the AX driver, this ND chapter states no restriction excluding primitive truth or biconditional, while the default language configuration admits both and the ND rule inventory has neither. - l. 20: The immediately following propositional rule inventory explicitly permits FalseCl to discharge not-A assumptions. The purported list of discharge rules omits this classical rule; it is distinct from negation introduction and must be included. - l. 27: A topmost sentence that is the conclusion of an inference without premises (identity introduction) is not an assumption. - l. 32: The definition explicitly makes every node a sentence, and the surrounding premise/conclusion description uses sentences. Sequents is a copied category name from the other proof system. soundness-identity.tex: - l. 44: The second identity-elimination rule, from A(t_2) to A(t_1), was not treated. soundness.tex: - l. 98: The PL branch supplies a valuation v; the unconditional structure token incorrectly labels it. Put each noun and symbol in its corresponding branch. - l. 191: The step passes from satisfaction of the set Gamma to satisfaction of each member under every assignment. - l. 212: Negation elimination has two premises ¬A and A (propositional-rules.tex:91–95), and its soundness case is explicitly included below. Include it in this claimed list of multi-premise rules. Co-Authored-By: Claude Opus 5.5 --- .../natural-deduction/derivations.tex | 18 ++++++++++-------- .../natural-deduction/identity.tex | 3 ++- .../natural-deduction/propositional-rules.tex | 2 +- .../natural-deduction/proving-things-quant.tex | 14 +++++++++----- .../natural-deduction/proving-things.tex | 4 ++-- .../natural-deduction/quantifier-rules.tex | 9 ++++----- .../natural-deduction/rules-and-proofs.tex | 15 ++++++++++----- .../natural-deduction/soundness-identity.tex | 2 ++ .../natural-deduction/soundness.tex | 7 ++++--- 9 files changed, 44 insertions(+), 30 deletions(-) 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/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..c1ad359ca 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 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} From e583ec67c99ef3ed9ebe115d23c0471ae9df2efc Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:25 +0100 Subject: [PATCH 3/5] first-order-logic/proof-systems: corrections (10 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit axiomatic-deduction.tex: - l. 15: A derivation is an individual sequence, while a system specifies the permitted derivations. Correct the category of the opening subject and the plural possessive referring back to it. - l. 48: Clause (2) permits a premise from the given set Γ; it does not require every member of Γ to be used. For infinite Γ containing A, the one-line proof of A is valid, but equality with its finite used-premise set would be impossible. State inclusion. natural-deduction.tex: - l. 25: The universal exactly-two-rules assertion includes nullary falsity and optional truth. The replacement describes the actual organizational pattern without a false uniform inventory. Its quantifier phrase follows the live FOL tag. sequent-calculus.tex: - l. 19: The next sentence permits each sequence to be empty independently; the examples have different left and right lengths. Independent indices m,n express the defined pair of sequences. tableaux.tex: - l. 24: Cut needs no premise; identity also includes premise-free reflexivity and two-premise substitution. Require complete applications on the branch and state the exact exceptional arities, guarding identity by FOL. - l. 31: Expanding T(forall x P(x)) gives T P(t), whereas its immediate syntactic subformula is P(x). Signed pairs are also not themselves syntactic subformulas. - l. 38: The neighboring true-conjunction rule and the TRule convention name a rule by sign and connective. The full formula is its principal premise, not its rule name. - l. 57: Node 2 is true(A∧B), whose two children are true A and true B. Both justifications must name true conjunction; the conditional rule is not applied. - l. 80: This is an operative claim about the witness recovered from the described tableau, unlike a named FOL example in a general historical survey. The PL witness is a valuation; the FOL witness is a structure. - l. 83: In propositional logic the open branch yields a valuation, not a structure. Co-Authored-By: Claude Opus 5.5 --- .../proof-systems/axiomatic-deduction.tex | 8 +++--- .../proof-systems/natural-deduction.tex | 6 ++--- .../proof-systems/sequent-calculus.tex | 2 +- .../proof-systems/tableaux.tex | 26 +++++++++++-------- 4 files changed, 23 insertions(+), 19 deletions(-) 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/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..f3065907a 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 141990c1d..a7e01a0c4 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 From cc204a3f79a83567cbadb95a3517604f582f201b Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:26 +0100 Subject: [PATCH 4/5] first-order-logic/sequent-calculus: corrections (21 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit derivations.tex: - l. 29: The old clause tests each premise separately and exempts a formula value S rather than the bottom occurrence. Two children P=>P with parent Q,P=>P each individually fit left weakening, but their two-premise combination is not a single displayed rule. proof-theoretic-notions.tex: - l. 11: The file identifies fol/seq/ptn and defines LK provability and consistency, not natural deduction. Correct its copied editorial system name. provability-consistency.tex: - l. 51: LK antecedents are finite sequences; proof-theoretic-notions defines Γ⊢A via a finite subset when Γ is arbitrary. Select that finite witness in each direction. - l. 56, 65, 67: Γ ⊢ A is defined through a finite subset of Γ, and sequents are finite: a finite Γ_0 is chosen. provability-propositional.tex: - l. 50, 51: The actual conjunction-right rule in propositional-rules.tex:46–49 shares Γ in both premises. Add left weakening and exchange to the first identity, and left weakening to the second, obtaining the common antecedent A,B. proving-things-quant.tex: - l. 26: The final eigenconstant assertion requires a absent from the actual matrix. A(x) is schematic and can include constants, so select a fresh one when introducing it; all displayed instances are then legal. - l. 107: The first of these sequents has a derivation without right contraction. proving-things.tex: - l. 86: Each of these four identical transitions swaps antecedent formulas and keeps succedent B unchanged. Use left exchange; preserve the file’s actual right-exchange steps. - l. 104, 125, 147: The exchange is on the left; the succedent is unchanged. - l. 178: Conjunction-left changes only A∧B; both prose candidate premises must retain ¬B. - l. 340: The fourth propositional exercise has a derivation with no contraction at all: A=>A, then right negation =>A,not-A, right exchange =>not-A,A, left negation not-not-A=>A, and right implication =>not-not-A implies A. rules-and-proofs.tex: - l. 14: The default repository language admits primitive biconditional, but this LK chapter has no biconditional rules and states no local restriction. sequent-calculus.tex: - l. 14: The chapter driver already selects a propositional presentation when FOL is false, so the unconditional first-order description misstates that supported branch. Guard only the scope adjective by the existing FOL tag. soundness-identity.tex: - l. 23: identity.tex displays two equality rules. The argument treats the first; the equality of term values and substitution equivalence also yields the reverse rule. Identify the first case and explicitly state the symmetric case. - l. 41: The second rule for = was not treated. soundness.tex: - l. 98: The paragraph covers both weakening rules. Right weakening changes only the succedent, so the antecedent equality with A,Γ is false for it. State both antecedents; the membership argument then works in both cases. Co-Authored-By: Claude Opus 5.5 --- .../sequent-calculus/derivations.tex | 6 ++--- .../proof-theoretic-notions.tex | 2 +- .../provability-consistency.tex | 23 +++++++++++-------- .../provability-propositional.tex | 6 +++++ .../sequent-calculus/proving-things-quant.tex | 4 ++-- .../sequent-calculus/proving-things.tex | 14 +++++------ .../sequent-calculus/rules-and-proofs.tex | 4 ++++ .../sequent-calculus/sequent-calculus.tex | 2 +- .../sequent-calculus/soundness-identity.tex | 4 +++- .../sequent-calculus/soundness.tex | 2 +- 10 files changed, 41 insertions(+), 26 deletions(-) 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..cf73f72a5 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 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..1866798dd 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 From 89b58d10f628cbc35287509824b799fbbbf51010 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:27 +0100 Subject: [PATCH 5/5] first-order-logic/tableaux: corrections (40 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit derivations.tex: - l. 26: The preceding informal construction requires complete rule applications, but the stated local per-formula conditions alone do not enforce that construction. - l. 32: The declared Cut rule is premise-free. For the FOL version, identity.tex 16–39 additionally declares premise-free reflexivity and two-premise signed substitution. The universal one-principal-formula ancestry clause excludes these actual rules. - l. 35: The default configuration enables primitive truth and falsity, but the chapter has no rules decomposing them and the old closure definition recognizes only complementary pairs. - l. 43: The opening explicitly generates a starting branch from one or more assumptions (17–20), and the formal definition requires a finite tree with that assumption trunk (24–26). - l. 51: The rule is applied to an occurrence of the signed formula. - l. 80: The schematic A may itself be B∧C, so T A can admit a conjunction rule too. The example needs only the chosen negation expansion, not uniqueness of applicable rules. identity.tex: - l. 69: With A(x) defined as x=s_1, the reflexive premise at line 3 is A(s_1), while A(s_2) is the intended conclusion s_2=s_1. The branch assigns the premise its correct substitution instance. - l. 89: The paragraph defines A(x) as s_1=x and identifies its second premise as line 2. Substitution gives A(s_2) as s_1=s_2, not the rule-schematic t_1=t_2. The branch uses the actual example’s terms. proof-theoretic-notions.tex: - l. 105: D_1,...,D_m denote individual formulas, not sets of premises. Each is a member of Gamma; their braced set is a subset. The branch replaces the subset relation with membership in the displayed finite-support assertion. - l. 124: An eigenconstant introduced by T∃/F∀ must be absent from the branch above. Grafting a proof using a under a new assumption Q(a) violates that requirement. propositional-rules.tex: - l. 14: The only displayed connective rules are for negation, conjunction, disjunction and implication. There is no local fragment restriction, and the default configuration makes biconditional primitive. provability-consistency.tex: - l. 26: The first premise list has n B-formulas, while the independent second list has m C-formulas in the ensuing tableau. Its finite set therefore ends in C_m, not C_n. The branch makes that independent index consistent. - l. 33: Both the short Cut combination and the later detailed graft add assumptions above copied quantifier steps. - l. 59: The two deletion-based proof transformations can remove a premise of a later identity-substitution inference. Retain the entire old proof below a new Cut on the negated formula. - l. 92: The rule for a true negation uses T ¬A and yields F A. - l. 95: The construction replaces the first assumption by true not-A and retains n supporting assumptions, so the initial lines are 1 through n+1. It then inserts the derived false A after all assumptions, on line n+2. - l. 121: Eigenconstants of one tableau may occur in the assumptions of the other or in the cut formula; they are renamed first. - l. 128: The second tableau has several assumptions in its trunk, so the singular is wrong. This issue shares that replacement, rather than applying a conflicting standalone edit to a paragraph that must also be repaired mathematically. - l. 128: The modal auxiliary can requires the bare infinitive apply. provability-propositional.tex: - l. 43, 53: The signed-formula notation takes separate sign and formula arguments. The source encloses A/B inside the True/False argument, which puts formula text into the sign box and leaves the formula argument missing. proving-things-quant.tex: - l. 40: Schematic A(x) may contain constants. Inspect the actual branch, including matrices, before choosing the eigenconstant; absence from the schematic display alone does not prove freshness. - l. 115: Freshness is absence from the actual branch, including constants hidden inside schematic matrices. - l. 260: The constants must be chosen not to occur in the assumptions. - l. 281: The tree numbers T∀A as 1, the true negated existential as 3, and F∃B as 4. The reusable false-existential rule applies to 4, as its displayed justifications already show. rules-and-proofs.tex: - l. 16, 31, 57: The file is imported under both fol/tab/rul and pl/tab/rul. Its three unconditional structure nouns should be valuations in the PL branch, matching the semantics used in soundness.tex. - l. 34: The declared Cut rule is premise-free. For the FOL version, identity.tex 16–39 additionally declares premise-free reflexivity and two-premise signed substitution. The universal one-principal-formula ancestry clause excludes these actual rules. - l. 45: When ⊤ or ⊥ is primitive, a branch also closes on F ⊤ or T ⊥. - l. 55: Having F A as the root alone permits another assumption T A and a trivially closed tableau even for invalid A. The following validity conclusion requires F A to be the only assumption, exactly as the theoremhood definition later states. soundness-identity.tex: - l. 14: The stated paraphrase of soundness concerns whole closed branches and is automatic from closure; it fails to state unsatisfiability of the initial assumptions, which the proof establishes. - l. 31: The equality-substitution rule here has T equality and T A(t_1) as premises, so its conclusion is T A(t_2). The sign S is neither introduced nor arbitrary in that rule. The branch supplies True. soundness.tex: - l. 36: Unlike the generic introductory comparison, these sentences promise the precise interpretation definition and use its object in the soundness contradiction. The immediately following definition explicitly selects FOL structures versus PL valuations. - l. 69: It is no structure, not every branch, that has the property: none satisfies both T A and F A (nor F ⊤ or T ⊥, where these are primitive). - l. 83: The proof later handles Cut correctly by choosing a truth value for A; Cut has no principal formula already in Γ. Except that rule from the preliminary premise selection and retain every subsequent case. - l. 128, 136, 140, 144: A quantifier-rule instance must use the same matrix in its premise, instantiated conclusion and semantic argument. The source switches B(x) to A(t)/A(a). tableaux.tex: - l. 15: The chapter declares a signed analytic tableaux system and uses the prfTab selector. The editorial calls that selector natural deduction, which is a different available proof system. The branch names tableaux. Co-Authored-By: Claude Opus 5.5 --- .../tableaux/derivations.tex | 27 ++++--- .../first-order-logic/tableaux/identity.tex | 4 +- .../tableaux/proof-theoretic-notions.tex | 9 ++- .../tableaux/propositional-rules.tex | 4 ++ .../tableaux/provability-consistency.tex | 72 +++++++++---------- .../tableaux/provability-propositional.tex | 8 +-- .../tableaux/proving-things-quant.tex | 16 +++-- .../tableaux/rules-and-proofs.tex | 19 ++--- .../tableaux/soundness-identity.tex | 7 +- .../first-order-logic/tableaux/soundness.tex | 24 ++++--- .../first-order-logic/tableaux/tableaux.tex | 2 +- 11 files changed, 105 insertions(+), 87 deletions(-) diff --git a/content/first-order-logic/tableaux/derivations.tex b/content/first-order-logic/tableaux/derivations.tex index 5ed8b3702..754dd0300 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 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..b28e0f1ae 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 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/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..a338cadd3 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 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}