Reading preferences

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

How to use Read

This page follows Theories and Their Models in source order. Every equation is native, unflattened MathML, and every source coordinate is available offline.

Introduction

Definition of a closed theory and its closure

A set of sentences Γsource 29 is closed iff, whenever ΓAsource 30 then AΓsource 30. The closure of a set of sentences Γsource 31 is {A:ΓA}source 31.

We say that Γsource 33 is axiomatized by a set of sentences Δsource 34 if Γsource 34 is the closure of Δsource 34.

source 28

Expressing Properties of Structures

Definition of a model of a sentence set

Source title: Model of a set.

Let Γsource 40 be a set of sentences in a language Lsource 40. We say that a structure Msource 41 is a model of Γsource 41 if MAsource 42 for all AΓsource 42.

source 39

Example axiomatizing partial orders

The sentence xxxsource 46 is true in Msource 46 iff Msource 47 is a reflexive relation. The sentence xy((xyyx)x=y)source 48 is true in Msource 49 iff Msource 49 is anti-symmetric. The sentence xyz((xyyz)xz)source 50 is true in Msource 51 iff Msource 51 is transitive. Thus, the models of Displayed partial-order axioms {xxx,xy((xyyx)x=y),xyz((xyyz)xz)}source 53 are exactly those structures in which Msource 60 is reflexive, anti-symmetric, and transitive, i.e., a partial order. Hence, we can take them as axioms for the first-order theory of partial orders.

source 45

Examples of First-Order Theories

Example theory of strict linear orders

The theory of strict linear orders in the language L<source 14 is axiomatized by the set Displayed strict-linear-order axioms {x¬x<x,xy((x<yy<x)x=y),xyz((x<yy<z)x<z)}source 16 It completely captures the intended structures: every strict linear order is a model of this axiom system, and vice versa, if Rsource 24 is a linear order on a set Xsource 25, then the structure Msource 25 with |M|=Xsource 26 and <M=Rsource 26 is a model of this theory.

source 13

Example theory of groups

The theory of groups in the language 1source 30 (constant), ·source 30 (two-place function) is axiomatized by Displayed group axioms x(x·1)=xxyz(x·(y·z))=((x·y)·z)xy(x·y)=1source 32

source 29

Example Peano arithmetic

The theory of Peano arithmetic is axiomatized by the following sentences in the language of arithmetic LAsource 42. Displayed Peano-arithmetic axioms xy(x=yx=y)x0xx(x+0)=xxy(x+y)=(x+y)x(x×0)=0xy(x×y)=((x×y)+x)xy(x<yz(z+x)=y)plus all sentences of the form(A(0)x(A(x)A(x)))xA(x)source 43 Since there are infinitely many sentences of the latter form, this axiom system is infinite. The latter form is called the induction schema. (Actually, the induction schema is a bit more complicated than we let on here.)

The last axiom is an explicit definition of <source 59.

source 40

Example candidate theory of pure sets

The theory of pure sets plays an important role in the foundations (and in the philosophy) of mathematics. A set is pure if all its elements are also pure sets. The empty set counts therefore as pure, but a set that has something as a element that is not a set would not be pure. So the pure sets are those that are formed just from the empty set and no “urelements,” i.e., objects that are not themselves sets.

The following might be considered as an axiom system for a theory of pure sets: Displayed pure-set axioms x¬yyxxy(z(zxzy)x=y)xyzu(uz(u=xu=y))xyz(zyu(zuux))plus all sentences of the formxy(yxA(y))source 73 Reader correction: The extensionality row opens the scope of the z quantifier with a parenthesis instead of the square bracket required by the local quantifier macro. The reader restores the scope bracket. The first axiom says that there is a set with no elements (i.e., source 85 exists); the second says that sets are extensional; the third that for any sets Xsource 86 and Ysource 86, the set {X,Y}source 86 exists; the fourth that for any set Xsource 87, the set Xsource 87 exists, where Xsource 87 is the union of all the elements of Xsource 88.

The sentences mentioned last are collectively called the naive comprehension scheme. It essentially says that for every A(x)source 92, the set {x:A(x)}source 92 exists—so at first glance a true, useful, and perhaps even necessary axiom. It is called “naive” because, as it turns out, it makes this theory unsatisfiable: if you take A(y)source 95 to be ¬yysource 95, you get the sentence xy(yx¬yy)source 96 and this sentence is not satisfied in any structure.

