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

Slides:



Advertisements
Similar presentations
Functions Reading: Epp Chp 7.1, 7.2, 7.4
Advertisements

Prof. Johnnie Baker Module Basic Structures: Sets
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Section 1.6: Sets Sets are the most basic of discrete structures and also the most general. Several of the discrete structures we will study are built.
The Engineering Design of Systems: Models and Methods
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
EE1J2 – Discrete Maths Lecture 7
Copyright © Zeph Grunschlag, Set Operations Zeph Grunschlag.
Sets 1.
Sets 1.
Cardinals Georg Cantor ( ) thought of a cardinal as a special represenative. Bertrand Russell ( ) and Gottlob Frege ( ) used the.
Computing Fundamentals 1 Lecture 6 A Theory of Sets Lecturer: Patrick Browne Room K308 Based on Chapter 11. A Logical approach.
2012: J Paul GibsonTSP: Mathematical FoundationsMAT7003/L5- CountingAndEnumeration.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul.
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
Relation, function 1 Mathematical logic Lesson 5 Relations, mappings, countable and uncountable sets.
Math 3121 Abstract Algebra I Section 0: Sets. The axiomatic approach to Mathematics The notion of definition - from the text: "It is impossible to define.
MATH 224 – Discrete Mathematics
Chapter 3 – Set Theory  .
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
1 Lecture 3 (part 3) Functions – Cardinality Reading: Epp Chp 7.6.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Mathematical Preliminaries (Hein 1.1 and 1.2) Sets are collections in which order of elements and duplication of elements do not matter. – {1,a,1,1} =
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Copyright © Cengage Learning. All rights reserved. CHAPTER 7 FUNCTIONS.
Mathematical Induction Chapter 16 Language, Proof and Logic.
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
Mathematical Induction
Discrete Structure Sets. 2 Set Theory Set: Collection of objects (“elements”) a  A “a is an element of A” “a is a member of A” a  A “a is not an element.
1 Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 2: Logic & Incidence Geometry Back To the Very Basic Fundamentals.
Relations, Functions, and Countability
Language: Set of Strings
CS201: Data Structures and Discrete Mathematics I
A Brief Introduction to Set Theory. How Many Things?
2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
CompSci 102 Discrete Math for Computer Science
COMPSCI 102 Introduction to Discrete Mathematics.
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
Mathematical Preliminaries
2.1 Sets 2.2 Set Operations –Set Operations –Venn Diagrams –Set Identities –Union and Intersection of Indexed Collections 2.3 Functions 2.4 Sequences and.
CSE 311 Foundations of Computing I Lecture 9 Proofs and Set Theory Autumn 2012 CSE
Chapter 2 With Question/Answer Animations. Section 2.1.
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/27/2009.
Basic Structures: Sets, Functions, Sequences, and Sums.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
Great Theoretical Ideas in Computer Science.
Lecture 4 Infinite Cardinals. Some Philosophy: What is “2”? Definition 1: 2 = 1+1. This actually needs the definition of “1” and the definition of the.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
CS 285- Discrete Mathematics
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Discrete Mathematics Lecture # 17 Function. Relations and Functions  A function F from a set X to a set Y is a relation from X to Y that satisfies the.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
Introduction to Set Theory (§1.6) A set is a new type of structure, representing an unordered collection (group, plurality) of zero or more distinct (different)
1-1 Copyright © 2013, 2005, 2001 Pearson Education, Inc. Section 2.4, Slide 1 Chapter 2 Sets and Functions.
Chapter 2 Sets and Functions.
Chapter 3 The Real Numbers.
Set, Combinatorics, Probability & Number Theory
Lesson 5 Relations, mappings, countable and uncountable sets
Lesson 5 Relations, mappings, countable and uncountable sets
MA/CSSE 474 More Math Review Theory of Computation
Presentation transcript:

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

Naïve set theory 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 x,y,z,..., ranging over everything --- ordinary objects as well as sets Two axioms (premises to all arguments): 1. The Axiom of Extensionality:  a  b [  x(x  a  x  b)  a=b] 2. The Axiom (axiom scheme) of Comprehension, for each formula P(x):  a  x[x  a  P(x)] More generally, if P(x) contains additional free variables z 1,...,z n :  z 1...  z n  a  x [x  a  P(x)]

Naïve set theory 15.1.b Instances of the Axiom of Comprehension. What do they say?  a  x [x  a  StudentOfThisClass(x)]  a  x [x  a  Likes(x,x)]  a  x [x  a   z  Likes(x,z)]  z  a  x [x  a  Likes(z,x)]  a  x [x  a  x=x]  a  x [x  a  x  x]  z 1  z 2  a  x [x  a  (x=z 1  x=z 2 )] 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

