first-order set theory

27
First-order Set Theory First-order Set Theory Chapter 15 Language, Proof and Logic

Upload: ossie

Post on 07-Jan-2016

28 views

Category:

Documents


3 download

DESCRIPTION

Language, Proof and Logic. First-order Set Theory. Chapter 15. 15.1.a. Two binary (and infix) predicate symbols in the language:  and = . Two sorts of variables (so that the language is many-sorted ): a , b , c ,... , ranging over sets - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: First-order Set Theory

First-order Set TheoryFirst-order Set Theory

Chapter 15

Language, Proof and

Logic

Page 2: First-order Set Theory

Naïve set theory15.1.a

Two binary (and infix) predicate symbols in the language: and =.

Two sorts of variables (so that the language is many-sorted): a,b,c,... , ranging over sets x,y,z,... , ranging over everything --- ordinary objects as well as sets

Two axioms (premises to all arguments):

1. The Axiom of Extensionality: ab [x(xa xb) a=b]

2. The Axiom (axiom scheme) of Comprehension, for each formula P(x): ax[xa P(x)]More generally, if P(x) contains additional free variables z1,...,zn: z1...zn ax [xa P(x)]

Page 3: First-order Set Theory

Naïve set theory15.1.b

Instances of the Axiom of Comprehension. What do they say?

ax [xa StudentOfThisClass(x)] ax [xa Likes(x,x)]

ax [xa zLikes(x,z)]

zax [xa Likes(z,x)]

ax [xa x=x]

ax [xa xx]

z1z2 ax [xa (x=z1 x=z2)]

There is a set of all students of this class

There is a set of those who like themselves

There is a set of those who don’t like anyone

For everyone, there is a set of those who he or she likes

There is a set of all objects

There is an empty set

For any pair of objects, there is a set consisting of precisely those objects

Page 4: First-order Set Theory

Naïve set theory15.1.c

Proposition 1. For each wff P(x), the following is true: z1...zn a!x [xa P(x)].

Proof. That there is at least one such a is guaranteed by the Axiom of Comprehension. And that any two such a’s would be equal is guaranteed by the Axiom of Extensionality.

“a!Q(a)” abbreviates “a[Q(a)b(Q(b) b=a)]”. I.e., a!Q(a) says that

In informal contexts, we use:

Brace notation: { x | P(x)} --- “the set of objects satisfying P(x)’’ E.g. {x | zLikes(x,z)}, {x | x does not like anyone}, etc.

List notation: Just list the elements of the set between braces. E.g. {a,b,c}, {0,2,4,6,...}, etc.

Page 5: First-order Set Theory

The empty set, singletons and unordered pairs

15.2

The empty set: {x | xx} Informally, denoted by , or {}.

The singleton set of x: {x}.

The unordered pair of x and y: {x,y}.

Proposition 1 guarantees that all these sets exist and are unique. Namely:

a!z [za zz];

xa!z [za z=x];

x ya!z [za z=xz=y].

Page 6: First-order Set Theory

Subsets15.3.a

a is a subset of b (ab) iff every element of a is also an element of b.ab can and will be understood as an abbreviation of

An alternative approach to : Treat it as a legal predicate symbol of thelanguage of set theory, and add ab [a b x(xa xb)] as a (one more) axiom to the system.

Proposition 4. a(aa). I.e., ax(xa xa).

Proof: By Reiteration, we can derive from . So, by Intro, we get . Now, by Intro, we get x(x x). And, again by Intro, we get ax(xa xa),i.e. a(aa), as desired.

Page 7: First-order Set Theory

Subsets15.3.b

Proposition 5. ab [a=b (ab ba)]. I.e.,

Proof: Consider any sets a and b.

Assume a=b. By Proposition 4, aa and hence, of course, we also have aa aa. Then, by = Elim, ab ba.

Now assume ab ba. This means ... a and b have the same elements.But then, by the Axiom of Extensionality, a=b.

Thus, a=b (ab ba).

Since a and b were arbitrary, we conclude that ab [a=b (ab ba)].

Page 8: First-order Set Theory

Intersection and union15.4.a

Let a and b be sets.

The intersection ab of a and b is the set whose members are just those objects in both a and b.Here is a definition of ab, which can be used as an axiom in provingthings about intersection:

The union ab of a and b is the set whose members are just those objects in either a or b or both.Here is a definition of ab, which can be used as an axiom in provingthings about union:

Page 9: First-order Set Theory

Intersection and union15.4.b

Propositions 6 and 7. Any pair of sets a and b has a unique intersectionand a unique union:

Proof. According to Proposition 1, for each wff P(x), the following is true: z1... zn!cx [xc P(x)]. The above two formulas are just instances of this.

Page 10: First-order Set Theory

Intersection and union15.4.c

Proposition 8. Let a, b and c be any sets.

1. ab = ba

2. ab = ba

3. ab=b iff ba

4. ab=b iff ab

5. a (bc) = (ab) (ac)

6. a (bc) = (ab) (ac)

You try it, p. 427

Page 11: First-order Set Theory

Sets of sets15.5.a