source 62

Example theory of mereological parthood

In the area of mereology, the relation of parthood is a fundamental relation. Just like theories of sets, there are theories of parthood that axiomatize various conceptions (sometimes conflicting) of this relation.

The language of mereology contains a single two-place predicate symbol Psource 109, and P(x,y)source 109 “means” that xsource 109 is a part of ysource 110. When we have this interpretation in mind, a structure for this language is called a parthood structure. Of course, not every structure for a single two-place predicate will really deserve this name. To have a chance of capturing “parthood,” PMsource 114 must satisfy some conditions, which we can lay down as axioms for a theory of parthood. For instance, parthood is a partial order on objects: every object is a part (albeit an improper part) of itself; no two different objects can be parts of each other; a part of a part of an object is itself part of that object. Note that in this sense “is a part of” resembles “is a subset of,” but does not resemble “is an element of” which is neither reflexive nor transitive. Displayed mereology axioms xP(x,x)xy((P(x,y)P(y,x))x=y)xyz((P(x,y)P(y,z))P(x,z))Moreover, any two objects have a mereological sum (an object that has these two objects as parts, and is minimal in this respect).xyzu(P(z,u)(P(x,u)P(y,u)))source 122 These are only some of the basic principles of parthood considered by metaphysicians. Further principles, however, quickly become hard to formulate or write down without first introducing some defined relations. For instance, most metaphysicians interested in mereology also view the following as a valid principle: whenever an object xsource 138 has a proper part ysource 138, it also has a part zsource 138 that has no parts in common with ysource 139, and so that the fusion of ysource 139 and zsource 139 is xsource 140.

source 102

Expressing Relations in a Structure

Definition of a formula expressing a relation

Let A(v1,,vn)source 43 be a formula of Lsource 43 in which only v1source 44,…, vnsource 44 occur free, and let Msource 44 be a structure for Lsource 45. A(v1,,vn)source 45 expresses the relation R|M|nsource 46 iff Ra1aniffM,sA(v1,,vn)source 47 for any variable assignment ssource 51 with s(vi)=aisource 51 (i=1,,nsource 51).

source 42

Example definable arithmetic relations

In the standard model of arithmetic Nsource 56, the formula v1<v2v1=v2source 56 expresses the source 57 relation on source 58. The formula v2=v1source 58 expresses the successor relation, i.e., the relation R2source 59 where Rnmsource 60 holds if msource 60 is the successor of nsource 60. The formula v1=v2source 61 expresses the predecessor relation. The formulas v3(v30v2=(v1+v3))source 62 and v3(v1+v3)=v2source 63 Reader correction: The final v sub two lacks the object-language marker used for every neighboring variable. The reader supplies that marker without changing the frozen source occurrence. both express the <source 64 relation. This means that the predicate symbol <source 65 is actually superfluous in the language of arithmetic; it can be defined.

source 55

Exercise defining arithmetic relations

Unsolved exercise. The source supplies the prompt only; no solution is added.

Find formulas in LAsource 81 which define the following relations:

  1. nsource 83 is between isource 83 and jsource 83;

  2. nsource 84 evenly divides msource 84 (i.e., msource 84 is a multiple of nsource 84);

  3. nsource 85 is a prime number (i.e., no number other than 1source 85 and nsource 85 evenly divides nsource 86).

source 80

Exercise transforming an expressed relation

Unsolved exercise. The source supplies the prompt only; no solution is added.

Suppose the formula A(v1,v2)source 91 expresses the relation R|M|2source 91 in a structure Msource 92. Find formulas that express the following relations:

  1. the inverse R1source 95 of Rsource 95;

  2. the relative product R|Rsource 96;

Can you find a way to express R+source 98, the transitive closure of Rsource 98?

source 90

Exercise on definability in the natural-number order

Unsolved exercise. The source supplies the prompt only; no solution is added.