Naïve set theory 15.1.c Proposition 1. For each wff P(x), the following is true:  z 1...  z n  a!  x [x  a  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 |  z  Likes(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.

The empty set, singletons and unordered pairs 15.2 The empty set: {x | x  x} 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 [z  a  z  z];  x  a!  z [z  a  z=x];  x  y  a!  z [z  a  z=x  z=y].

Subsets 15.3.a a is a subset of b (a  b) iff every element of a is also an element of b. a  b can and will be understood as an abbreviation of An alternative approach to  : Treat it as a legal predicate symbol of the language of set theory, and add  a  b [a  b   x(x  a  x  b)] as a (one more) axiom to the system. Proposition 4.  a(a  a). I.e.,  a  x(x  a  x  a). 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  a  x(x  a  x  a), i.e.  a(a  a), as desired.

Subsets 15.3.b Proposition 5.  a  b [a=b  (a  b  b  a)]. I.e., Proof: Consider any sets a and b. Assume a=b. By Proposition 4, a  a and hence, of course, we also have a  a  a  a. Then, by = Elim, a  b  b  a. Now assume a  b  b  a. This means... a and b have the same elements. But then, by the Axiom of Extensionality, a=b. Thus, a=b  (a  b  b  a). Since a and b were arbitrary, we conclude that  a  b [a=b  (a  b  b  a)].

Intersection and union 15.4.a Let a and b be sets. The intersection a  b of a and b is the set whose members are just those objects in both a and b. Here is a definition of a  b, which can be used as an axiom in proving things about intersection: The union a  b 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 a  b, which can be used as an axiom in proving things about union:

Intersection and union 15.4.b Propositions 6 and 7. Any pair of sets a and b has a unique intersection and a unique union: Proof. According to Proposition 1, for each wff P(x), the following is true:  z 1...  z n  !c  x [x  c  P(x)]. The above two formulas are just instances of this.

Intersection and union 15.4.c Proposition 8. Let a, b and c be any sets. 1. a  b = b  a 2. a  b = b  a 3. a  b=b iff b  a 4. a  b=b iff a  b 5. a  (b  c) = (a  b)  (a  c) 6. a  (b  c) = (a  b)  (a  c) You try it, p. 427

Sets of sets 15.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}}

Ordered tuples 15.5.b An ordered pair: ; an ordered triple: ; 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 2 +y 2 =1} The main property of ordered pairs: =  (x=u  y=v) Generally, =  (x 1 =y 1 ...  x n =y n ) In set theory, is modeled (defined) as {{x},{x,y}}. Next, is modeled as >. Generally, is understood as >.

Modeling relations in set theory 15.6.a Relations between elements of a domain D are modeled as sets of ordered tuples: Larger: { | x,y  D and x is larger than y} Between: { | x,y,z  D and x is between y and z} etc. So, R(x,y) can be understood as an abbreviation of  R. Important possible properties of a binary relation R: Transitivity:  x  y  z [( R(x,y)  R(y,z) )  R(x,z) ] Reflexivity:  xR(x,x) Irreflexivity:  x  R(x,x) Symmetry:  x  y[R(x,y)  R(y,x)] Asymmetry:  x  y[R(x,y)   R(y,x)] Antisymmetry:  x  y [( R(x,y)  R(y,x) )  x=y ]

Modeling relations in set theory 15.6.b The inverse R -1 of a binary relation R is defined by R -1 = { |  R} LeftOf -1 = < -1 = HusbandOf -1 = SameRow -1 = Observation: R=R -1 iff

Modeling relations in set theory 15.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 x  D, we define the R-equivalence class [x] R of x by [x] R = {y |  R} Proposition 9. Let R be an equivalence relation on a set D. Then, for all x,y  D, we have: 1. x  [x] 2. [x]=[y] iff  R 3. [x]=[y] iff [x]  [y] 

Functions 15.7 A function is a binary relation R on a set D satisfying the condition of Functionality:  x   1 yR(x,y) Here   1 y 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:  x  yR(x,y) A common practice is to denote functions by f,g,..., and write f(x)=y rather than  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).

The powerset of a set 15.8.a Proposition 10. For any set b there is a unique set whose members are just the subsets of b. In symbols:  b  !c  x(x  c  x  b). 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.

The powerset of a set 15.8.b Proposition 13. For any set b, the Russell set for b, the set {x | x  b  x  x} 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 c  b. But do we then have c  c or c  c? 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.

Russell’s Paradox 15.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 | x  x} (Z is nothing but the Russell set for V) Do we have Z  Z? Neither “yes” nor “no” is possible.

Russell’s Paradox (reproduced in Fitch) 15.9.b 1.  x  y(y  x   y  y) 2. c  y(y  c   y  y) 3. c  c   c  c  Elim: 2 4.  Taut Con: 3 5.   Elim: 1, 2-4 From the above, by  Intro, we can further derive  x  y(y  x   y  y). This means that the Axiom of Comprehension is not only false, it is in fact logically (FO) false, no matter what  means!

Zermelo Frankel set theory ZFC 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:  a  b  x[x  b  (x  a  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 {{{...}}}.

Zermelo Frankel set theory ZFC 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 , {  }, {{  }}, {{{  }}}, Axiom of Replacement: Given any set c and any function f with domain c, there is a set {f(x) | x  c}.

Zermelo Frankel set theory ZFC 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 c  b, 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 each of 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.

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: ….      …. 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: S  T. “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|.

15.10.e Do all infinite sets have the same size? Is the set {… -3, -2, -1, 0, 1, 2, 3, …} countable? … … Yes:        … … How about the set of all (positive) rational numbers? Still countable: /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/ /1 5/2 5/3 5/4 5/5 4/5 3/5 2/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/5 4/5 3/5 2/51/5

15.10.f An uncountable set But there are sets properly bigger than N (uncountable). For instance, the set R of all rational numbers, or even just the set R [0,1) of all rational numbers r with 0  r<1 Every number from R [0,1) can be written as an infinite binary numeral of the form 0. x 1 x 2 x 3 x 4 … where each x i 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: : … 2: … 3: … 4: … 5: … etc. Take the “diagonal” and change all of its floating point bits, thus getting the number … 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.

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).