Second-order logic

Second-order Logic and Set Theory

Reading preferences

Optional display controls need JavaScript. All reading content and navigation work without it.

Source file content/second-order-logic/sol-and-set-theory/sol-and-set-theory.tex

Editorial

This section deals with coding powersets and the continuum in second-order logic. The results are stated but proofs have yet to be filled in. There are no problems yet---and the definitions and results themselves may have problems. Use with caution and report anything that's false or unclear.

Source file content/second-order-logic/sol-and-set-theory/introduction.tex

Introduction

Since second-order logic can quantify over subsets of the domain as well as functions, it is to be expected that some amount, at least, of set theory can be carried out in second-order logic. By “carry out,” we mean that it is possible to express set theoretic properties and statements in second-order logic, and is possible without any special, non-logical vocabulary for sets (e.g., the membership predicate symbol of set theory). For instance, we can define unions and intersections of sets and the subset relationship, but also compare the sizes of sets, and state results such as Cantor's Theorem.

Source file content/second-order-logic/sol-and-set-theory/comparing-sets.tex

Comparing Sets

Second-order definition of the subset relation

The formula x(X(x)Y(x))\lforall[x][(X(x) \lif Y(x))]source defines the subset relation, i.e., M,sx(X(x)Y(x))\Sat{M}{\lforall[x][(X(x) \lif Y(x))]}[s]source iff s(X)s(Y)s(X) \subseteq s(Y)source.

Second-order definition of equality of sets

The formula x(X(x)Y(x))\lforall[x][(X(x) \liff Y(x))]source defines the identity relation on sets, i.e., M,sx(X(x)Y(x))\Sat{M}{\lforall[x][(X(x) \liff Y(x))]}[s]source iff s(X)=s(Y)s(X) = s(Y)source.

Second-order definition of nonemptiness

The formula xX(x)\lexists[x][X(x)]source defines the property of being non-empty, i.e., M,sxX(x)\Sat{M}{\lexists[x][X(x)]}[s]source iff s(X)s(X) \neq \emptysetsource.

A set XXsource is no larger than a set YYsource, XY\cardle{X}{Y}source, iff there is an injective function f:XYf\colon X \to Ysource. Since we can express that a function is injective, and also that its values for arguments in XXsource are in YYsource, we can also define the relation of being no larger than on subsets of the domain.

Proposed cardinal comparison by an injective function

The formula

u(x(X(x)Y(u(x)))xy(u(x)=u(y)x=y))\lexists[u][(\lforall[x][(X(x) \lif Y(u(x)))] \land \lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]])]source

defines the relation of being no larger than.

Two sets are the same size, or “equinumerous,” XY\cardeq{X}{Y}source, iff there is a bijective function f:XYf\colon X \to Ysource.

Source formula proposed to define equinumerosity

The formula

u(x(X(x)Y(u(x)))xy(u(x)=u(y)x=y)y(Y(y)x(X(x)y=u(x))))\lexists[u][(\lforall[x][(X(x) \lif Y(u(x)))] \land {}\\ \lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]] \land {} \\\lforall[y][(Y(y) \lif \lexists[x][(X(x) \land \eq[y][u(x)])])])]source

defines the relation of being equinumerous with.

We will abbreviate these formulas, respectively, as XYX \subseteq Ysource, X=YX = Ysource, XX \neq \emptysetsource, XY\cardle{X}{Y}source, and XY\cardeq{X}{Y}source. (This may be slightly confusing, since we use the same notation when we speak informally about sets XXsource and YYsource---but here the notation is an abbreviation for formulas in second-order logic involving one-place relation variables XXsource and YYsource.)

Second-order sentence intended to express Schroeder Bernstein

The sentence XY((XYYX)XY)\lforall[X][\lforall[Y][((\cardle{X}{Y} \land \cardle{Y}{X}) \lif \cardeq{X}{Y})]]source is valid.

Proof

The sentence is satisfied in a structure M\Struct{M}source if, for any subsets X|M|X \subseteq \Domain{M}source and Y|M|Y \subseteq \Domain{M}source, if XY\cardle{X}{Y}source and YX\cardle{Y}{X}source then XY\cardeq{X}{Y}source. But this holds for any sets XXsource and YYsource---it is the Schröder-Bernstein Theorem.

Source file content/second-order-logic/sol-and-set-theory/cardinalities.tex

Cardinalities of Sets

Explain

Just as we can express that the domain is finite or infinite, enumerable or non-enumerable, we can define the property of a subset of |M|\Domain{M}source being finite or infinite, enumerable or non-enumerable.

