From 730bbac1db567d3b3e5d3344a52170c548601ff3 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:35 +0100 Subject: [PATCH 1/3] second-order-logic/metatheory: corrections (6 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit compactness.tex: - l. 57: The finite bound is taken over Γ although Γ contains A^{≥n} for every n. - l. 57: After the branch’s Γ-to-Γ0 repair, the largest required positive index still need not exist when Γ0 has no cardinality sentence. introduction.tex: - l. 35: The property is stated for sets of sentences of an enumerable language. second-order-arithmetic.tex: - l. 112: Containing the tail does not force successor closure of extra elements below n. - l. 121: The recursion equation quantifies w but uses the free parameter x instead, constraining only one successor step. undecidability-and-axiomatizability.tex: - l. 33, 34: The displayed satisfaction equivalence leaves M unquantified; validity requires all arithmetic structures. - l. 34: Replacement of the arithmetic constants/functions by variables may capture existing bound variables unless they are renamed first. Co-Authored-By: Claude Opus 5.5 --- content/second-order-logic/metatheory/compactness.tex | 4 ++-- content/second-order-logic/metatheory/introduction.tex | 2 +- .../metatheory/second-order-arithmetic.tex | 9 +++++---- .../metatheory/undecidability-and-axiomatizability.tex | 4 +++- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/content/second-order-logic/metatheory/compactness.tex b/content/second-order-logic/metatheory/compactness.tex index 86ca137da..af6fc759e 100644 --- a/content/second-order-logic/metatheory/compactness.tex +++ b/content/second-order-logic/metatheory/compactness.tex @@ -54,8 +54,8 @@ \] It is finitely satisfiable, since for any finite subset~$\Gamma_0 \subseteq \Gamma$ -there is some $k$ so that $!A^{\ge k} \in \Gamma$ but no $!A^{\ge n} -\in \Gamma$ for $n>k$. If $\Domain{M}$ has $k$ !!{element}s, +let $k$ be the largest $n$ such that $!A^{\ge n}\in\Gamma_0$, +taking $k=1$ if no such sentence occurs. If $\Domain{M}$ has $k$ !!{element}s, $\Sat{M}{\Gamma_0}$. But, $\Gamma$ is not satisfiable: if $\Sat{M}{\lnot \fn{Inf}}$, $\Domain{M}$ must be finite, say, of size~$k$. Then $\Sat/{M}{!A^{\ge k+1}}$. diff --git a/content/second-order-logic/metatheory/introduction.tex b/content/second-order-logic/metatheory/introduction.tex index f601e9859..6a720edc3 100644 --- a/content/second-order-logic/metatheory/introduction.tex +++ b/content/second-order-logic/metatheory/introduction.tex @@ -32,7 +32,7 @@ First-order logic also has two more properties: it is compact (if every finite subset of a set~$\Gamma$ of !!{sentence}s is satisfiable, $\Gamma$ itself is satisfiable) and the L\"owenheim--Skolem Theorem -holds for it (if $\Gamma$ has an infinite model it has +holds for it (if a set~$\Gamma$ of !!{sentence}s of !!a{enumerable} !!{language} has an infinite model it has !!a{denumerable} model). Both of these results fail for second-order logic. Again, the reason is that second-order logic can express facts about the size of !!{domain}s that first-order logic cannot. diff --git a/content/second-order-logic/metatheory/second-order-arithmetic.tex b/content/second-order-logic/metatheory/second-order-arithmetic.tex index e9636909c..3632937cf 100644 --- a/content/second-order-logic/metatheory/second-order-arithmetic.tex +++ b/content/second-order-logic/metatheory/second-order-arithmetic.tex @@ -109,8 +109,9 @@ \[ !B(x, Y) \ident Y(x) \land \lforall[y][(Y(y) \lif Y(y'))] \] -Clearly, $!B(\num n, Y)$ is satisfied by a set $Y \subseteq \Nat$ iff -$\Setabs{m}{n \le m} \subseteq Y$, so we can take $!A_\le(x, y) \ident +If $!B(\num n, Y)$ is satisfied by a set $Y \subseteq \Nat$, then +$\Setabs{m}{n \le m} \subseteq Y$. This tail itself satisfies +$!B(\num n, Y)$, so we can take $!A_\le(x, y) \ident \lforall[Y][(!B(x, Y) \lif Y(y))]$. To see that addition is definable observe that $k+l=m$ iff there is a @@ -118,8 +119,8 @@ We can use this equivalence to define addition in $\Th{PA^{2\dagger}}$ by the following formula: \[ -!A_+(x,y,z) \ident \lexists[u][(u(\Obj 0)=x \land \lforall[w][u(x')=u - (x)'] \land u(y)=z)] +!A_+(x,y,z) \ident \lexists[u][(u(\Obj 0)=x \land \lforall[w][u(w')=u + (w)'] \land u(y)=z)] \] It should be clear that $\Sat{N}{!A_+(\num k, \num l, \num m)}$ iff $k+l=m$. diff --git a/content/second-order-logic/metatheory/undecidability-and-axiomatizability.tex b/content/second-order-logic/metatheory/undecidability-and-axiomatizability.tex index 512b04752..87dcd314c 100644 --- a/content/second-order-logic/metatheory/undecidability-and-axiomatizability.tex +++ b/content/second-order-logic/metatheory/undecidability-and-axiomatizability.tex @@ -30,8 +30,10 @@ Let $!A$ be !!a{sentence} in the language of arithmetic. $\Sat{N}{!A}$ iff $\Th{PA^2} \Entails !A$. Let $!P$ be the conjunction of the nine axioms of~$\Th{PA^2}$. $\Th{PA^2} \Entails !A$ iff $\Entails !P \lif -!A$, i.e., $\Sat{M}{!P \lif !A}$. Now consider the !!{sentence} +!A$, i.e., $\Sat{M}{!P \lif !A}$ for every arithmetic !!{structure}~$\Struct{M}$. Now consider the !!{sentence} $\lforall[z][\lforall[u][\lforall[u'][\lforall[u''][\lforall[L][(!P' \lif !A')]]]]]$ resulting by +first renaming bound variables so that $z$, $u$, $u'$, $u''$, and~$L$ +do not occur in~$!P$ or~$!A$, and then replacing $\Obj{0}$ by $z$, $\prime$ by the one-place function variable $u$, $+$ and $\times$ by the two-place function-variables $u'$ and $u''$, respectively, From a81e2c65bb0aeb93b6666c4e4c1c4096ba98c3a7 Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:36 +0100 Subject: [PATCH 2/3] second-order-logic/sol-and-set-theory: corrections (9 places) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cardinalities.tex: - l. 23, 25: Inf(X) omits closure of X under the injective function, so finite X can satisfy the formula. Its nested existential matrix also has a missing closing parenthesis. - l. 33, 36: The seed excludes the empty enumerable set, and equality with every closed Y forces X to be the whole domain; the closing delimiters are also misplaced. - l. 53: The Aleph 1 condition accepts every finite X and rejects every uncountable X by testing Y=X. power-of-continuum.tex: - l. 63: The Pow formula never closes the outer conditional matrix Y(x)→∀Z(...). - l. 96: Pow permits repeated codes, so an arbitrary coding set may have cardinality larger than the continuum. - l. 118: The passive phrase uses be where the preposition by is required. - l. 118: The Cont proof names an unassigned Z instead of the countable set X whose power set is coded. - l. 126: The alleged continuum-size sentence admits all larger domains: the injection merely covers Y in its range, and Pow permits duplicate codes. Co-Authored-By: Claude Opus 5.5 --- .../sol-and-set-theory/cardinalities.tex | 18 ++++++++++-------- .../sol-and-set-theory/power-of-continuum.tex | 13 +++++++------ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/content/second-order-logic/sol-and-set-theory/cardinalities.tex b/content/second-order-logic/sol-and-set-theory/cardinalities.tex index 19b56e1d7..73f543a76 100644 --- a/content/second-order-logic/sol-and-set-theory/cardinalities.tex +++ b/content/second-order-logic/sol-and-set-theory/cardinalities.tex @@ -20,9 +20,9 @@ \begin{prop} The formula $\fn{Inf}(X) \ident$ \begin{multline*} -\lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif +\lexists[u][(\lforall[x][(X(x) \lif X(u(x)))] \land {} \\\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]] \land {} \\\lexists[y][(X(y) \land \lforall[x][(X(x) - \lif \eq/[y][u(x)])]])] + \lif \eq/[y][u(x)])])])] \end{multline*} is satisfied with respect to a variable assignment~$s$ iff $s(X)$ is infinite. @@ -31,9 +31,10 @@ \begin{prop} The formula $\fn{Count}(X) \ident $ \begin{multline*} +\lforall[x][\lnot X(x)] \lor {} \\ \lexists[z][\lexists[u][(X(z) \land \lforall[x][(X(x) \lif X(u(x)))] \land {} \\ \lforall[Y][((Y(z) \land - \lforall[x][(Y(x) \lif Y(u(x)))]) \lif X = Y])]]) + \lforall[x][(Y(x) \lif Y(u(x)))]) \lif X \subseteq Y)])]] \end{multline*} is satisfied with respect to a variable assignment~$s$ iff $s(X)$ is !!{enumerable}. @@ -50,11 +51,12 @@ smallest size a set can be without being countable (i.e., of size~$\aleph_0$). We can define ``$X$ has size $\aleph_0$'' as $\fn{Aleph}_0(X) \liff \fn{Inf}(X) \land \fn{Count}(X)$. $X$ has size -$\aleph_1$ iff all its subsets are finite or have size~$\aleph_0$, but -is not itself of size~$\aleph_0$. Hence we can express this by the -formula $\fn{Aleph_1}(X) \ident \lforall[Y][(Y \subseteq X \lif - (\lnot\fn{Inf}(Y) \lor \fn{Aleph}_0(Y)))] \land \lnot -\fn{Aleph}_0(X)$. Being of size $\aleph_2$ is defined similarly, etc. +$\aleph_1$ iff it is infinite, is not of size~$\aleph_0$, and every +subset not equinumerous with it is finite or has size~$\aleph_0$. +Hence we can express this by the formula +$\fn{Aleph_1}(X) \ident \fn{Inf}(X) \land \lnot\fn{Aleph}_0(X) \land +\lforall[Y][((Y \subseteq X \land \lnot\cardeq{X}{Y}) \lif + (\lnot\fn{Inf}(Y) \lor \fn{Aleph}_0(Y)))]$. Being of size $\aleph_2$ is defined similarly, etc. There is one size of special interest, the so-called cardinality of the continuum. It is the size of $\Pow{\Nat}$, or, equivalently, the diff --git a/content/second-order-logic/sol-and-set-theory/power-of-continuum.tex b/content/second-order-logic/sol-and-set-theory/power-of-continuum.tex index 83d02ba81..1f7a4729f 100644 --- a/content/second-order-logic/sol-and-set-theory/power-of-continuum.tex +++ b/content/second-order-logic/sol-and-set-theory/power-of-continuum.tex @@ -60,7 +60,7 @@ \fn{Pow}(Y, R, X) \ident \\ \lforall[Z][(Z \subseteq X \lif \lexists[x][(Y(x) \land \fn{Codes}(x, R, Z))])] \land {} \\ \lforall[x][(Y(x) \lif - \lforall[Z][(\fn{Codes}(x, R, Z) \lif Z \subseteq X)]] + \lforall[Z][(\fn{Codes}(x, R, Z) \lif Z \subseteq X)])] \end{multline*} expresses that $s(Y)$ $s(R)$-codes the power set of~$s(X)$, i.e., the elements of $s(Y)$ $s(R)$-code exactly the subsets of $s(X)$. @@ -93,7 +93,8 @@ number line,~$\Real$. If the !!{domain} is large enough to code the power set of !!a{denumerable} set, we can express that a set is the size of the continuum by saying that it is equinumerous with any -set~$Y$ that codes the power set of set~$X$ of size~$\aleph_0$. (If the +set~$Y$ that codes each subset of a set~$X$ of size~$\aleph_0$ +exactly once. (If the domain is not large enough, i.e., it contains no subset equinumerous with~$\Real$, then there can also be no relation that codes~$\Pow{X}$.) \end{explain} @@ -115,16 +116,16 @@ of~$s(X)$, which $\fn{Aleph}_0(X)$ says is countable. So $s(Y)$ is at least as large as the power of the continuum, although it may be larger (if multiple elements of $s(Y)$ code the same subset of~$X$). - This is ruled out be the last conjunct, which requires the - association between elements of $s(Y)$ and subsets of $s(Z)$ via + This is ruled out by the last conjunct, which requires the + association between elements of $s(Y)$ and subsets of $s(X)$ via $s(R)$ to be !!{injective}. \end{proof} \begin{prop} $\cardeq{\Domain{M}}{\Real}$ iff \begin{multline*} - \Sat{M}{\lexists[X][\lexists[Y][\lexists[R][(\fn{Aleph}_0(X) \land \fn{Pow}(Y, R, X) \land \\ - \lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]] \land {} \\\lforall[y][(Y(y) \lif \lexists[x][\eq[y][u(x)]])])])]]]}. + \Sat{M}{\lexists[Y][(\fn{Cont}(Y) \land {} \\ + \lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]] \land \lforall[x][Y(u(x))])])]}. \end{multline*} \end{prop} From 48b0e6333bfd5a08aa66896d259eb7fde7ae603e Mon Sep 17 00:00:00 2001 From: KokunoYumeto <208192274+KokunoYumeto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:30:36 +0100 Subject: [PATCH 3/3] second-order-logic/syntax-and-semantics: corrections (9 places) inf-count.tex: - l. 63: An empty enumeration exists for the empty set, but the seeded characterization requires z in M. - l. 69: The orbit may repeat, whereas the immediately preceding convention defines enumerations without repetitions. - l. 87: The later Count proof defines the successor of the last member of a finite repetition-free enumeration by a nonexistent next entry. satisfaction.tex: - l. 69, 76, 83: Each modified-assignment definition writes an assignment with the wrong replaced variable where its value at y is required. - l. 124, 136: Mutual exclusion states disjointness, but the displayed biconditional states complementarity; the later converse repeats this mistake. - l. 204: Quantifying X captures any free X in A or B, invalidating the claimed equivalence. Co-Authored-By: Claude Opus 5.5 --- .../syntax-and-semantics/inf-count.tex | 9 +++++---- .../syntax-and-semantics/satisfaction.tex | 17 +++++++++-------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/content/second-order-logic/syntax-and-semantics/inf-count.tex b/content/second-order-logic/syntax-and-semantics/inf-count.tex index abdf012bc..fd07763cf 100644 --- a/content/second-order-logic/syntax-and-semantics/inf-count.tex +++ b/content/second-order-logic/syntax-and-semantics/inf-count.tex @@ -60,14 +60,14 @@ \[ m_0, m_1, m_2, \dots \] -of its !!{element}s (without repetitions but possibly finite). Such an enumeration exists +of its !!{element}s (without repetitions but possibly finite). For nonempty~$M$, such an enumeration exists iff there is !!a{element} $z \in M$ and a function $f\colon M \to M$ such that $z$, $f(z)$, $f(f(z))$, \dots, are all the !!{element}s of~$M$. For if the enumeration exists, $z = m_0$ and $f(m_k) = m_{k+1}$ (or $f(m_k) = m_k$ if $m_k$ is the last !!{element} of the enumeration) are the requisite !!{element} and function. On the other hand, if such -a $z$ and $f$ exist, then $z$, $f(z)$, $f(f(z))$, \dots, is an -enumeration of~$M$, and $M$ is !!{enumerable}. We can express the +a $z$ and $f$ exist, then removing repetitions from $z$, $f(z)$, +$f(f(z))$, \dots, gives an enumeration of~$M$, and $M$ is !!{enumerable}. We can express the existence of $z$ and~$f$ in second-order logic to produce a !!{sentence} true in !!a{structure} iff the !!{structure} is !!{enumerable}: @@ -84,7 +84,8 @@ \begin{proof} Suppose $\Domain{M}$ is !!{enumerable}, and let $m_0$, $m_1$, \dots, be an enumeration. By removing repetitions we can guarantee that no $m_k$ -appears twice. Define $f(m_k) = m_{k+1}$ and let $s(z) = m_0$ and +appears twice. Define $f(m_k) = m_{k+1}$ (or $f(m_k) = m_k$ if $m_k$ is the last +!!{element} of the enumeration) and let $s(z) = m_0$ and $s(u) = f$. We show that \[ \Sat{M}{\lforall[X][((X(z) \land \lforall[x][(X(x) \lif X(u(x)))]) diff --git a/content/second-order-logic/syntax-and-semantics/satisfaction.tex b/content/second-order-logic/syntax-and-semantics/satisfaction.tex index 80d2ae26c..6ddb42583 100644 --- a/content/second-order-logic/syntax-and-semantics/satisfaction.tex +++ b/content/second-order-logic/syntax-and-semantics/satisfaction.tex @@ -66,21 +66,21 @@ If $s$ is !!a{variable} assignment for !!a{structure}~$\Struct M$ and $m \in \Domain{M}$, then the assignment~$\Subst{s}{m}{x}$ is the !!{variable} assignment defined by - \[\Subst{s}{m}{y} = \begin{cases} + \[\Subst{s}{m}{x}(y) = \begin{cases} m & \text{if } y \ident x\\ s(y) & \text{otherwise}, \end{cases}\] If $X$ is an $n$-place relation !!{variable} and $M \subseteq \Domain{M}^n$, then $\Subst{s}{M}{X}$ is the !!{variable} assignment defined by - \[\Subst{s}{M}{y} = \begin{cases} + \[\Subst{s}{M}{X}(y) = \begin{cases} M & \text{if } y \ident X\\ s(y) & \text{otherwise}. \end{cases}\] If $u$ is an $n$-place function !!{variable} and $f\colon \Domain{M}^n \to \Domain{M}$, then $\Subst{s}{f}{u}$ is the !!{variable} assignment defined by - \[\Subst{s}{f}{y} = \begin{cases} + \[\Subst{s}{f}{u}(y) = \begin{cases} f & \text{if } y \ident u\\ s(y) & \text{otherwise}. \end{cases}\] @@ -121,8 +121,8 @@ contain the second-order !!{variable}s $X$ and~$Y$ (here understood to be one-place). The corresponding first-order !!{sentence} $\lforall[z][(\Atom{P}{z} \liff \lnot \Atom{R}{z})]$ says that - whatever falls under the interpretation of~$P$ does not fall under - the interpretation of~$R$ and vice versa. In !!a{structure}, the + each object falls under the interpretation of~$P$ iff it does not + fall under the interpretation of~$R$. In !!a{structure}, the interpretation of !!a{predicate}~$P$ is given by the interpretation~$\Assign{P}{M}$. But for second-order !!{variable}s like $X$ and~$Y$, the interpretation is provided, not by the @@ -133,8 +133,8 @@ assignment~$s$. $\Sat{M}{\lforall[z][(\Atom{X}{z} \liff \lnot \Atom{Y}{z})]}[s]$ - whenever the !!{element}s of~$s(X)$ are not !!{element}s of~$s(Y)$, - and vice versa, i.e., iff $s(Y) = \Domain{M} \setminus s(X)$. For + iff every object is in exactly one of~$s(X)$ and~$s(Y)$, + i.e., iff $s(Y) = \Domain{M} \setminus s(X)$. For instance, take $\Domain{M} = \{1, 2, 3\}$. Since no !!{predicate}s, !!{function}s, or !!{constant}s are involved, the domain of~$\Struct{M}$ is all that is relevant. Now for $s_1(X) = \{1, 2\}$ @@ -201,7 +201,8 @@ \begin{enumerate} \item Prove that in second-order logic $!A \land !B$ is equivalent to $\lforall[X][(!A \lif (!B \lif \lforall[x][X(x)])\lif - \lforall[x][X(x)])]$. + \lforall[x][X(x)])]$, where the one-place relation variable~$X$ + does not occur free in~$!A$ or~$!B$. \item Find a second-order formula using only $\lforall$ and $\lif$ equivalent to $!A \lor !B$. \end{enumerate}