Top Banner
Chapter 3 – Set Theory
63

Chapter 3 – Set Theory. 3.1 Sets and Subsets A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Dec 31, 2015

Download

Documents

Martin Barnett
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Chapter 3 – Set Theory

 

Page 2: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

3.1 Sets and Subsets A set is a well-defined collection of objects. These

objects are called elements and are said to be members of the set.

For a set A, we write x A if x is an element of A; y A indicated that y is not a member of A.

A set can be designated by listing its elements within set braces, e.g., A = {1, 2, 3, 4, 5}.

Another standard notation for this set provides us with A = {x | x is an integer and 1 x 5}. Here the vertical line | within the set braces is read “such that”. The symbols {x |…} are read “the set of all x such …”. The properties following | help us determine the elements of the set that is being described.

Page 3: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.1: page 128.

Page 4: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.2: page 128.

Page 5: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.2 page 128 From the above example, A and B are

examples of finite sets, where C is an infinite set. For any finite set A, |A| denotes the number of elements in A and is referred to as the cardinality, or size, of A, e.g., |A| = 9, |B| = 4.

Page 6: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.1: If C, D are sets from a universe U, we say that C is a

subset of D and write C D, or D C, if every element of C is an element of D. If, in addition, D contains an element that is not in C, then C is called a proper subset of D, and this is denoted by C D or D C.

Note: 1) For all sets C, D from a universe U, if C D, then x [x C x D],

and if x [x C x D], then C D. That is, C D x [x C x D]. 2) For all subsets C, D of U, C D C D. 3) When C, D are finite, CD |C||D|, and

CD |C|<|D|.

Page 7: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.3: page 129.

Page 8: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.4: page 129.

Page 9: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.2: For a given universe U, the sets C and

D (taken from U) are said to be equal, and we write C = D, when C D and D C.

Note: Some notions from logic: page 130 (line 4 from top).

Page 10: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example page 130.

Page 11: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.5

Page 12: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Theorem 3.1: Let A, B, C U, a) If AB and BC, then AC. b) If AB and BC, then AC. c) If AB and BC, then AC. d) If AB and BC, then AC.

Page 13: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Proof of Theorem 3.1

Page 14: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.6: page 131.

Page 15: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.3: The null set, or empty set, is the

(unique) set containing no elements. It is denoted by or { }. (Note that ||=0 but {0}. Also, {} because {} is a set with one element, namely, the null set.)

Page 16: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Theorem 3.2: For any universe U, let AU. Then A, and if

A, then A.

Page 17: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.7: page 132.

Page 18: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.4: If A is a set from universe U, the power

set of A, denoted (A), is the collection (or set) of all subsets of A.

Page 19: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.8: page 132.

Page 20: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Lemma: For any finite set A with |A| = n 0,

we find that A was 2n subsets and that |(A)| = 2n. For any 0 k n, there are subsets of size k. Counting the subsets of A according to the number, k, of elements in a subset, we have the combinatorial identity , for n 0.

nn

k k

n

n

nnnn2...

210 0

Page 21: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.9: page 133.

Page 22: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 23: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.10

Page 24: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.11: page 135. (Note: )

Page 25: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.13: page 136. (Pascal’s triangle)

Page 26: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 27: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

3.2 Set Operations and the Laws of Set Theory

Page 28: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.5: For A, B U we define the followings: A B (the union of A and B) = {x | x A x B }. A B (the intersection of A and B) = {x | x A x

B }. A B (the symmetric difference of A and B) = {x | (x

A xB) xAB} = {x | xAB xAB}. Note: If A, B U, then A B, A B, A B U. C

onsequently, , , and are closed binary operations on (A), and we may also say that (A) is closed under these (binary) operations.

Page 29: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.14: page 140.

Page 30: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.6: Let S, T U. The sets S and T are

called disjoint, or mutually disjoint, when S T = .

Page 31: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Theorem 3.3: If S, T U, then S and T are disjoint if and

only if S T = S T. proof) proof by contradiction.

Page 32: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.7: For a set A U, the complement of A

denote U – A, or , is given by {x | xU xA}.

Page 33: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.15: page 141.

Page 34: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.8: A, B U, the (relative) complement of

A in B, denoted B – A, is given by {x | xB xA}.

Page 35: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.16: page 141.

Page 36: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Theorem 3.4: For any universe U and any sets A, B

U, the following statements are equivalent:

a) A B b) A B = B c) A B = A d) B’ A’

Page 37: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

The Laws of Set Theory: page 142~143.

Page 38: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 39: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Definition 3.9: Let s be a (general) statement dealing with the

equality of two set expressions. Each such expression may involve one or more occurrences of sets (such as A, , B, , etc.), one or more occurrences of and U, and only the set operation symbols and . The dual of s, denoted sd, is obtained from s by replacing (1) each occurrence of and U (in s) by U and , respectively; and (2) each occurrence of and (in s) by and , respectively.

Page 40: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Theorem 3.5: The Principle of Duality.

Let s denote a theorem dealing with the equality of two set expressions (involving only the set operations and as described in Definition 3.9). Then sd, the dual of s, is also a theorem.

Page 41: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Venn diagram Venn diagram is constructed as

follows: U is depicted as the interior of a rectangle, while subsets of U are represented by the interiors of circles and other closed curves. (See Fig 3.5 and 3.6, page 145.)

Page 42: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 43: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 44: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 45: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Membership table: We observe that for sets A, B U, an elem

ent xU satisfies exactly one of the following four situations:

a) xA, xB b) xA, xB c) xA, xB d) xA, xB. When x is an element of a given set, we writ

e a 1 in the column representing that set in the membership table; when x is not in the set, we enter a 0. See Table 3.2 and 3.3, page 147.

Page 46: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

(1) A Venn diagram is simply a graphical representation of a membership table.

(2) The use of Venn diagrams and/or membership tables may be appealing, especially to the reader who presently does not appreciate writing proofs.

Page 47: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.18: page 148.

Page 48: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.19: page 148.

Page 49: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.20

Page 50: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 51: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.21

Page 52: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.22

Page 53: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 54: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

3.3 Counting and Venn Diagrams

Page 55: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.
Page 56: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Fig 3.8 (page 152) demonstrates and , so by the rule of sum, |A| + || = |U| or || = |U| - |A|. If the sets A, B have empty intersection, Fig 3.9 shows |A B| = |A| + |B|; otherwise, |A B| = |A| + |B| - | A B| (Fig 3.10).

Page 57: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Lemma: If A and B are finite sets, then |A B| = |A| + |B| - | A B|. Consequently, finite sets A and B are (m

utually) disjoint if and only if |A B| = |A| + |B|.

In addition, when U is finite, from DeMorgan’s Law we have

|| = || = |U| - |A B| = |U| - |A| - |B|+|A B|.

Page 58: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Lemma: If A, B, C are finite sets, then . From the formula for |A B C| and

DeMorgan’s Law, we find that if the universe U is finite, then

Example 3.25: page 153~154.

Page 59: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

3.4 A Word on Probability

Page 60: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Lemma: Under the assumption of equal likelihoo

d, let Φ be a sample space for an experiment Ε. Any subset A of Φ is called an event. Each element of Φ is called an elementary event, so if |Φ| = n and a Φ, A Φ, then

Pr(a) = The probability that a occurs =, and

Pr(A) = The probability that A occurs =.

Page 61: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.26: page 154.

Page 62: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.27: page 155.

Page 63: Chapter 3 – Set Theory. 3.1 Sets and Subsets  A set is a well-defined collection of objects. These objects are called elements and are said to be members.

Example 3.29: page 155~156.