Let Lsource 102 be the language containing a 2-place predicate symbol <source 103 only (no other constants, functions or predicates— except of course =source 104). Let Nsource 104 be the structure such that |N|=source 105, and <N={n,m:n<m}source 105. Prove the following:

  1. {0}source 108 is definable in Nsource 108;

  2. {1}source 109 is definable in Nsource 109;

  3. {2}source 110 is definable in Nsource 110;

  4. for each nsource 111, the set {n}source 111 is definable in Nsource 112;

  5. every finite subset of |N|source 113 is definable in Nsource 114;

  6. every co-finite subset of |N|source 115 is definable in Nsource 116 (where Xsource 116 is co-finite iff Xsource 117 is finite).

source 101

The Theory of Sets

Almost all of mathematics can be developed in the theory of sets. Developing mathematics in this theory involves a number of things. First, it requires a set of axioms for the relation source 15. A number of different axiom systems have been developed, sometimes with conflicting properties of source 17. The axiom system known as ZFCsource 18, Zermelo–Fraenkel set theory with the axiom of choice stands out: it is by far the most widely used and studied, because it turns out that its axioms suffice to prove almost all the things mathematicians expect to be able to prove. But before that can be established, it first is necessary to make clear how we can even express all the things mathematicians would like to express. For starters, the language contains no constants or functions, so it seems at first glance unclear that we can talk about particular sets (such as source 26 or source 26), can talk about operations on sets (such as XYsource 27 and (X)source 27), let alone other constructions which involve things other than sets, such as relations and functions.

To begin with, “is an element of” is not the only relation we are interested in: “is a subset of” seems almost as important. But we can define “is a subset of” in terms of “is an element of.” To do this, we have to find a formula A(x,y)source 34 in the language of set theory which is satisfied by a pair of sets X,Ysource 36 iff XYsource 36. But Xsource 36 is a subset of Ysource 36 just in case all elements of Xsource 37 are also elements of Ysource 37. So we can define source 38 by the formula z(zxzy)source 39 Now, whenever we want to use the relation source 42 in a formula, we could instead use that formula (with xsource 43 and ysource 43 suitably replaced, and the bound variable zsource 44 renamed if necessary). For instance, extensionality of sets means that if any sets xsource 45 and ysource 45 are contained in each other, then xsource 46 and ysource 46 must be the same set. This can be expressed by xy((xyyx)x=y)source 47, or, if we replace source 48 by the above definition, by xy((z(zxzy)z(zyzx))x=y).source 50 This is in fact one of the axioms of ZFCsource 54, the “axiom of extensionality.”

There is no constant for source 57, but we can express “xsource 57 is empty” by ¬yyxsource 58. Then “source 58 exists” becomes the sentence x¬yyxsource 59. This is another axiom of ZFCsource 60. (Note that the axiom of extensionality implies that there is only one empty set.) Whenever we want to talk about source 62 in the language of set theory, we would write this as “there is a set that's empty and …” As an example, to express the fact that source 64 is a subset of every set, we could write x(¬yyxzxz)source 66 where, of course, xzsource 70 would in turn have to be replaced by its definition.

To talk about operations on sets, such as XYsource 73 and (X)source 73, we have to use a similar trick. There are no function symbols in the language of set theory, but we can express the functional relations XY=Zsource 75 and (X)=Ysource 76 by Displayed definitions of union and power set u((uxuy)uz)u(uxuy)source 77 since the elements of XYsource 81 are exactly the sets that are either elements of Xsource 82 or elements of Ysource 82, and the elements of (X)source 83 are exactly the subsets of Xsource 83. However, this doesn't allow us to use xysource 84 or (x)source 84 as if they were terms: we can only use the entire formulas that define the relations XY=Zsource 86 and (X)=Ysource 86. 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 xy(x)=ysource 89 is another axiom of ZFCsource 90 (the power set axiom).

Now what about talk of ordered pairs or functions? Here we have to explain how we can think of ordered pairs and functions as special kinds of sets. One way to define the ordered pair x,ysource 94 is as the set {{x},{x,y}}source 95. But like before, we cannot introduce a function that names this set; we can only define the relation x,y=zsource 97, i.e., {{x},{x,y}}=zsource 97: u(uz(v(vuv=x)v(vu(v=xv=y))))source 98 This says that the elements usource 102 of zsource 102 are exactly those sets which either have xsource 103 as its only element or have xsource 103 and ysource 103 as its only elements (in other words, those sets that are either identical to {x}source 105 or identical to {x,y}source 105). Once we have this, we can say further things, e.g., that X×Y=Zsource 106: z(zZxy(xXyYx,y=z))source 107