Using the FO language of set theory, say that:

1. a = {0}

2. a = {0,1}

3. a =

4. a = {}

5. a = {{}}

6. a = {,{}}

7. a = {{0},{1}}

8. a = {{0},{0,1}}

Page 12: First-order Set Theory

Ordered tuples15.5.b

• An ordered pair: <x,y>; an ordered triple: <x,y,z>; etc.• How do these differ from {x,y}, {x,y,z}, etc.?• Important structures! E.g., points on the plane are understood as ordered pairs of real numbers, and points in the space as ordered triples of real numbers.• E.g., circle of radius 1 is the set of ordered pairs defined by {<x,y> | x2+y2=1}

• The main property of ordered pairs: <x,y> = <u,v> (x=u y=v)Generally, <x1,...,xn> = <y1,...,yn> (x1=y1 ... xn=yn)

• In set theory, <x,y> is modeled (defined) as {{x},{x,y}}.Next, <x,y,z> is modeled as <x,<y,z>>. Generally, <x1,x2,...,xn> is understood as <x1,<x2,...,xn>>.

Page 13: First-order Set Theory

Modeling relations in set theory15.6.a

Relations between elements of a domain D are modeled as sets of ordered tuples: Larger: {<x,y> | x,yD and x is larger than y} Between: {<x,y,z> | x,y,zD and x is between y and z} etc.So, R(x,y) can be understood as an abbreviation of <x,y>R.

Important possible properties of a binary relation R:

Transitivity: xyz [(R(x,y) R(y,z)) R(x,z)]Reflexivity: xR(x,x) Irreflexivity: xR(x,x) Symmetry: xy[R(x,y) R(y,x)]Asymmetry: xy[R(x,y) R(y,x)]Antisymmetry: xy[(R(x,y) R(y,x)) x=y]

Page 14: First-order Set Theory

Modeling relations in set theory15.6.b

The inverse R-1 of a binary relation R is defined by R-1 = {<x,y> | <y,x>R}

• LeftOf-1 =• <-1 =• HusbandOf-1 =• SameRow-1 =

Observation: R=R-1 iff

Page 15: First-order Set Theory

Modeling relations in set theory15.6.c

A binary relation R is said to be an equivalence relation iff R has each of the following three properties:• Reflexive• Symmetric• Transitive

Given an equivalence relation R on a set D and an object xD,we define the R-equivalence class [x]R of x by [x]R = {y | <x,y>R}

Proposition 9. Let R be an equivalence relation on a set D. Then, for all x,yD, we have: 1. x[x] 2. [x]=[y] iff <x,y>R 3. [x]=[y] iff [x][y]

Page 16: First-order Set Theory

Functions15.7

A function is a binary relation R on a set D satisfying the condition of Functionality: x1yR(x,y)Here 1y means “there is at most one y such that...”Such a function R is said to be total iff it satisfies the condition of Totality: xyR(x,y)

A common practice is to denote functions by f,g,..., and write f(x)=y rather than <x,y>f.

The domain of a function f is the set {x | y(f(x)=y)}The range of a function f is the set {y | x(f(x)=y)}

f is said to be defined on x iff x is in the domain of f.

g is said to be an extension of f iff the domain of f is a subset of the domain of g and, for every x from the domain of f, g(x)=f(x).

Page 17: First-order Set Theory

The powerset of a set15.8.a

Proposition 10. For any set b there is a unique set whose members arejust the subsets of b. In symbols: b!cx(xc xb).

Proof: Immediately from Proposition 1, as always.

The set whose existence is claimed in Proposition 10 is called the powerset of b and is denoted by (b).

Proposition 11. Let a and b be any sets. 1. b (b). 2. (b). 3. a b iff (a) (b).

Proof: Obvious.

Page 18: First-order Set Theory

The powerset of a set15.8.b

Proposition 13. For any set b, the Russell set for b, the set {x | xb xx}is a subset of b but not a member of b.

Proof: Let c be the Russell set for b. That c b is obvious.Now, for a contradiction, assume cb. But do we then have cc or cc? Neither is possible!

Proposition 12. For any set b, it is not the case that (b)b.

Proof: An immediate corollary of Proposition 13. Specifically, the Russel set for b is a member of (b) but not a member of b.

Page 19: First-order Set Theory

Russell’s Paradox15.9.a

The universal set V is one containing everything, and can be defined by V = {x | x=x}.The existence of such a set is guaranteed by the axiom of comprehension.

Since V contains everything, every set is a subset of it. Thus, we have (V)V. But this is in contradiction with Proposition 12 !!!!!!!!!!!!!!

NAIVE SET THEORY is INCONSISTENT!!!!!!!!!!!!!!!!!!!!

The above discovery is called Russell’s Paradox. It can be reproduced without referring to powersets or the universal set.

Russell’s Paradox made easy: Consider the set Z = {x | xx} (Z is nothing but the Russell set for V)Do we have ZZ? Neither “yes” nor “no” is possible.

Page 20: First-order Set Theory

Russell’s Paradox (reproduced in Fitch)15.9.b

1. xy(yx yy)

2. c y(yc yy)

