97. Sets

Definition: Set

A set is a collection of objects called elements or numbers

Definition: Empty Set

Set with no elements

Notation

Definition:

  1. if 𝐴𝐵 if 𝑎𝐴𝑎𝐵
  2. 𝐴=𝐵 if

    𝐴𝐵𝐵𝐴
  3. 𝐴𝐵 if 𝐴𝐵𝐴𝐵

Set Building Notation

All 𝑥 satisfying property 𝑃(𝑥)

{𝑥𝐴,𝑃(𝑥)} or {𝑥,𝑃(𝑋)}

Examples

  1. ={1,2,3,}
  2. ={0,1,1,2,2,}
  3. ={𝑚𝑛:𝑚,𝑛𝑛0}
  4. Odd numbers: {2𝑚1:𝑚}
()

Definition

  1. Union: 𝐴𝐵={𝑥:𝑥𝐴𝑥𝐵}
  2. Intersection: 𝐴𝐵.={𝑧:𝑥𝐴𝑥𝐵}
  3. Difference: 𝐴\𝐵={𝑥:𝑥𝐴𝑥𝐵}
  4. Complement: 𝐴𝐶={𝑥:𝑥𝐴}
  5. Disjount: 𝐴𝐵=

De Morgan

If A, B, C are sets, then:

  1. (𝐵𝐶)𝐶=𝐵𝐶𝐶𝐶
  2. (𝐵𝐶)𝐶=𝐵𝐶𝐶𝐶
  3. 𝐴\(𝐵𝐶)=(𝐴\𝐵)(𝐴\𝐶)
  4. 𝐴\(𝐵𝐶)=(𝐴\𝐵)(𝐴\𝐶)

Proof

Let B, C be sets.

We want to prove that:

(𝐵𝐶)𝐶=𝐵𝐶𝐶𝐶

Since to prove the equality of two sets we need to show that Equation 1 holds:

We need to show that:

(𝐵𝐶)𝐶𝐵𝐶𝐶𝐶

and

𝐵𝐶𝐶𝐶(𝐵𝐶)𝐶

WTS Equation 2:

Let

𝑥(𝐵𝐶)𝐶

Then

𝑥𝐵𝐶𝑥𝐵𝑥𝐶𝑥𝐵𝐶𝑥𝐶𝐶𝑥𝐵𝐶𝐶𝐶

Thus, (𝐵𝐶)𝐶𝐵𝐶𝐶𝐶

WTS Equation 3:

Let

𝑥𝐵𝐶𝐶𝐶

Then

𝑥𝐵𝐶𝐶𝐶𝑥𝐵𝑥𝐶𝑥𝐵𝐶𝑥(𝐵𝐶)𝐶

Thus, 𝐵𝐶𝐶𝐶(𝐵𝐶)𝐶

Thus, 𝐵𝐶𝐶𝐶=(𝐵𝐶)𝐶

Theorem: Induction

={1,2,3,} has an ordering

Axiom: Well ordering property

If 𝑆 and 𝑆 then 𝑆 has a least element: i.e., 𝑥𝑆𝑠.𝑡.𝑥𝑦𝑦𝑆

Let 𝑃(𝑛) be a statement depending on 𝑛. Assume:

  1. (Base Case) 𝑃(1) is True
  2. (Induction Step) If 𝑃(𝑚) is True, then 𝑃(𝑚+1) is True

Then 𝑃(𝑛) is true for all 𝑛

Proof

Let 𝑆={𝑛:𝑃(𝑛)is not True}

WTS: 𝑆=

We will prove this by contradiction

(Assume the negation of the statement 𝑆 and derive a false statement. Rules of logic say that 𝑆 is false.)

Suppose 𝑆, by the well ordering property (WOP) of , 𝑆 has a least element 𝑥𝑆. Since 𝑃(1) is True (assumption), 1𝑆𝑥1, this particular 𝑥>1. Since 𝑥 is the least element of 𝑆 and 𝑥1<𝑥, 𝑥1𝑆. Thus, by the definition of 𝑆, 𝑃(𝑥1) is True. By the second property of induction (Induction Step) 𝑃(𝑋) is True 𝑥𝑆.

From 𝑆, we conclude 𝑥, 𝑥𝑆 and 𝑥𝑆. Contradiction.

Thus, 𝑆=

Using Induction

We want to prove 𝑛,𝑃(𝑛) is True, we need to do 2 things:

  1. Prove base case 𝑃(1)
  2. Prove, if 𝑃(𝑚) is True, 𝑃(𝑚+1) is True

Theorem

𝑃(𝑛)

𝑐1,𝑛,

1+𝑐+𝑐2++𝑐𝑛=1𝑐𝑛+11𝑐

Proof

Prove Equation 4 by induction: 1) (Basic Case)

1+𝑐1=1𝑐1+11𝑐=1+𝑐

2) (Induction Step)

1+𝑐++𝑐𝑚=1𝑐𝑚+11𝑐

We want to prove Equation 4 holds for 𝑛=𝑚+1

We have:

1+𝑐++𝑐𝑚+𝑐𝑚+1=1𝑐𝑚+11𝑐+𝑐𝑚+1=1𝑐𝑚+1+𝑐𝑚+1𝑐𝑚+21𝑐=1𝑐(𝑚+1)+11𝑐

Thus, Equation 4 holds for 𝑛=𝑚+1. So by induction, Equation 4 holds for all 𝑛

Theorem

If 𝑐1, then 𝑛,

(1+𝑐)𝑛1+𝑛𝑐

Proof (By Induction)

1) (Base Case)

(1+𝑐)11+1𝑐

So, Equation 5