From a89d43baa80d55c0ed11e9b142479f0118aa0f1b Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:07:27 +0100 Subject: [PATCH 01/21] axiomatic-deduction: references, parentheses, closed terms, a proof step Found while reviewing the French translation (KokunoYumeto/OpenLogic-fr): - OLP-0115, axioms-rules-quantifiers.tex: the two QR rules were \item's outside any list; now in an enumerate. - OLP-0118, proof-theoretic-notions.tex: in FOL a step may also follow by QR, so "by a rule of inference" rather than "by modus ponens". - OLP-0119, deduction-theorem.tex: missing closing parenthesis in derivfacts:a. - OLP-0120, deduction-theorem-quantifiers.tex: missing closing parenthesis in the last displayed theorem. - OLP-0122, provability-propositional.tex: A /\ B |- B uses ax:land2 (ax:land1 was cited twice); ~A -> (A -> \bot) is an instance of ax:lnot2, not ax:lnot1. - OLP-0123, provability-quantifiers.tex: from Gamma |- T -> Ax A(x) the deduction theorem only gives Gamma + {T} |- Ax A(x); with |- T (ax:ltrue) the meta-version of modus ponens gives Gamma |- Ax A(x). - OLP-0124, soundness.tex: three occurrences of B without the formula marker. - OLP-0125, identity.tex: the identity axioms are only for closed terms, and in this system derivations consist of formulas, not just sentences; prop:iden1 and prop:iden2 hold for closed terms. (For an open term y, y = y is not derivable: interpret free variables by a new object * with * not identical to itself, quantifiers ranging over the old domain; every axiom, MP and QR preserve truth there, y = y does not.) - OLP-0643, provability.tex (a section no driver imports; it uses an older axiom system Ax0-Ax3): item (2) assumed Gamma_0 + {~A} |- \bot and concluded Gamma_0 |- A, the converse of what it proves; the land-left derivation concluded A \/ B instead of A; the proof of lem:free-for wrote A[y/x] for A[y/c]. - Noticed in the same check: in provability-quantifiers.tex the same restriction to closed terms holds for prop:provability-quantifiers (A(t) |- Ex A(x) fails for open t by the same interpretation); "$!B_i$" in proof-theoretic-notions.tex; "ponens" in provability-propositional.tex. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit e6ecda14c67327ecf645e90e5d02b95a6fe6b012) --- .../axioms-rules-quantifiers.tex | 2 ++ .../deduction-theorem-quantifiers.tex | 2 +- .../axiomatic-deduction/deduction-theorem.tex | 2 +- .../axiomatic-deduction/identity.tex | 6 +++--- .../proof-theoretic-notions.tex | 4 ++-- .../provability-propositional.tex | 6 +++--- .../provability-quantifiers.tex | 5 +++-- .../axiomatic-deduction/provability.tex | 14 +++++++------- .../axiomatic-deduction/soundness.tex | 6 +++--- 9 files changed, 25 insertions(+), 22 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..6f8ecc3b2 100644 --- a/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex @@ -21,12 +21,14 @@ \end{defn} \begin{defn}[Rules for quantifiers] +\begin{enumerate} \item If $!B \lif !A(a)$ already occurs in the !!{derivation} and $a$ does not occur in~$\Gamma$ or~$!B$, then $!B \lif \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 !B$ is a correct inference step. +\end{enumerate} \end{defn} We'll abbreviate either of these by ``\QR.'' 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..943cc06f2 100644 --- a/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex @@ -41,7 +41,7 @@ \intertext{Since the eigenvariable condition still applies, we can add a step to this !!{derivation} justified by \QR, and get} \Gamma & \Proves (!A \land !C) \lif \lforall[x][!D(x)].\\ \intertext{We also have} - & \Proves ((!A \land !C) \lif \lforall[x][!D(x)]) \lif (!A \lif (!C \lif \lforall[x][!D(x)]),\\ + & \Proves ((!A \land !C) \lif \lforall[x][!D(x)]) \lif (!A \lif (!C \lif \lforall[x][!D(x)])),\\ \intertext{so by modus ponens,} \Gamma & \Proves !A \lif (!C \lif \lforall[x][!D(x)]), \end{align*} diff --git a/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex b/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex index 2e2ee0130..e454359d1 100644 --- a/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex +++ b/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex @@ -104,7 +104,7 @@ \ollabel{prop:derivfacts} \begin{enumerate} \item $\Proves (!A \lif !B) \lif ((!B \lif !C) - \lif (!A \lif !C)$; \ollabel{derivfacts:a} + \lif (!A \lif !C))$; \ollabel{derivfacts:a} \item If $\Gamma \cup \{ \lnot !A\} \Proves \lnot !B$ then $\Gamma \cup \{ !B\} \Proves !A$ (Contraposition); \ollabel{derivfacts:b} diff --git a/content/first-order-logic/axiomatic-deduction/identity.tex b/content/first-order-logic/axiomatic-deduction/identity.tex index 82635689d..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..31431c42e 100644 --- a/content/first-order-logic/axiomatic-deduction/proof-theoretic-notions.tex +++ b/content/first-order-logic/axiomatic-deduction/proof-theoretic-notions.tex @@ -79,7 +79,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 rule which justifies~$!A_k = !A$. \end{proof} @@ -124,7 +124,7 @@ \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 + or follows from previous !!{formula}s by a rule of inference. Take $\Gamma_0$ to be those $!A_i$ which are in~$\Gamma$. Then the !!{derivation} is likewise !!a{derivation} from~$\Gamma_0$, and so $\Gamma_0 \Proves !A$. diff --git a/content/first-order-logic/axiomatic-deduction/provability-propositional.tex b/content/first-order-logic/axiomatic-deduction/provability-propositional.tex index 94086f3bf..db0feda28 100644 --- a/content/first-order-logic/axiomatic-deduction/provability-propositional.tex +++ b/content/first-order-logic/axiomatic-deduction/provability-propositional.tex @@ -30,7 +30,7 @@ \begin{proof} \begin{enumerate} - \item From \olref[prp]{ax:land1} and \olref[prp]{ax:land1} by + \item From \olref[prp]{ax:land1} and \olref[prp]{ax:land2} by modus ponens. \item From \olref[prp]{ax:land3} by two applications of modus ponens. @@ -47,7 +47,7 @@ \begin{proof} \begin{enumerate} - \item From \olref[prp]{ax:lnot1} we get $\Proves \lnot !A \lif (!A + \item From \olref[prp]{ax:lnot2} we get $\Proves \lnot !A \lif (!A \lif \lfalse)$ and $\Proves \lnot !B \lif (!B \lif \lfalse)$. So by the deduction theorem, we have $\{\lnot !A\} \Proves !A \lif \lfalse$ and $\{\lnot !B\} \Proves !B \lif \lfalse$. From @@ -55,7 +55,7 @@ \lor !B) \lif \lfalse$. By the deduction theorem, $\{!A \lor !B, \lnot !A, \lnot !B\} \Proves \lfalse$. \item From \olref[prp]{ax:lor1} and \olref[prp]{ax:lor2} by modus - ponsens. + ponens. \end{enumerate} \end{proof} diff --git a/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex b/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex index 2e60b409e..a82cbde7e 100644 --- a/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/provability-quantifiers.tex @@ -27,12 +27,13 @@ \begin{proof} By the deduction theorem, $\Gamma \Proves \ltrue \lif !A(c)$. Since $c$ does not occur in $\Gamma$ or~$\top$, we get $\Gamma \Proves -\ltrue \lif \lforall[x][!A(x)]$. By the deduction theorem again, $\Gamma \Proves -\lforall[x][!A(x)]$. +\ltrue \lif \lforall[x][!A(x)]$. Since $\Proves \ltrue$ by \olref[prp]{ax:ltrue}, \olref[ded]{prop:mp} +gives $\Gamma \Proves \lforall[x][!A(x)]$. \end{proof} \begin{prop} \ollabel{prop:provability-quantifiers} +For any closed term~$t$: \begin{tagenumerate}{prvEx,prvAll} \tagitem{prvEx}{$!A(t) \Proves \lexists[x][!A(x)]$.}{} diff --git a/content/first-order-logic/axiomatic-deduction/provability.tex b/content/first-order-logic/axiomatic-deduction/provability.tex index dced25942..307cf6c5e 100644 --- a/content/first-order-logic/axiomatic-deduction/provability.tex +++ b/content/first-order-logic/axiomatic-deduction/provability.tex @@ -73,13 +73,13 @@ 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 @@ -121,7 +121,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 @@ -223,7 +223,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/soundness.tex b/content/first-order-logic/axiomatic-deduction/soundness.tex index ff619e701..8a2c35831 100644 --- a/content/first-order-logic/axiomatic-deduction/soundness.tex +++ b/content/first-order-logic/axiomatic-deduction/soundness.tex @@ -77,9 +77,9 @@ {\olref[pl][syn][sem]{thm:sem-deduction}}. \iftag{FOL}{Now suppose the last step is justified by -\QR. Then that step has the form $!C \lif \lforall[x][B(x)]$ and +\QR. Then that step has the form $!C \lif \lforall[x][!B(x)]$ and there is a preceding step $!C \lif !B(c)$ with $c$ not in $\Gamma$, -$!C$, or $\lforall[x][B(x)]$. By induction hypothesis, $\Gamma +$!C$, or $\lforall[x][!B(x)]$. By induction hypothesis, $\Gamma \Entails !C \lif !B(c)$. By \olref[syn][sem]{thm:sem-deduction}, $\Gamma \cup \{!C\} \Entails !B(c)$. @@ -94,7 +94,7 @@ like $\Struct{M}$ except that $\Assign{c}{M'} = s(x)$. Since $c$ does not occur in~$\Gamma$ or~$!C$, $\Sat{M'}{\Gamma \cup \{!C\}}$ by \olref[syn][ext]{cor:extensionality-sent}. Since $\Gamma \cup \{!C\} -\Entails !B(c)$, $\Sat{M'}{B(c)}$. Since $!B(c)$ is !!a{sentence}, +\Entails !B(c)$, $\Sat{M'}{!B(c)}$. Since $!B(c)$ is !!a{sentence}, $\Sat{M'}{!B(c)}[s]$ by \olref[syn][ass]{prop:sentence-sat-true}. $\Sat{M'}{!B(x)}[s]$ iff $\Sat{M'}{!B(c)}[s]$ by \olref[syn][ext]{prop:ext-formulas} (recall that From f570622ab7b02b689ab74ea1a5ccc03f6b799584 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:10:11 +0100 Subject: [PATCH 02/21] first-order-logic/introduction: quantifier scopes, predicates, domain Found while reviewing the French translation (KokunoYumeto/OpenLogic-fr): - OLP-0140, first-order-logic.tex: in three places the second argument of \lforall closed after the whole entailment (or after a later formula, across $...$) instead of after the conditional. The printed result is the same since \lforall prints its scope as is, but the markup now matches the formulas. - OLP-0143, satisfaction.tex: it is predicate symbols, not constants, that can have more than one place. - OLP-0143, satisfaction.tex: the example domain is {0, 1, 2}, so the assignment maps variables to 0, 1, or 2 (not 1, 2, or 3). - OLP-0146, substitution.tex: \lforall[v_0][\Atom{P}]{v_0} closed the quantifier's scope before the argument of \Atom. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 3e8681c5ccb495d104701f13e58332a35d42562f) --- .../introduction/first-order-logic.tex | 12 ++++++------ .../first-order-logic/introduction/satisfaction.tex | 4 ++-- .../first-order-logic/introduction/substitution.tex | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/content/first-order-logic/introduction/first-order-logic.tex b/content/first-order-logic/introduction/first-order-logic.tex index 2d9e147ca..f48252600 100644 --- a/content/first-order-logic/introduction/first-order-logic.tex +++ b/content/first-order-logic/introduction/first-order-logic.tex @@ -48,8 +48,8 @@ done, we can also give precise definitions of the other semantical terms such as ``follows from'' or ``is logically true.'' These definitions will make it possible to settle, again with mathematical -precision, whether, e.g., $\lforall[x][(!A(x) \lif !B(x)), -\lexists[x][!A(x)] \Entails \lexists[x][!B(x)]]$. The answer will, of +precision, whether, e.g., $\lforall[x][(!A(x) \lif !B(x))], +\lexists[x][!A(x)] \Entails \lexists[x][!B(x)]$. The answer will, of course, be ``yes.'' If you've already been trained to symbolize sentences of English in first-order logic, you will recognize this as, e.g., the symbolizations of, say, ``All ants are insects, there are @@ -66,8 +66,8 @@ ``natural deduction'' or ``truth trees,'' but there are many others. The purpose of !!{derivation} systems is to provide tools using which the logicians' questions above can be answered: e.g., a natural deduction -!!{derivation} in which $\lforall[x][(!A(x) \lif !B(x))$ and -$\lexists[x][!A(x)]$ are premises and $\lexists[x][!B(x)]]$ is the +!!{derivation} in which $\lforall[x][(!A(x) \lif !B(x))]$ and +$\lexists[x][!A(x)]$ are premises and $\lexists[x][!B(x)]$ is the conclusion (last line) \emph{verifies} that $\lexists[x][!B(x)]$ logically follows from $\lforall[x][(!A(x) \lif !B(x))]$ and $\lexists[x][!A(x)]$. @@ -80,8 +80,8 @@ mathematical proof, e.g., that a formal !!{derivation} of $\lexists[x][!B(x)]$ from premises $\lforall[x][(!A(x) \lif !B(x))]$ and $\lexists[x][!A(x)]$ is possible, if, and only if, $\lforall[x][(!A(x) -\lif !B(x))$ and $\lexists[x][!A(x)]$ together -entail~$\lexists[x][!B(x)]]$. Before this can be done, however, a +\lif !B(x))]$ and $\lexists[x][!A(x)]$ together +entail~$\lexists[x][!B(x)]$. Before this can be done, however, a lot of painstaking work has to be carried out to get the definitions of syntax and semantics correct. diff --git a/content/first-order-logic/introduction/satisfaction.tex b/content/first-order-logic/introduction/satisfaction.tex index 3ec75b194..8ef50b8e2 100644 --- a/content/first-order-logic/introduction/satisfaction.tex +++ b/content/first-order-logic/introduction/satisfaction.tex @@ -21,7 +21,7 @@ just these three things: $\Domain{M}$, $\Assign{\Obj a}{M} \in \Domain{M}$ and $\Assign{\Obj P}{M} \subseteq \Domain{M}$. The general case will be more complicated, since there will be many !!{predicate}s -and !!{constant}s, the !!{constant}s can have more than one place, and +and !!{constant}s, the !!{predicate}s can have more than one place, and there will also be !!{function}s. This is enough to give a definition of satisfaction for !!{formula}s @@ -60,7 +60,7 @@ v_0$. To this end, we introduce !!{variable} \emph{assignments}. !!^a{variable} assignment is simply a function~$s$ that maps !!{variable}s to !!{element}s of~$\Domain{M}$ (in our example, to one -of $1$, $2$, or~$3$). Since we don't know beforehand which +of $0$, $1$, or~$2$). Since we don't know beforehand which !!{variable}s might appear in !!a{formula} we can't limit which !!{variable}s $s$ assigns values to. The simple solution is to require that $s$ assigns values to \emph{all} !!{variable}s~$\Obj diff --git a/content/first-order-logic/introduction/substitution.tex b/content/first-order-logic/introduction/substitution.tex index bbae5e773..f29ed655c 100644 --- a/content/first-order-logic/introduction/substitution.tex +++ b/content/first-order-logic/introduction/substitution.tex @@ -14,7 +14,7 @@ how the development of syntax and semantics lays the foundation for our more advanced investigations later. Our !!{derivation} systems should let us !!{derive} $\Atom{\Obj P}{\Obj a}$ from $\lforall[\Obj -v_0][\Atom{\Obj P}]{\Obj v_0}$. Maybe we even want to state this as a +v_0][\Atom{\Obj P}{\Obj v_0}]$. Maybe we even want to state this as a rule of inference. However, to do so, we must be able to state it in the most general terms: not just for $\Obj P$, $\Obj a$, and $\Obj v_0$, but for any !!{formula}~$!A$, and term~$t$, and From 4df0607c4ae986f0938a0d3ef98b3654f8eddc91 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:10:11 +0100 Subject: [PATCH 03/21] first-order-logic/tableaux: signed formulas, indices, line numbers Found while reviewing the French translation (KokunoYumeto/OpenLogic-fr): - OLP-0098, tableaux.tex: the editorial note for the prfTab tag spoke of natural deduction. - OLP-0103, proving-things.tex: exercise item T(A \/ B, ~B), F A put two formulas in one signed formula; it is T A \/ B, T ~B, F A (as in the parallel natural deduction and sequent exercises). - OLP-0105, proof-theoretic-notions.tex: "D_1, ..., D_m \subseteq Gamma" is "D_1, ..., D_m \in Gamma". - OLP-0106, provability-consistency.tex: Gamma_1 = {C_1, ..., C_m} (it said C_n); T~ is applied to T ~A, not to F A; the inserted conclusion F A comes after the n+1 assumptions, so it is line n+2, not n+1. - OLP-0107, provability-propositional.tex: eight \sFmla{\True{A}} with the formula inside the first argument (so typeset inside the .8em box of the sign) are now \sFmla{\True}{A}. - OLP-0109, soundness.tex: the T-forall and F-forall cases started with B(x) and continued with A(x); now A throughout. The explanation and the closing remark said "structure" unconditionally, where the rest of this file uses \iftag{FOL}{structure}{valuation}. - OLP-0110, identity.tex: in the symmetry example line 3 is T A(s_1), not T A(s_2); in the transitivity example A(s_2) is s_1 = s_2 (line 2), not t_1 = t_2. - OLP-0111, soundness-identity.tex: the conclusion of T= is T A(t_2), not S A(t_2). - Noticed in the same check: "we can apply" (provability-consistency), "Since" at the start of a sentence (soundness-identity). Co-Authored-By: Claude Opus 5.5 (cherry picked from commit aa20189324ddc1ed8a5e3d4a0bfeedff09c8b1e9) --- content/first-order-logic/tableaux/identity.tex | 4 ++-- .../tableaux/proof-theoretic-notions.tex | 2 +- .../tableaux/provability-consistency.tex | 8 ++++---- .../tableaux/provability-propositional.tex | 16 ++++++++-------- .../tableaux/proving-things.tex | 2 +- .../tableaux/soundness-identity.tex | 4 ++-- content/first-order-logic/tableaux/soundness.tex | 16 ++++++++-------- content/first-order-logic/tableaux/tableaux.tex | 2 +- 8 files changed, 27 insertions(+), 27 deletions(-) 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..57994879f 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*} diff --git a/content/first-order-logic/tableaux/provability-consistency.tex b/content/first-order-logic/tableaux/provability-consistency.tex index 04498b4bc..6abc68c84 100644 --- a/content/first-order-logic/tableaux/provability-consistency.tex +++ b/content/first-order-logic/tableaux/provability-consistency.tex @@ -23,7 +23,7 @@ \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}\} \\ @@ -89,10 +89,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} @@ -135,7 +135,7 @@ 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}$ + $\sFmla{\False}{\lnot !A}$, we can apply $\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, diff --git a/content/first-order-logic/tableaux/provability-propositional.tex b/content/first-order-logic/tableaux/provability-propositional.tex index 4e50f27bc..fc39401c2 100644 --- a/content/first-order-logic/tableaux/provability-propositional.tex +++ b/content/first-order-logic/tableaux/provability-propositional.tex @@ -40,8 +40,8 @@ \begin{oltableau}{} [\sFmla{\False}{\formula{A}}, just=\TAss [\sFmla{\True}{\formula{A} \land \formula{B}}, just=\TAss - [\sFmla{\True{\formula{A}}},just={\TRule{\True}{\land}[2]} - [\sFmla{\True{\formula{B}}},just={\TRule{\True}{\land}[2]}, close + [\sFmla{\True}{\formula{A}},just={\TRule{\True}{\land}[2]} + [\sFmla{\True}{\formula{B}},just={\TRule{\True}{\land}[2]}, close ] ] ] @@ -50,8 +50,8 @@ \begin{oltableau}{} [\sFmla{\False}{\formula{B}}, just=\TAss [\sFmla{\True}{\formula{A} \land \formula{B}}, just=\TAss - [\sFmla{\True{\formula{A}}},just={\TRule{\True}{\land}[2]} - [\sFmla{\True{\formula{B}}},just={\TRule{\True}{\land}[2]}, close + [\sFmla{\True}{\formula{A}},just={\TRule{\True}{\land}[2]} + [\sFmla{\True}{\formula{B}},just={\TRule{\True}{\land}[2]}, close ] ] ] @@ -103,8 +103,8 @@ \begin{oltableau}{} [\sFmla{\False}{\formula{A} \lor \formula{B}}, just=\TAss [\sFmla{\True}{\formula{A}}, just=\TAss - [\sFmla{\False{\formula{A}}},just={\TRule{\False}{\lor}[1]} - [\sFmla{\False{\formula{B}}},just={\TRule{\False}{\lor}[1]}, close + [\sFmla{\False}{\formula{A}},just={\TRule{\False}{\lor}[1]} + [\sFmla{\False}{\formula{B}},just={\TRule{\False}{\lor}[1]}, close ] ] ] @@ -113,8 +113,8 @@ \begin{oltableau}{} [\sFmla{\False}{\formula{A} \lor \formula{B}}, just=\TAss [\sFmla{\True}{\formula{B}}, just=\TAss - [\sFmla{\False{\formula{A}}},just={\TRule{\False}{\lor}[1]} - [\sFmla{\False{\formula{B}}},just={\TRule{\False}{\lor}[1]}, close + [\sFmla{\False}{\formula{A}},just={\TRule{\False}{\lor}[1]} + [\sFmla{\False}{\formula{B}},just={\TRule{\False}{\lor}[1]}, close ] ] ] diff --git a/content/first-order-logic/tableaux/proving-things.tex b/content/first-order-logic/tableaux/proving-things.tex index b02d87859..594f5d505 100644 --- a/content/first-order-logic/tableaux/proving-things.tex +++ b/content/first-order-logic/tableaux/proving-things.tex @@ -436,7 +436,7 @@ \item $\sFmla{\False}{\lnot(!A \lif !B) \lif \lnot !B}$. \item $\sFmla{\True}{!A \lif !C}, \sFmla{\False}{\lnot (!A \land \lnot !C)}$. \item $\sFmla{\True}{!A \land \lnot !C}, \sFmla{\False}{\lnot (!A \lif !C)}$. -\item $\sFmla{\True}{!A \lor !B, \lnot !B}, \sFmla{\False}{!A}$. +\item $\sFmla{\True}{!A \lor !B}, \sFmla{\True}{\lnot !B}, \sFmla{\False}{!A}$. \item $\sFmla{\True}{\lnot !A \lor \lnot !B}, \sFmla{\False}{\lnot(!A \land !B)}$. \item $\sFmla{\False}{(\lnot !A \land \lnot !B) \lif\lnot(!A \lor !B)}$. \item $\sFmla{\False}{\lnot(!A \lor !B) \lif (\lnot !A \land \lnot !B)}$. diff --git a/content/first-order-logic/tableaux/soundness-identity.tex b/content/first-order-logic/tableaux/soundness-identity.tex index 4ba3ab30b..f167ed908 100644 --- a/content/first-order-logic/tableaux/soundness-identity.tex +++ b/content/first-order-logic/tableaux/soundness-identity.tex @@ -28,13 +28,13 @@ \{\sFmla{\True}{\eq[t][t]}\}$. If the branch is expanded using $\TRule{\True}{\eq}$, we add a signed -!!{formula}~$\sFmla{S}{!A(t_2)}$, but $\Gamma$ contains +!!{formula}~$\sFmla{\True}{!A(t_2)}$, but $\Gamma$ contains both~$\sFmla{\True}{\eq[t_1][t_2]}$ and $\sFmla{\True}{!A(t_1)}$. Thus we have $\Sat{M}{\eq[t_1][t_2]}$ and $\Sat{M}{!A(t_1)}$. Let $s$ be a variable assignment with $s(x) = \Value{t_1}{M}$. By \olref[syn][ass]{prop:sentence-sat-true}, $\Sat{M}{!A(t_1)}[s]$. Since $\varAssign{s}{s}{x}$, by \olref[syn][ext]{prop:ext-formulas}, -$\Sat{M}{!A(x)}[s]$. since $\Sat{M}{\eq[t_1][t_2]}$, we have +$\Sat{M}{!A(x)}[s]$. Since $\Sat{M}{\eq[t_1][t_2]}$, we have $\Value{t_1}{M} = \Value{t_2}{M}$, and hence $s(x) = \Value{t_2}{M}$. By applying \olref[syn][ext]{prop:ext-formulas} again, we also have $\Sat{M}{!A(t_2)}[s]$. By \olref[syn][ass]{prop:sentence-sat-true}, diff --git a/content/first-order-logic/tableaux/soundness.tex b/content/first-order-logic/tableaux/soundness.tex index 136f3a8fe..73b9b64b8 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} @@ -67,7 +67,7 @@ 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 +$\sFmla{\True}{!A}$ and $\sFmla{\False}{!A}$, and no \iftag{FOL}{!!{structure}}{!!{valuation}} can both satisfy and not satisfy~$!A$. Suppose we have a satisfiable !!{tableau}, i.e., !!a{tableau} with at @@ -125,7 +125,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 +133,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} From 8d9859a11d39f1b6f08c780ee0fcf9c24c29e176 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:10:11 +0100 Subject: [PATCH 04/21] first-order-logic/beyond: a type, a date, two formulas, successor Found while reviewing the French translation (KokunoYumeto/OpenLogic-fr): - OLP-0178, higher-order-logic.tex: in clause (6) x has type tau, so \lambda x.s is defined "for any x of type tau", not sigma. - OLP-0178, higher-order-logic.tex: Church's "A Formulation of the Simple Theory of Types" appeared in the Journal of Symbolic Logic 5(2), 1940, 56-68, not in the 1930s. - OLP-0176, many-sorted-logic.tex: \lforall[a][\lforall x][(...)]] printed the brackets of the scope and lacked a closing parenthesis. - OLP-0177, second-order-logic.tex: "\Obj{R}{t_1,...,t_k}" printed R t_1, ..., t_k without parentheses; it is \Atom{R}{t_1,...,t_k}. - OLP-0177, second-order-logic.tex: axiom (2) used an undeclared s; the language has the successor symbol '. - Noticed in the same check: "defined inductively as follows" (OLP-0179, intuitionistic-logic.tex). Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 33c014b35ce58cb1ee29b015147eac1eea3c74d1) --- content/first-order-logic/beyond/higher-order-logic.tex | 4 ++-- content/first-order-logic/beyond/intuitionistic-logic.tex | 2 +- content/first-order-logic/beyond/many-sorted-logic.tex | 4 ++-- content/first-order-logic/beyond/second-order-logic.tex | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/first-order-logic/beyond/higher-order-logic.tex b/content/first-order-logic/beyond/higher-order-logic.tex index 772c81c3c..d6477472c 100644 --- a/content/first-order-logic/beyond/higher-order-logic.tex +++ b/content/first-order-logic/beyond/higher-order-logic.tex @@ -84,7 +84,7 @@ \[ f(x) = s \] -for any~$x$ of type~$\sigma$; so item (6) gives us a form of +for any~$x$ of type~$\tau$; so item (6) gives us a form of comprehension, enabling us to define functions using terms. !!^{formula}s are built up from !!{identity} statements $\eq[s][t]$ between terms of the same type, the usual propositional connectives, @@ -97,7 +97,7 @@ fact, if one is clever, one can get rid of complex !!{formula}s entirely, replacing them with terms of type $\Omega$!{} The proof system can then be modified accordingly. The result is essentially the -\emph{simple theory of types} set forth by Alonzo Church in the 1930s. +\emph{simple theory of types} set forth by Alonzo Church in 1940. As in the case of second-order logic, there are different versions of higher-type semantics that one might want to use. In the full version, diff --git a/content/first-order-logic/beyond/intuitionistic-logic.tex b/content/first-order-logic/beyond/intuitionistic-logic.tex index e180ee5b4..f68b496f1 100644 --- a/content/first-order-logic/beyond/intuitionistic-logic.tex +++ b/content/first-order-logic/beyond/intuitionistic-logic.tex @@ -134,7 +134,7 @@ The \emph{double-negation translation} describes an important relationship between classical and intuitionist logic. It is defined -inductively follows (think of $!A^N$ as the ``intuitionist'' +inductively as follows (think of $!A^N$ as the ``intuitionist'' translation of the classical !!{formula}~$!A$): \begin{align*} !A^N & \ident \lnot\lnot !A \quad \text{for atomic !!{formula}s $!A$} \\ diff --git a/content/first-order-logic/beyond/many-sorted-logic.tex b/content/first-order-logic/beyond/many-sorted-logic.tex index a8116d41d..f40f3c3c4 100644 --- a/content/first-order-logic/beyond/many-sorted-logic.tex +++ b/content/first-order-logic/beyond/many-sorted-logic.tex @@ -35,8 +35,8 @@ we use variables $a$, $b$, $c$ to range over French citizens and $x$, $y$, $z$ to range over German citizens, then \[ -\lforall[a][\lforall x][(\Atom{\Obj{MarriedTo}}{a,x} \lif -(\Atom{\Obj{DrinksWine}}{a} \lor \lnot \Atom{\Obj{EatsWurst}}{x})]] +\lforall[a][\lforall[x][(\Atom{\Obj{MarriedTo}}{a,x} \lif +(\Atom{\Obj{DrinksWine}}{a} \lor \lnot \Atom{\Obj{EatsWurst}}{x}))]] \] asserts that if any French person is married to a German, either the French person drinks wine or the German doesn't eat wurst. diff --git a/content/first-order-logic/beyond/second-order-logic.tex b/content/first-order-logic/beyond/second-order-logic.tex index 35869f541..95fe2f28a 100644 --- a/content/first-order-logic/beyond/second-order-logic.tex +++ b/content/first-order-logic/beyond/second-order-logic.tex @@ -53,7 +53,7 @@ \] where $\Subst{!A}{\lambd[\vec x][!B(\vec x)]}{R}$ denotes the result of replacing every atomic !!{formula} of the form -$\Obj{R}{t_1,\dots,t_k}$ in~$!A$ by $!B(t_1, \dots, t_k)$. This last +$\Atom{R}{t_1,\dots,t_k}$ in~$!A$ by $!B(t_1, \dots, t_k)$. This last rule is equivalent to having a {\em comprehension schema}, i.e., an axiom of the form \[ @@ -139,7 +139,7 @@ behavior: \begin{enumerate} \item $\lforall[x][\lnot x' = \Obj 0]$ -\item $\lforall[x][\lforall[y][(s(x) = s(y) \lif x = y)]]$ +\item $\lforall[x][\lforall[y][(x' = y' \lif x = y)]]$ \item $\lforall[x][(x + \Obj 0) = x]$ \item $\lforall[x][\lforall[y][(x + y') = (x + y)']]$ \item $\lforall[x][(x \times \Obj 0) = \Obj 0]$ From ee9e0f303dab51a36a553fdcbad8b16d249240f8 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:10:11 +0100 Subject: [PATCH 05/21] first-order-logic/models-theories: primes, parentheses, the converse Found while reviewing the French translation (KokunoYumeto/OpenLogic-fr): - OLP-0171, expressing-relations.tex: "no number other than 1 and n divides n" holds of 1, so the exercise's description of primes needs n > 1. - OLP-0172, set-theory.tex: the formula for "f is a function from X to Y" and the separation schema each lacked a closing parenthesis. - OLP-0170, theories.tex: after "vice versa" the text repeated the direction from orders to models (with "linear" for "strict linear"); the converse is that in every model <^M is a strict linear order. The domain of a structure is non-empty, hence "non-empty set X". Co-Authored-By: Claude Opus 5.5 (cherry picked from commit e43e485af44574a893a71718ca45aa9fccc445be) --- .../models-theories/expressing-relations.tex | 4 ++-- content/first-order-logic/models-theories/set-theory.tex | 4 ++-- content/first-order-logic/models-theories/theories.tex | 9 +++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/content/first-order-logic/models-theories/expressing-relations.tex b/content/first-order-logic/models-theories/expressing-relations.tex index 4f4c0a3b3..cbfaf0af9 100644 --- a/content/first-order-logic/models-theories/expressing-relations.tex +++ b/content/first-order-logic/models-theories/expressing-relations.tex @@ -82,8 +82,8 @@ \begin{enumerate} \item $n$ is between $i$ and $j$; \item $n$ evenly divides $m$ (i.e., $m$ is a multiple of $n$); -\item $n$ is a prime number (i.e., no number other than $1$ and $n$ evenly - divides~$n$). +\item $n$ is a prime number (i.e., $n > 1$ and no number other than $1$ + and $n$ evenly divides~$n$). \end{enumerate} \end{prob} diff --git a/content/first-order-logic/models-theories/set-theory.tex b/content/first-order-logic/models-theories/set-theory.tex index b04c16a01..00a50fb11 100644 --- a/content/first-order-logic/models-theories/set-theory.tex +++ b/content/first-order-logic/models-theories/set-theory.tex @@ -123,7 +123,7 @@ \lforall[x][(x \in X \lif {}] & (\lexists[y][(y \in Y \land \mathrm{maps}(f, x, y))] \land {}\\ & (\lforall[y][\lforall[y'][((\mathrm{maps}(f, x, y) \land - \mathrm{maps}(f, x, y')) \lif y = y')]])) + \mathrm{maps}(f, x, y')) \lif y = y')]]))) \end{align*} where $\mathrm{maps}(f, x, y)$ abbreviates $\lexists[v][(v \in f \land \tuple{x, y} = v)]$ (this !!{formula} expresses ``$f(x) = y$''). @@ -167,7 +167,7 @@ consistent---version of this principle, the separation principle: \[ \lforall[z][\lexists[y][\lforall[x][(x \in y \liff (x \in z \land - !A(x))]]]. + !A(x)))]]]. \] \begin{prob} diff --git a/content/first-order-logic/models-theories/theories.tex b/content/first-order-logic/models-theories/theories.tex index 12c303d64..981ec00d2 100644 --- a/content/first-order-logic/models-theories/theories.tex +++ b/content/first-order-logic/models-theories/theories.tex @@ -20,10 +20,11 @@ & \lforall[x][\lforall[y][\lforall[z][((x < y \land y < z) \lif x < z)]]] \quad \} \end{align*} -It completely captures the intended !!{structure}s: every strict -linear order is a model of this axiom system, and vice versa, if $R$ -is a linear order on a set $X$, then the structure $\Struct M$ with -$\Domain M = X$ and $\Assign{<}{M} = R$ is a model of this theory. +It completely captures the intended !!{structure}s: if $R$ is a strict +linear order on a non-empty set $X$, then the structure $\Struct M$ with +$\Domain M = X$ and $\Assign{<}{M} = R$ is a model of this theory, and +vice versa, if $\Struct M$ is a model of this theory, then +$\Assign{<}{M}$ is a strict linear order on~$\Domain M$. \end{ex} \begin{ex} From ed4a866f5340c8c3108930bc5985370e61eeffdf Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:10:11 +0100 Subject: [PATCH 06/21] first-order-logic/syntax-and-semantics: induction hypotheses, arity Found while reviewing the French translation (KokunoYumeto/OpenLogic-fr): - OLP-0164, assignments.tex: the induction hypothesis of the local-determination proof was stated for the two fixed assignments s_1, s_2, but the quantifier cases apply it to the modified assignments s_1[m/x], s_2[m/x]; it now covers all assignments that agree on the free variables of the subformula. - OLP-0156, formation-sequences.tex: a k-ary function symbol takes k arguments, so m_1, ..., m_k (not m_0, ..., m_k). - OLP-0156, formation-sequences.tex, proof of thm:fseq-frm-equiv: the induction is on the last index n, but the hypothesis spoke of sequences of length m < n, while has length j+1 <= n; the hypothesis is now about sequences with m < n. Also \Frm[L_0] for the language L of the theorem and \ident for \equiv. - Noticed in the same check: t_1 for t_i in the atomic case of assignments.tex. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 9df0abc9c326962bd4e0e4b3a1249fe21db06202) --- .../syntax-and-semantics/assignments.tex | 7 ++++--- .../syntax-and-semantics/formation-sequences.tex | 12 ++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/content/first-order-logic/syntax-and-semantics/assignments.tex b/content/first-order-logic/syntax-and-semantics/assignments.tex index ed2c6c103..28cddacb9 100644 --- a/content/first-order-logic/syntax-and-semantics/assignments.tex +++ b/content/first-order-logic/syntax-and-semantics/assignments.tex @@ -88,7 +88,7 @@ \] For $i = 1$, \dots,~$k$, $\Value{t_i}{M}[s_1] = \Value{t_i}{M}[s_2]$ by \olref{prop:valindep}. So we also have - $\langle \Value{t_i}{M}[s_2], \ldots, \Value{t_k}{M}[s_2] \rangle + $\langle \Value{t_1}{M}[s_2], \ldots, \Value{t_k}{M}[s_2] \rangle \in \Assign{R}{M}$, and hence $\Sat{M}{\indfrm}[s_2]$.} \item \indcase{!A}{\eq[t_1][t_2]}{suppose $\Sat{M}{\indfrm}[s_1]$. @@ -104,8 +104,9 @@ so $\Sat{M}{\eq[t_1][t_2]}[s_2]$.} \end{enumerate} -Now assume $\Sat{M}{!B}[s_1]$ iff $\Sat{M}{!B}[s_2]$ for all -!!{formula}s $!B$ less complex than~$!A$. The induction step proceeds +Now assume, for all !!{formula}s $!B$ less complex than~$!A$ and all +variable assignments $s_1$, $s_2$ that agree on the free variables +of~$!B$, that $\Sat{M}{!B}[s_1]$ iff $\Sat{M}{!B}[s_2]$. The induction step proceeds by cases determined by the main operator of~$!A$. In each case, we only demonstrate the forward direction of the !!{biconditional}; the proof of the reverse direction is symmetrical. In all cases except diff --git a/content/first-order-logic/syntax-and-semantics/formation-sequences.tex b/content/first-order-logic/syntax-and-semantics/formation-sequences.tex index 64cc604fb..13ac09be6 100644 --- a/content/first-order-logic/syntax-and-semantics/formation-sequences.tex +++ b/content/first-order-logic/syntax-and-semantics/formation-sequences.tex @@ -43,7 +43,7 @@ \emph{formation sequence} for a term $t$ if $t \ident t_n$ and for all $i \leq n$, either $t_i$ is !!a{variable} or !!a{constant}, or $\Lang L$ contains a $k$-ary !!{function}~$f$ and there exist -$m_0,\dotsc,m_k < i$ such that $t_i \ident f(t_{m_0},\dotsc,t_{m_k})$. +$m_1,\dotsc,m_k < i$ such that $t_i \ident f(t_{m_1},\dotsc,t_{m_k})$. When it is necessary to distinguish, we will refer to formation sequences for terms as \emph{term formation sequences}. \end{defn} @@ -182,7 +182,7 @@ Suppose $!A$ has a formation sequence $\tuple{!A_0,\dotsc,!A_n}$. We prove that $!A \in \Frm[L]$ by strong induction on~$n$. Our induction hypothesis is that every string of symbols with a -formation sequence of length $m < n$ is in $\Frm[L]$. +formation sequence $\tuple{!B_0,\dotsc,!B_m}$ with $m < n$ is in $\Frm[L]$. By the definition of a formation sequence, either $!A \ident !A_n$ is atomic or there must exist $j,k < n$ such that one of the following is the case: @@ -196,14 +196,14 @@ \tagitem{prvEx}{$!A \ident \lexists[x][!A_j]$.}{}% \end{enumerate} Now we reason by cases. If $!A$ is atomic then -$!A_n \in \Frm[L_0]$. Suppose instead that -$!A \equiv (!A_j \land !A_k)$. By +$!A_n \in \Frm[L]$. Suppose instead that +$!A \ident (!A_j \land !A_k)$. By \olref[fol][syn][fseq]{lem:fseq-init}, $\tuple{!A_0,\dotsc,!A_j}$ and $\tuple{!A_0,\dotsc,!A_k}$ are formation sequences for $!A_j$ and~$!A_k$, respectively. Since these are proper initial subsequences of the formation sequence -for~$!A$, they both have length less than~$n$. Therefore by -the induction hypothesis, $!A_j$ and~$!A_k$ are in~$\Frm[L_0]$, +for~$!A$, they both end at an index less than~$n$. Therefore by +the induction hypothesis, $!A_j$ and~$!A_k$ are in~$\Frm[L]$, and by the definition of !!a{formula}, so is $(!A_j \land !A_k)$. The other cases follow by parallel reasoning. From 76e47f373ecc9525e1b3d48cf625f9cb76fac109 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:29 +0100 Subject: [PATCH 07/21] propositional-logic: fix editorial sentence punctuation Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0217 OLP-0055 propositional-logic.tex:12: The editorial joins two independent clauses with only a comma. A semicolon supplies the missing clause boundary without changing the development notice. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 2e1e6d0592b4e22047514b4770fec6aadb769fa9) --- content/propositional-logic/propositional-logic.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/propositional-logic/propositional-logic.tex b/content/propositional-logic/propositional-logic.tex index 3bb6a1aa6..9c8240ab5 100644 --- a/content/propositional-logic/propositional-logic.tex +++ b/content/propositional-logic/propositional-logic.tex @@ -9,7 +9,7 @@ \begin{editorial} This part contains material on classical propositional logic. The first chapter is relatively rudimentary and just lists definitions - and results, many proofs are not carried out but are left as + and results; many proofs are not carried out but are left as exercises. The material on proof systems and the completeness theorem is included from the part on first-order logic, with the ``FOL'' tag set to false. This leaves out everything related to From 88ea58c4a197a556527a02e068eedb5ddd004bbb Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:29 +0100 Subject: [PATCH 08/21] propositional-logic/syntax-and-semantics: fix formation indices, configuration guards and proof references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0218 OLP-0057 introduction.tex:17: A formula may contain several propositional variables. Fixing p alone does not fix p and q when p is true and q varies. The plural them in the following line and the later truth-functional definition show that all occurring ... - HV-0220 OLP-0058 formulas.tex:17: With prvTrue enabled and prvFalse disabled, the inner false arm emits no conjunction between propositional variables and the truth constant. Supply and in that arm; the other three truth/falsity flag combinations retain their ... - HV-0221 OLP-0058 formulas.tex:37: The three outer guards include first-order quantifier definition flags even though their guarded propositional lists contain no quantifier entries. With only defEx or defAll enabled they print an empty defined-symbol ... - HV-0222 OLP-0058 formulas.tex:47: The outer iftag begins at37; its nested defTrue call at47 lacks the third argument required by open-logic-selective.sty. Moreover the final period lies outside the outer conditional and prints alone when every defined-symbol ... - HV-0223 OLP-0058 formulas.tex:159: The conditional is abbreviated by a disjunction. The branch contains a closing parenthesis without its opening mate. Add the opening parenthesis required by the formation clause for binary formulas; the alternate branch is ... - HV-0224 OLP-0059 preliminaries.tex:2: The actual chapter folder, pl/syn/pre identifier and importing driver identify syntax-and-semantics. Correct the source-routing comment only. - HV-0227 OLP-0060 formation-sequences.tex:1: The repository path, pl/syn/fseq identifier and importing chapter all place this unit in propositional logic. Correct the misleading source-routing comment, retaining it as a comment. - HV-0229 OLP-0060 formation-sequences.tex:36: The two displayed formation sequences require primitive negation and conjunction, and the second also requires primitive implication. If a connective is disabled or merely an abbreviation, the listed earlier strings need not ... - HV-0230 OLP-0060 formation-sequences.tex:129: The induction parameter is the last index n of A0,…,An (126–127), not its length n+1. Proper initial sequences ending at j,k (cherry picked from commit 14a9b7259b0d3263392cad5dec8295d4492261da) --- .../syntax-and-semantics/completeness.tex | 6 +++--- .../syntax-and-semantics/formation-sequences.tex | 8 +++++--- .../syntax-and-semantics/formulas.tex | 14 +++++++------- .../syntax-and-semantics/introduction.tex | 4 ++-- .../syntax-and-semantics/preliminaries.tex | 2 +- .../syntax-and-semantics/semantic-notions.tex | 2 +- .../syntax-and-semantics/soundness.tex | 6 +++--- 7 files changed, 22 insertions(+), 20 deletions(-) diff --git a/content/propositional-logic/syntax-and-semantics/completeness.tex b/content/propositional-logic/syntax-and-semantics/completeness.tex index db0b73d5f..d25a1ca7e 100644 --- a/content/propositional-logic/syntax-and-semantics/completeness.tex +++ b/content/propositional-logic/syntax-and-semantics/completeness.tex @@ -33,7 +33,7 @@ \begin{enumerate} \item Suppose $!A \in \Gamma$. If also $\lnot !A \in \Gamma$, then $\Gamma$ is inconsistent; and if neither $!A$ nor $\lnot!A$ is in - $\Gamma$ then by \olref[axd]{prop:phi} one of $\Gamma\cup\{!A\}$ and + $\Gamma$ then by \olref[pl][axd][prv]{prop:provability-exhaustive} one of $\Gamma\cup\{!A\}$ and $\Gamma \cup \{\lnot !A\}$ is consistent, which means that $\Gamma$ is not maximal. The other direction is proved the same way. \item If $!A \in \Gamma$ then of course $\Gamma \Proves !A$. On the @@ -79,7 +79,7 @@ facts: \begin{enumerate} \item For each $n$, the set $\Gamma_n$ is consistent (by induction on - $n$, using \olref[axd]{prop:phi}); + $n$, using \olref[pl][axd][prv]{prop:provability-exhaustive}); \item $\Gamma^*$ is consistent; \item $\Gamma^*$ is maximal. \end{enumerate} @@ -98,7 +98,7 @@ \begin{proof} If $\Gamma\Proves/ !A$ then $\Gamma \cup \{\lnot !A\}$ is consistent, -by \olref[axd]{prop:prov-incons}. So by the completeness theorem, $\Gamma \cup +by \olref[pl][axd][prv]{prop:prov-incons}. So by the completeness theorem, $\Gamma \cup \{\lnot !A\}$ is satisfiable, and $\Gamma \Entails/ !A$. \end{proof} diff --git a/content/propositional-logic/syntax-and-semantics/formation-sequences.tex b/content/propositional-logic/syntax-and-semantics/formation-sequences.tex index 764226b40..fc3612992 100644 --- a/content/propositional-logic/syntax-and-semantics/formation-sequences.tex +++ b/content/propositional-logic/syntax-and-semantics/formation-sequences.tex @@ -1,4 +1,4 @@ -% Part: first-order-logic +% Part: propositional-logic % Chapter: syntax-and-semantics % Section: formation-sequences @@ -33,6 +33,7 @@ \end{enumerate} \end{defn} +\iftag{notprvNot,notprvAnd,notprvIf}{}{% \begin{ex} \[ \tuple{ @@ -59,6 +60,7 @@ may contain `junk': formulas which are redundant or do not contribute to the construction. \end{ex} +} \begin{prop} \ollabel{prop:formed} @@ -126,7 +128,7 @@ Suppose $!A$ has a formation sequence $\tuple{!A_0,\dotsc,!A_n}$. We prove that $!A \in \Frm[L_0]$ by strong induction on~$n$. Our induction hypothesis is that every string of symbols with a -formation sequence of length $m < n$ is in~$\Frm[L_0]$. +formation sequence with final index $m < n$ is in~$\Frm[L_0]$. By the definition of a formation sequence, either $!A_n$ is atomic or there must exist $j,k < n$ such that one of the following is the case: @@ -143,7 +145,7 @@ $\tuple{!A_0,\dotsc,!A_j}$ and $\tuple{!A_0,\dotsc,!A_k}$ are formation sequences for $!A_j$ and~$!A_k$ respectively. Since these are proper initial subsequences of the formation sequence -for~$!A$, they both have length less than~$n$. Therefore by +for~$!A$, they both have final index less than~$n$. Therefore by the induction hypothesis, $!A_j$ and~$!A_k$ are in~$\Frm[L_0]$, and so by the definition of !!a{formula}, so is $(!A_j \land !A_k)$. The other cases follow by parallel diff --git a/content/propositional-logic/syntax-and-semantics/formulas.tex b/content/propositional-logic/syntax-and-semantics/formulas.tex index 521adafb5..b7981c16f 100644 --- a/content/propositional-logic/syntax-and-semantics/formulas.tex +++ b/content/propositional-logic/syntax-and-semantics/formulas.tex @@ -14,7 +14,7 @@ \emph{!!{propositional variable}s}\iftag{prvFalse}{\iftag{prvTrue}{,}{ and} the propositional constant~$\lfalse$}{}\iftag{prvTrue}{\iftag{prvFalse}{ - and}{} the propositional constant~$\ltrue$}{} using \emph{logical + and}{ and} the propositional constant~$\ltrue$}{} using \emph{logical connectives}. \begin{enumerate} @@ -34,7 +34,7 @@ We denote this language of propositional logic by $\Lang L_0$. -\iftag{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll}{% +\iftag{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse}{% In addition to the primitive connectives introduced above, we also use the following \emph{defined} symbols: \startycommalist @@ -44,9 +44,9 @@ \iftag{defIf}{\ycomma $\lif$ (!!{conditional})}{}% \iftag{defIff}{\ycomma $\liff$ (!!{biconditional})}{}% \iftag{defFalse}{\ycomma $\lfalse$ (!!{falsity})}{}% - \iftag{defTrue}{\ycomma $\ltrue$ (!!{truth})}}{}. + \iftag{defTrue}{\ycomma $\ltrue$ (!!{truth})}{}.}{} -\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll} +\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse} \begin{explain} A defined symbol is not officially part of the language, but is introduced as an informal abbreviation: it allows us to abbreviate @@ -130,12 +130,12 @@ using a two-place connective~$\ast$, we will often leave out the outermost pair of parentheses and write simply~$!B \ast !C$. -\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll} +\begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse} \begin{defn} Formulas constructed using the defined operators are to be understood as follows: -\begin{tagenumerate}{defTrue,defFalse,defNot,defOr,defAnd,defIf,defIff,defEx,defAll} +\begin{tagenumerate}{defTrue,defFalse,defNot,defOr,defAnd,defIf,defIff} \tagitem{defTrue}{$\ltrue$ abbreviates \iftag{prvFalse}{$\lnot\lfalse$}{$(!A \lor \lnot !A)$ for some @@ -156,7 +156,7 @@ \lnot !B)$}.}{} \tagitem{defIf}{$!A \lif !B$ abbreviates - \iftag{prvOr}{$\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{} + \iftag{prvOr}{$(\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{} \tagitem{defIff}{$!A \liff !B$ abbreviates $(!A \lif !B) \land (!B \lif !A)$.}{} diff --git a/content/propositional-logic/syntax-and-semantics/introduction.tex b/content/propositional-logic/syntax-and-semantics/introduction.tex index 4a72da0a1..a31ae4475 100644 --- a/content/propositional-logic/syntax-and-semantics/introduction.tex +++ b/content/propositional-logic/syntax-and-semantics/introduction.tex @@ -14,8 +14,8 @@ !!{propositional variable}s using the propositional connectives $\lnot$, $\land$, $\lor$, $\lif$, and $\liff$. Intuitively, !!a{propositional variable}~$p$ stands for a sentence or proposition -that is true or false. Whenever the ``truth value'' of the -!!{propositional variable} in !!a{formula} is determined, so is the +that is true or false. Whenever the truth values of all the +!!{propositional variable}s in !!a{formula} are determined, so is the truth value of any !!{formula}s formed from them using propositional connectives. We say that propositional logic is \emph{truth functional}, because its semantics is given by functions of truth diff --git a/content/propositional-logic/syntax-and-semantics/preliminaries.tex b/content/propositional-logic/syntax-and-semantics/preliminaries.tex index 6fcfac52c..0bf2837e8 100644 --- a/content/propositional-logic/syntax-and-semantics/preliminaries.tex +++ b/content/propositional-logic/syntax-and-semantics/preliminaries.tex @@ -1,5 +1,5 @@ % Part: propositional-logic -% Chapter: propositional-logic +% Chapter: syntax-and-semantics % Section: preliminaries \documentclass[../../../include/open-logic-section]{subfiles} diff --git a/content/propositional-logic/syntax-and-semantics/semantic-notions.tex b/content/propositional-logic/syntax-and-semantics/semantic-notions.tex index 04dd30d02..84e25271e 100644 --- a/content/propositional-logic/syntax-and-semantics/semantic-notions.tex +++ b/content/propositional-logic/syntax-and-semantics/semantic-notions.tex @@ -33,7 +33,7 @@ \begin{prob} For each of the following four !!{formula}s determine whether it - is (a)~satisfiable, (b)~tautology, and (c)~contingent. + is (a)~satisfiable, (b)~a tautology, and (c)~contingent. \begin{enumerate} \item \( ( \Obj p_0 \lif ( \lnot \Obj p_1 \lif \lnot \Obj p_0 ) ) \). \item \( ( ( \Obj p_0 \land \lnot \Obj p_1 ) \lif ( \lnot \Obj p_0 \land \Obj p_2 )) \liff ( ( \Obj p_2 \lif \Obj p_0 ) \lif ( \Obj p_0 \lif \Obj p_1 )) \). diff --git a/content/propositional-logic/syntax-and-semantics/soundness.tex b/content/propositional-logic/syntax-and-semantics/soundness.tex index a45fc1acf..6fedccc9d 100644 --- a/content/propositional-logic/syntax-and-semantics/soundness.tex +++ b/content/propositional-logic/syntax-and-semantics/soundness.tex @@ -17,12 +17,12 @@ \end{thm} \begin{proof} -By induction on theorems. If $!A$ is an axiom then $\Entails +By induction on the length of a derivation of $!A$ from $\Gamma$. If $!A$ is an axiom then $\Entails !A$ and hence a fortiori $\Gamma \Entails!A$. Similarly if $!A \in \Gamma$, $\Gamma \Entails!A$. For the inductive step, suppose $!A$ is obtained by \emph{modus ponens} from $!C$ and $!C\lif!A$; also assume as inductive -hypothesis that the theorem holds for $!C\lif !A$ and $!C$. The third item -in \olref[sem]{prop:semanticalfacts} gives the desired result. +hypothesis that the theorem holds for $!C\lif !A$ and $!C$. The second item +in \olref[pl][syn][sem]{prop:semanticalfacts} gives the desired result. \end{proof} \begin{cor} From 704c8937d8e3f94c34fef0d9c5fdee4454d7b6ae Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:29 +0100 Subject: [PATCH 09/21] first-order-logic/proof-systems: fix rule descriptions and proof-system references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0241 OLP-0064 introduction.tex:86: The noun unsatisfiability is missing an i. - HV-0242 OLP-0065 sequent-calculus.tex:3: The source comment transposes u and e in the section slug. The actual file, imported section and title identify sequent calculus. Correct the literal source spelling. - HV-0243 OLP-0065 sequent-calculus.tex: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. - HV-0245 OLP-0065 sequent-calculus.tex:62: Connection is the singular subject of is; the plural proofs belongs to the intervening prepositional phrase. - HV-0247 OLP-0066 natural-deduction.tex:25: The universal exactly-two-rules assertion includes nullary falsity and optional truth. The supplied falsity rules are intuitionistic explosion and classical reductio, not one introduction/one elimination pair; the truth ... - HV-0249 OLP-0067 tableaux.tex:24: The overview repeats the exhaustive one-prior-formula description repaired in ROOT-0160 and ROOT-0173. Cut needs no premise; identity also includes premise-free reflexivity and two-premise substitution. Require complete ... - HV-0250 OLP-0067 tableaux.tex: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. Restrict the subformula description to propositional connective ... - HV-0251 OLP-0067 tableaux.tex: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. - HV-0252 OLP-0067 tableaux.tex: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. - HV-0254 OLP-0067 tableaux.tex:77: The subject is a tableau, so use its; connection is singular, so use is. - HV-0255 OLP-0067 tableaux.tex: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. Tag both occurrences ... - HV-0257 OLP-0068 axiomatic-deduction.tex: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. - HV-0261 OLP-0068 axiomatic-deduction.tex: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 ... Co-Authored-By: Claude Opus 5.5 (cherry picked from commit d968abff9f78e65fad45a1e15c16e74b49bdddf6) --- .../proof-systems/axiomatic-deduction.tex | 8 ++--- .../proof-systems/introduction.tex | 2 +- .../proof-systems/natural-deduction.tex | 6 ++-- .../proof-systems/sequent-calculus.tex | 6 ++-- .../proof-systems/tableaux.tex | 30 +++++++++++-------- 5 files changed, 28 insertions(+), 24 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/introduction.tex b/content/first-order-logic/proof-systems/introduction.tex index 204ffd6ec..88efc6d9e 100644 --- a/content/first-order-logic/proof-systems/introduction.tex +++ b/content/first-order-logic/proof-systems/introduction.tex @@ -83,7 +83,7 @@ \emph{consistency}. A set of !!{sentence}s is called inconsistent if anything whatsoever can be !!{derive}d from it, and consistent otherwise. Inconsistency is the syntactic counterpart to -unsatisfiablity: like unsatisfiable sets, inconsistent sets of +unsatisfiability: like unsatisfiable sets, inconsistent sets of !!{sentence}s do not make good theories, they are defective in a fundamental way. Consistent sets of !!{sentence}s may not be true or useful, but at least they pass that minimal threshold of logical diff --git a/content/first-order-logic/proof-systems/natural-deduction.tex b/content/first-order-logic/proof-systems/natural-deduction.tex index 547379187..bcef96bab 100644 --- a/content/first-order-logic/proof-systems/natural-deduction.tex +++ b/content/first-order-logic/proof-systems/natural-deduction.tex @@ -22,9 +22,9 @@ to a contradiction. Conditional proof establishes a conditional claim ``if \dots then \dots'' by showing that the consequent follows from the antecedent. Natural deduction is a formalization of some of these -natural inferences. Each of the logical connectives and quantifiers -comes with two rules, an introduction and an elimination rule, and -they each correspond to one such natural inference pattern. For +natural inferences. Many of its rules are introduction or elimination rules for the +logical connectives\iftag{FOL}{ and the quantifiers}{}, corresponding +to such natural inference patterns. For instance, $\Intro{\lif}$ corresponds to conditional proof, and $\Elim{\lor}$ to proof by cases. A particularly simple rule is $\Elim{\land}$ which allows the inference from $!A \land !B$ to~$!A$ diff --git a/content/first-order-logic/proof-systems/sequent-calculus.tex b/content/first-order-logic/proof-systems/sequent-calculus.tex index bc1fcf6e1..f5f93306a 100644 --- a/content/first-order-logic/proof-systems/sequent-calculus.tex +++ b/content/first-order-logic/proof-systems/sequent-calculus.tex @@ -1,6 +1,6 @@ % Part: first-order-logic % Chapter: proof-systems -% Section: seqeunt-calculus +% Section: sequent-calculus \documentclass[../../../include/open-logic-section]{subfiles} @@ -16,7 +16,7 @@ !!{sentence}s, the sequent calculus operates with \emph{sequents}. A sequent is an expression of the form \[ -!A_1, \dots, !A_m \Sequent !B_1, \dots, !B_m, +!A_1, \dots, !A_m \Sequent !B_1, \dots, !B_n, \] that is a pair of sequences of !!{sentence}s, separated by the sequent symbol~$\Sequent$. Either sequence may be empty. !!^a{derivation} in @@ -60,7 +60,7 @@ formalism for developing a theory of !!{derivation}s. It is relatively easy to find !!{derivation}s in the sequent calculus, but these !!{derivation}s are often hard to read and their connection to proofs -are sometimes not easy to see. It has proved to be a very elegant +is sometimes not easy to see. It has proved to be a very elegant approach to !!{derivation} systems, however, and many logics have sequent calculus systems. diff --git a/content/first-order-logic/proof-systems/tableaux.tex b/content/first-order-logic/proof-systems/tableaux.tex index 141990c1d..c9cf69479 100644 --- a/content/first-order-logic/proof-systems/tableaux.tex +++ b/content/first-order-logic/proof-systems/tableaux.tex @@ -21,21 +21,24 @@ \] !!^a{tableau} consists of !!{signed formula}s arranged in a downward-branching tree. It begins with a number of \emph{assumptions} -and continues with !!{signed formula}s which result from one of the -!!{signed formula}s above it by applying one of the rules of -inference. Each rule allows us to add one or more !!{signed formula}s +and continues by complete applications of the inference rules to a +branch, using the required !!{signed formula}s already on that branch +(none for \Cut{}\iftag{FOL}{ or identity reflexivity, and two for +identity substitution}{}). Each rule allows us to add one or more !!{signed formula}s to the end of a branch, or two !!{signed formula}s side by side---in this case a branch splits into two, with the two added !!{signed formula}s forming the ends of the two branches. -A rule applied to a complex !!{signed formula} results in the addition -of !!{signed formula}s which are immediate sub-!!{formula}s. They come +A propositional connective rule adds signed versions of immediate +sub-!!{formula}s of its principal !!{formula}. +\iftag{FOL}{Quantifier rules add suitable substitution instances of +their quantified matrices. }{} They come in pairs, one rule for each of the two signs. For instance, the $\TRule{\True}{\land}$ rule applies to $\sFmla{\True}{!A \land !B}$, and allows the addition of both the two !!{signed formula}s $\sFmla{\True}{!A}$ and~$\sFmla{\True}{!B}$ to the end of any branch containing $\sFmla{\True}{!A \land !B}$, and the rule -$\TRule{\False}{!A \land !B}$ allows a branch to be split by adding +$\TRule{\False}{\land}$ allows a branch to be split by adding $\sFmla{\False}{!A}$ and $\sFmla{\False}{!B}$ side-by-side. !!^a{tableau} is closed if every one of its branches contains a matching pair of !!{signed formula}s $\sFmla{\True}{!A}$ and @@ -54,8 +57,8 @@ [\sFmla{\False}{(\formula{A} \land \formula{B}) \lif \formula{A}}, just = \TAss [\sFmla{\True}{\formula{A} \land \formula{B}}, just = {\TRule{\False}{\lif}[1]} [\sFmla{\False}{\formula{A}}, just = {\TRule{\False}{\lif}[1]} - [\sFmla{\True}{\formula{A}}, just = {\TRule{\True}{\lif}[2]} - [\sFmla{\True}{\formula{B}}, just = {\TRule{\True}{\lif}[2]}, close] + [\sFmla{\True}{\formula{A}}, just = {\TRule{\True}{\land}[2]} + [\sFmla{\True}{\formula{B}}, just = {\TRule{\True}{\land}[2]}, close] ] ] ] @@ -74,13 +77,14 @@ Smullyan. They are very easy to use, since constructing !!a{tableau} is a very systematic procedure. Because of the systematic nature of !!{tableau}s, they also lend themselves to implementation by -computer. However, !!a{tableau} is often hard to read and their -connection to proofs are sometimes not easy to see. The approach is +computer. However, !!a{tableau} is often hard to read and its +connection to proofs is sometimes not easy to see. The approach is also quite general, and many different logics have !!{tableau} -systems. !!^{tableau}s also help us to find !!{structure}s that -satisfy given (sets of) !!{sentence}s: if the set is satisfiable, it +systems. !!^{tableau}s also help us to find +\iftag{FOL}{!!{structure}s}{!!{valuation}s} that satisfy given (sets of) +!!{sentence}s: if the set is satisfiable, it won't have a closed !!{tableau}, i.e., any !!{tableau} will have an -open branch. The satisfying !!{structure} can be ``read off'' an open +open branch. The satisfying \iftag{FOL}{!!{structure}}{!!{valuation}} can be ``read off'' an open branch, provided every rule it is possible to apply has been applied on that branch. There is also a very close connection to the sequent calculus: essentially, a closed !!{tableau} is a condensed From 1f25a0694ccaeb42d03b15f8a4a7b545a202a84c Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:29 +0100 Subject: [PATCH 10/21] first-order-logic/sequent-calculus: fix sequent contexts, freshness and identity proofs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0262 OLP-0069 sequent-calculus.tex:13: 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. - HV-0263 OLP-0069 sequent-calculus.tex:16: The configuration and parent driver use prfSC. The quoted prfLK tag is not defined and would not select the chapter if a reader followed this editorial instruction. - HV-0264 OLP-0070 rules-and-proofs.tex:13: The default repository language admits primitive biconditional, but this LK chapter has no biconditional rules and states no local restriction. Truth is different: it already has its explicit guarded initial sequent. A local ... - HV-0269 OLP-0074 derivations.tex: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 ... - HV-0272 OLP-0075 proving-things.tex: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. - HV-0273 OLP-0075 proving-things.tex:177: The target and following trees keep the side formula ¬A∨¬B. Conjunction-left changes only A∧B; both prose candidate premises must retain ¬B. - HV-0276 OLP-0075 proving-things.tex: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. Moreover, ... - HV-0277 OLP-0077 proof-theoretic-notions.tex:11: The file identifies fol/seq/ptn and defines LK provability and consistency, not natural deduction. Correct its copied editorial system name. - HV-0284 OLP-0078 provability-consistency.tex: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. In reverse, remove ¬A from a finite witness and reinsert it at the ... - HV-0286 OLP-0079 provability-propositional.tex:50: 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. The ... - HV-0290 OLP-0081 soundness.tex: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. - HV-0293 OLP-0081 soundness.tex:249: The subject in it suffices is misspelled if. - HV-0297 OLP-0081 soundness.tex:325: The comma separates the subordinating conjunction Since from its own clause without any intervening parenthetical. Removing that stray comma restores the grammar and leaves the sound implication-left argument unchanged. - HV-0595 OLP-0076 proving-things-quant.tex: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. - HV-0600 OLP-0083 soundness-identity.tex: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. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit cf9b3081e655b6a6b8ab318fc42986de768a8480) --- .../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 | 4 ++-- .../sequent-calculus/soundness-identity.tex | 4 +++- .../sequent-calculus/soundness.tex | 6 ++--- 10 files changed, 44 insertions(+), 29 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..ce20c105a 100644 --- a/content/first-order-logic/sequent-calculus/sequent-calculus.tex +++ b/content/first-order-logic/sequent-calculus/sequent-calculus.tex @@ -11,9 +11,9 @@ \begin{editorial} This chapter presents Gentzen's standard sequent calculus LK for - classical first-order logic. It could use more examples and + classical \iftag{FOL}{first-order}{propositional} logic. It could use more examples and exercises. To include or exclude material relevant to the sequent - calculus as a proof system, use the ``prfLK'' tag. + calculus as a proof system, use the ``prfSC'' tag. \end{editorial} \olimport{rules-and-proofs} diff --git a/content/first-order-logic/sequent-calculus/soundness-identity.tex b/content/first-order-logic/sequent-calculus/soundness-identity.tex index e934b6efb..8e8b61d40 100644 --- a/content/first-order-logic/sequent-calculus/soundness-identity.tex +++ b/content/first-order-logic/sequent-calculus/soundness-identity.tex @@ -20,7 +20,7 @@ we assume the term $t$ to be closed, i.e., it contains no variables, so variable assignments are irrelevant). -Suppose the last inference in !!a{derivation} is $=$. Then the premise +Suppose the last inference in !!a{derivation} is the first $=$ rule. Then the premise is $\eq[t_1][t_2], \Gamma \Sequent \Delta, !A(t_1)$ and the conclusion is $\eq[t_1][t_2], \Gamma \Sequent \Delta, !A(t_2)$. Consider !!a{structure}~$\Struct M$. We need to show that the conclusion is @@ -39,6 +39,8 @@ \olref[syn][ext]{prop:ext-formulas} again, we also have $\Sat{M}{!A(t_2)}[s]$. By \olref[syn][ass]{prop:sentence-sat-true}, $\Sat{M}{!A(t_2)}$. +The second $=$ rule is handled by the same equivalence, with $t_1$ +and $t_2$ interchanged. \end{proof} \end{document} diff --git a/content/first-order-logic/sequent-calculus/soundness.tex b/content/first-order-logic/sequent-calculus/soundness.tex index d744de04d..2872d4a99 100644 --- a/content/first-order-logic/sequent-calculus/soundness.tex +++ b/content/first-order-logic/sequent-calculus/soundness.tex @@ -95,7 +95,7 @@ \Delta$ such that $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$. If $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some $!C \in \Gamma$, - then $!C \in \Theta$ as well since $\Theta = !A, \Gamma$, and so + then $!C \in \Theta$ as well since $\Theta = !A, \Gamma$ for left weakening and $\Theta = \Gamma$ for right weakening, and so $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!C}$ for some $!C \in \Theta$. Similarly, if $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for some $!C \in \Delta$, as $!C \in \Xi$, $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!C}$ for @@ -246,7 +246,7 @@ \Gamma$, $\Sat{M}{!C}$, and for all $!C \in \Delta$, $\Sat/{M}{!C}$. We have to show that (a)~holds, i.e., $\Sat{M}{\lforall[x][!A(x)]}$. By - \olref[syn][ass]{prop:sat-quant}, if suffices to show that + \olref[syn][ass]{prop:sat-quant}, it suffices to show that $\Sat{M}{!A(x)}[s]$ for all variable assignments~$s$. So let $s$ be an arbitrary variable assignment. Consider the structure~$\Struct{M'}$ which is just like~$\Struct{M}$ except @@ -322,7 +322,7 @@ $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!A \lif !B}$. If \iftag{FOL}{$\Struct{M}$}{$\pAssign{v}$} doesn't satisfy $\Gamma, \Pi \Sequent \Delta, \Lambda$, it satisfies neither $\Gamma \Sequent - \Delta$ nor $\Pi \Sequent \Lambda$. Since, $\Gamma \Sequent \Delta, + \Delta$ nor $\Pi \Sequent \Lambda$. Since $\Gamma \Sequent \Delta, !A$ is valid, we have $\iftag{FOL}{\Sat{M}}{\pSat{v}}{!A}$. Since $!B, \Pi \Sequent \Lambda$ is valid, we have $\iftag{FOL}{\Sat/{M}}{\pSat/{v}}{!B}$. But then From fae75e8ea752581153ea2c07c4a4ed99c0469cae Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:29 +0100 Subject: [PATCH 11/21] first-order-logic/natural-deduction: fix discharge conditions, quantifier freshness and identity proofs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0299 OLP-0085 rules-and-proofs.tex:13: 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. The completeness-facing claims ... - HV-0300 OLP-0085 rules-and-proofs.tex: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 ... - HV-0301 OLP-0085 rules-and-proofs.tex:33: 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. - HV-0302 OLP-0085 rules-and-proofs.tex:45: The editorial condition needs if one of; is on of is a two-word typing error in the source comment. - HV-0303 OLP-0085 rules-and-proofs.tex:47: iftag implements disjunction of the supplied flags (sty/open-logic-selective.sty:45–50). The old conditional puts the note in the false branch, hiding it precisely when any listed connective is not primitive. Its own comment ... - HV-0304 OLP-0086 propositional-rules.tex: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. - HV-0305 OLP-0088 derivations.tex: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 ... - HV-0306 OLP-0088 derivations.tex: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 ... - HV-0307 OLP-0088 derivations.tex: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. - HV-0309 OLP-0089 proving-things.tex: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. - HV-0310 OLP-0089 proving-things.tex: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. - HV-0315 OLP-0091 proof-theoretic-notions.tex:16: The noun definitions needs of to introduce what is being defined. - HV-0320 OLP-0095 soundness.tex:98: The PL branch supplies a valuation v; the unconditional structure token incorrectly labels it. Put each noun and symbol in its corresponding branch. - HV-0321 OLP-0095 soundness.tex:191: The step passes from satisfaction of the set Gamma to satisfaction of each member under every assignment. Those are the definitions defn:sat and defn:satisfaction in assignments.tex (239–244 and 228–233), not the recursive ... - HV-0323 OLP-0095 soundness.tex: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. - HV-0603 OLP-0087 quantifier-rules.tex:58: The universal-introduction premise is A(a), which normally contains a. Existential elimination explicitly permits the temporary A(a) assumptions it discharges. The blanket prohibition contradicts both correct rule-specific ... - HV-0606 OLP-0087 quantifier-rules.tex: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. Its purpose is to isolate the starred violation of ... - HV-0608 OLP-0090 proving-things-quant.tex: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 ... - HV-0611 OLP-0090 proving-things-quant.tex: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 ... - HV-0616 OLP-0096 identity.tex: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) ... - HV-0619 OLP-0097 soundness-identity.tex:23: identity.tex displays two substitution directions. The proof only treats A(t1)→A(t2), so its i.e. is not exhaustive. The same semantic equality of denotations gives A(t1) iff A(t2); explicitly include the reverse inference ... Co-Authored-By: Claude Opus 5.5 (cherry picked from commit f4722807823c04d110f5c84f82272f2daaf5417c) --- .../natural-deduction/derivations.tex | 18 +++++++++------- .../natural-deduction/identity.tex | 3 ++- .../proof-theoretic-notions.tex | 2 +- .../natural-deduction/propositional-rules.tex | 2 +- .../proving-things-quant.tex | 14 ++++++++----- .../natural-deduction/proving-things.tex | 4 ++-- .../natural-deduction/quantifier-rules.tex | 9 ++++---- .../natural-deduction/rules-and-proofs.tex | 21 ++++++++++++------- .../natural-deduction/soundness-identity.tex | 4 +++- .../natural-deduction/soundness.tex | 7 ++++--- 10 files changed, 49 insertions(+), 35 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/proof-theoretic-notions.tex b/content/first-order-logic/natural-deduction/proof-theoretic-notions.tex index 49589dc77..e19b30686 100644 --- a/content/first-order-logic/natural-deduction/proof-theoretic-notions.tex +++ b/content/first-order-logic/natural-deduction/proof-theoretic-notions.tex @@ -13,7 +13,7 @@ \olsection{Proof-Theoretic Notions} \begin{editorial} -This section collects the definitions the provability relation +This section collects the definitions of the provability relation and consistency for natural deduction. \end{editorial} diff --git a/content/first-order-logic/natural-deduction/propositional-rules.tex b/content/first-order-logic/natural-deduction/propositional-rules.tex index 6dc2d8a09..303786979 100644 --- a/content/first-order-logic/natural-deduction/propositional-rules.tex +++ b/content/first-order-logic/natural-deduction/propositional-rules.tex @@ -110,7 +110,7 @@ \subsection{Rules for $\lfalse$} Note that $\Intro{\lnot}$ and $\FalseCl$ are very similar: The difference is that $\Intro{\lnot}$ derives a negated -!!{sentence}~$\lnot !A$ but $\FalseCl$ a positive !!{sentence}~$!A$. +!!{sentence}~$\lnot !A$ but $\FalseCl$ the !!{sentence}~$!A$ itself. Whenever a rule indicates that some assumption may be discharged, we take this to be a permission, but not a requirement. E.g., in the diff --git a/content/first-order-logic/natural-deduction/proving-things-quant.tex b/content/first-order-logic/natural-deduction/proving-things-quant.tex index 742250289..2799b8b4d 100644 --- a/content/first-order-logic/natural-deduction/proving-things-quant.tex +++ b/content/first-order-logic/natural-deduction/proving-things-quant.tex @@ -36,8 +36,9 @@ we will proceed by setting up the !!{derivation} so we can use the \Elim{\lexists} rule. Here we must pay attention to the eigenvariable condition, and choose a constant that does not appear in -$\lexists[x][!A(x)]$ or any assumptions that it depends on. -(Since no !!{constant}s appear, however, any choice will do fine.) +$\lexists[x][\lnot !A(x)]$, the conclusion, or any other +!!{undischarged} assumptions. Choose it fresh for the actual matrix +$!A(x)$, which may contain !!{constant}s. \begin{prooftree} \AxiomC{$\Discharge{\lexists[x][\lnot !A(x)]}{1}$} \AxiomC{$\Discharge{\lnot !A(a)}{2}$} @@ -89,7 +90,8 @@ check at this point that the eigenvariable condition has not been violated. Since the only rule we applied that is subject to the eigenvariable condition was \Elim{\exists}, and the eigenvariable~$a$ -does not occur in any assumptions it depends on, this is a +does not occur in the existential premise, the conclusion, or any +assumptions left !!{undischarged} by this inference, this is a correct !!{derivation}. \end{ex} @@ -112,8 +114,10 @@ We have two premises to work with. To use the first, i.e., try to find !!a{derivation} of $\lexists[x][!C(x, b)]$ from $\lexists[x][(!A(x) \land !B(x))]$ we would use the \Elim{\lexists} rule. Since it has -an eigenvariable condition, we will apply that rule first. We get the -following: +an eigenvariable condition, we will apply that rule first. Choose a +constant $a$ distinct from $b$ and absent from both original +assumptions and from the conclusion $\lexists[x][!C(x,b)]$. +We get the following: \begin{prooftree} \AxiomC{$\lexists[x][(!A(x) \land !B(x))]$} \AxiomC{$\Discharge{!A(a) \land !B(a)}{1}$} diff --git a/content/first-order-logic/natural-deduction/proving-things.tex b/content/first-order-logic/natural-deduction/proving-things.tex index 09f8780f8..6e312b6da 100644 --- a/content/first-order-logic/natural-deduction/proving-things.tex +++ b/content/first-order-logic/natural-deduction/proving-things.tex @@ -64,7 +64,7 @@ look at the logical connectives in the conclusion: $\lnot$, $\lor$, and $\lif$. We only care at the moment about the first occurrence of $\lif$ because it is the !!{main operator} of the -!!{sentence} in the end-sequent, while $\lnot$, $\lor$ and the second +!!{sentence} at the bottom of the !!{derivation}, while $\lnot$, $\lor$ and the second occurrence of $\lif$ are inside the scope of another connective, so we will take care of those later. We therefore start with the \Intro{\lif} rule. A correct application must look like this: @@ -115,7 +115,7 @@ For the two missing parts of the !!{derivation}, we need !!{derivation}s of $!B$ from $\lnot !A$ and $!A$ in the middle, and -from $!A$ and $!B$ on the left. Let's take the former first. $\lnot +from $!A$ and $!B$ on the right. Let's take the former first. $\lnot !A$ and $!A$ are the two premises of \Elim{\lnot}: \begin{prooftree} \AxiomC{$\Discharge{\lnot !A}{2}$} diff --git a/content/first-order-logic/natural-deduction/quantifier-rules.tex b/content/first-order-logic/natural-deduction/quantifier-rules.tex index 0962ebd52..4d978d873 100644 --- a/content/first-order-logic/natural-deduction/quantifier-rules.tex +++ b/content/first-order-logic/natural-deduction/quantifier-rules.tex @@ -55,10 +55,9 @@ \subsection{Rules for $\lexists$} with the two premises (other than the assumptions $!A(a)$). We call $a$ the \emph{eigenvariable} of the \Elim{\lexists} inference. -The condition that an eigenvariable neither occur in the premises nor -in any assumption that is !!{undischarged} in the !!{derivation}s -leading to the premises for the \Intro{\lforall} or \Elim{\lexists} -inference is called the \emph{eigenvariable condition}. +The respective nonoccurrence restrictions just stated for +\Intro{\lforall} and \Elim{\lexists} are called the +\emph{eigenvariable conditions}. \begin{explain} Recall the convention that when $!A$ is !!a{formula} with the @@ -97,7 +96,7 @@ \subsection{Rules for $\lexists$} \AxiomC{$\Discharge{!A(a)}{1}$} \RightLabel{*\Intro{\lforall}} \UnaryInfC{$\lforall[x][!A(x)]$} - \RightLabel{\Elim{\lexists}} + \DischargeRule{\Elim{\lexists}}{1} \BinaryInfC{$\lforall[x][!A(x)]$} \end{prooftree} However, $\lexists[x][!A(x)] \Entails/ \lforall[x][!A(x)]$. diff --git a/content/first-order-logic/natural-deduction/rules-and-proofs.tex b/content/first-order-logic/natural-deduction/rules-and-proofs.tex index c963a4273..7925ef588 100644 --- a/content/first-order-logic/natural-deduction/rules-and-proofs.tex +++ b/content/first-order-logic/natural-deduction/rules-and-proofs.tex @@ -12,25 +12,30 @@ \olsection{Rules and \usetoken{P}{derivation}} +In this chapter, $\ltrue$ abbreviates $(\lfalse \lif \lfalse)$ and +$(!A \liff !B)$ abbreviates $((!A \lif !B) \land (!B \lif !A))$. +Expand these abbreviations recursively before applying the rules. + \begin{explain} Natural deduction systems are meant to closely parallel the informal reasoning used in mathematical proof (hence it is somewhat ``natural''). Natural deduction proofs begin with assumptions. Inference rules are then applied. Assumptions are ``!!{discharged}'' -by the \Intro{\lnot}, \Intro{\lif}, \iftag{FOL}{\Elim{\lor} and +by the \Intro{\lnot}, \Intro{\lif}, \FalseCl, \iftag{FOL}{\Elim{\lor} and \Elim{\lexists}}{ and \Elim{\lor}} inference rules, and the label of the !!{discharged} assumption is placed beside the inference for clarity. \end{explain} \begin{defn}[Assumption] -An \emph{assumption} is any !!{sentence} -in the topmost position of any branch. +An \emph{assumption} is a !!{sentence} in the topmost position of a +branch that is not justified by an inference with no premises. \end{defn} !!^{derivation}s in natural deduction are certain trees of -!!{sentence}s, where the topmost !!{sentence}s are assumptions, and if -!!a{sentence} stands below one, two, or three other sequents, it must +!!{sentence}s, where each topmost !!{sentence} is an assumption or +the conclusion of an inference with no premises, and if +!!a{sentence} stands below one, two, or three other !!{sentence}s, it must follow correctly by a rule of inference. The !!{sentence}s at the top of the inference are called the \emph{premises} and the !!{sentence} below the \emph{conclusion} of the inference. The rules come in @@ -42,10 +47,10 @@ also assign labels to both the assumption and the inference. This is indicated by writing the assumption as ``$\Discharge{!A}{n}$.'' -% Only include this sentence is on of \land, lor, lif or lnot is defined. +% Only include this sentence if one of \land, lor, lif or lnot is defined. -\iftag{notprvNot,notprvAnd,notprvOr,notprvIf}{}% - {It is customary to consider rules for all the !!{operator}s $\land$, $\lor$, $\lif$, $\lnot$, and $\lfalse$, even if some of those are defined.} +\iftag{defNot,defAnd,defOr,defIf}% + {It is customary to consider rules for all the !!{operator}s $\land$, $\lor$, $\lif$, $\lnot$, and $\lfalse$, even if some of those are defined.}{} diff --git a/content/first-order-logic/natural-deduction/soundness-identity.tex b/content/first-order-logic/natural-deduction/soundness-identity.tex index 44f0c7570..f61ba4e8c 100644 --- a/content/first-order-logic/natural-deduction/soundness-identity.tex +++ b/content/first-order-logic/natural-deduction/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 \Elim{\eq}, i.e., the +Suppose the last inference in !!a{derivation} is \Elim{\eq}, with the !!{derivation} has the following form: \begin{prooftree} \AxiomC{$\Gamma_1$} @@ -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 efe2f44dea0ae3a0b947a5882f238490dff83f6e Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:29 +0100 Subject: [PATCH 12/21] first-order-logic/tableaux: fix branch rules, fresh witnesses and consistency transformations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0325 OLP-0099 rules-and-proofs.tex:16: The unit 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. - HV-0326 OLP-0099 rules-and-proofs.tex:34: The declared Cut rule is premise-free. For the FOL version, identity.tex16–39 additionally declares premise-free reflexivity and two-premise signed substitution. The universal one-principal-formula ancestry clause excludes ... - HV-0327 OLP-0099 rules-and-proofs.tex: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 ... - HV-0328 OLP-0100 propositional-rules.tex:13: 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. A false reflexive ... - HV-0329 OLP-0102 derivations.tex:26: The preceding informal construction requires complete rule applications, but the stated local per-formula conditions alone do not enforce that construction. For example, from T(P or Q), F P, retaining only the T P child of the ... - HV-0330 OLP-0102 derivations.tex:32: The declared Cut rule is premise-free. For the FOL version, identity.tex16–39 additionally declares premise-free reflexivity and two-premise signed substitution. The universal one-principal-formula ancestry clause excludes ... - HV-0331 OLP-0102 derivations.tex:34: 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. Thus the semantically impossible singleton ... - HV-0332 OLP-0102 derivations.tex: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). Infinite sets cannot themselves be finite tableaux, ... - HV-0333 OLP-0102 derivations.tex:49: A signed formula is the pair of a sign S and sentence A. The rule selects an occurrence of that pair; A alone is the unsigned formula metavariable. Correct both references to the selected occurrence. - HV-0335 OLP-0102 derivations.tex: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. - HV-0346 OLP-0105 proof-theoretic-notions.tex: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. Uniformly rename the finitely many internal eigenconstants to fresh ... - HV-0350 OLP-0106 provability-consistency.tex:33: Both the short Cut combination and the later detailed graft add assumptions above copied quantifier steps. Apply the same finite fresh renaming as in proof-theoretic-notions before either attachment; premise availability then ... - HV-0352 OLP-0106 provability-consistency.tex: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. - HV-0357 OLP-0106 provability-consistency.tex:128: The second tableau has several assumptions in its trunk, so the singular is wrong. The independently required identity-safe Cut transformation PT-423 replaces this paragraph and uses the exact plural phrase in the correction. ... - HV-0362 OLP-0109 soundness.tex: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. - HV-0625 OLP-0104 proving-things-quant.tex: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. - HV-0627 OLP-0104 proving-things-quant.tex:115: Freshness is absence from the actual branch, including constants hidden inside schematic matrices. Merely choosing a different symbol from the displayed b does not exclude occurrences in A, B or C; the third example likewise ... - HV-0629 OLP-0104 proving-things-quant.tex:280: 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. - HV-0633 OLP-0108 provability-quantifiers.tex:79: The inline list has exactly two signed assumptions. Its final comma before is is stray punctuation, not a third assumption or a mathematical defect. Remove that comma only. - HV-0639 OLP-0111 soundness-identity.tex: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. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 668bc433f588a2b6c1ae77123f8fb394dc5d4135) --- .../tableaux/derivations.tex | 29 ++++---- .../tableaux/proof-theoretic-notions.tex | 7 +- .../tableaux/propositional-rules.tex | 4 ++ .../tableaux/provability-consistency.tex | 66 +++++++++---------- .../tableaux/provability-quantifiers.tex | 2 +- .../tableaux/proving-things-quant.tex | 16 +++-- .../tableaux/rules-and-proofs.tex | 19 +++--- .../tableaux/soundness-identity.tex | 5 +- .../first-order-logic/tableaux/soundness.tex | 10 +-- 9 files changed, 88 insertions(+), 70 deletions(-) diff --git a/content/first-order-logic/tableaux/derivations.tex b/content/first-order-logic/tableaux/derivations.tex index 5ed8b3702..95a9da29d 100644 --- a/content/first-order-logic/tableaux/derivations.tex +++ b/content/first-order-logic/tableaux/derivations.tex @@ -23,32 +23,37 @@ \begin{defn}[!!^{tableau}] !!^a{tableau} for assumptions $\sFmla{S_1}{!A_1}$, \dots, $\sFmla{S_n}{!A_n}$ (where each $S_i$ is either $\True$ or~$\False$) is -a finite tree of !!{signed formula}s satisfying the following conditions: +a finite tree obtained from the nonempty branch of these assumptions by +finitely many complete rule applications to selected branches. A branching +rule adds both resulting branches; a nonbranching rule adds all of its +conclusions. In particular, the following conditions hold: \begin{enumerate} \item The $n$ topmost !!{signed formula}s of the tree are $\sFmla{S_i}{!A_i}$, one below the other. \item Every !!{signed formula} in the tree that is not one of the assumptions results from a correct application of an inference rule - to !!a{signed formula} in the branch above it. + using the required !!{signed formula}s on the branch above it + (none for \Cut{}\iftag{FOL}{ or identity reflexivity, and two for + identity substitution}{}). \end{enumerate} A branch of !!a{tableau} is \emph{closed} iff it contains both -$\sFmla{\True}{!A}$ and~$\sFmla{\False}{!A}$, and \emph{open} -otherwise. !!^a{tableau} in which every branch is closed is a +$\sFmla{\True}{!A}$ and~$\sFmla{\False}{!A}$\iftag{prvTrue}{, or contains +$\sFmla{\False}{\ltrue}$}{}\iftag{prvFalse}{, or contains +$\sFmla{\True}{\lfalse}$}{}, and \emph{open} otherwise. !!^a{tableau} in which every branch is closed is a \emph{closed !!{tableau}} (for its set of assumptions). If !!a{tableau} is not closed, i.e., if it contains at least one open branch, it is \emph{open}. \end{defn} \begin{ex} - Every set of assumptions on its own is !!a{tableau}, but it will - generally not be closed. (Obviously, it is closed only if the - assumptions already contain a pair of !!{signed formula}s - $\sFmla{\True}{!A}$ and~$\sFmla{\False}{!A}$.) + Every finite nonempty set of assumptions on its own is !!a{tableau}, but it will + generally not be closed. (It is closed exactly when the assumptions already contain one + of the closing configurations just specified.) From !!a{tableau} (open or closed) we can obtain a new, larger one by - applying one of the rules of inference to !!a{signed formula}~$!A$ + applying one of the rules of inference to !!a{signed formula}~$\sFmla{S}{!A}$ in it. The rule will append one or more !!{signed formula}s to the end of - any branch containing the occurrence of~$!A$ to which we apply the + any branch containing the occurrence of~$\sFmla{S}{!A}$ to which we apply the rule. For instance, consider the assumption $\sFmla{\True}{!A \land \lnot @@ -77,8 +82,8 @@ !!{signed formula} on that line is the result of applying the $\TRule{\True}{\land}$ rule to the !!{signed formula} on line~$1$). This new !!{tableau} now contains additional !!{signed formula}s, - but to only one ($\sFmla{\True}{\lnot !A}$) can we apply a rule (in - this case, the $\TRule{\True}{\lnot}$ rule). This results in the closed + and we can apply the $\TRule{\True}{\lnot}$ rule to + $\sFmla{\True}{\lnot !A}$. This results in the closed !!{tableau} \begin{center} \begin{tableau}{} diff --git a/content/first-order-logic/tableaux/proof-theoretic-notions.tex b/content/first-order-logic/tableaux/proof-theoretic-notions.tex index 57994879f..947446cae 100644 --- a/content/first-order-logic/tableaux/proof-theoretic-notions.tex +++ b/content/first-order-logic/tableaux/proof-theoretic-notions.tex @@ -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 6abc68c84..e05b8a7f0 100644 --- a/content/first-order-logic/tableaux/provability-consistency.tex +++ b/content/first-order-logic/tableaux/provability-consistency.tex @@ -30,7 +30,12 @@ \{\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} @@ -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 apply $\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-quantifiers.tex b/content/first-order-logic/tableaux/provability-quantifiers.tex index bdecf0319..13aa1d9ca 100644 --- a/content/first-order-logic/tableaux/provability-quantifiers.tex +++ b/content/first-order-logic/tableaux/provability-quantifiers.tex @@ -76,7 +76,7 @@ [\sFmla{\False}{\formula{A}(t)}, just = {\TRule{\False}{\lexists}[1]}, close]]] \end{oltableau}}{} \tagitem{prvAll}{A closed !!{tableau} for - $\sFmla{\False}{\formula{A}(t)}, \sFmla{\True}{\lforall[x][!A(x)]}, $ is: + $\sFmla{\False}{\formula{A}(t)}, \sFmla{\True}{\lforall[x][!A(x)]}$ is: \begin{oltableau} [\sFmla{\False}{\formula{A}(t)}, just = \TAss [\sFmla{\True}{\lforall[x][\formula{A}(x)]}, just = \TAss diff --git a/content/first-order-logic/tableaux/proving-things-quant.tex b/content/first-order-logic/tableaux/proving-things-quant.tex index b7472daef..1c43fb9bc 100644 --- a/content/first-order-logic/tableaux/proving-things-quant.tex +++ b/content/first-order-logic/tableaux/proving-things-quant.tex @@ -37,8 +37,8 @@ ] \end{oltableau} The next line to deal with is~$2$. We use -$\TRule{\True}{\lexists}$. This requires a new !!{constant}; since no -!!{constant}s yet occur, we can pick any one, say,~$a$. +$\TRule{\True}{\lexists}$. This requires a new !!{constant}; choose +$a$ not occurring anywhere on the actual branch, including in~$!A(x)$. \begin{oltableau} [\sFmla{\False}{\lexists[x][\lnot \formula{A}(x)]\lif \lnot \lforall[x][\formula{A}(x)]}, just=\TAss, checked @@ -112,8 +112,9 @@ \end{oltableau} We should always apply a rule with the eigenvariable condition first; in this case that would be $\TRule{\True}{\lexists}$ to -line~$2$. Since the assumptions contain the !!{constant}~$b$, we have -to use a different one; let's pick~$a$ again. +line~$2$. Choose $a$ absent from all the assumptions, including +the !!{formula}s represented by $!A$, $!B$, and~$!C$; in particular, +$a$ must differ from~$b$. \begin{oltableau} [\sFmla{\False}{\lexists[x][\formula{C}(x,b)]}, just=\TAss [\sFmla{\True}{\lexists[x][(\formula{A}(x) \land \formula{B}(x))]}, @@ -257,8 +258,9 @@ ] ] \end{oltableau} -Both new !!{signed formula}s require rules with eigenvariable conditions, so -these should be next: +Both new !!{signed formula}s require rules with eigenvariable conditions. +Choose !!{constant}s $b$ and $c$ not occurring in the assumptions, and +apply these rules next: \begin{oltableau} [\sFmla{\True}{\lforall[x][\formula{A}(x)]}, just=\TAss [\sFmla{\True}{\lforall[x][\formula{A}(x)] \lif @@ -278,7 +280,7 @@ ] \end{oltableau} To close the branches, we have to use the !!{signed formula}s on lines $1$ -and~$3$. The corresponding rules (\TRule{\True}{\lforall} and +and~$4$. The corresponding rules (\TRule{\True}{\lforall} and \TRule{\False}{\lexists}) don't have eigenvariable conditions, so we are free to pick whichever terms are suitable. In this case, that's $b$ and~$c$, respectively. diff --git a/content/first-order-logic/tableaux/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 f167ed908..9ec6d2d9d 100644 --- a/content/first-order-logic/tableaux/soundness-identity.tex +++ b/content/first-order-logic/tableaux/soundness-identity.tex @@ -11,8 +11,9 @@ \olsection{Soundness with \usetoken{S}{identity}} \begin{prop} -!!^{tableau}s with rules for identity are sound: no closed !!{tableau} - is satisfiable. +!!^{tableau}s with rules for identity are sound: if a set of + !!{signed formula}s~$\Gamma$ has a closed !!{tableau}, then + $\Gamma$ is unsatisfiable. \end{prop} \begin{proof} diff --git a/content/first-order-logic/tableaux/soundness.tex b/content/first-order-logic/tableaux/soundness.tex index 73b9b64b8..a76903e7b 100644 --- a/content/first-order-logic/tableaux/soundness.tex +++ b/content/first-order-logic/tableaux/soundness.tex @@ -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 \iftag{FOL}{!!{structure}}{!!{valuation}} 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 From 965f63acb3963d688974c77729719a993f683ed1 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:29 +0100 Subject: [PATCH 13/21] first-order-logic/axiomatic-deduction: fix axiom instances, deduction conditions and proof references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0369 OLP-0113 rules-and-proofs.tex:40: The neighboring definition uses the formula metavariable !Ai consistently. The isolated step lacks that marker, changing its configured rendering. - HV-0371 OLP-0114 axioms-rules-propositional.tex:16: PAx names the set; the first of is duplicated in the noun phrase. - HV-0374 OLP-0116 proving-things.tex: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 ... - HV-0378 OLP-0118 proof-theoretic-notions.tex:59: Whole-context eigenconstant freshness can fail under enlarging Γ. In a unary predicate language, Δ containing P(c)→P(c) for every constant blocks every QR; the valuation giving all universals false and all existentials true ... - HV-0379 OLP-0118 proof-theoretic-notions.tex:70: Raw concatenation adds premises that can contain an eigenconstant used in the other proof. With finite supports, copy each dependent prefix/subderivation and replace the affected eigenconstant by a globally fresh constant; its ... - HV-0382 OLP-0118 proof-theoretic-notions.tex: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. - HV-0386 OLP-0119 deduction-theorem.tex: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. - HV-0387 OLP-0119 deduction-theorem.tex: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 ... - HV-0407 OLP-0124 soundness.tex:56: 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 ... - HV-0408 OLP-0124 soundness.tex:68: 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 ... - HV-0412 OLP-0124 soundness.tex:93: The cited syn/sat definition defines formula satisfaction relative to an assignment recursively. The step actually unwraps satisfaction of a set of sentences and then satisfaction of each sentence under every assignment. Those ... - HV-0647 OLP-0115 axioms-rules-quantifiers.tex:25: 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. The dual ... - HV-0648 OLP-0117 proving-things-quant.tex:17: 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. The local single-variable ... - HV-0649 OLP-0117 proving-things-quant.tex: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 ... - HV-0650 OLP-0120 deduction-theorem-quantifiers.tex:31: The proof reapplies QR with matrix D(x), so it uses the same matrix freshness needed by the rule definition. Before its induction, select a finite support and regularize eigenconstants to allow adding the discharged formula A; ... - HV-0661 OLP-0643 provability.tex:16: This unimported legacy unit 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, ... - HV-0662 OLP-0643 provability.tex:28: The tagged exercises occur in the following nine-item proposition, whereas prop:provability labels the preceding consistency equivalence. Give the actual target a unique label and point the exercise to it. Label change is ... - HV-0664 OLP-0643 provability.tex:85: The following derivation begins from Γ0∪{A} and concludes using Γ0∪Γ1⊆Γ. Match the first hypothesis to that finite-support name. - HV-0666 OLP-0643 provability.tex: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 ... - HV-0667 OLP-0643 provability.tex: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. - HV-0672 OLP-0125 identity.tex:2: The containing directory, chapter driver and local fol/axd/ide identifier all name axiomatic-deduction. The source metadata comment still uses the obsolete axiomatic-proofs chapter name. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 8333737a33ea556339d33839ac68a80cdbd8d686) --- .../axioms-rules-propositional.tex | 2 +- .../axioms-rules-quantifiers.tex | 6 ++-- .../deduction-theorem-quantifiers.tex | 7 ++++- .../axiomatic-deduction/deduction-theorem.tex | 6 ++-- .../axiomatic-deduction/identity.tex | 2 +- .../proof-theoretic-notions.tex | 24 ++++++++++++--- .../axiomatic-deduction/provability.tex | 30 +++++++++++++++---- .../proving-things-quant.tex | 4 ++- .../axiomatic-deduction/proving-things.tex | 2 +- .../axiomatic-deduction/rules-and-proofs.tex | 7 ++++- .../axiomatic-deduction/soundness.tex | 21 +++++++++++-- 11 files changed, 88 insertions(+), 23 deletions(-) diff --git a/content/first-order-logic/axiomatic-deduction/axioms-rules-propositional.tex b/content/first-order-logic/axiomatic-deduction/axioms-rules-propositional.tex index c9e0eb0ce..1143aa58c 100644 --- a/content/first-order-logic/axiomatic-deduction/axioms-rules-propositional.tex +++ b/content/first-order-logic/axiomatic-deduction/axioms-rules-propositional.tex @@ -13,7 +13,7 @@ \olsection{Axioms and Rules for the Propositional Connectives} \begin{defn}[Axioms] -The set of $\PAx$ of \emph{axioms} for the propositional connectives comprises +The set $\PAx$ of \emph{axioms} for the propositional connectives comprises all !!{formula}s of the following forms: \begin{align} & (!A \land !B) \lif !A \ollabel{ax:land1}\\ diff --git a/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex b/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex index 6f8ecc3b2..b69bd7502 100644 --- a/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/axioms-rules-quantifiers.tex @@ -23,14 +23,16 @@ \begin{defn}[Rules for quantifiers] \begin{enumerate} \item If $!B \lif !A(a)$ already occurs in the !!{derivation} and $a$ - does not occur in~$\Gamma$ or~$!B$, then $!B \lif + is a constant that does not occur in~$\Gamma$, $!B$, or~$!A(x)$, then $!B \lif \lforall[x][!A(x)]$ is a correct inference step. \item If $!A(a) \lif !B$ already occurs in the !!{derivation} and $a$ - does not occur in~$\Gamma$ or~$!B$, then $\lexists[x][!A(x)] \lif + is a constant that does not occur in~$\Gamma$, $!B$, or~$!A(x)$, then $\lexists[x][!A(x)] \lif !B$ is a correct inference step. \end{enumerate} \end{defn} We'll abbreviate either of these by ``\QR.'' +Here $\Gamma$ is the finite premise set chosen to witness derivability. + \end{document} diff --git a/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex b/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex index 943cc06f2..712e21a9a 100644 --- a/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex +++ b/content/first-order-logic/axiomatic-deduction/deduction-theorem-quantifiers.tex @@ -16,6 +16,11 @@ \end{thm} \begin{proof} +Choose a finite support for the given !!{derivation}, and rename +quantifier-rule eigenconstants as in \olref[ptn]{prop:transitivity} so +that adjoining $!A$ as a premise is permitted. It suffices to prove the +claim for this finite set of other premises, which we again call +$\Gamma$; the result for the original set follows by monotonicity. We again proceed by induction on the length of the !!{derivation} of $!B$ from $\Gamma \cup \{!A\}$. @@ -28,7 +33,7 @@ as in the proof of \olref[ded]{thm:deduction-thm}. If the inference rule is \QR, we know that $!B \ident !C \lif \lforall[x][!D(x)]$ and !!a{formula} of the form $!C \lif !D(a)$ appears earlier in the -!!{derivation}, where $a$ does not occur in~$!C$, $!A$, or $\Gamma$. We +!!{derivation}, where $a$ does not occur in~$!C$, $!A$, $!D(x)$, or $\Gamma$. We thus have that \begin{align*} \Gamma \cup \{!A\} & \Proves !C \lif !D(a),\\ diff --git a/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex b/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex index e454359d1..1867e30fa 100644 --- a/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex +++ b/content/first-order-logic/axiomatic-deduction/deduction-theorem.tex @@ -68,13 +68,15 @@ is an axiom, then $\Gamma \Proves !B$. We also have that $\Gamma \Proves !B \lif (!A \lif !B)$ by \olref[prp]{ax:lif1}, and \olref{prop:mp} gives $\Gamma \Proves !A \lif !B$. If $!B \in \{ !A\}$ -then $\Gamma \Proves !A \lif !B$ because the last !!{sentence}~$!A +then $\Gamma \Proves !A \lif !B$ because the last !!{formula}~$!A \lif !B$ is the same as $!A \lif !A$, and we have !!{derive}d that in \olref[pro]{ex:identity}. For the inductive step, suppose !!a{derivation} of~$!B$ from $\Gamma \cup \{!A\}$ ends with a step~$!B$ which is justified by modus -ponens. (If it is not justified by modus ponens, $!B \in \Gamma$, $!B +ponens. \iftag{FOL}{The additional quantifier-rule cases are proved in +\olref[ddq]{thm:deduction-thm-q}.}{} +(If it is not justified by modus ponens\iftag{FOL}{ or \QR}{}, $!B \in \Gamma$, $!B \ident !A$, or $!B$ is an axiom, and the same reasoning as in the induction basis applies.) Then some previous steps in the !!{derivation} are $!C \lif !B$ and $!C$, for some !!{formula}~$!C$, diff --git a/content/first-order-logic/axiomatic-deduction/identity.tex b/content/first-order-logic/axiomatic-deduction/identity.tex index 41b2fb5c3..d95bc74e9 100644 --- a/content/first-order-logic/axiomatic-deduction/identity.tex +++ b/content/first-order-logic/axiomatic-deduction/identity.tex @@ -1,5 +1,5 @@ % Part: first-order-logic -% Chapter: axiomatic-proofs +% Chapter: axiomatic-deduction % Section: identity \documentclass[../../../include/open-logic-section]{subfiles} 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 31431c42e..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} @@ -125,7 +141,7 @@ !!{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 a rule of inference. Take - $\Gamma_0$ to be those $!A_i$ which are in~$\Gamma$. Then the + $\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.tex b/content/first-order-logic/axiomatic-deduction/provability.tex index 307cf6c5e..8b2238aef 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]{}. +\end{editorial} + \begin{prop}[Monotonicity] If $\Gamma \subseteq \Delta$ and $\Gamma \Proves !A$ then also $\Delta \Proves !A$ \end{prop} @@ -25,7 +42,7 @@ \begin{prop}\ollabel{prop:provability} $\Gamma \Proves !A$ if and only if $\Gamma\cup \{\lnot!A \}$ is inconsistent. \end{prop} -\begin{prop} \begin{enumerate} +\begin{prop}\ollabel{prop:provability-properties} \begin{enumerate} \item \ollabel{prop:provability-contr} If $\Gamma \Proves !A$ and $\Gamma \cup \{ !A\} \Proves \lfalse$, then $\Gamma$ is inconsistent. @@ -82,7 +99,7 @@ 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} @@ -132,7 +149,8 @@ % prop:provability-mp \tagitem{defIf}{}{ \iftag{probIf}{Exercise.}{ We -assume both that $\Gamma_0 \Proves !A$ and $\Gamma_0 \Proves !A \lif !B $. +choose a common finite $\Gamma_0 \subseteq \Gamma$ such that +$\Gamma_0 \Proves !A$ and $\Gamma_0 \Proves !A \lif !B $. \begin{derivation} 1. & $\Gamma_0 \Proves !A$ & hyp \\ @@ -140,7 +158,7 @@ 3. & $\Gamma_0 \Proves !B$ & MP 1, 2\\ \end{derivation} -Since $\Gamma_0 \cup \Gamma_1 \subseteq \Gamma$, this means that $\Gamma +Since $\Gamma_0 \subseteq \Gamma$, this means that $\Gamma \Proves !B$.}} % prop:provability-lif @@ -165,7 +183,7 @@ \end{proof} \begin{probtag}{probOr,probAnd,probIf} Complete the proof of -\olref[fol][axd][prv]{prop:provability}. +\olref[fol][axd][prv]{prop:provability-properties}. \end{probtag} \begin{thm}[Generalization] \ollabel{thm:Generalization} If $\Gamma \Proves @@ -194,7 +212,7 @@ that $!A=!A_n$. Pick a variable $x$ not in $!A_1,\ldots,!A_n$, and consider the new sequence: $\Subst{!A_1}{x}{c},\ldots,\Subst{!A_n}{x}{c}.$ Such a sequence is a proof of $\Subst{!A}{x}{c}$ from $\Gamma$. In fact, for each -$i=1,\ldots,n$: \begin{itemize} \item if $!A$ is an axiom, then so is +$i=1,\ldots,n$: \begin{itemize} \item if $!A_i$ is an axiom, then so is $\Subst{!A_i}{x}{c}$; \item if $!A_i \in \Gamma$, then since $c$ is not in $\Gamma$, we have $\Subst{!A_i}{x}{c} = !A_i \in \Gamma$; \item if $!A_i$ is obtained from $!A_j$ and $!A_j \lif !A_i$ then $\Subst{!A_i}{x}{c}$ diff --git a/content/first-order-logic/axiomatic-deduction/proving-things-quant.tex b/content/first-order-logic/axiomatic-deduction/proving-things-quant.tex index bea1d636a..0d0caff3d 100644 --- a/content/first-order-logic/axiomatic-deduction/proving-things-quant.tex +++ b/content/first-order-logic/axiomatic-deduction/proving-things-quant.tex @@ -14,6 +14,8 @@ Let us give !!a{derivation} of $(\lforall[x][!A(x)] \land \lforall[y][!B(y)]) \lif \lforall[x][(!A(x) \land !B(x))]$. +Assume that the only possible free variables of $!A(x)$ and $!B(y)$ +are $x$ and $y$, respectively, and choose $a$ absent from both matrices. First, note that \begin{align*} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[x][!A(x)]\\ @@ -26,7 +28,7 @@ \lforall[y][!B(y)] & \lif !B(a)\\ \intertext{are instances of \olref[prp]{ax:land2} and \olref[qua]{ax:q1}, respectively,} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif !B(a)\\ - \intertext{is derivable by \olref[pro]{prop:chain}. Using an appropriate instance of \olref[prp]{ax:land3} and two applications of~\MP, we see that} + \intertext{is derivable by \olref[pro]{prop:chain}. By \olref[prp]{ax:land3} and \olref[pro]{prop:chain}, the first implication above yields an implication from the same antecedent to $!B(a) \lif (!A(a) \land !B(a))$. The corresponding instance of \olref[prp]{ax:lif2}, followed by two applications of~\MP, combines this with the second implication and shows that} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif (!A(a) \land !B(a))\\ \intertext{is derivable. We can now apply \QR{} to obtain} (\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[x][(!A(x) \land !B(x))]. diff --git a/content/first-order-logic/axiomatic-deduction/proving-things.tex b/content/first-order-logic/axiomatic-deduction/proving-things.tex index d3dcd5674..37e0fc3f5 100644 --- a/content/first-order-logic/axiomatic-deduction/proving-things.tex +++ b/content/first-order-logic/axiomatic-deduction/proving-things.tex @@ -16,7 +16,7 @@ \begin{ex} Suppose we want to prove $(\lnot !D \lor !E) \lif (!D \lif !E)$. Clearly, this is not an instance of any of our axioms, so we -have to use the \MP{} rule to !!{derive} it. Our only rule is~MP, which +have to use the \MP{} rule to !!{derive} it. The only rule needed here is~MP, which given $!A$ and $!A \lif !B$ allows us to justify~$!B$. One strategy would be to use \olref[prp]{ax:lor3} with $!A$ being $\lnot !D$, $!B$ being $!E$, and $!C$ being $!D \lif !E$, i.e., the instance diff --git a/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex b/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex index 29cce9257..61f581032 100644 --- a/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex +++ b/content/first-order-logic/axiomatic-deduction/rules-and-proofs.tex @@ -37,7 +37,7 @@ What counts as a correct !!{derivation} depends on which inference rules we allow (and of course what we take to be axioms). And an inference rule is an if-then statement that tells us that, under -certain conditions, a step~$A_i$ in !!a{derivation} is a correct +certain conditions, a step~$!A_i$ in !!a{derivation} is a correct inference step. \begin{defn}[Rule of inference] @@ -84,6 +84,11 @@ A !!{formula}~$!A$ is \emph{!!{derivable}} from $\Gamma$, written $\Gamma \Proves !A$, if there is !!a{derivation} from $\Gamma$ ending in $!A$. +\iftag{FOL}{For an arbitrary premise set, $\Gamma \Proves !A$ means +that there is such a !!{derivation} from a finite subset +$\Gamma_0 \subseteq \Gamma$. Fresh constants may be chosen in a finite +expansion of the language, and the freshness conditions on quantifier +rules refer to this chosen finite premise set.}{} \end{defn} \begin{defn}[Theorems] diff --git a/content/first-order-logic/axiomatic-deduction/soundness.tex b/content/first-order-logic/axiomatic-deduction/soundness.tex index 8a2c35831..65ade4f9f 100644 --- a/content/first-order-logic/axiomatic-deduction/soundness.tex +++ b/content/first-order-logic/axiomatic-deduction/soundness.tex @@ -53,10 +53,21 @@ \begin{thm}[Soundness] \ollabel{thm:soundness} +\iftag{FOL}{Let $\Gamma$ be a set of sentences and $!A$ a sentence. }{} If $\Gamma \Proves !A$ then $\Gamma \Entails !A$. \end{thm} \begin{proof} +\iftag{FOL}{Choose a finite premise support. Replace each free +variable in its finite !!{derivation} by a distinct new constant, using +the same replacement at every free occurrence. This leaves the sentence +premises and conclusion unchanged and makes all intermediate formulas +sentences. The replacements preserve axiom instances, modus ponens, +and the quantifier rules: the new constants are distinct from every +eigenconstant already in the !!{derivation}. Every structure for the +original language has an expansion interpreting the finitely many new +constants. It therefore suffices to prove soundness for this sentence +!!{derivation} from the finite support, again denoted by $\Gamma$.}{} By induction on the length of the !!{derivation} of $!A$ from $\Gamma$. If there are no steps justified by inferences, then all !!{formula}s in the !!{derivation} are either instances of axioms or are @@ -65,6 +76,9 @@ $\Gamma \Entails !A$. If $!A \in \Gamma$, then trivially $\Gamma \Entails !A$. +The same immediate argument applies whenever the last line is an +axiom or a premise, regardless of earlier inference steps. + If the last step of the !!{derivation} of~$!A$ is justified by modus ponens, then there are !!{formula}s $!B$ and $!B \lif !A$ in the !!{derivation}, and the induction hypothesis applies to the part of @@ -90,7 +104,8 @@ for every variable assignment~$s$, $\Sat{M}{!B(x)}[s]$ (\olref[syn][ass]{prop:sat-quant}). Since $\Gamma \cup \{!C\}$ consists entirely of sentences, $\Sat{M}{!D}[s]$ for all $!D \in -\Gamma$ by \olref[syn][sat]{defn:satisfaction}. Let $\Struct{M'}$ be +\Gamma$ by \olref[syn][ass]{defn:sat} and +\olref[syn][ass]{defn:satisfaction}. Let $\Struct{M'}$ be like $\Struct{M}$ except that $\Assign{c}{M'} = s(x)$. Since $c$ does not occur in~$\Gamma$ or~$!C$, $\Sat{M'}{\Gamma \cup \{!C\}}$ by \olref[syn][ext]{cor:extensionality-sent}. Since $\Gamma \cup \{!C\} @@ -118,12 +133,12 @@ \begin{cor} \ollabel{cor:weak-soundness} -If $\Proves !A$, then $!A$ is \iftag{FOL}{valid}{a tautology}. +If $\Proves !A$\iftag{FOL}{ and $!A$ is a sentence}{}, then $!A$ is \iftag{FOL}{valid}{a tautology}. \end{cor} \begin{cor} \ollabel{cor:consistency-soundness} -If $\Gamma$ is satisfiable, then it is consistent. +If $\Gamma$ is \iftag{FOL}{a satisfiable set of sentences}{satisfiable}, then it is consistent. \end{cor} \begin{proof} From cd0c75d36e07476713939d8a80643dc5f0e385a7 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:30 +0100 Subject: [PATCH 14/21] first-order-logic/completeness: fix Henkin construction, finite support and model references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0415 OLP-0127 introduction.tex:30: The satisfaction condition is inside only the false arm of the original conditional. Close the object-selection branch before with so both FOL and PL assert a model/valuation satisfying Γ; retain each semantic macro. - HV-0418 OLP-0127 introduction.tex:60: The two consecutive articles arise across the emph command. Remove the unformatted duplicate. - HV-0419 OLP-0127 introduction.tex:63: The shared paragraph’s PL construction returns a valuation. Select the matching semantic object in each branch. - HV-0422 OLP-0128 outline.tex:68: The next sentence defines completeness by condition (b). Deciding only atoms is weaker: a set containing all propositional variables contains neither p∧q nor its negation. Require every sentence while leaving the earlier ... - HV-0423 OLP-0128 outline.tex:72: The following proof uses Γ⊆Γ*. The set of only newly added formulas need not include any original member. Include Γ explicitly in the resulting extension. - HV-0424 OLP-0128 outline.tex:76: The quantified count noun after all must be plural, matching the immediately preceding all sentences in Gamma-star. - HV-0426 OLP-0128 outline.tex:107: The actual construction later in this outline and construction-of-model.tex takes closed terms as its domain. Open variable terms depend on assignments and are not the named domain elements used by the truth lemma. State the ... - HV-0427 OLP-0128 outline.tex:125: The intended clause describes what each equivalence class contains. Removing is so that it repairs the malformed construction without changing the membership condition or the separate Gamma-star correction. - HV-0428 OLP-0128 outline.tex:126: The quotient equivalence is membership of identities in the completed set Γ*, as identity.tex:27–31 defines. The original Γ may leave many identities undecided. Name the completed extension that determines the classes. - HV-0430 OLP-0129 complete-consistent-sets.tex:41: Atomic membership yields a model of the whole completed set only with witnesses for existentials. A complete theory of a two-element model whose constants all name 0 and P holds only at 1 has ∃xP(x) but no constant instance; ... - HV-0434 OLP-0131 lindenbaums-lemma.tex:78: The finite subset can be empty, so there may be no witness indices. Γ0 is consistent by the construction’s base hypothesis and contains the empty set; choose index 0 in that case. - HV-0440 OLP-0132 construction-of-model.tex:134: The preceding equivalence existentially quantifies an assignment s. The next equivalence must retain that existential witness while naming its x-value t; otherwise s occurs without a witness. Every element of the term domain ... - HV-0441 OLP-0132 construction-of-model.tex:146: An equation s(x)=t is a condition on an assignment, not itself a total variable assignment. A total assignment taking x to t exists because the term domain is nonempty; all remaining variables can be assigned any fixed closed ... - HV-0444 OLP-0132 construction-of-model.tex:238: The default enables primitive Iff, but the announced induction has no Iff branch and no reduction convention in this chapter. Its exercise guards exclude probIff, so in the default profile the displayed proof claims both ... - HV-0445 OLP-0132 construction-of-model.tex:243: The quantifier proposition and saturation proposition both explicitly quantify over closed terms, which are domain elements and produce sentences. The two universal and two existential quantifiers in this induction must have ... - HV-0446 OLP-0132 construction-of-model.tex:247: The induction case is A identical to forall x B(x); every preceding instance is B(t). The last membership formula must retain matrix B. - HV-0450 OLP-0135 compactness.tex:35: Γ is a set of sentences, as shown by its finite subsets in both numbered clauses. A is a single sentence. Correct the two different types in the introductory line. - HV-0451 OLP-0135 compactness.tex:92: Only closed old-language terms have assignment-independent denotations and yield sentences c≠t. Since Trm includes variables, explicitly restrict the displayed set. If c≠x were included, its singleton would not be satisfiable ... - HV-0454 OLP-0135 compactness.tex:118: The witness c is outside the original language L. In an expansion, it can name the sole formerly unnamed object, making the expansion covered. The inequalities prove that the L-reduct is uncovered; c’s value is still evaluated ... - HV-0456 OLP-0135 compactness.tex:145: The later interpretation c=1/K needs K>0, including when the finite set contains no indexed inequalities. Any positive integer exceeding the finitely many k works. Remove for as well, since the subject all the sentences ... - HV-0458 OLP-0135 compactness.tex:190: A finite subset Δ′ may be empty and have no largest index. A one-element size bound handles that case; the existing maximum works otherwise. - HV-0460 OLP-0136 compactness-direct.tex:139: The raw term model cannot satisfy c=d for distinct constant strings, although {c=d} is satisfiable. Its cited truth lemma explicitly excludes identity. Use the existing closed-term quotient, proving its equivalence and ... - HV-0461 OLP-0136 compactness-direct.tex:140: The old iftag has only two arguments, and puts both replacement targets inside its FOL arm. State the propositional/connective replacement unconditionally and supply the explicit empty false arm for the additional quantifier ... - HV-0677 OLP-0644 maximally-consistent-sets.tex:107: The current ND and LK propositional units identify as ppr, not prv. Their labels are land-left/right, lor (two parts), and lif-left/right; the former lor-left/right and mp names do not exist there. Resolve all fourteen ... - HV-0684 OLP-0130 henkin-expansions.tex:153: This branch describes existential membership and the next proposition places it under prvEx. The prvAll gate hides it when ∃ is primitive and ∀ defined. Change only that gate. - HV-0687 OLP-0133 identity.tex:69: The congruence proof lists successive function arguments. Both the supplied English and French branch contain two adjacent commas after t_(i+1), unlike every surrounding occurrence of the same argument list. Remove exactly one ... - HV-0688 OLP-0133 identity.tex:89: The relation approx is defined only on closed terms at 27–31, while global Trm[L] includes variables. The quotient carrier must be the domain of that equivalence relation. Define local T0 and use it in all five carrier ... - HV-0698 OLP-0137 downward-ls.tex:44: The identity-free term model is explicitly defined on closed terms. The second proof incorrectly identifies its domain with all terms, including variables; insert closed in that literal domain equality only. Infinitude follows ... Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 110785a94855e7f94e15e58ee1e2e4d617cdf37b) --- .../completeness/compactness-direct.tex | 18 ++++++++-- .../completeness/compactness.tex | 20 +++++------ .../completeness/complete-consistent-sets.tex | 2 +- .../completeness/construction-of-model.tex | 34 +++++++++++++------ .../completeness/downward-ls.tex | 2 +- .../completeness/henkin-expansions.tex | 2 +- .../completeness/identity.tex | 12 +++---- .../completeness/introduction.tex | 8 ++--- .../completeness/lindenbaums-lemma.tex | 2 +- .../maximally-consistent-sets.tex | 17 +++++----- .../completeness/outline.tex | 17 +++++----- 11 files changed, 81 insertions(+), 53 deletions(-) diff --git a/content/first-order-logic/completeness/compactness-direct.tex b/content/first-order-logic/completeness/compactness-direct.tex index 19e31ad82..aa29c084d 100644 --- a/content/first-order-logic/completeness/compactness-direct.tex +++ b/content/first-order-logic/completeness/compactness-direct.tex @@ -136,10 +136,24 @@ \olref[mod]{prop:quant-termmodel} did not rely on the fact that $\Gamma^*$ is consistent (or !!{complete} or saturated, for that matter), but just on the fact that $\Struct{M(\Gamma^*)}$ is covered.}{} +\iftag{FOL}{If identity occurs, instead use the quotient construction +of \olref[ide]{defn:term-model-factor}, with $t \approx t'$ iff +$\eq[t][t'] \in \Gamma^*$ for closed terms. Completeness and finite +satisfiability of $\Gamma^*$ establish reflexivity, symmetry, +transitivity, and compatibility with functions and predicates: a +failure of any one would put the finitely many relevant identities +and the negation of their semantic consequence into $\Gamma^*$, +an unsatisfiable finite subset. Thus the quotient interpretations +are well defined. It is covered by closed terms, and its atomic +identity case is exactly +$\equivrep{t}{\approx} = \equivrep{t'}{\approx}$ iff +$\eq[t][t'] \in \Gamma^*$. The truth lemma in \olref[ide]{lem:truth} +then uses the same finite-satisfiability replacements below.}{} The proof of the Truth Lemma (\olref[mod]{lem:truth}) goes through if -we replace references to \olref[ccs]{prop:ccs}\iftag{FOL}{ and +we replace references to \olref[ccs]{prop:ccs} by references to +\olref{prop:fsat-ccs}\iftag{FOL}{, and references to \olref[hen]{prop:saturated-instances} by references to -\olref{prop:fsat-ccs} and \olref{prop:fsat-instances}}. +\olref{prop:fsat-instances}}{}. \end{proof} \tagprob{FOL} diff --git a/content/first-order-logic/completeness/compactness.tex b/content/first-order-logic/completeness/compactness.tex index 37149d2c9..857ea2a02 100644 --- a/content/first-order-logic/completeness/compactness.tex +++ b/content/first-order-logic/completeness/compactness.tex @@ -32,7 +32,7 @@ \begin{thm}[Compactness Theorem] \ollabel{thm:compactness} -The following hold for any sentences $\Gamma$ and $!A$: +The following hold for any set of sentences $\Gamma$ and sentence $!A$: \begin{enumerate} \item $\Gamma \Entails !A$ iff there is a finite $\Gamma_0 \subseteq \Gamma$ such that $\Gamma_0 \Entails !A$. @@ -89,18 +89,18 @@ \iftag{FOL}{% \begin{ex} -In every model~$\Struct{M}$ of a theory~$\Gamma$, each term~$t$ of +In every model~$\Struct{M}$ of a theory~$\Gamma$, each closed term~$t$ of course picks out !!a{element} of~$\Domain{M}$. Can we guarantee that it is also true that every !!{element} of~$\Domain{M}$ is picked out -by some term or other? In other words, are there theories~$\Gamma$ all +by some closed term or other? In other words, are there theories~$\Gamma$ all models of which are covered? The compactness theorem shows that this is not the case if $\Gamma$ has infinite models. Here's how to see this: Let $\Struct{M}$ be an infinite model of~$\Gamma$, and let $c$ be !!a{constant} not in the language of~$\Gamma$. Let $\Delta$ be the -set of all sentences $\eq/[c][t]$ for $t$ a term in the +set of all sentences $\eq/[c][t]$ for $t$ a closed term in the language~$\Lang{L}$ of~$\Gamma$, i.e., \[ - \Delta = \Setabs{\eq/[c][t]}{t \in \Trm[L]}. + \Delta = \Setabs{\eq/[c][t]}{t \in \Trm[L]\text{ is closed}}. \] A finite subset of $\Gamma \cup \Delta$ can be written as $\Gamma' \cup \Delta'$, with $\Gamma' \subseteq \Gamma$ and $\Delta' \subseteq @@ -115,9 +115,9 @@ every finite subset $\Gamma' \cup \Delta'$ of $\Gamma \cup \Delta$. So every finite subset of $\Gamma \cup \Delta$ is satisfiable. By compactness, $\Gamma \cup \Delta$ itself is satisfiable. So there are -models~$\Sat{M}{\Gamma \cup \Delta}$. Every such $\Struct{M}$ is a +models~$\Sat{M}{\Gamma \cup \Delta}$. The reduct of every such $\Struct{M}$ to $\Lang{L}$ is a model of~$\Gamma$, but is not covered, since $\Value{c}{M} \neq -\Value{t}{M}$ for all terms~$t$ of~$\Lang{L}$. +\Value{t}{M}$ for all closed terms~$t$ of~$\Lang{L}$. \end{ex} \begin{ex} @@ -142,7 +142,7 @@ \] (where $\num{k} = (\Obj{1} + (\Obj{1} + \dots + (\Obj{1} + \Obj{1})\dots))$ with $k$~$\Obj{1}$'s). For any finite -subset~$\Delta_0$ of~$\Delta$ there is a~$K$ such that for all the +subset~$\Delta_0$ of~$\Delta$ there is a positive integer~$K$ such that all the !!{sentence}s $c \times \num{k} < \Obj{1}$ in~$\Delta_0$ have $k < K$. If we expand $\Struct{Q}$ to~$\Struct{Q'}$ with $\Assign{c}{Q'} = 1/K$ we have that $\Sat{Q'}{\Gamma_0 \cup \Delta_0}$ for any finite @@ -187,8 +187,8 @@ !!{structure}s. Then $\Delta \cup \Lambda$ is finitely satisfiable. Why? Suppose $\Delta' \cup \Lambda' \subseteq \Delta \cup \Lambda$ is finite with $\Delta' \subseteq \Delta$ and $\Lambda' -\subseteq \Lambda$. Let $n$ be the largest number such that $!A_{\ge n} -\in \Delta'$. $\Lambda$, being satisfied in all finite structures, has +\subseteq \Lambda$. If $\Delta'$ is empty, let $n=1$; otherwise let $n$ be the +largest number such that $!A_{\ge n} \in \Delta'$. $\Lambda$, being satisfied in all finite structures, has a model~$\Struct{M}$ with finitely many but $\ge n$ !!{element}s. But then $\Sat{M}{\Delta' \cup \Lambda'}$. By compactness, $\Delta \cup \Lambda$ has an infinite model, contradicting the assumption that diff --git a/content/first-order-logic/completeness/complete-consistent-sets.tex b/content/first-order-logic/completeness/complete-consistent-sets.tex index c172ac985..5fd59a8ed 100755 --- a/content/first-order-logic/completeness/complete-consistent-sets.tex +++ b/content/first-order-logic/completeness/complete-consistent-sets.tex @@ -38,7 +38,7 @@ !!{sentence}~$!A$, either $!A$ or its negation $\lnot !A$, but not both. This is true in particular for \iftag{FOL}{atomic !!{sentence}s}{propositional variables}, so from !!a{complete} -consistent set\iftag{FOL}{ in a language suitably expanded by +consistent set\iftag{FOL}{ that is saturated in a language suitably expanded by !!{constant}s}{}, we can construct \iftag{FOL}{!!a{structure}}{!!a{valuation}} where the \iftag{FOL}{interpretation of !!{predicate}s}{truth value assigned to diff --git a/content/first-order-logic/completeness/construction-of-model.tex b/content/first-order-logic/completeness/construction-of-model.tex index ed9f84ba5..d709b2af6 100644 --- a/content/first-order-logic/completeness/construction-of-model.tex +++ b/content/first-order-logic/completeness/construction-of-model.tex @@ -131,7 +131,7 @@ $\Sat{M(\Gamma^*)}{\lexists[x][!A(x)]}$ iff for at least one variable assignment~$s$, $\Sat{M(\Gamma^*)}{!A(x)}[s]$. As $\Domain{M(\Gamma^*)}$ consists of the closed terms of~$\Lang{L}$, - this is the case iff there is at least one closed term~$t$ such + this is the case iff there are a variable assignment~$s$ and a closed term~$t$ such that $s(x) = t$ and $\Sat{M(\Gamma^*)}{!A(x)}[s]$. By \olref[fol][syn][ext]{prop:ext-formulas}, $\Sat{M(\Gamma^*)}{!A(x)}[s]$ iff $\Sat{M(\Gamma^*)}{!A(t)}[s]$, @@ -143,8 +143,8 @@ $\Sat{M(\Gamma^*)}{\lforall[x][!A(x)]}$ iff for every variable assignment $s$, $\Sat{M(\Gamma^*)}{!A(x)}[s]$. Recall that $\Domain{M(\Gamma^*)}$ consists of the closed terms of~$\Lang{L}$, - so for every closed term~$t$, $s(x) = t$ is such a variable - assignment, and for any variable assignment, $s(x)$ is some closed + so for every closed term~$t$, there is a variable assignment~$s$ + such that $s(x) = t$, and for any variable assignment, $s(x)$ is some closed term~$t$. By \olref[fol][syn][ext]{prop:ext-formulas}, $\Sat{M(\Gamma^*)}{!A(x)}[s]$ iff $\Sat{M(\Gamma^*)}{!A(t)}[s]$, where $s(x) = t$. By \olref[fol][syn][ass]{prop:sentence-sat-true}, @@ -235,24 +235,38 @@ \lif !C) \in \Gamma^*$ (by \olref[ccs]{prop:ccs}\olref[ccs]{prop:ccs-if}).}}}{} +\tagitem{prvIff}{% +\iftag{probIff}{% + \indcase!{!A}{!B \liff !C}{}}{% + \indcase{!A}{!B \liff !C} + {By the propositional rules and + \olref[ccs]{prop:ccs}\olref[ccs]{prop:ccs-prov-in}, together with + \olref[ccs]{prop:ccs}\olref[ccs]{prop:ccs-if} for the two + implications, $(!B\liff !C)\in\Gamma^*$ iff either both + $!B$ and $!C$ belong to~$\Gamma^*$ or neither does. + By the induction hypotheses, this holds iff $!B$ and $!C$ have + the same truth value in + \iftag{FOL}{$\Struct{M(\Gamma^*)}$}{$\pAssign{v(\Gamma^*)}$}, + which is exactly the satisfaction condition for $!B\liff !C$.}}}{} + \iftag{FOL}{% \tagitem{prvAll}{% \iftag{probAll}{% \indcase!{!A}{\lforall[x][!B(x)]}{}}{% \indcase{!A}{\lforall[x][!B(x)]}{$\Sat{M(\Gamma^*)}{\indfrm}$ iff - $\Sat{M(\Gamma^*)}{!B(t)}$ for all terms~$t$ + $\Sat{M(\Gamma^*)}{!B(t)}$ for all closed terms~$t$ (\olref{prop:quant-termmodel}). By induction hypothesis, this - is the case iff $!B(t) \in \Gamma^*$ for all terms~$t$, by + is the case iff $!B(t) \in \Gamma^*$ for all closed terms~$t$, by \olref[hen]{prop:saturated-instances}, this in turn is the case - iff $\lforall[x][!A(x)] \in \Gamma^*$.}}}{} + iff $\lforall[x][!B(x)] \in \Gamma^*$.}}}{} \tagitem{prvEx}{% \iftag{probEx}{% \indcase!{!A}{\lexists[x][!B(x)]}{}}{% \indcase{!A}{\lexists[x][!B(x)]}{$\Sat{M(\Gamma^*)}{\indfrm}$ iff - $\Sat{M(\Gamma^*)}{!B(t)}$ for at least one term~$t$ + $\Sat{M(\Gamma^*)}{!B(t)}$ for at least one closed term~$t$ (\olref{prop:quant-termmodel}). By induction hypothesis, this - is the case iff $!B(t) \in \Gamma^*$ for at least one term~$t$. + is the case iff $!B(t) \in \Gamma^*$ for at least one closed term~$t$. By \olref[hen]{prop:saturated-instances}, this in turn is the case iff $\lexists[x][!B(x)] \in \Gamma^*$.}}}{} }{} @@ -260,7 +274,7 @@ \end{proof} -\tagprob[FOL]{probOr,probAnd,probIf,probEx,probAll} +\tagprob[FOL]{probOr,probAnd,probIf,probIff,probEx,probAll} \begin{prob} Complete the proof of \olref[fol][com][mod]{lem:truth}. @@ -268,7 +282,7 @@ \tagendprob -\tagprob[notFOL]{probOr,probAnd,probIf} +\tagprob[notFOL]{probOr,probAnd,probIf,probIff} \begin{prob} Complete the proof of \olref[pl][com][mod]{lem:truth}. diff --git a/content/first-order-logic/completeness/downward-ls.tex b/content/first-order-logic/completeness/downward-ls.tex index 5db185696..f50c23780 100644 --- a/content/first-order-logic/completeness/downward-ls.tex +++ b/content/first-order-logic/completeness/downward-ls.tex @@ -41,7 +41,7 @@ If $\Gamma$ is consistent and contains no sentences in which identity appears, then the !!{structure}~$\Struct M$ delivered by the proof of the completeness theorem has a domain $\Domain{M}$ identical to the set -of terms of the language~$\Lang L'$. So $\Struct{M}$ is +of closed terms of the language~$\Lang L'$. So $\Struct{M}$ is !!{denumerable}, since $\Trm[L']$ is. \end{proof} diff --git a/content/first-order-logic/completeness/henkin-expansions.tex b/content/first-order-logic/completeness/henkin-expansions.tex index 17f6331f8..05a0112f4 100755 --- a/content/first-order-logic/completeness/henkin-expansions.tex +++ b/content/first-order-logic/completeness/henkin-expansions.tex @@ -150,7 +150,7 @@ We'll now show that \emph{complete}, consistent sets which are saturated have the property that \iftag{prvAll}{it contains a universally quantified !!{sentence} iff it contains all its - instances}{}\iftag{defAll,defEx}{}{ and }\iftag{prvAll}{it contains an + instances}{}\iftag{defAll,defEx}{}{ and }\iftag{prvEx}{it contains an existentially quantified !!{sentence} iff it contains at least one instance}{}. We'll use this to show that the !!{structure} we'll generate from a complete, consistent, saturated set makes all its diff --git a/content/first-order-logic/completeness/identity.tex b/content/first-order-logic/completeness/identity.tex index 1534c8576..7f4ab7640 100644 --- a/content/first-order-logic/completeness/identity.tex +++ b/content/first-order-logic/completeness/identity.tex @@ -66,7 +66,7 @@ \item If $\Gamma^* \Proves \eq[t][t']$, then \[ \Gamma^* \Proves -\eq[\Atom{f}{t_1,\dots,t_{i-1},t,t_{i+1},,\dots,t_n}][\Atom{f}{t_1,\dots,t_{i-1},t',t_{i+1},\dots,t_n}] +\eq[\Atom{f}{t_1,\dots,t_{i-1},t,t_{i+1},\dots,t_n}][\Atom{f}{t_1,\dots,t_{i-1},t',t_{i+1},\dots,t_n}] \] for every $n$-place !!{function}~$f$ and closed terms $t_1$, \dots, $t_{i-1}$, $t_{i+1}$, \dots,~$t_n$. @@ -86,11 +86,11 @@ \begin{defn} Suppose $\Gamma^*$ is a consistent and !!{complete} set in a language~$\Lang L$, $t$ is a closed term, and $\approx$ as in the -previous definition. Then: +previous definition. Let $T_0$ be the set of closed terms of $\Lang L$. Then: \[ -\equivrep{t}{\approx} = \Setabs{t'}{t'\in \Trm[L], t \approx t'} +\equivrep{t}{\approx} = \Setabs{t'}{t'\in T_0, t \approx t'} \] -and $\equivclass{\Trm[L]}{\approx} = \Setabs{\equivrep{t}{\approx}}{t \in \Trm[L]}$. +and $\equivclass{T_0}{\approx} = \Setabs{\equivrep{t}{\approx}}{t \in T_0}$. \end{defn} \begin{defn} @@ -99,7 +99,7 @@ for~$\Gamma^*$ from \olref[mod]{defn:termmodel}. Then $\Struct{\equivclass{M}{\approx}}$ is the following !!{structure}: \begin{enumerate} -\item $\Domain{\equivclass{M}{\approx}} = \equivclass{\Trm[L]}{\approx}$. +\item $\Domain{\equivclass{M}{\approx}} = \equivclass{T_0}{\approx}$. \item $\Assign{c}{\equivclass{M}{\approx}} = \equivrep{c}{\approx}$ \item $\Assign{f}{\equivclass{M}{\approx}}(\equivrep{t_1}{\approx}, \dots, \equivrep{t_n}{\approx}) = \equivrep{\Atom{f}{t_1,\dots, t_n}}{\approx}$ @@ -113,7 +113,7 @@ \begin{explain} Note that we have defined $\Assign{f}{\equivclass{M}{\approx}}$ and $\Assign{R}{\equivclass{M}{\approx}}$ for elements of -$\equivclass{\Trm[L]}{\approx}$ by referring to them as +$\equivclass{T_0}{\approx}$ by referring to them as $\equivrep{t}{\approx}$, i.e., via \emph{representatives}~$t \in \equivrep{t}{\approx}$. We have to make sure that these definitions do not depend on the choice of these representatives, i.e., that for diff --git a/content/first-order-logic/completeness/introduction.tex b/content/first-order-logic/completeness/introduction.tex index 3a716099e..6b8956c40 100644 --- a/content/first-order-logic/completeness/introduction.tex +++ b/content/first-order-logic/completeness/introduction.tex @@ -27,8 +27,8 @@ !!{derivation} system is unable to produce certain !!{derivation}s. But who's to say that just because there are no !!{derivation}s of a certain sort from~$\Gamma$, it's guaranteed that there is -\iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!{valuation}{~$\pAssign{v}$} -with $\iftag{FOL}{\Sat{M}}{\pSat{v}}{\Gamma}$}? Before the +\iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!a{valuation}~$\pAssign{v}$} +with $\iftag{FOL}{\Sat{M}}{\pSat{v}}{\Gamma}$? Before the completeness theorem was first proved---in fact before we had the !!{derivation} systems we now do---the great German mathematician David Hilbert held the view that consistency of mathematical theories @@ -57,10 +57,10 @@ $\Gamma$ is consistent, then $\Gamma$ itself must be consistent. Although the compactness theorem follows from the completeness theorem -via the detour through !!{derivation}s, it is also possible to use the +via the detour through !!{derivation}s, it is also possible to use \emph{the proof of} the completeness theorem to establish it directly. For what the proof does is take a set of !!{sentence}s with -a certain property---consistency---and constructs !!a{structure} out +a certain property---consistency---and constructs \iftag{FOL}{!!a{structure}}{!!a{valuation}} out of this set that has certain properties (in this case, that it satisfies the set). Almost the very same construction can be used to directly establish compactness, by starting from ``finitely diff --git a/content/first-order-logic/completeness/lindenbaums-lemma.tex b/content/first-order-logic/completeness/lindenbaums-lemma.tex index 7f89a297f..edfd9dfde 100755 --- a/content/first-order-logic/completeness/lindenbaums-lemma.tex +++ b/content/first-order-logic/completeness/lindenbaums-lemma.tex @@ -75,7 +75,7 @@ From this it follows that $\Gamma^*$ is consistent. Here's why: Let $\Gamma' \subseteq \Gamma^*$ be finite. Each $!B \in \Gamma'$ is also -in~$\Gamma_i$ for some~$i$. Let $n$ be the largest of these. Since +in~$\Gamma_i$ for some~$i$. If $\Gamma\prime$ is empty, let $n=0$; otherwise let $n$ be the largest of these. Since $\Gamma_i \subseteq \Gamma_n$ if $i \le n$, every $!B \in \Gamma'$ is also $\in \Gamma_n$, i.e., $\Gamma' \subseteq \Gamma_n$, and $\Gamma_n$~is consistent. So, every finite subset $\Gamma' \subseteq diff --git a/content/first-order-logic/completeness/maximally-consistent-sets.tex b/content/first-order-logic/completeness/maximally-consistent-sets.tex index 8ce29e7d1..3b34df590 100755 --- a/content/first-order-logic/completeness/maximally-consistent-sets.tex +++ b/content/first-order-logic/completeness/maximally-consistent-sets.tex @@ -104,14 +104,14 @@ For the forward direction, suppose $(!A \land !B) \in \Gamma$. Then $\Gamma \Proves !A \land !B$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-land-left},prfND/{fol:ntd:prv:prop:provability-land-left}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-land-left},prfND/{fol:ntd:ppr:prop:provability-land-left}}, $\Gamma \Proves !A$ and $\Gamma \Proves !B$. By \olref{prop:mcs-prov-in}, $!A \in \Gamma$ and $!B \in \Gamma$, as required. For the reverse direction, let $!A \in \Gamma$ and $!B \in \Gamma$. Then $\Gamma \Proves !A$ and $\Gamma \Proves !B$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-land-right},prfND/{fol:ntd:prv:prop:provability-land-right}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-land-right},prfND/{fol:ntd:ppr:prop:provability-land-right}}, $\Gamma \Proves !A \land !B$. By \olref{prop:mcs-prov-in}, $(!A \land !B) \in \Gamma$.}} @@ -123,14 +123,15 @@ \notin \Gamma$ and $!B \notin \Gamma$. We want to show that $(!A \lor !B) \notin \Gamma$. Since $\Gamma$ is maximally consistent, $\Gamma \cup \{!A\} \Proves \lfalse$ and $\Gamma \cup \{!B\} \Proves \lfalse$. -By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-lor-left},prfND/{fol:ntd:prv:prop:provability-lor-left}}, +Also, \olref{prop:mcs-either-or} gives $\lnot !A,\lnot !B \in \Gamma$. +By transitivity and +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lor},prfND/{fol:ntd:ppr:prop:provability-lor}}, $\Gamma \cup \{(!A \lor !B)\}$ is inconsistent. Hence, $(!A \lor !B) \notin \Gamma$, as required. For the reverse direction, suppose that $!A \in \Gamma$ or $!B \in \Gamma$. Then $\Gamma \Proves !A$ or $\Gamma \Proves !B$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-lor-right},prfND/{fol:ntd:prv:prop:provability-lor-right}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lor},prfND/{fol:ntd:ppr:prop:provability-lor}}, $\Gamma \Proves !A \lor !B$. By \olref{prop:mcs-prov-in}, $(!A \lor !B) \in \Gamma$, as required.}} @@ -141,20 +142,20 @@ For the forward direction, let $(!A \lif !B) \in \Gamma$, and suppose to the contrary that $!A \in \Gamma$ and $!B \notin \Gamma$. On these assumptions, $\Gamma \Proves !A \lif !B$ and $\Gamma \Proves !A$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-mp},prfND/{fol:ntd:prv:prop:provability-mp}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lif-left},prfND/{fol:ntd:ppr:prop:provability-lif-left}}, $\Gamma \Proves !B$. But then by \olref{prop:mcs-prov-in}, $!B \in \Gamma$, contradicting the assumption that $!B \notin \Gamma$. For the reverse direction, first consider the case where $!A \notin \Gamma$. By \olref{prop:mcs-either-or}, $\lnot !A \in \Gamma$ and hence $\Gamma \Proves \lnot !A$. By -\tagrefs{prfSC/{fol:seq:prv:prop:provability-lif},prfND/{fol:ntd:prv:prop:provability-lif}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lif-right},prfND/{fol:ntd:ppr:prop:provability-lif-right}}, $\Gamma \Proves !A \lif !B$. Again by \olref{prop:mcs-prov-in}, we get that $(!A \lif !B) \in \Gamma$, as required. Now consider the case where $!B \in \Gamma$. Then $\Gamma \Proves !B$ and by -\tagrefs{prfSC/{fol:seq:prv:prop:provability-lif},prfND/{fol:ntd:prv:prop:provability-lif}}, +\tagrefs{prfSC/{fol:seq:ppr:prop:provability-lif-right},prfND/{fol:ntd:ppr:prop:provability-lif-right}}, $\Gamma \Proves !A \lif !B$. By \olref{prop:mcs-prov-in}, $(!A \lif !B) \in \Gamma$.}} \end{enumerate} diff --git a/content/first-order-logic/completeness/outline.tex b/content/first-order-logic/completeness/outline.tex index 8a593dfad..d26f07f6a 100644 --- a/content/first-order-logic/completeness/outline.tex +++ b/content/first-order-logic/completeness/outline.tex @@ -65,15 +65,15 @@ This suggests the following idea: we add additional !!{formula}s to~$\Gamma$ so as to (a)~keep the resulting set consistent and -(b)~make sure that for every possible atomic !!{sentence}~$!A$, either +(b)~make sure that for every possible !!{sentence}~$!A$, either $!A$ is in the resulting set, or $\lnot !A$ is, and (c)~such that, whenever $!A \land !B$ is in the set, so are both $!A$ and $!B$, if $!A \lor !B$ is in the set, at least one of $!A$ or $!B$ is also, etc. -We keep doing this (potentially forever). Call the set of all +We keep doing this (potentially forever). Call the set consisting of $\Gamma$ and all !!{formula}s so added~$\Gamma^*$. Then our construction above would provide us with \iftag{FOL}{!!a{structure}~$\Struct{M}$}{!!a{valuation}~$\pAssign{v}$} for which we could prove, by induction, that it satisfies all sentences -in~$\Gamma^*$, and hence also all sentence in~$\Gamma$ +in~$\Gamma^*$, and hence also all sentences in~$\Gamma$ since $\Gamma \subseteq \Gamma^*$. It turns out that guaranteeing (a) and~(b) is enough. A set of sentences for which (b) holds is called \emph{complete}. So our task will be to extend the consistent @@ -104,26 +104,25 @@ interpret $\Obj c_i$, just take the set of !!{constant}s itself as the domain. Then $\Struct M$ can assign every !!{constant} to itself: $\Assign{\Obj c_i}{M} = \Obj c_i$. But why not go all the way: let -$\Domain{M}$ be all \emph{terms} of the language!{} If we do this, +$\Domain{M}$ be all \emph{closed terms} of the language!{} If we do this, there is an obvious assignment of functions (that take terms as arguments and have terms as values) to !!{function}s: we assign to the -!!{function}~$\Obj f^n_i$ the function which, given $n$ terms $t_1$, +!!{function}~$\Obj f^n_i$ the function which, given $n$ closed terms $t_1$, \dots,~$t_n$ as input, produces the term $\Obj f^n_i(t_1, \dots, t_n)$ as value. The last piece of the puzzle is what to do with~$\eq$. The !!{predicate}~$\eq$ has a fixed interpretation: $\Sat{M}{\eq[t][t']}$ iff $\Value{t}{M} = \Value{t'}{M}$. Now if we set things up so that the -!!{value} of a term~$t$ is $t$ itself, then this !!{structure} +!!{value} of a closed term~$t$ is $t$ itself, then this !!{structure} will make \emph{no} sentence of the form $\eq[t][t']$ true unless $t$ and $t'$ are one and the same term. And of course this is a problem, since basically every interesting theory in a language with !!{function}s will have as theorems sentences $\eq[t][t']$ where $t$ and $t'$ are not the same term (e.g., in theories of arithmetic: $\eq[(\Obj 0+ \Obj 0)][\Obj 0]$). To solve -this problem, we change the domain of~$\Struct M$: instead of using terms as -the objects in~$\Domain{M}$, we use sets of terms, and each set is so -that it contains all those terms which the sentences in~$\Gamma$ +this problem, we change the domain of~$\Struct M$: instead of using closed terms as +the objects in~$\Domain{M}$, we use sets of terms, and each set contains all those terms which the sentences in~$\Gamma^*$ require to be equal. So, e.g., if $\Gamma$ is a theory of arithmetic, one of these sets will contain: $\Obj 0$, $(\Obj 0 + \Obj 0)$, $(\Obj 0 \times \Obj 0)$, etc. This will be the set we assign to $\Obj 0$, From 7376d85d0c75f63f14a056dbfdf7aae5b162a864 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:30 +0100 Subject: [PATCH 15/21] first-order-logic/introduction: fix substitution and theory examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0474 OLP-0147 models-theories.tex:24: The pronouns make the sentences, rather than the intended structures, the exclusive items. That would deny other true sentences in those structures. The next description of the axiomatic method specifies a class of models, so ... - HV-0475 OLP-0147 models-theories.tex:34: The empty relation on the empty set is reflexive and transitive, hence a preorder, but the book’s first-order structures must have nonempty domains. State a local nonempty restriction for the entire example, which scopes its ... Co-Authored-By: Claude Opus 5.5 (cherry picked from commit f7e584ae4407f3c9cc32ce7c61afd146771475dd) --- content/first-order-logic/introduction/models-theories.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/first-order-logic/introduction/models-theories.tex b/content/first-order-logic/introduction/models-theories.tex index f2927425b..bbfa72a6d 100644 --- a/content/first-order-logic/introduction/models-theories.tex +++ b/content/first-order-logic/introduction/models-theories.tex @@ -21,8 +21,8 @@ big or small do they have to be? But we might also start with a single !!{structure} or collection of !!{structure}s and ask: what !!{sentence}s are true in them? Are there !!{sentence}s that -\emph{characterize} these !!{structure}s in the sense that they, and -only they, are true in them? These kinds of questions are the domain +\emph{characterize} these !!{structure}s in the sense that exactly +these !!{structure}s satisfy all of the chosen !!{sentence}s? These kinds of questions are the domain of \emph{model theory}. They also underlie the \emph{axiomatic method}: describing a collection of !!{structure}s by a set of !!{sentence}s, the axioms of a theory. This is made possible by the @@ -31,7 +31,8 @@ As a very simple example, consider preorders. A preorder is a relation~$R$ on some set~$A$ which is both reflexive and transitive. -A set~$A$ with a two-place relation $R \subseteq A \times A$ on it is +In this example, restrict attention to preorders on nonempty sets. +A nonempty set~$A$ with a two-place relation $R \subseteq A \times A$ on it is exactly what we would need to give !!a{structure} for a first-order language with a single two-place relation symbol~$\Obj P$: we would set $\Domain{M} = A$ and $\Assign{\Obj P}{M} = R$. Since $R$~is a From 4f28db5708d4fa1aff494e369df5d6273af9e2dc Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:30 +0100 Subject: [PATCH 16/21] first-order-logic/syntax-and-semantics: fix syntax indices, substitution and assignment scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0485 OLP-0150 intro-syntax.tex:22: The modal auxiliary will requires the base form choose, not the past form chose. - HV-0487 OLP-0645 introduction.tex:22: The modal auxiliary will requires the base form choose, not the past form chose. - HV-0488 OLP-0645 introduction.tex:39: As in intro-semantics.tex, an n-place function is interpreted by D^n→D (structures.tex:38–40), not always D→D. Binary arithmetic symbols furnish explicit examples. - HV-0493 OLP-0151 first-order-languages.tex:104: As in the propositional language list, the nested iftag requires three arguments (sty/open-logic-selective.sty:45–51). Its empty false arm is missing before the enclosing branch closes. Insert it; preserve punctuation outside ... - HV-0494 OLP-0151 first-order-languages.tex:130: The synonym list already includes its comma inside the closing quotation marks. The immediately following second comma repeats that separator. Delete only that duplicate punctuation. - HV-0496 OLP-0152 terms-formulas.tex:148: The disjunction expansion of the conditional contains an unmatched closing parenthesis. Supply its opening mate, matching the binary constructor grammar. - HV-0497 OLP-0152 terms-formulas.tex:167: The sentence calls these official object-language expressions; the immediately preceding binary function application uses Obj. open-logic-config.sty:1120–1123 distinguishes object-language symbols by mathsfit. Supply the ... - HV-0499 OLP-0153 unique-readability.tex:19: The English noun interpretation is missing its first r. - HV-0500 OLP-0153 unique-readability.tex:52: main-operator.tex:26–27 explicitly gives atomic formulas no main operator. Its explanatory function domain at 59–64 is the non-atomic formulas. Restrict both domain and unique-occurrence claim here to match it. - HV-0503 OLP-0154 main-operator.tex:59: The displayed cases at 24–48 simply return the outermost operator; none calls the function recursively. subformulas.tex:71–87 expressly distinguishes this casewise form from a recursive definition that invokes values on ... - HV-0513 OLP-0156 formation-sequences.tex:233: Formation sequences construct formulas or terms; formation is the wrong noun in that contrast. - HV-0518 OLP-0160 intro-semantics.tex:19: A function symbol of arity n is interpreted as D^n→D, as structures.tex:38–40 explicitly states. The introduction incorrectly types all function interpretations as unary D→D; binary addition is a direct counterexample. - HV-0521 OLP-0161 structures.tex:77: The numeral two modifies place (arity); single counts the relation. Move the hyphen to the correct compound. - HV-0523 OLP-0162 covered-structures.tex:48: Assign(+,M) is the binary map; applying it to (2,3) already gives the number 5. The application does not itself map onward. The following calculation uses this correctly. - HV-0524 OLP-0162 covered-structures.tex:54: The next aligned line begins with =, so the outer trailing = creates two consecutive equality signs with no intervening term. Remove only the first. - HV-0525 OLP-0163 satisfaction.tex:15: The predicate is plural are those of, naming value and satisfaction as two notions. Match both subject and relative verb to that plural. - HV-0527 OLP-0163 satisfaction.tex:33: Vacuous quantification is explicitly allowed in terms-formulas.tex:110–119. The matrix of forall x R(c,c) is closed, so having a free variable is possible rather than necessary. - HV-0532 OLP-0163 satisfaction.tex:216: The instruction covers all non-atomic formulas, including quantified formulas. The earlier explanation at 27–30 explicitly names both main connectives and quantifiers. Use operator and singular clause to match applies. - HV-0543 OLP-0164 assignments.tex:181: The preceding goal compares the x-variants of s1 and s2 at 178–180. The later proof explicitly calls the new assignments their respective variants at 184–186. Both unindexed s terms are undefined and must retain the original ... - HV-0544 OLP-0164 assignments.tex:241: The set is already named as the grammatical subject. The second Gamma after sentences is a duplicated symbol with no role. - HV-0545 OLP-0164 assignments.tex:280: The quantifier clauses at 320–329 require constants absent from a finite matrix, but first-order-languages.tex:67–71 permits finite signatures. A language with no constants has no available c. Allow fresh-constant expansions ... - HV-0547 OLP-0164 assignments.tex:349: The exercise eliminates the displayed existential quantifier, but A(x,y) may contain further quantifiers; nothing restricts it to a quantifier-free matrix. Calling the result a full Skolem normal form is consequently too ... - HV-0548 OLP-0165 extensionality.tex:3: The filename, fol/syn/ext identifier, section heading, and chapter import identify extensionality. The present descriptive source comment copies the substitution section name. Correcting the false identifier is a source ... - HV-0549 OLP-0165 extensionality.tex:17: Equal cardinality does not fix quantified truth with interpretations fixed. Take domains N and N∪{star}, and interpret P as N in both; forall x P(x) changes truth. The formal proposition at 29–36 requires equal domains ... - HV-0550 OLP-0165 extensionality.tex:40: The hypotheses equate interpretations only for symbols occurring in A (33–35). An unused constant may have different interpretations, falsifying the unrestricted auxiliary claim. Restrict the induction to the relevant term ... - HV-0551 OLP-0165 extensionality.tex:88: The first aligned continuation at 90 already begins with equality. Remove the redundant sign from the outer line, preserving the entire substitution-value computation. - HV-0554 OLP-0166 semantic-notions.tex:56: The section defines entailment and satisfaction without assignments for sentences (25–39), but the defined-symbol branches in terms-formulas.tex:129–137 allow truth/falsity abbreviations with an open atomic matrix. The proof ... Co-Authored-By: Claude Opus 5.5 (cherry picked from commit db2354844cb942a1b76b91ff2d507842476e3f4c) --- .../syntax-and-semantics/assignments.tex | 16 +++++++++------- .../syntax-and-semantics/covered-structures.tex | 4 ++-- .../syntax-and-semantics/extensionality.tex | 8 ++++---- .../first-order-languages.tex | 4 ++-- .../syntax-and-semantics/formation-sequences.tex | 2 +- .../syntax-and-semantics/intro-semantics.tex | 2 +- .../syntax-and-semantics/intro-syntax.tex | 2 +- .../syntax-and-semantics/introduction.tex | 4 ++-- .../syntax-and-semantics/main-operator.tex | 2 +- .../syntax-and-semantics/satisfaction.tex | 8 ++++---- .../syntax-and-semantics/semantic-notions.tex | 4 +++- .../syntax-and-semantics/structures.tex | 2 +- .../syntax-and-semantics/terms-formulas.tex | 4 ++-- .../syntax-and-semantics/unique-readability.tex | 4 ++-- 14 files changed, 35 insertions(+), 31 deletions(-) diff --git a/content/first-order-logic/syntax-and-semantics/assignments.tex b/content/first-order-logic/syntax-and-semantics/assignments.tex index 28cddacb9..a371d1b74 100644 --- a/content/first-order-logic/syntax-and-semantics/assignments.tex +++ b/content/first-order-logic/syntax-and-semantics/assignments.tex @@ -179,8 +179,8 @@ every $m \in \Domain{M}$, $\Sat{M}{!B}[\Subst{s_1}{m}{x}]$. We want to show that also, for every $m \in \Domain{M}$, $\Sat{M}{!B}[\Subst{s_2}{m}{x}]$. So let $m \in \Domain{M}$ be - arbitrary, and consider $s_1' = \Subst{s}{m}{x}$ and $s_2' = - \Subst{s}{m}{x}$. We have that $\Sat{M}{!B}[s_1']$. The free + arbitrary, and consider $s_1' = \Subst{s_1}{m}{x}$ and $s_2' = + \Subst{s_2}{m}{x}$. We have that $\Sat{M}{!B}[s_1']$. The free variables of~$!B$ are among $x_1$, \dots, $x_n$, and $x$. $s_1'(x_i) = s_2'(x_i)$, since $s_1'$ and $s_2'$ are $x$-variants of $s_1$ and~$s_2$, respectively, and by hypothesis @@ -239,7 +239,7 @@ \begin{defn} \ollabel{defn:sat} -If $\Gamma$ is a set of !!{sentence}s~$\Gamma$, we say that +If $\Gamma$ is a set of !!{sentence}s, we say that !!a{structure}~$\Struct M$ \emph{satisfies}~$\Gamma$, $\Sat{M}{\Gamma}$, iff $\Sat{M}{!A}$ for all $!A \in \Gamma$. \end{defn} @@ -278,10 +278,12 @@ \begin{prob} \DeclareRobustCommand{\VDash}{\mathrel{||}\joinrel\Relbar} -Suppose $\Lang L$ is a language without !!{function}s. Given a +Suppose $\Lang L$ is a language without !!{function}s. If necessary, +expand it by fresh constants. Given a !!{structure}~$\Struct M$, $c$ !!a{constant} and $a \in \Domain M$, define $\Struct M[a/c]$ to be the !!{structure} that is just -like~$\Struct M$, except that $\Assign{c}{M[a/c]} = a$. Define +like~$\Struct M$, except that $\Assign{c}{M[a/c]} = a$ (expanding +the language when $c$ is new). Define $\Struct M \VDash !A$ for !!{sentence}s~$!A$ by: \begin{enumerate} \tagitem{prvFalse}{% @@ -330,7 +332,7 @@ in~$!B$.}}{} \end{enumerate} Let $x_1$, \dots, $x_n$ be all free !!{variable}s in~$!A$, -$c_1$, \dots, $c_n$ constant symbols not in~$!A$, +$c_1$, \dots, $c_n$ pairwise distinct constant symbols not in~$!A$, $a_1$, \dots, $a_n \in \Domain M$, and $s(x_i) = a_i$. Show that $\Sat{M}{!A}[s]$ iff $\Struct M[a_1/c_1,\dots,a_n/c_n] @@ -347,7 +349,7 @@ M'$ such that $\Sat{M'}{\lforall[x][!A(x,f(x))]}$. (This problem is a special case of what's known as Skolem's Theorem; -$\lforall[x][!A(x,f(x))]$ is called a \emph{Skolem normal form} of +$\lforall[x][!A(x,f(x))]$ is called a \emph{Skolemization} of $\lforall[x][\lexists[y][!A(x,y)]]$.) \end{prob} diff --git a/content/first-order-logic/syntax-and-semantics/covered-structures.tex b/content/first-order-logic/syntax-and-semantics/covered-structures.tex index 7205721e9..dec2f5f4d 100644 --- a/content/first-order-logic/syntax-and-semantics/covered-structures.tex +++ b/content/first-order-logic/syntax-and-semantics/covered-structures.tex @@ -45,13 +45,13 @@ $c_1$ is less than~$c_2$: for example, $\tuple{1, 3} \in \Assign{<}{M}$ but $\tuple{2, 2} \notin \Assign{<}{M}$. For the binary !!{function} $+$, define $\Assign{+}{M}$ in the usual way---for -example, $\Assign{+}{M}(2,3)$ maps to~$5$, and similarly for the +example, $\Assign{+}{M}(2,3)$ is~$5$, and similarly for the binary !!{function}~$\times$. Hence, the !!{value} of $\Obj{four}$ is just~$4$, and the !!{value} of $\times(\Obj{two}, +(\Obj{three},\Obj{zero}))$ (or in infix notation, $\Obj{two} \times (\Obj{three} + \Obj{zero})$) is \begin{multline*} -\Value{\times(\Obj{two}, +(\Obj{three},\Obj{zero}))}{M} =\\ +\Value{\times(\Obj{two}, +(\Obj{three},\Obj{zero}))}{M} \\ \begin{aligned} & =\Assign{\times}{M}(\Value{\Obj{two}}{M}, \Value{+(\Obj{three}, \Obj{zero})}{M})\\ & = \Assign{\times}{M}(\Value{\Obj{two}}{M}, \Assign{+}{M}(\Value{\Obj{three}}{M}, diff --git a/content/first-order-logic/syntax-and-semantics/extensionality.tex b/content/first-order-logic/syntax-and-semantics/extensionality.tex index f1d9999e3..c9c12dbd5 100644 --- a/content/first-order-logic/syntax-and-semantics/extensionality.tex +++ b/content/first-order-logic/syntax-and-semantics/extensionality.tex @@ -1,6 +1,6 @@ % Part: first-order-logic % Chapter: syntax-and-semantics -% Section: substitution +% Section: extensionality \documentclass[../../../include/open-logic-section]{subfiles} @@ -14,7 +14,7 @@ Extensionality, sometimes called relevance, can be expressed informally as follows: the only factors that bear upon the satisfaction of !!{formula}~$!A$ in !!a{structure}~$\Struct M$ -relative to !!a{variable} assignment~$s$, are the size of the +relative to !!a{variable} assignment~$s$, are the !!{domain} and the assignments made by~$\Struct M$ and~$s$ to the elements of the language that actually appear in~$!A$. @@ -37,7 +37,7 @@ \end{prop} \begin{proof} - First prove (by induction on~$t$) that for every term, + First prove (by induction on~$t$) that for every term whose constants and function symbols occur in~$!A$, $\Value{t}{M_1}[s] = \Value{t}{M_2}[s]$. Then prove the proposition by induction on~$!A$, making use of the claim just proved for the induction basis (where $!A$ is atomic). @@ -85,7 +85,7 @@ \item If $t \ident \Atom{f}{t_1,\dots,t_n}$ then we have: \begin{multline*} - \Value{\Subst{t}{t'}{x}}{M}[s] = \\ + \Value{\Subst{t}{t'}{x}}{M}[s] \\ \begin{aligned}[b] & = \Value{\Atom{f}{\Subst{t_1}{t'}{x}, \dots, \Subst{t_n}{t'}{x}}}{M}[s]\\ & \qquad \text{ by definition of $\Subst{t}{t'}{x}$}\\ diff --git a/content/first-order-logic/syntax-and-semantics/first-order-languages.tex b/content/first-order-logic/syntax-and-semantics/first-order-languages.tex index 35b5b1b56..750e64a54 100644 --- a/content/first-order-logic/syntax-and-semantics/first-order-languages.tex +++ b/content/first-order-logic/syntax-and-semantics/first-order-languages.tex @@ -101,7 +101,7 @@ \iftag{defAll}{\ycomma $\lforall$ (universal quantifier)}{}% \iftag{defEx}{\ycomma $\lexists$ (existential quantifier)}{}% \iftag{defFalse}{\ycomma !!{falsity}~$\lfalse$}{}% - \iftag{defTrue}{\ycomma !!{truth}~$\ltrue$}}{}. + \iftag{defTrue}{\ycomma !!{truth}~$\ltrue$}{}}{}. \begin{tagblock}{defNot,defOr,defAnd,defIf,defIff,defTrue,defFalse,defEx,defAll} \begin{explain} @@ -127,7 +127,7 @@ or ``(material) equivalence'' are $\leftrightarrow$, $\Leftrightarrow$, and $\equiv$.}{} \iftag{prvFalse,defFalse}{The $\lfalse$ symbol is variously called - ``falsity,'' ``falsum,'', ``absurdity,'' or ``bottom.''}{} + ``falsity,'' ``falsum,'' ``absurdity,'' or ``bottom.''}{} \iftag{prvTrue,defTrue}{The $\ltrue$ symbol is variously called ``truth,'' ``verum,'' or ``top.''}{} diff --git a/content/first-order-logic/syntax-and-semantics/formation-sequences.tex b/content/first-order-logic/syntax-and-semantics/formation-sequences.tex index 13ac09be6..673cfa349 100644 --- a/content/first-order-logic/syntax-and-semantics/formation-sequences.tex +++ b/content/first-order-logic/syntax-and-semantics/formation-sequences.tex @@ -230,7 +230,7 @@ There are two types of ``junk'' that can appear in formation sequences: repeated elements, and elements that are irrelevant -to the construction of the formation or term. We can eliminate +to the construction of the formula or term. We can eliminate both by looking at minimal formation sequences. \begin{defn}[Minimal formation sequences] diff --git a/content/first-order-logic/syntax-and-semantics/intro-semantics.tex b/content/first-order-logic/syntax-and-semantics/intro-semantics.tex index bac67ec61..56a9c908f 100644 --- a/content/first-order-logic/syntax-and-semantics/intro-semantics.tex +++ b/content/first-order-logic/syntax-and-semantics/intro-semantics.tex @@ -16,7 +16,7 @@ of the language: !!a{domain} is a non-empty set of objects. The quantifiers are interpreted as ranging over this domain, !!{constant}s are assigned elements in the domain, !!{function}s are assigned -functions from the !!{domain} to itself, and !!{predicate}s are +functions from the appropriate Cartesian power of the !!{domain} to the !!{domain}, and !!{predicate}s are assigned relations on the !!{domain}. The !!{domain} together with assignments to the basic vocabulary constitutes !!a{structure}. !!^{variable}s may appear in !!{formula}s, and in order to give a diff --git a/content/first-order-logic/syntax-and-semantics/intro-syntax.tex b/content/first-order-logic/syntax-and-semantics/intro-syntax.tex index 948a77a1d..532c00463 100644 --- a/content/first-order-logic/syntax-and-semantics/intro-syntax.tex +++ b/content/first-order-logic/syntax-and-semantics/intro-syntax.tex @@ -19,7 +19,7 @@ from atomic !!{formula}s we can form more complex ones using logical connectives and quantifiers. There are many different ways to set down the formation rules; we give just one possible one. Other systems -will chose different symbols, will select different sets of +will choose different symbols, will select different sets of connectives as primitive, will use parentheses differently (or even not at all, as in the case of so-called Polish notation). What all approaches have in common, though, is that the formation rules define diff --git a/content/first-order-logic/syntax-and-semantics/introduction.tex b/content/first-order-logic/syntax-and-semantics/introduction.tex index 5c30e2c66..c34e3db0e 100644 --- a/content/first-order-logic/syntax-and-semantics/introduction.tex +++ b/content/first-order-logic/syntax-and-semantics/introduction.tex @@ -19,7 +19,7 @@ from atomic !!{formula}s we can form more complex ones using logical connectives and quantifiers. There are many different ways to set down the formation rules; we give just one possible one. Other systems -will chose different symbols, will select different sets of +will choose different symbols, will select different sets of connectives as primitive, will use parentheses differently (or even not at all, as in the case of so-called Polish notation). What all approaches have in common, though, is that the formation rules define @@ -36,7 +36,7 @@ of the language: !!a{domain} is a non-empty set of objects. The quantifiers are interpreted as ranging over this domain, !!{constant}s are assigned elements in the domain, !!{function}s are assigned -functions from the !!{domain} to itself, and !!{predicate}s are +functions from the appropriate Cartesian power of the !!{domain} to the !!{domain}, and !!{predicate}s are assigned relations on the !!{domain}. The !!{domain} together with assignments to the basic vocabulary constitutes !!a{structure}. !!^{variable}s may appear in !!{formula}s, and in diff --git a/content/first-order-logic/syntax-and-semantics/main-operator.tex b/content/first-order-logic/syntax-and-semantics/main-operator.tex index a95d17615..515900b6a 100644 --- a/content/first-order-logic/syntax-and-semantics/main-operator.tex +++ b/content/first-order-logic/syntax-and-semantics/main-operator.tex @@ -56,7 +56,7 @@ occurrence of $\lif$ is the !!{main operator}. \begin{explain} -This is a \emph{recursive} definition of a function which maps all +This is an explicit definition by cases of a function which maps all non-atomic !!{formula}s to their !!{main operator} occurrence. Because of the way !!{formula}s are defined inductively, every !!{formula}~$!A$ satisfies one of the cases in \olref{def:main-op}. diff --git a/content/first-order-logic/syntax-and-semantics/satisfaction.tex b/content/first-order-logic/syntax-and-semantics/satisfaction.tex index 3f0df1d1a..2f61af3e6 100644 --- a/content/first-order-logic/syntax-and-semantics/satisfaction.tex +++ b/content/first-order-logic/syntax-and-semantics/satisfaction.tex @@ -12,7 +12,7 @@ in \article{structure} \printtoken{S}{structure}} \begin{explain} -The basic notion that relates expressions such as terms and +The basic notions that relate expressions such as terms and !!{formula}s, on the one hand, and !!{structure}s on the other, are those of \emph{!!{value}} of a term and \emph{satisfaction} of !!a{formula}. Informally, the !!{value} of a term is an !!{element} of @@ -30,7 +30,7 @@ satisfied. The case of the quantifiers here is a bit tricky, as the -immediate !!{subformula} of a quantified !!{formula} has a free +immediate !!{subformula} of a quantified !!{formula} may have a free !!{variable}, and !!{structure}s don't specify the !!{value}s of !!{variable}s. In order to deal with this difficulty, we also introduce \emph{variable assignments} and define satisfaction not with @@ -213,8 +213,8 @@ $\Sat/{M}{R(x, f(a,b))}[s]$ since $\tuple{1, 3} \notin \Assign{R}{M}$. To determine if a non-atomic formula~$!A$ is satisfied, you apply the -clauses in the inductive definition that applies to the main -connective. For instance, the main connective in $R(a, a) \lif (R(b, +clause in the inductive definition that applies to the main +operator (connective or quantifier). For instance, the main connective in $R(a, a) \lif (R(b, x) \lor R(x, b))$ is the~$\lif$, and \begin{align*} & \Sat{M}{R(a, a) \lif (R(b, x) \lor R(x, b))}[s] \text{ iff }\\ diff --git a/content/first-order-logic/syntax-and-semantics/semantic-notions.tex b/content/first-order-logic/syntax-and-semantics/semantic-notions.tex index 29823842c..d286d0b81 100644 --- a/content/first-order-logic/syntax-and-semantics/semantic-notions.tex +++ b/content/first-order-logic/syntax-and-semantics/semantic-notions.tex @@ -53,7 +53,7 @@ For the contrapositive of the reverse direction, let $!A$ be invalid, so there is !!a{structure}~$\Struct M$ with $\Sat/{M}{!A}$. When $\Gamma -= \{ \ltrue \}$, since $\ltrue$ is valid, $\Sat{M}{\Gamma}$. Hence, += \emptyset$, we have $\Sat{M}{\Gamma}$. Hence, there is !!a{structure}~$\Struct M$ so that $\Sat{M}{\Gamma}$ but $\Sat/{M}{!A}$, hence $\Gamma$ does not entail $!A$. \end{proof} @@ -80,6 +80,8 @@ \end{proof} \begin{prob} +If falsity is a defined symbol, use the negation of a universally +closed tautology as its abbreviation in this exercise. \begin{enumerate} \item Show that $\Gamma \Entails \bot$ iff $\Gamma$ is unsatisfiable. \item Show that $\Gamma \cup \{!A\} \Entails \bot$ iff $\Gamma \Entails \lnot !A$. diff --git a/content/first-order-logic/syntax-and-semantics/structures.tex b/content/first-order-logic/syntax-and-semantics/structures.tex index 5ffecb882..ddd2f7432 100644 --- a/content/first-order-logic/syntax-and-semantics/structures.tex +++ b/content/first-order-logic/syntax-and-semantics/structures.tex @@ -74,7 +74,7 @@ \begin{ex} A structure~$\Struct M$ for the language~$\Lang L_Z$ of set theory requires -just a set and a single-two place relation. So technically, e.g., the +just a set and a single two-place relation. So technically, e.g., the set of people plus the relation ``$x$ is older than $y$'' could be used as !!a{structure} for $\Lang L_Z$, as well as $\Nat$ together with $n \ge m$ for $n, m \in \Nat$. diff --git a/content/first-order-logic/syntax-and-semantics/terms-formulas.tex b/content/first-order-logic/syntax-and-semantics/terms-formulas.tex index 4e417155e..8ad74e14d 100644 --- a/content/first-order-logic/syntax-and-semantics/terms-formulas.tex +++ b/content/first-order-logic/syntax-and-semantics/terms-formulas.tex @@ -145,7 +145,7 @@ \lnot !B)$}.}{} \tagitem{defIf}{$!A \lif !B$ abbreviates - \iftag{prvOr}{$\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{} + \iftag{prvOr}{$(\lnot !A \lor !B)$}{$\lnot (!A \land \lnot !B)$}.}{} \tagitem{defIff}{$!A \liff !B$ abbreviates $(!A \lif !B) \land (!B \lif !A)$.}{} @@ -164,7 +164,7 @@ successor function in the language of arithmetic is even written conventionally \emph{after} its argument:~$t'$. Officially, however, these are just conventional abbreviations for $\Atom{\Obj A^2_0}{t_1, t_2}$, -$\Obj f^2_0(t_1, t_2)$, $\Atom{\Obj A^2_0}{t_1, t_2}$ and $f^1_0(t)$, +$\Obj f^2_0(t_1, t_2)$, $\Atom{\Obj A^2_0}{t_1, t_2}$ and $\Obj f^1_0(t)$, respectively. \begin{defn}[Syntactic identity] diff --git a/content/first-order-logic/syntax-and-semantics/unique-readability.tex b/content/first-order-logic/syntax-and-semantics/unique-readability.tex index d9ecd7279..604a84938 100644 --- a/content/first-order-logic/syntax-and-semantics/unique-readability.tex +++ b/content/first-order-logic/syntax-and-semantics/unique-readability.tex @@ -16,7 +16,7 @@ constructing it according to our formation rules for !!{formula}s and only one way of ``interpreting'' it. If this were not so, we would have ambiguous !!{formula}s, i.e., !!{formula}s that have more than -one reading or intepretation---and that is clearly something we want +one reading or interpretation---and that is clearly something we want to avoid. But more importantly, without this property, most of the definitions and proofs we are going to give will not go through. @@ -49,7 +49,7 @@ above, then in one case we get the first occurrence of $\lif$ as the !!{main operator}, and in the second case the second occurrence. But we intend the !!{main operator} to be a \emph{function} of the -!!{formula}, i.e., every !!{formula} must have exactly one !!{main +non-atomic !!{formula}, i.e., every non-atomic !!{formula} must have exactly one !!{main operator} occurrence. \end{explain} From 4f0ad99808bd6e23dfdf24d295737ddd706a73e5 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:30 +0100 Subject: [PATCH 17/21] first-order-logic/models-theories: fix defining formulas and model cardinality examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0559 OLP-0169 expressing-props-of-structures.tex:29: A contradiction satisfies the stated only-if condition vacuously because it has no models. For satisfiable sentences the intended claim follows by transporting a model to an isomorphic structure with a relabelled domain ... - HV-0565 OLP-0170 theories.tex:59: The last displayed line is the induction schema, which does not define <. The preceding arithmetic axiom is the explicit order definition. Name that actual target. - HV-0567 OLP-0170 theories.tex:81: The global A(y) notation explicitly allows extra free parameters. Here the new existential witness x can capture such a parameter, and extra parameters outside x,y are not closed even though the instances are called sentences. ... - HV-0570 OLP-0171 expressing-relations.tex:64: Both displayed formulas use official object-language variables. The final v2 alone lacks the Obj font marker; match the same variable in the first formula and leave its index and meaning unchanged. - HV-0573 OLP-0172 set-theory.tex:18: The appositive starts after ZFC with a comma and must close before the main predicate stands out. Restore its missing closing comma. This is a punctuation omission in the sentence structure, not a change in the mathematical ... - HV-0577 OLP-0172 set-theory.tex:87: Ever satisfied asserts existence of any instance, while always exist is totality for every input. Defining the relation supplies no total-existence guarantee; the power-set axiom is introduced precisely to supply it. Correct ... - HV-0578 OLP-0172 set-theory.tex:103: The antecedent is plural those sets, so both possessive references in the coordinated relative clause must be their. Correct both instances in this one repeated agreement pattern. French is unchanged and PR444 has no hunk here. - HV-0583 OLP-0172 set-theory.tex:151: The explicit convention in syntax-and-semantics/substitution.tex:117–124 permits A(x) to contain other free variables; semantic-notions.tex:125 separately says one free variable when that restriction is intended. Thus the ... Co-Authored-By: Claude Opus 5.5 (cherry picked from commit bc1e811469be50103fd0938da14d28467bef3d96) --- .../expressing-props-of-structures.tex | 2 +- .../models-theories/expressing-relations.tex | 2 +- .../models-theories/set-theory.tex | 16 +++++++++------- .../models-theories/theories.tex | 5 +++-- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/content/first-order-logic/models-theories/expressing-props-of-structures.tex b/content/first-order-logic/models-theories/expressing-props-of-structures.tex index 8d3effa95..43f7df6fd 100644 --- a/content/first-order-logic/models-theories/expressing-props-of-structures.tex +++ b/content/first-order-logic/models-theories/expressing-props-of-structures.tex @@ -26,7 +26,7 @@ !!a{structure}~$\Struct M$ can we express by !!a{sentence} (or perhaps a set of !!{sentence}s) in the language of~$\Struct M$? There are some conditions that we will not be able to express. For instance, -there is no sentence of~$\Lang L_A$ which is only true in a +there is no satisfiable sentence of~$\Lang L_A$ which is only true in a !!{structure}~$\Struct M$ if $\Domain M = \Nat$. We cannot express ``the domain contains only natural numbers.'' But there are ``structural properties'' of !!{structure}s that we perhaps can diff --git a/content/first-order-logic/models-theories/expressing-relations.tex b/content/first-order-logic/models-theories/expressing-relations.tex index cbfaf0af9..d54750bee 100644 --- a/content/first-order-logic/models-theories/expressing-relations.tex +++ b/content/first-order-logic/models-theories/expressing-relations.tex @@ -61,7 +61,7 @@ $\eq[\Obj v_1][\Obj v_2']$ expresses the predecessor relation. The !!{formula}s $\lexists[\Obj v_3][(\eq/[\Obj v_3][\Obj 0] \land \eq[\Obj v_2][(\Obj v_1 + \Obj v_3)])]$ and $\lexists[\Obj - v_3][\eq[(\Obj v_1 + {\Obj v_3}')][v_2]]$ both express the $\Obj <$ + v_3][\eq[(\Obj v_1 + {\Obj v_3}')][\Obj v_2]]$ both express the $\Obj <$ relation. This means that the predicate symbol~$<$ is actually superfluous in the language of arithmetic; it can be defined. \end{ex} diff --git a/content/first-order-logic/models-theories/set-theory.tex b/content/first-order-logic/models-theories/set-theory.tex index 00a50fb11..e5c629858 100644 --- a/content/first-order-logic/models-theories/set-theory.tex +++ b/content/first-order-logic/models-theories/set-theory.tex @@ -15,7 +15,7 @@ First, it requires a set of axioms for the relation~$\in$. A number of different axiom systems have been developed, sometimes with conflicting properties of~$\in$. The axiom system known as -$\Log{ZFC}$, Zermelo--Fraenkel set theory with the axiom of choice +$\Log{ZFC}$, Zermelo--Fraenkel set theory with the axiom of choice, stands out: it is by far the most widely used and studied, because it turns out that its axioms suffice to prove almost all the things mathematicians expect to be able to prove. But before that can be @@ -84,8 +84,8 @@ this doesn't allow us to use $x \cup y$ or $\Pow{x}$ as if they were terms: we can only use the entire !!{formula}s that define the relations $X \cup Y = Z$ and $\Pow{X} = Y$. In fact, we do not know -that these relations are ever satisfied, i.e., we do not know that -unions and power sets always exist. For instance, the !!{sentence} +from these definitions alone that the relations have a satisfying +output for every input, i.e., that unions and power sets always exist. For instance, the !!{sentence} $\lforall[x][\lexists[y][\Pow{x} = y]]$ is another axiom of~$\Log{ZFC}$ (the power set axiom). @@ -100,7 +100,7 @@ \lforall[v][(v \in u \liff (v = x \lor v = y))]))] \] This says that the !!{element}s~$u$ of~$z$ are exactly those sets which -either have $x$ as its only !!{element} or have $x$ and~$y$ as its +either have $x$ as their only !!{element} or have $x$ and~$y$ as their only !!{element}s (in other words, those sets that are either identical to $\{x\}$ or identical to $\{x, y\}$). Once we have this, we can say further things, e.g., that $X \times Y = Z$: @@ -148,8 +148,9 @@ One might think that set theory requires another axiom that guarantees the existence of a set for every defining property. If $!A(x)$ is a -formula of set theory with the variable~$x$ free, we can consider the -!!{sentence} +formula of set theory with the variable~$x$ free, choose $y$ not +occurring in $!A(x)$. We can consider the universal closure, over any +remaining free parameters, of the following !!{formula} \[ \lexists[y][\lforall[x][(x \in y \liff !A(x))]]. \] @@ -164,7 +165,8 @@ i.e., it states the existence of a set of all sets that are not !!{element}s of themselves. No such set can exist---this is Russell's Paradox. $\Log{ZFC}$, in fact, contains a restricted---and -consistent---version of this principle, the separation principle: +consistent---version of this principle, the separation principle +(again taking universal closure over any remaining free parameters): \[ \lforall[z][\lexists[y][\lforall[x][(x \in y \liff (x \in z \land !A(x)))]]]. diff --git a/content/first-order-logic/models-theories/theories.tex b/content/first-order-logic/models-theories/theories.tex index 981ec00d2..442313920 100644 --- a/content/first-order-logic/models-theories/theories.tex +++ b/content/first-order-logic/models-theories/theories.tex @@ -57,7 +57,7 @@ \emph{induction schema}. (Actually, the induction schema is a bit more complicated than we let on here.) -The last axiom is an \emph{explicit definition} of~$<$. +The last axiom before the induction schema is an \emph{explicit definition} of~$<$. \end{ex} \begin{ex} @@ -79,7 +79,8 @@ (\eq[u][x] \lor \eq[u][y]))]]]]\\ & \lforall[x][\lexists[y][\lforall[z][(z \in y \liff \lexists[u][(z \in u \land u \in x)])]]]\\ -\intertext{plus all sentences of the form} & +\intertext{plus the universal closures of all formulas of the form below, +where $x$ does not occur in $!A(y)$} & \lexists[x][\lforall[y][(y \in x \liff !A(y))]] \end{align*} The first axiom says that there is a set with no !!{element}s (i.e., From 3a2bb52ebf7e6701a0bceb7afafbaa8dd1ea8181 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 10:30:45 +0100 Subject: [PATCH 18/21] first-order-logic/beyond: fix many-sorted and nonclassical logic descriptions Found in the translations' records of errors of the English (the errata harvest of 28-29 November 2026: GPT-6 Astra, OpenAI, ChatGPT Pro mode, classified every record against 2e19d095 and made this patch; applied here by Claude Opus 5.5, Anthropic, effort max). Each issue with its sources is in ENGLISH_ERRATA_CONSOLIDATED.tsv: - HV-0700 OLP-0176 many-sorted-logic.tex:24: With the usual first-order quantifier rules, each sort domain must be nonempty. Disjointness and predicate typing alone permit an empty sort in the encoding. Functions must also map correctly typed input tuples into their ... - HV-0717 OLP-0179 intuitionistic-logic.tex:115: The determiner this and the attributive following are incorrectly combined in this expression. The intended demonstrative transition is The following theorem. - HV-0720 OLP-0179 intuitionistic-logic.tex:143: The default configuration makes negation and biconditional primitive (open-logic-config.sty:1593), but neither constructor has a translation clause. Add the usual negation and two-direction conditional clauses; truth/falsity ... - HV-0721 OLP-0179 intuitionistic-logic.tex:202: Monotone begins with a consonant sound, so its indefinite article is a. - HV-0723 OLP-0179 intuitionistic-logic.tex:207: The recursion lists atoms, falsity, conjunction, disjunction and implication only, while the configured primitive signature also includes negation, biconditional and truth. Give their ordinary intuitionistic expansions as the ... - HV-0724 OLP-0180 modal-logics.tex:54: The default structure token expands to structure, so appending ing literally produces structureing, an incorrect verb inflection. Modeling states the intended representational use of modal logic. The subsequent bare verb ... - HV-0727 OLP-0181 other-logics.tex:14: The possessive your own already determines syntax, so the additional indefinite article is extraneous. - HV-0728 OLP-0181 other-logics.tex:34: The construction find something studied requires the past participle, not studies. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 96e7a0c9768a5520f07055984e8c22cadff725ff) --- .../first-order-logic/beyond/intuitionistic-logic.tex | 10 +++++++--- content/first-order-logic/beyond/many-sorted-logic.tex | 7 +++++-- content/first-order-logic/beyond/modal-logics.tex | 2 +- content/first-order-logic/beyond/other-logics.tex | 4 ++-- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/content/first-order-logic/beyond/intuitionistic-logic.tex b/content/first-order-logic/beyond/intuitionistic-logic.tex index f68b496f1..98bf75e57 100644 --- a/content/first-order-logic/beyond/intuitionistic-logic.tex +++ b/content/first-order-logic/beyond/intuitionistic-logic.tex @@ -112,7 +112,7 @@ that enable us to see that the corresponding !!{formula} is true. Intuitionistic logic is often thought of as being classical logic -``minus'' the law of the excluded middle. This following theorem makes +``minus'' the law of the excluded middle. The following theorem makes this more precise. \begin{thm} Intuitionistically, the following axiom schemata are equivalent: @@ -141,6 +141,8 @@ (!A \land !B)^N & \ident (!A^N \land !B^N) \\ (!A \lor !B)^N & \ident \lnot\lnot (!A^N \lor !B^N) \\ (!A \lif !B)^N & \ident (!A^N \lif !B^N) \\ +(\lnot !A)^N & \ident \lnot !A^N \\ +(!A \liff !B)^N & \ident ((!A^N \lif !B^N) \land (!B^N \lif !A^N)) \\ (\lforall[x][!A])^N & \ident \lforall[x][!A^N] \\ (\lexists[x][!A])^N & \ident \lnot\lnot\lexists[x][!A^N] \end{align*} @@ -199,12 +201,14 @@ A Kripke !!{structure}~$\mModel M = \tuple{W, R, V}$ for a propositional language consists of a set~$W$, partial order~$R$ on~$W$ with a least -!!{element}, and an ``monotone'' assignment of propositional variables to +!!{element}, and a ``monotone'' assignment of propositional variables to the !!{element}s of~$W$. The intuition is that the !!{element}s of $W$ represent ``worlds,'' or ``states of knowledge''; an element $v \geq u$ represents a ``possible future state'' of~$u$; and the propositional variables assigned to~$u$ are the propositions that are -known to be true in state~$u$. The forcing relation $\mSat{M}{!A}[w]$ +known to be true in state~$u$. For the forcing clauses below, read $\lnot !A$ as $!A\lif\lfalse$, +$!A\liff !B$ as $(!A\lif !B)\land(!B\lif !A)$, and $\ltrue$ as +$\lfalse\lif\lfalse$. The forcing relation $\mSat{M}{!A}[w]$ then extends this relationship to arbitrary !!{formula}s in the language; read $\mSat{M}{!A}[w]$ as ``$!A$ is true in state~$w$.'' The relationship is defined inductively, as follows: diff --git a/content/first-order-logic/beyond/many-sorted-logic.tex b/content/first-order-logic/beyond/many-sorted-logic.tex index f40f3c3c4..6ec439e25 100644 --- a/content/first-order-logic/beyond/many-sorted-logic.tex +++ b/content/first-order-logic/beyond/many-sorted-logic.tex @@ -21,7 +21,8 @@ ``!!{domain}'' it is supposed to inhabit. One then has !!{variable}s and quantifiers for each sort, and (usually) an !!{identity} for each sort. Functions and relations are also ``typed'' by the sorts of -objects they can take as arguments. Otherwise, one keeps the usual +objects they can take as arguments; each function also has a specified +result sort. Sort domains are nonempty. Otherwise, one keeps the usual rules of first-order logic, with versions of the quantifier-rules repeated for each sort. @@ -55,7 +56,9 @@ $\lforall[x][\lnot (\Atom{\Obj{German}}{x} \land \Atom{\Obj{French}}{x})]$---as well as axioms that guarantee that ``drinks wine'' only holds of objects satisfying the predicate -$\Atom{\Obj{French}}{x}$, etc. With these conventions and axioms, it +$\Atom{\Obj{French}}{x}$, etc. Add an existence axiom for each sort, and axioms placing constants +and function values in their specified result sorts whenever the +arguments have their specified sorts. With these conventions and axioms, it is not difficult to show that many-sorted !!{sentence}s translate to first-order !!{sentence}s, and many-sorted !!{derivation}s translate to first-order !!{derivation}s. Also, many-sorted !!{structure}s diff --git a/content/first-order-logic/beyond/modal-logics.tex b/content/first-order-logic/beyond/modal-logics.tex index db401dc5c..1581cd6b2 100644 --- a/content/first-order-logic/beyond/modal-logics.tex +++ b/content/first-order-logic/beyond/modal-logics.tex @@ -51,7 +51,7 @@ to an ``extensional'' one. The intended semantics for an extensional logic, like classical logic, will only refer to a single world, the ``actual'' one; while the semantics for an ``intensional'' logic -relies on a more elaborate ontology. In addition to !!{structure}ing +relies on a more elaborate ontology. In addition to modeling necessity, one can use modality to !!{structure} other linguistic constructions, reinterpreting $\Box$ and $\Diamond$ according to the application. For example: diff --git a/content/first-order-logic/beyond/other-logics.tex b/content/first-order-logic/beyond/other-logics.tex index 0c969c04d..151682dfb 100644 --- a/content/first-order-logic/beyond/other-logics.tex +++ b/content/first-order-logic/beyond/other-logics.tex @@ -11,7 +11,7 @@ \olsection{Other Logics} As you may have gathered by now, it is not hard to design a new logic. -You too can create your own a syntax, make up a deductive system, and +You too can create your own syntax, make up a deductive system, and fashion a semantics to go with it. You might have to be a bit clever if you want the !!{derivation} system to be complete for the semantics, and it might take some effort to convince the world at large that your logic @@ -31,7 +31,7 @@ ``deontic'' logics, which are designed to model reasoning about moral and ethical obligations. Depending on whether the primary motivation for introducing these systems is philosophical, -mathematical, or computational, you may find such creatures studies +mathematical, or computational, you may find such creatures studied under the rubric of mathematical logic, philosophical logic, artificial intelligence, cognitive science, or elsewhere. From 8e8e0876678f25ecff8f305663c02ee87e100942 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Sun, 29 Nov 2026 17:00:13 +0100 Subject: [PATCH 19/21] propositional logic: line breaks for formulas the corrections lengthened A full build of open-logic-complete.tex after the corrections above set these wider than the page; nothing they say is changed unless noted: - formation-sequences.tex: "final index" pushed the tied formula into the margin, 14.5 pt; tie removed. Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 53f0f858ff9583aff31efd1d9bbfd8c10d2e1833) --- .../syntax-and-semantics/formation-sequences.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/propositional-logic/syntax-and-semantics/formation-sequences.tex b/content/propositional-logic/syntax-and-semantics/formation-sequences.tex index fc3612992..64fe522b3 100644 --- a/content/propositional-logic/syntax-and-semantics/formation-sequences.tex +++ b/content/propositional-logic/syntax-and-semantics/formation-sequences.tex @@ -128,7 +128,7 @@ Suppose $!A$ has a formation sequence $\tuple{!A_0,\dotsc,!A_n}$. We prove that $!A \in \Frm[L_0]$ by strong induction on~$n$. Our induction hypothesis is that every string of symbols with a -formation sequence with final index $m < n$ is in~$\Frm[L_0]$. +formation sequence with final index $m < n$ is in $\Frm[L_0]$. By the definition of a formation sequence, either $!A_n$ is atomic or there must exist $j,k < n$ such that one of the following is the case: From a46d363b68b35ffc6ef5740a6b2c85d64638ac21 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 03:58:54 +0100 Subject: [PATCH 20/21] first-order logic, axiomatic deduction: cite the quantifier rules section by its label Correction 8333737a wrote \olref[qua]{}, which names no label: \olsection labels a section part:chapter:section:sec, as the other section references in the text do (\olref[pathology]{sec}, \olref[sub]{sec}). Now \olref[qua]{sec}. Found when the twelve translations were rebuilt with the corrections (the French reader reported fol:axd:qua: as undefined). Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 4d0d5af54b85843dd9cadb7abf300b41cba29b22) --- content/first-order-logic/axiomatic-deduction/provability.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/first-order-logic/axiomatic-deduction/provability.tex b/content/first-order-logic/axiomatic-deduction/provability.tex index 8b2238aef..7b0961977 100644 --- a/content/first-order-logic/axiomatic-deduction/provability.tex +++ b/content/first-order-logic/axiomatic-deduction/provability.tex @@ -29,7 +29,7 @@ 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]{}. +rules in \olref[qua]{sec}. \end{editorial} \begin{prop}[Monotonicity] If $\Gamma \subseteq \Delta$ and $\Gamma \Proves !A$ From bc5b92baa4b90d7f1d8a0b4488ceca93716df20e Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 09:24:36 +0100 Subject: [PATCH 21/21] first-order-logic/natural-deduction: restore "i.e." in the =Elim case Correction f472280 (C78) replaced "i.e., the derivation has" with "with the derivation has", which is ungrammatical; the wording of 2e19d095 is restored here. Found by the sync of the translations (EN-001). Co-Authored-By: Claude Opus 5.5 --- .../first-order-logic/natural-deduction/soundness-identity.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/first-order-logic/natural-deduction/soundness-identity.tex b/content/first-order-logic/natural-deduction/soundness-identity.tex index f61ba4e8c..830bf1223 100644 --- a/content/first-order-logic/natural-deduction/soundness-identity.tex +++ b/content/first-order-logic/natural-deduction/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 \Elim{\eq}, with the +Suppose the last inference in !!a{derivation} is \Elim{\eq}, i.e., the !!{derivation} has the following form: \begin{prooftree} \AxiomC{$\Gamma_1$}