Source formula proposed to characterize infinite subsets

The formula Inf(X)\fn{Inf}(X) \identsource

u(xy(u(x)=u(y)x=y)y(X(y)x(X(x)yu(x)))\lexists[u][(\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)])]])]source

is satisfied with respect to a variable assignment sssource iff s(X)s(X)source is infinite.

Source formula proposed to characterize enumerable subsets

The formula Count(X)\fn{Count}(X) \identsource

zu(X(z)x(X(x)X(u(x)))Y((Y(z)x(Y(x)Y(u(x))))X=Y))\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)])]]source

is satisfied with respect to a variable assignment sssource iff s(X)s(X)source is enumerable.

We know from Cantor's Theorem that there are non-enumerable sets, and in fact, that there are infinitely many different levels of infinite sizes. Set theory develops an entire arithmetic of sizes of sets, and assigns infinite cardinal numbers to sets. The natural numbers serve as the cardinal numbers measuring the sizes of finite sets. The cardinality of denumerable sets is the first infinite cardinality, called 0\aleph_0source (“aleph-nought” or “aleph-zero”). The next infinite size is 1\aleph_1source. It is the smallest size a set can be without being countable (i.e., of size 0\aleph_0source). We can define “XXsource has size 0\aleph_0source” as Aleph0(X)Inf(X)Count(X)\fn{Aleph}_0(X) \liff \fn{Inf}(X) \land \fn{Count}(X)source. XXsource has size 1\aleph_1source iff all its subsets are finite or have size 0\aleph_0source, but is not itself of size 0\aleph_0source. Hence we can express this by the formula Aleph1(X)Y(YX(¬Inf(Y)Aleph0(Y)))¬Aleph0(X)\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)source. Being of size 2\aleph_2source 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}source, or, equivalently, the size of \Realsource. That a set is the size of the continuum can also be expressed in second-order logic, but requires a bit more work.

Source file content/second-order-logic/sol-and-set-theory/power-of-continuum.tex

The Power of the Continuum

Explain

In second-order logic we can quantify over subsets of the domain, but not over sets of subsets of the domain. To do this directly, we would need third-order logic. For instance, if we wanted to state Cantor's Theorem that there is no injective function from the power set of a set to the set itself, we might try to formulate it as “for every set XXsource, and every set PPsource, if PPsource is the power set of XXsource, then not PX\cardle{P}{X}source”. And to say that PPsource is the power set of XXsource would require formalizing that the elements of PPsource are all and only the subsets of XXsource, so something like Y(P(Y)YX)\lforall[Y][(P(Y) \liff Y \subseteq X)]source. The problem lies in P(Y)P(Y)source: that is not a formula of second-order logic, since only terms can be arguments to one-place relation variables like PPsource.

We can, however, simulate quantification over sets of sets, if the domain is large enough. The idea is to make use of the fact that two-place relations RRsource relate elements of the domain to elements of the domain. Given such an RRsource, we can collect all the elements to which some xxsource is RRsource-related: {y|M|:R(x,y)}\Setabs{y \in \Domain{M}}{R(x,y)}source is the set “coded by” xxsource. Conversely, if Z(|M|)Z \subseteq \Pow{\Domain{M}}source is some collection of subsets of |M|\Domain{M}source, and there are at least as many elements of |M|\Domain{M}source as there are sets in ZZsource, then there is also a relation R|M|2R \subseteq \Domain{M}^2source such that every YZY \in Zsource is coded by some xxsource using RRsource.

Coding a subset by an element and a binary relation

If R|M|2R \subseteq \Domain{M}^2source, then xxsource RRsource-codes {y|M|:R(x,y)}\Setabs{y \in \Domain{M}}{R(x, y)}source.

If an element x|M|x \in \Domain{M}source RRsource-codes a set Z|M|Z \subseteq \Domain{M}source, then a set Y|M|Y \subseteq \Domain{M}source codes a set of sets, namely the sets coded by the elements of YYsource. So a set YYsource can RRsource-code (X)\Pow{X}source. It does so iff for every ZXZ \subseteq Xsource, some xYx \in Ysource RRsource-codes ZZsource, and every xYx \in Ysource RRsource-codes a ZXZ \subseteq Xsource.

Formulas for coding one subset and a power set

The formula

Codes(x,R,Z)y(Z(y)R(x,y))\fn{Codes}(x, R, Z) \ident \lforall[y][(Z(y) \liff R(x, y))]source

expresses that s(x)s(x)source s(R)s(R)source-codes s(Z)s(Z)source. The formula