3. cc cc Elim: 2

4. Taut Con: 3

5. Elim: 1, 2-4

From the above, by Intro, we can further derive xy(yx yy).This means that the Axiom of Comprehension is not only false,it is in fact logically (FO) false, no matter what means!

Page 21: First-order Set Theory

Zermelo Frankel set theory ZFC15.10.a

ZFC is obtained from naive set theory by leaving untouched the

1. Axiom of Extensionality,

then, for the purpose of ruling out “too large” sets, weakening the Axiom of Comprehension to the

2. Axiom of Separation: abx[xb (xa P(x))];

This, however, throws out the baby with the bath water. To save the baby, the following five axioms 3-7 are added back, each being an easy consequence of the old Axiom of Comprehension.

Plus, the (controversial) Axiom of Choice is added,plus the Axiom of regularity, which rules out non-cumulative (formed before their members were formed) sets such as {{{...}}}.

Page 22: First-order Set Theory

Zermelo Frankel set theory ZFC15.10.b

3. Unordered Pair Axiom: For any two objects there is a set that has both as elements.

4. Union Axiom: Given any set c of sets, the union of all the members of c is also a set.

5. Powerset Axiom: Every set has a powerset.

6. Axiom of Infinity: There is a set of all natural numbers. Here natural numbers can be understood as , {}, {{}}, {{{}}},...

7. Axiom of Replacement: Given any set c and any function f with domain c, there is a set {f(x) | xc}.

Page 23: First-order Set Theory

Zermelo Frankel set theory ZFC15.10.c

8. Axiom of Choice: If b is a set of non-empty sets, then there is a function g with domain b such that, for each cb, g(c)c. That is,g “chooses” an element from each member c of b.

9. Axiom of Regularity: No set has a nonempty intersection with eachof its elements.

Rationale for the Axiom of Regularity: Consider any set c. Pick an element b of c which was formed at least as early as any other element of c. Assume now that x is in both b and c. Since x is in b,b was formed later than x. But it was our assumption that no element of c was formed earlier than b.

Page 24: First-order Set Theory

15.10.d Sizes of sets

The size |S| of a finite set S is just the number of its elements. But how about the sizes of infinite sets? Their sizes (called cardinalities) can be compared as well!

Let N={0,1,2,3,…} and E={0,4,6,8,…}. Do we have |E|<|N|?

No. |N| is not bigger than |E| because one can assign, to each element of N, a unique element of E. E.g., this way: 0 1 2 3 4 …. 0 2 4 6 8 ….

The sets of cardinality |N|, along with finite sets, are said to be countable.

Generally, given two sets S and T, we say that |S||T| iff there is an injective function(injection) f: ST. “Injective” means that f assigns different elements of T to different elements of S. We say that |S|<|T| iff |S||T| but not |T||S|. And we say that |S|=|T| iff we have both |S||T| and |T||S|. Thus, |E|=|N|.

Page 25: First-order Set Theory

15.10.e Do all infinite sets have the same size?

Is the set {… -3, -2, -1, 0, 1, 2, 3, …} countable? … -3 -2 -1 0 1 2 3 … Yes: … 5 3 1 0 2 4 6 …

How about the set of all (positive) rational numbers?

Still countable:

1

1

2 3 4

2

3

4

1/1 2/1 3/1 4/1

1/2 2/2 3/2 4/2

1/3 2/3 3/3 4/3

1/4 2/4 3/4 4/4

5

5

5/1

5/2

5/3

5/4

5/54/53/52/51/5

1/1 2/1 3/1 4/1

1/2 2/2 3/2 4/2

1/3 2/3 3/3 4/3

1/4 2/4 3/4 4/4

5/1

5/2

5/3

5/4

5/54/53/52/51/5

Page 26: First-order Set Theory

15.10.f An uncountable set

But there are sets properly bigger than N (uncountable). For instance, the set R of all real numbers, or even just the set R[0,1) of all real numbers r with 0r<1

Every number from R[0,1) can be written as an infinite binary numeral of the form

0 . x1 x2 x3 x4 … where each xi is either 0 or 1. Assume R[0,1) is countable. Then there should be a list of all elements of it, for instance,

0: 0 . 1 0 1 0 1 0 ...1: 0 . 0 1 0 0 0 0 …2: 0 . 1 1 0 1 1 1 …3: 0 . 1 1 0 0 1 0 …4: 0 . 1 0 1 1 0 0 …5: 0 . 0 1 0 0 0 1 …etc.

Take the “diagonal” and change all of its floating point bits, thus getting the number 0 . 0 0 1 1 1 0 …This number cannot be on the list because it differs from each list item #n in the nth floating point bit. Contradiction! So, R[0,1) is uncountable.

Page 27: First-order Set Theory

15.10.g Cantor’s Theorem

|N| is the smallest of all infinite cardinalities. According to the celebrated continuum hypothesis, the next-smallest cardinality is |R|.

But there is no “biggest” cardinality. This follows from

Cantor’s Theorem: For any set S, we have |S| < |(S)| (i.e., the cardinality of S is strictly smaller than that of the powerset of S).