From dd48471108931a5bb9ca6a87370f1a40096328a3 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:20 +0100 Subject: [PATCH 1/6] first-order-logic/beyond: corrections (7 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit higher-order-logic.tex: - l. 87: Its following explanation must therefore quantify x of type tau; sigma would be the codomain instead. The branch corrects this one type letter. - l. 100: Church's formulation of the simple theory of types is of 1940 (The Journal of Symbolic Logic 5(2), pp. 56–68). intuitionistic-logic.tex: - l. 143: Add the usual negation and two-direction conditional clauses; truth/falsity remain covered by the existing atomic clause. These preserve classical equivalence and negative stability. - l. 207: The recursion lists atoms, falsity, conjunction, disjunction and implication only, while the configured primitive signature also includes negation, biconditional and truth. many-sorted-logic.tex: - l. 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. State both requirements and their first-order encoding axioms. - l. 58: Without axioms saying that every sort is nonempty and that constants and function values lie in their sorts, the translation into one-sorted logic is not faithful. second-order-logic.tex: - l. 142: The arithmetic vocabulary immediately preceding the axioms denotes successor by prime and never introduces a function s. Replacing s(x),s(y) by x-prime,y-prime puts injectivity in the declared language. Co-Authored-By: Claude Opus 5.5 --- content/first-order-logic/beyond/higher-order-logic.tex | 4 ++-- content/first-order-logic/beyond/intuitionistic-logic.tex | 6 +++++- content/first-order-logic/beyond/many-sorted-logic.tex | 7 +++++-- content/first-order-logic/beyond/second-order-logic.tex | 2 +- 4 files changed, 13 insertions(+), 6 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..e1b94336e 100644 --- a/content/first-order-logic/beyond/intuitionistic-logic.tex +++ b/content/first-order-logic/beyond/intuitionistic-logic.tex @@ -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*} @@ -204,7 +206,9 @@ represent ``worlds,'' or ``states of knowledge''; an element $v \geq u$ represents a ``possible future state'' of~$u$; and the propositional variables assigned to~$u$ are the propositions that are -known to be true in state~$u$. The forcing relation $\mSat{M}{!A}[w]$ +known to be true in state~$u$. For the forcing clauses below, read $\lnot !A$ as $!A\lif\lfalse$, +$!A\liff !B$ as $(!A\lif !B)\land(!B\lif !A)$, and $\ltrue$ as +$\lfalse\lif\lfalse$. The forcing relation $\mSat{M}{!A}[w]$ then extends this relationship to arbitrary !!{formula}s in the language; read $\mSat{M}{!A}[w]$ as ``$!A$ is true in state~$w$.'' The relationship is defined inductively, as follows: diff --git a/content/first-order-logic/beyond/many-sorted-logic.tex b/content/first-order-logic/beyond/many-sorted-logic.tex index a8116d41d..b6a8dd72a 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/second-order-logic.tex b/content/first-order-logic/beyond/second-order-logic.tex index 35869f541..1a0145675 100644 --- a/content/first-order-logic/beyond/second-order-logic.tex +++ b/content/first-order-logic/beyond/second-order-logic.tex @@ -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 dfaf589dad972f5d36540da0709a45c360db08e6 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:21 +0100 Subject: [PATCH 2/6] first-order-logic/completeness: corrections (35 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit compactness-direct.tex: - l. 138, 140: The raw term model cannot satisfy c=d for distinct constant strings, although {c=d} is satisfiable. Its cited truth lemma explicitly excludes identity. - l. 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 replacement. compactness.tex: - l. 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. - l. 92: Only closed old-language terms have assignment-independent denotations and yield sentences c≠t. Since Trm includes variables, explicitly restrict the displayed set. - l. 95, 100, 103, 120: Only closed terms have a value that does not depend on an assignment. - l. 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 in the expansion M. - l. 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 already supplies the following verb have. - l. 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. complete-consistent-sets.tex: - l. 41: Atomic membership yields a model of the whole completed set only with witnesses for existentials. construction-of-model.tex: - l. 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. - l. 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 term. - l. 237: The default enables primitive Iff, but the announced induction has no Iff branch and no reduction convention in this chapter. - l. 243, 245: The quantifier proposition and saturation proposition both explicitly quantify over closed terms, which are domain elements and produce sentences. - l. 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. - l. 253, 255: The domain of the term model consists of the closed terms. downward-ls.tex: - l. 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. identity.tex: - l. 89, 91, 93, 102, 116: 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 occurrences; no global notation changes. introduction.tex: - l. 63: The shared paragraph’s PL construction returns a valuation. Select the matching semantic object in each branch. lindenbaums-lemma.tex: - l. 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. maximally-consistent-sets.tex: - l. 126: The proposition on disjunctions is applied with ¬A and ¬B, which maximality supplies; the label cited belongs to the section on properties of derivability. outline.tex: - l. 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 atomic model construction intact. - l. 72: The following proof uses Γ⊆Γ*. The set of only newly added formulas need not include any original member. Include Γ explicitly in the resulting extension. - l. 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. - l. 110: The function is defined on closed terms. - l. 117: The value of a closed term is meant. - l. 124: 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. - l. 124: 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. Co-Authored-By: Claude Opus 5.5 --- .../completeness/compactness-direct.tex | 16 +++++++++- .../completeness/compactness.tex | 20 ++++++------- .../completeness/complete-consistent-sets.tex | 2 +- .../completeness/construction-of-model.tex | 30 ++++++++++++++----- .../completeness/downward-ls.tex | 2 +- .../completeness/identity.tex | 10 +++---- .../completeness/introduction.tex | 2 +- .../completeness/lindenbaums-lemma.tex | 2 +- .../maximally-consistent-sets.tex | 5 ++-- .../completeness/outline.tex | 15 +++++----- 10 files changed, 66 insertions(+), 38 deletions(-) diff --git a/content/first-order-logic/completeness/compactness-direct.tex b/content/first-order-logic/completeness/compactness-direct.tex index 19e31ad82..dcb905e36 100644 --- a/content/first-order-logic/completeness/compactness-direct.tex +++ b/content/first-order-logic/completeness/compactness-direct.tex @@ -136,8 +136,22 @@ \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}}. \end{proof} 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..23c24d1af 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^*$.}}}{} }{} 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/identity.tex b/content/first-order-logic/completeness/identity.tex index 1534c8576..5fee96701 100644 --- a/content/first-order-logic/completeness/identity.tex +++ b/content/first-order-logic/completeness/identity.tex @@ -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..db606e902 100644 --- a/content/first-order-logic/completeness/introduction.tex +++ b/content/first-order-logic/completeness/introduction.tex @@ -60,7 +60,7 @@ via the detour through !!{derivation}s, it is also possible to use the \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..c1ac57ae2 100755 --- a/content/first-order-logic/completeness/maximally-consistent-sets.tex +++ b/content/first-order-logic/completeness/maximally-consistent-sets.tex @@ -123,8 +123,9 @@ \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. diff --git a/content/first-order-logic/completeness/outline.tex b/content/first-order-logic/completeness/outline.tex index 8a593dfad..eace33c6f 100644 --- a/content/first-order-logic/completeness/outline.tex +++ b/content/first-order-logic/completeness/outline.tex @@ -65,11 +65,11 @@ 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 @@ -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 5602a5ed528e419855eb729ca575895731f2b90e Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:21 +0100 Subject: [PATCH 3/6] first-order-logic/introduction: corrections (4 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit models-theories.tex: - l. 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 state that direction explicitly. - l. 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. satisfaction.tex: - l. 24: Constants denote domain elements and have no argument places. Predicates have the variable arities under discussion. The branch replaces the second constants with predicates, agreeing with the surrounding generalization from the unary-predicate example. - l. 63: The worked structure earlier in this section has domain {0,1,2}. Assignments range over that domain, so 3 is not an allowed value and 0 is. The branch lists exactly 0,1,2. Co-Authored-By: Claude Opus 5.5 --- content/first-order-logic/introduction/models-theories.tex | 7 ++++--- content/first-order-logic/introduction/satisfaction.tex | 4 ++-- 2 files changed, 6 insertions(+), 5 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 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 From 1266cc0983e67cb1aea82acc943504d697da61f4 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:22 +0100 Subject: [PATCH 4/6] first-order-logic/models-theories: corrections (8 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit expressing-props-of-structures.tex: - l. 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 different from the literal set Nat. expressing-relations.tex: - l. 85: The printed divisor condition holds for 1, but 1 is not prime. Adding n>1 yields the usual prime predicate on Nat; 0 is excluded as well. The branch makes that exact addition. set-theory.tex: - l. 87: Defining the relation supplies no total-existence guarantee; the power-set axiom is introduced precisely to supply it. Correct the quantifier mismatch. - l. 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. - l. 167: A(x) may contain other free variables; the instances are universally closed. theories.tex: - l. 23: After announcing vice versa, the source repeats the order-to-model implication. Separate reviews handle strictness and nonempty domains, rather than bundling those independently reported defects. - l. 23: The displayed axiom is irreflexivity. The book defines weak linear orders separately, and a weak linear order is reflexive on a nonempty carrier, so the later if-clause must specify strict linear order. - l. 23: The empty carrier with empty strict order satisfies the relation definition but is not a first-order structure under the adopted nonempty-domain definition. This omission is independent of the strict-versus-weak relation and the converse direction. - l. 59: The last displayed line is the induction schema, which does not define <. The preceding arithmetic axiom is the explicit order definition. - l. 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. Co-Authored-By: Claude Opus 5.5 --- .../expressing-props-of-structures.tex | 2 +- .../models-theories/expressing-relations.tex | 4 ++-- .../models-theories/set-theory.tex | 12 +++++++----- .../first-order-logic/models-theories/theories.tex | 14 ++++++++------ 4 files changed, 18 insertions(+), 14 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 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..b19c20db5 100644 --- a/content/first-order-logic/models-theories/set-theory.tex +++ b/content/first-order-logic/models-theories/set-theory.tex @@ -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). @@ -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 12c303d64..442313920 100644 --- a/content/first-order-logic/models-theories/theories.tex +++ b/content/first-order-logic/models-theories/theories.tex @@ -20,10 +20,11 @@ & \lforall[x][\lforall[y][\lforall[z][((x < y \land y < z) \lif x < z)]]] \quad \} \end{align*} -It completely captures the intended !!{structure}s: every strict -linear order is a model of this axiom system, and vice versa, if $R$ -is a linear order on a set $X$, then the structure $\Struct M$ with -$\Domain M = X$ and $\Assign{<}{M} = R$ is a model of this theory. +It completely captures the intended !!{structure}s: if $R$ is a strict +linear order on a non-empty set $X$, then the structure $\Struct M$ with +$\Domain M = X$ and $\Assign{<}{M} = R$ is a model of this theory, and +vice versa, if $\Struct M$ is a model of this theory, then +$\Assign{<}{M}$ is a strict linear order on~$\Domain M$. \end{ex} \begin{ex} @@ -56,7 +57,7 @@ \emph{induction schema}. (Actually, the induction schema is a bit more complicated than we let on here.) -The last axiom is an \emph{explicit definition} of~$<$. +The last axiom before the induction schema is an \emph{explicit definition} of~$<$. \end{ex} \begin{ex} @@ -78,7 +79,8 @@ (\eq[u][x] \lor \eq[u][y]))]]]]\\ & \lforall[x][\lexists[y][\lforall[z][(z \in y \liff \lexists[u][(z \in u \land u \in x)])]]]\\ -\intertext{plus all sentences of the form} & +\intertext{plus the universal closures of all formulas of the form below, +where $x$ does not occur in $!A(y)$} & \lexists[x][\lforall[y][(y \in x \liff !A(y))]] \end{align*} The first axiom says that there is a set with no !!{element}s (i.e., From 78e566b9da6cc3fde019c125570d9e8d42717cc9 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:23 +0100 Subject: [PATCH 5/6] first-order-logic/syntax-and-semantics: corrections (25 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit assignments.tex: - l. 91: The transported k-tuple must retain the same ordered coordinates 1 through k as the preceding tuple for s1. The generic index i was used only in the componentwise equalities, and cannot replace the first coordinate. - l. 107: The quantifier cases modify the assignments at the bound variable before invoking induction. The hypothesis must therefore range over every pair of assignments agreeing on the smaller formula’s free variables, rather than only the initially fixed pair. - l. 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 indices. - l. 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. - l. 283: If c is new, M[a/c] is a structure for the expanded language. - l. 332: The constants must be pairwise distinct. - l. 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 strong. covered-structures.tex: - l. 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. - l. 54: The next aligned line begins with =, so the outer trailing = creates two consecutive equality signs with no intervening term. Remove only the first. extensionality.tex: - l. 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 themselves. - l. 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. - l. 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. formation-sequences.tex: - l. 46: A k-ary function takes exactly k arguments. The inclusive list m_0,...,m_k supplies k+1; the branch uses m_1,...,m_k in both the index list and constructed term. The earlier grammar uses that k-argument convention. - l. 185: The induction parameter is the last index n of A_0,...,A_n, whose length is n+1. A proper initial sequence ending at j --- .../syntax-and-semantics/assignments.tex | 21 +++++++++++-------- .../covered-structures.tex | 4 ++-- .../syntax-and-semantics/extensionality.tex | 6 +++--- .../formation-sequences.tex | 12 +++++------ .../syntax-and-semantics/intro-semantics.tex | 2 +- .../syntax-and-semantics/introduction.tex | 2 +- .../syntax-and-semantics/main-operator.tex | 2 +- .../syntax-and-semantics/satisfaction.tex | 6 +++--- .../syntax-and-semantics/semantic-notions.tex | 4 +++- .../syntax-and-semantics/terms-formulas.tex | 2 +- .../unique-readability.tex | 2 +- 11 files changed, 34 insertions(+), 29 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..941c736ee 100644 --- a/content/first-order-logic/syntax-and-semantics/assignments.tex +++ b/content/first-order-logic/syntax-and-semantics/assignments.tex @@ -88,7 +88,7 @@ \] For $i = 1$, \dots,~$k$, $\Value{t_i}{M}[s_1] = \Value{t_i}{M}[s_2]$ by \olref{prop:valindep}. So we also have - $\langle \Value{t_i}{M}[s_2], \ldots, \Value{t_k}{M}[s_2] \rangle + $\langle \Value{t_1}{M}[s_2], \ldots, \Value{t_k}{M}[s_2] \rangle \in \Assign{R}{M}$, and hence $\Sat{M}{\indfrm}[s_2]$.} \item \indcase{!A}{\eq[t_1][t_2]}{suppose $\Sat{M}{\indfrm}[s_1]$. @@ -104,8 +104,9 @@ so $\Sat{M}{\eq[t_1][t_2]}[s_2]$.} \end{enumerate} -Now assume $\Sat{M}{!B}[s_1]$ iff $\Sat{M}{!B}[s_2]$ for all -!!{formula}s $!B$ less complex than~$!A$. The induction step proceeds +Now assume, for all !!{formula}s $!B$ less complex than~$!A$ and all +variable assignments $s_1$, $s_2$ that agree on the free variables +of~$!B$, that $\Sat{M}{!B}[s_1]$ iff $\Sat{M}{!B}[s_2]$. The induction step proceeds by cases determined by the main operator of~$!A$. In each case, we only demonstrate the forward direction of the !!{biconditional}; the proof of the reverse direction is symmetrical. In all cases except @@ -178,8 +179,8 @@ every $m \in \Domain{M}$, $\Sat{M}{!B}[\Subst{s_1}{m}{x}]$. We want to show that also, for every $m \in \Domain{M}$, $\Sat{M}{!B}[\Subst{s_2}{m}{x}]$. So let $m \in \Domain{M}$ be - arbitrary, and consider $s_1' = \Subst{s}{m}{x}$ and $s_2' = - \Subst{s}{m}{x}$. We have that $\Sat{M}{!B}[s_1']$. The free + arbitrary, and consider $s_1' = \Subst{s_1}{m}{x}$ and $s_2' = + \Subst{s_2}{m}{x}$. We have that $\Sat{M}{!B}[s_1']$. The free variables of~$!B$ are among $x_1$, \dots, $x_n$, and $x$. $s_1'(x_i) = s_2'(x_i)$, since $s_1'$ and $s_2'$ are $x$-variants of $s_1$ and~$s_2$, respectively, and by hypothesis @@ -277,10 +278,12 @@ \begin{prob} \DeclareRobustCommand{\VDash}{\mathrel{||}\joinrel\Relbar} -Suppose $\Lang L$ is a language without !!{function}s. Given a +Suppose $\Lang L$ is a language without !!{function}s. If necessary, +expand it by fresh constants. Given a !!{structure}~$\Struct M$, $c$ !!a{constant} and $a \in \Domain M$, define $\Struct M[a/c]$ to be the !!{structure} that is just -like~$\Struct M$, except that $\Assign{c}{M[a/c]} = a$. Define +like~$\Struct M$, except that $\Assign{c}{M[a/c]} = a$ (expanding +the language when $c$ is new). Define $\Struct M \VDash !A$ for !!{sentence}s~$!A$ by: \begin{enumerate} \tagitem{prvFalse}{% @@ -329,7 +332,7 @@ in~$!B$.}}{} \end{enumerate} Let $x_1$, \dots, $x_n$ be all free !!{variable}s in~$!A$, -$c_1$, \dots, $c_n$ constant symbols not in~$!A$, +$c_1$, \dots, $c_n$ pairwise distinct constant symbols not in~$!A$, $a_1$, \dots, $a_n \in \Domain M$, and $s(x_i) = a_i$. Show that $\Sat{M}{!A}[s]$ iff $\Struct M[a_1/c_1,\dots,a_n/c_n] @@ -346,7 +349,7 @@ M'$ such that $\Sat{M'}{\lforall[x][!A(x,f(x))]}$. (This problem is a special case of what's known as Skolem's Theorem; -$\lforall[x][!A(x,f(x))]$ is called a \emph{Skolem normal form} of +$\lforall[x][!A(x,f(x))]$ is called a \emph{Skolemization} of $\lforall[x][\lexists[y][!A(x,y)]]$.) \end{prob} diff --git a/content/first-order-logic/syntax-and-semantics/covered-structures.tex b/content/first-order-logic/syntax-and-semantics/covered-structures.tex index 7205721e9..dec2f5f4d 100644 --- a/content/first-order-logic/syntax-and-semantics/covered-structures.tex +++ b/content/first-order-logic/syntax-and-semantics/covered-structures.tex @@ -45,13 +45,13 @@ $c_1$ is less than~$c_2$: for example, $\tuple{1, 3} \in \Assign{<}{M}$ but $\tuple{2, 2} \notin \Assign{<}{M}$. For the binary !!{function} $+$, define $\Assign{+}{M}$ in the usual way---for -example, $\Assign{+}{M}(2,3)$ maps to~$5$, and similarly for the +example, $\Assign{+}{M}(2,3)$ is~$5$, and similarly for the binary !!{function}~$\times$. Hence, the !!{value} of $\Obj{four}$ is just~$4$, and the !!{value} of $\times(\Obj{two}, +(\Obj{three},\Obj{zero}))$ (or in infix notation, $\Obj{two} \times (\Obj{three} + \Obj{zero})$) is \begin{multline*} -\Value{\times(\Obj{two}, +(\Obj{three},\Obj{zero}))}{M} =\\ +\Value{\times(\Obj{two}, +(\Obj{three},\Obj{zero}))}{M} \\ \begin{aligned} & =\Assign{\times}{M}(\Value{\Obj{two}}{M}, \Value{+(\Obj{three}, \Obj{zero})}{M})\\ & = \Assign{\times}{M}(\Value{\Obj{two}}{M}, \Assign{+}{M}(\Value{\Obj{three}}{M}, diff --git a/content/first-order-logic/syntax-and-semantics/extensionality.tex b/content/first-order-logic/syntax-and-semantics/extensionality.tex index f1d9999e3..c3f4dda62 100644 --- a/content/first-order-logic/syntax-and-semantics/extensionality.tex +++ b/content/first-order-logic/syntax-and-semantics/extensionality.tex @@ -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/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. 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/introduction.tex b/content/first-order-logic/syntax-and-semantics/introduction.tex index 5c30e2c66..053ff13e2 100644 --- a/content/first-order-logic/syntax-and-semantics/introduction.tex +++ b/content/first-order-logic/syntax-and-semantics/introduction.tex @@ -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..591a4beff 100644 --- a/content/first-order-logic/syntax-and-semantics/satisfaction.tex +++ b/content/first-order-logic/syntax-and-semantics/satisfaction.tex @@ -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/terms-formulas.tex b/content/first-order-logic/syntax-and-semantics/terms-formulas.tex index 4e417155e..479829367 100644 --- a/content/first-order-logic/syntax-and-semantics/terms-formulas.tex +++ b/content/first-order-logic/syntax-and-semantics/terms-formulas.tex @@ -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..106db1658 100644 --- a/content/first-order-logic/syntax-and-semantics/unique-readability.tex +++ b/content/first-order-logic/syntax-and-semantics/unique-readability.tex @@ -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 6881ed6152b2c8514f288f745fa07705b856395e Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:23 +0100 Subject: [PATCH 6/6] propositional-logic/syntax-and-semantics: corrections (8 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit formation-sequences.tex: - l. 35: The two displayed formation sequences require primitive negation and conjunction, and the second also requires primitive implication. - l. 61: The end of the condition of l. 35. - l. 129, 146: 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 --- .../syntax-and-semantics/formation-sequences.tex | 6 ++++-- .../propositional-logic/syntax-and-semantics/formulas.tex | 2 +- .../syntax-and-semantics/introduction.tex | 4 ++-- .../propositional-logic/syntax-and-semantics/soundness.tex | 6 +++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/content/propositional-logic/syntax-and-semantics/formation-sequences.tex b/content/propositional-logic/syntax-and-semantics/formation-sequences.tex index 764226b40..173aed290 100644 --- a/content/propositional-logic/syntax-and-semantics/formation-sequences.tex +++ b/content/propositional-logic/syntax-and-semantics/formation-sequences.tex @@ -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..d4bd86929 100644 --- a/content/propositional-logic/syntax-and-semantics/formulas.tex +++ b/content/propositional-logic/syntax-and-semantics/formulas.tex @@ -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 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/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}