Pow(Y,R,X)Z(ZXx(Y(x)Codes(x,R,Z)))x(Y(x)Z(Codes(x,R,Z)ZX))\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)])]source

expresses that s(Y)s(Y)source s(R)s(R)source-codes the power set of s(X)s(X)source, i.e., the elements of s(Y)s(Y)source s(R)s(R)source-code exactly the subsets of s(X)s(X)source.

Explain

With this trick, we can express statements about the power set by quantifying over the codes of subsets rather than the subsets themselves. For instance, Cantor's Theorem can now be expressed by saying that there is no injective function from the domain of any relation that codes the power set of XXsource to XXsource itself.

Cantor theorem expressed through codes for subsets

The sentence

XYR(Pow(Y,R,X)¬u(xy(u(x)=u(y)x=y)x(Y(x)X(u(x)))))\lforall[X][\lforall[Y][\lforall[R][(\fn{Pow}(Y, R, X) \lif \\ \lnot \lexists[u][(\lforall[x][\lforall[y][(\eq[u(x)][u(y)] \lif \eq[x][y])]] \land {}\\ \lforall[x][(Y(x) \lif X(u(x)))])])]]]source

is valid.

Explain

The power set of a denumerable set is non-enumerable, and so its cardinality is larger than that of any denumerable set (which is 0\aleph_0source). The size of ()\Pow{\Nat}source is called the “power of the continuum,” since it is the same size as the points on the real number line, \Realsource. 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 YYsource that codes the power set of set XXsource of size 0\aleph_0source. (If the domain is not large enough, i.e., it contains no subset equinumerous with \Realsource, then there can also be no relation that codes (X)\Pow{X}source.)

Source formula proposed to characterize continuum-sized subsets

If |M|\cardle{\Real}{\Domain{M}}source, then the formula

Cont(Y)XR((Aleph0(X)Pow(Y,R,X))xy((Y(x)Y(y)zR(x,z)R(y,z))x=y))\fn{Cont}(Y) \ident \lexists[X][\lexists[R][((\fn{Aleph}_0(X) \land \fn{Pow}(Y, R, X)) \land \\ \lforall[x][\lforall[y][((Y(x) \land {} Y(y) \land \lforall[z][R(x,z) \liff R(y,z)]) \lif \eq[x][y])]])]]source

expresses that s(Y)\cardeq{s(Y)}{\Real}source.

Proof

Pow(Y,R,X)\fn{Pow}(Y, R, X)source expresses that s(Y)s(Y)source s(R)s(R)source-codes the power set of s(X)s(X)source, which Aleph0(X)\fn{Aleph}_0(X)source says is countable. So s(Y)s(Y)source is at least as large as the power of the continuum, although it may be larger (if multiple elements of s(Y)s(Y)source code the same subset of XXsource). This is ruled out by the last conjunct, which requires the association between elements of s(Y)s(Y)source and subsets of s(Z)s(Z)source via s(R)s(R)source to be injective.

Source equivalence proposed for a continuum-sized domain

|M|\cardeq{\Domain{M}}{\Real}source iff

MXYR(Aleph0(X)Pow(Y,R,X)u(xy(u(x)=u(y)x=y)y(Y(y)xy=u(x)))).\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)]])])])]]]}.source

Explain

The Continuum Hypothesis is the statement that the size of the continuum is the first non-enumerable cardinality, i.e, that ()\Pow{\Nat}source has size 1\aleph_1source.

Source sentence intended to express the Continuum Hypothesis

The Continuum Hypothesis is true iff

CHX(Aleph1(X)Cont(X))\fn{CH} \ident \lforall[X][(\fn{Aleph}_1(X) \liff \fn{Cont}(X))]source

is valid.

Note that it isn't true that ¬CH\lnot \fn{CH}source is valid iff the Continuum Hypothesis is false. In an enumerable domain, there are no subsets of size 1\aleph_1source and also no subsets of the size of the continuum, so CH\fn{CH}source is always true in an enumerable domain. However, we can give a different sentence that is valid iff the Continuum Hypothesis is false:

Source sentence intended to express failure of the Continuum Hypothesis

The Continuum Hypothesis is false iff

NCHX(Cont(X)Y(YX¬Count(Y)¬XY))\fn{NCH} \ident \lforall[X][(\fn{Cont}(X) \lif \lexists[Y][(Y \subseteq X \land \lnot \fn{Count}(Y) \land \lnot \cardeq{X}{Y})])]source

is valid.

Source disclosures