Docsity

Set Theory, Counting and Probability - Lecture Notes | MATH 245, Study notes of Discrete Mathematics

Partial preview of the text

Download Set Theory, Counting and Probability - Lecture Notes | MATH 245 and more Study notes Discrete Mathematics in PDF only on Docsity!

Math^ 245:

Dis^ rete^

Mathemati

s

Set^ Theory^

/^ Counting^

and^ Probabilit

y

Prop^ erties^ of

Sets,^ Pro^ ofs

&^ Dispro^ ofs

/^ Intro^ du^ tion Le^ ture^ Notes

Peter^ Blomgren Department^

of^ Mathemati

s^ and^ Statisti

s San^ Diego^ State

University San^ Diego,^ CA

[email protected]://terminus.SDSU.EDU $Id:^ lecture.tex,v

1.8^ 2006/11/

19:59:22^ blomgren

Exp^ $

Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 1/

Prop^ erties

of^ Sets We^ ontinue

our^ study^ of

sets... In^ parti^ ular^

we^ lo^ ok^ at^ element

based^ metho

ds^ for^ proving

relations

b^ etween^ sets. Also,^ we^ will

see^ some^ examples

of^ algebrai^

te^ hniques^ (metho

ds

that^ use^ already

known^ prop

erties^ of^ sets

to^ transform

expressions)

that^ involve^

set^ relations. Our^ basi^ building

blo^ ks^ are^

the^ union^ ,^ interse

tion^ ,^ dieren

e

and^ omplement

of^ sets. Note^ that^ these

op^ erations^ tak

e^ pre^ eden^ e

(are^ exe^ uted

b^ efore)^ over

set^ in^ lusion,

i.e.^ A^ ∩^ B^ ⊆

C^ ⇔^ (A

∩^ B)^ ⊆^ C Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 2/

How^ Do^ W

e^ Prove^ Su

h^ Relations? Element Argument: The basic method forproving that one set is a subset of another To prove^ that^ a^ set^

(A)^ is^ a^ subset

of^ another^ set

(B):

(1)^ Let^ x^ b

e^ a^ parti^ ular,

but^ arbitrarily

hosen^ element

of^ A.

(2)^ Show^ that

x^ must^ ne^ essa

rily^ b^ e^ an^ element

of^ B.

As^ always^ when

we^ are^ trying

to^ prove^ something,

we^ state^ the

as-

sumptions,^ then

use^ the^ denitions

to^ express^ what

the^ assumptions

mean.In^ parti^ ular,

for^ set^ theo

reti^ al^ pro^ ofs,

we^ use^ the^

pro^ edural^

ver-

sions^ of^ the

set^ denitions