A function f:XYsource 112 can be thought of as the relation f(x)=ysource 112, i.e., as the set of pairs {x,y:f(x)=y}source 113. We can then say that a set fsource 114 is a function from Xsource 114 to Ysource 114 if (a) it is a relation X×Ysource 115, (b) it is total, i.e., for all xXsource 115 there is some yYsource 116 such that x,yfsource 116 and (c) it is functional, i.e., whenever x,y,x,yfsource 117, y=ysource 118 (because values of functions must be unique). So “fsource 118 is a function from Xsource 119 to Ysource 119” can be written as: Displayed definition of a function graph u(ufxy(xXyYx,y=u))x(xX(y(yYmaps(f,x,y))yy((maps(f,x,y)maps(f,x,y))y=y)))source 120 Reader correction: At line 121, the source closes the universal-u implication before its aligned existential consequent; at line 123, it closes the universal-x implication before its aligned totality-and-uniqueness consequent. The reader groups both displayed consequents inside their respective universal implications without changing the frozen source. where maps(f,x,y)source 128 abbreviates v(vfx,y=v)source 128 (this formula expresses “f(x)=ysource 129”).

It is now also not hard to express that f:XYsource 131 is injective, for instance: Displayed definition of injectivity f:XYxx(((xXxX)y(maps(f,x,y)maps(f,x,y)))x=x)source 133 Reader correction: The injectivity antecedent closes both universal scopes before the aligned existence clause. The reader groups that clause into the antecedent described by the following prose. A function f:XYsource 139 is injective iff, whenever fsource 139 maps x,xXsource 139 to a single ysource 140, x=xsource 140. If we abbreviate this formula as inj(f,X,Y)source 141, we're already in a position to state in the language of set theory something as non-trivial as Cantor's theorem: there is no injective function from (X)source 143 to Xsource 143: XY((X)=Y¬finj(f,Y,X))source 144

One might think that set theory requires another axiom that guarantees the existence of a set for every defining property. If A(x)source 150 is a formula of set theory with the variable xsource 151 free, we can consider the sentence yx(xyA(x)).source 153 This sentence states that there is a set ysource 156 whose elements are all and only those xsource 157 that satisfy A(x)source 157. This schema is called the “comprehension principle.” It looks very useful; unfortunately it is inconsistent. Take A(x)¬xxsource 159, then the comprehension principle states yx(xyxx),source 161 i.e., it states the existence of a set of all sets that are not elements of themselves. No such set can exist—this is Russell's Paradox. ZFCsource 166, in fact, contains a restricted—and consistent—version of this principle, the separation principle: zyx(xy(xzA(x)).source 168

Exercise deriving Russell's contradiction

Unsolved exercise. The source supplies the prompt only; no solution is added.

Show that the comprehension principle is inconsistent by giving a derivation that shows yx(xyxx).source 176 It may help to first show (A¬A)(¬AA)source 179.

source 173

Expressing the Size of Structures

Proposition expressing at least and at most n elements

The sentence Displayed sentence for at least n elements Anx1x2xn(x1x2x1x3x1x4x1xnx2x3x2x4x2xnxn1xn)source 23 is true in a structure Msource 33 iff |M|source 33 contains at least nsource 34 elements. Consequently, M¬An+1source 34 iff |M|source 35 contains at most nsource 35 elements.

source 21

Proposition expressing exactly n elements

The sentence Displayed sentence for exactly n elements A=nx1x2xn(x1x2x1x3x1x4x1xnx2x3x2x4x2xnxn1xny(y=x1y=xn))source 41 is true in a structure Msource 52 iff |M|source 52 contains exactly nsource 53 elements.

source 39

Proposition characterizing infinite structures

A structure is infinite iff it is a model of {A1,A2,A3,}.source 58

source 56

There is no single purely logical sentence which is true in Msource 63 iff |M|source 64 is infinite. However, one can give sentences with non-logical predicates which only have infinite models (although not every infinite structure is a model of them). The property of being a finite structure, and the property of being a nonenumerable structure cannot even be expressed with an infinite set of sentences. These facts follow from the compactness and Löwenheim–Skolem theorems.