[next^ slide℄^

to^ express^ the

meaning^ of

the^ assumptions.Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 4/

Pro^ edural

Versions^ of

Set^ Denitions Procedural Versions of Set Definitions Let X and^ Y^ b^ e^ subsets

of^ a^ universal

set^ U^ and^ supp

ose^ x^ ∈^ U

and^ y^ ∈^ U^. [1℄^ x^ ∈^ X

∪^ Y^ ⇔^ x^ ∈

X^ or^ x^ ∈^ Y^

[2℄^ x^ ∈^ X^

∩^ Y^ ⇔^ x^ ∈^

X^ and^ x^ ∈^ Y

[3℄^ x^ ∈^ X^

−^ Y^ ⇔^ x^ ∈^

X^ and^ x^6 ∈^ Y

c[4℄ x ∈ X ⇔^ x^6 ∈^ X. [5℄^ (x, y)^ ∈

X^ ×^ Y^ ⇔^ x

∈^ X^ and^ y^ ∈

Y^.

With^ these^ to

ols^ handy,^ we

an^ prove^ the

statements^ on

slide^ 3.

Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 5/

Pro^ ofs^ of^ A

⊆^ A^ ∪^ B^ and

A^ ∩^ B^ ⊆^ A

Statement:^

A^ ⊆^ A^ ∪^ B.

Pro^ of:^ Supp

ose^ A^ and^ B

are^ sets.^ Let

x^ ∈^ A.^ Now

the^ statement

(x^ ∈^ A)^ ∨^ (

x^ ∈^ B)^ is^ ertainly

true,^ hen^ e^

by^ the^ denition

of^ the

union^ A^ ∪^ B

,^ we^ must^ have

x^ ∈^ (A^ ∪^ B

).^ 

Statement:^

A^ ∩^ B^ ⊆^ A.

Pro^ of: Here^ we^ have

used Generalization (Disjunctive Addition) p ∴ p ∨^ q

Specialization (Conjunctive Simplification) p ∧^ q ∴ p Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 6/

Pro^ ofs^ of^ A

⊆^ A^ ∪^ B^ and

A^ ∩^ B^ ⊆^ A

Statement:^

A^ ⊆^ A^ ∪^ B.

Pro^ of:^ Supp

ose^ A^ and^ B

are^ sets.^ Let

x^ ∈^ A.^ Now

the^ statement

(x^ ∈^ A)^ ∨^ (

x^ ∈^ B)^ is^ ertainly

true,^ hen^ e^

by^ the^ denition

of^ the

union^ A^ ∪^ B

,^ we^ must^ have

x^ ∈^ (A^ ∪^ B

).^ 

Statement:^

A^ ∩^ B^ ⊆^ A.

Pro^ of:^ Supp

ose^ A^ and^ B

are^ sets,^ and

x^ ∈^ (A^ ∩^

B).^ By^ the

denition^ of^

the^ interse^ tion

(x^ ∈^ A)^ ∧^ (x

∈^ B).^ In^ pa

rti^ ular^ x^ ∈^ A

 Here^ we^ have

used Generalization (Disjunctive Addition) p ∴ p ∨^ q

Specialization (Conjunctive Simplification) p ∧^ q ∴ p Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 6/

Set^ Identities

2 of^3

4.^ Identity laws:

(U^ a^ ts^ as^ an

identity^ for^ ∩

,^ and^6 O^ a^ ts^

as^ a^ zero

for^ ∪):^ For^ all

sets^ A, A^ ∪ 6^ O^ =^ A,

and^ A^ ∩^

U^ =^ A.

5.^ Complement laws:

For^ all^ sets^

A,

c^ A ∪ A=^ U, and^ A^ ∩

c^ A=^6 O

6.^ Double complement law:

For^ all^ sets^

A, cc (^) (A)= A.

7.^ Idempotent laws:

For^ all^ sets^

A,

A^ ∩^ A^ =^ A,^

and^ A^ ∪^ A^

=^ A.

Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 8/

Set^ Identities

3 of^3

8.^ Universal bounds laws:

For^ all^ sets^

A,

A^ ∪^ U^ =^ U,^

and^ A^ ∩ 6^ O^

=^6 O

9.^ De Morgan’s laws:

For^ all^ sets^

A^ and^ B, c^ (A ∪ B)=^ c^ cA∩^ B,^ and

c^ (A ∩ B)= c^ c A∪^ B.

10.^ Absorption laws:

For^ all^ sets^

A^ and^ B A^ ∪^ (A^ ∩^ B) =

A,^ and^ A

∩^ (A^ ∪^ B) =

A.

11.^ Complements of

U^ and^^6 O: c^ U^ =^6 O,^

c^ and 6 O=^ U

12.^ Set difference law:

For^ all^ sets^

A^ and^ B, cA − B =^ A^ ∩^ B. Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 9/

Pro^ of:^ A^ ∪

(B^ ∩^ C) = (

A^ ∪^ B)^ ∩^ (A

∪^ C)^

1 of^2

Pro^ of:^ Supp

ose^ A^ and^ B

are^ sets. [A^ ∪^ (B^ ∩^ C

)^ ⊆^ (A^ ∪^ B)

∩^ (A^ ∪^ C)℄^

^ Supp^ ose^ x

∈^ A^ ∪^ (B^ ∩

C).

By^ denition

of^ union^ x^ ∈

A^ or^ x^ ∈^ (B

∩^ C).

Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 11/

Pro^ of:^ A^ ∪

(B^ ∩^ C) = (

A^ ∪^ B)^ ∩^ (A

∪^ C)^

1 of^2

Pro^ of:^ Supp

ose^ A^ and^ B

are^ sets. [A^ ∪^ (B^ ∩^ C

)^ ⊆^ (A^ ∪^ B)

∩^ (A^ ∪^ C)℄^

^ Supp^ ose^ x

∈^ A^ ∪^ (B^ ∩

C).

By^ denition

of^ union^ x^ ∈

A^ or^ x^ ∈^ (B

∩^ C).

Case^ x^ ∈^ A:^

Sin^ e^ x^ ∈^

A,^ x^ ∈^ A^

∪^ B^ by^ denition

of^ union

and^ also^ x^ ∈

A^ ∪^ C^ by^

denition^ of^

union.^ Hen^

e

x^ ∈^ (A^ ∪^ B)

∩^ (A^ ∪^ C)^ b

y^ denition^ of

interse^ tion.

Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 11/

Pro^ of:^ A^ ∪

(B^ ∩^ C) = (

A^ ∪^ B)^ ∩^ (A

∪^ C)^

2 of^2

Pro^ of:^ Supp

ose^ A^ and^ B

are^ sets. [(A^ ∪^ B)^ ∩^ (

A^ ∪^ C)^ ⊆^ A

∪^ (B^ ∩^ C)℄^

^ Supp^ ose^ x

∈^ (A∪B)∩

(A∪

C).^ By^ denition

of^ interse^ tion

x^ ∈^ (A^ ∪^ B

)^ and^ x^ ∈^ (A

∪^ C).

Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 12/

Pro^ of:^ A^ ∪

(B^ ∩^ C) = (

A^ ∪^ B)^ ∩^ (A

∪^ C)^

2 of^2

Pro^ of:^ Supp

ose^ A^ and^ B

are^ sets. [(A^ ∪^ B)^ ∩^ (

A^ ∪^ C)^ ⊆^ A

∪^ (B^ ∩^ C)℄^

^ Supp^ ose^ x

∈^ (A∪B)∩

(A∪

C).^ By^ denition

of^ interse^ tion

x^ ∈^ (A^ ∪^ B

)^ and^ x^ ∈^ (A

∪^ C).

Case^ x^ ∈^ A:^

We^ an^ immediately

on^ lude^ that

x^ ∈^ A^ ∪^ (B

∩^ C)

by^ denition^

of^ union. Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 12/

Pro^ of:^ (A^

c^ c∪ B)=^ A c^ ∩^ B

Alternative

Approa^ h

If^ we^ feel^ mo

re^ omfortable

arguing^ a^ pro

of^ from^ the^ la

ws^ of^ logi^ ,^ b

e

an^ onvert^ to

an^ equivalent

problem... Pro^ of:^ Supp

ose^ A^ and^ B

are^ subsets^ of

a^ universal^ set

U^.^ Dene^ the

predi^ ates^ P^

(x)^ and^ Q(x

): P (x) =  x^ ∈^ A^ ,^ Q(

x) =^ ^ x^ ∈^ B

^.

Our^ two^ sets

are c^ (A^ ∪^ B)=^

{x^ ∈^ U^ | ∼^ (

P^ (x)^ ∨^ Q(x))

}

c^ c (A∩^ B)^ = {x^ ∈^ U^ |^ (∼

P^ (x))^ ∧^ (∼^

Q(x))}

Sin^ e ∼^ (P^ (x)^ ∨^ Q

(x))^ ≡^ (∼^ P

(x))^ ∧^ (∼^ Q(

x))^ [De Morgan’s laws of logic

the^ sets^ must

b^ e^ equal.^  Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 13/

The^ Empt

y^ Set^ ^ Pro

of^ Te^ hnique Element Method for Proving a Set Equals the Empty Set To prove^ that^ a^ set^

S^ equals^ to^ the

empty^ set^6 O

,^ prove^ that^ S

has

no^ elements.

^ To^ a^ hieve

this,^ supp^ ose

S^ has^ an^ element

and

derive^ a^ ontradi

tion. Prop^ osition:

Given^ any^ tw

o^ sets^ A^ and^

B,^ (A−B)^ and

B^ are^ disjoint.

Pro^ of:^ [by contradiction

Set Theory / Counting and Probability: Properties of Sets, Proofs & Disproofs / Introduction – p. 14/