MATH 302 Lecture 7

From Notes
Jump to navigation Jump to search

« previous | Monday, September 19, 2011 | next »


Sets

An unordered collection of objects called elements or members.

A set is said to contain its members.


Defining Sets

  1. List (Roster)
    • A={1,3,7}
    • B={1,2,3,…}
  2. Rule (Set builder)
    • C={x∈U|P(x)}
  3. Real intervals
    • (2,5]={x∈ℝ|2<x≤5}


Common Sets

  • natural numbers: ℕ={0,1,2,…}
  • integers: ℤ={…,−1,0,1,…}
    • positive integers: ℤ+
    • multiples: nℤ={x∈ℤ|x=nk for some k∈ℤ}
  • rational numbers: ℚ
  • complex numbers: ℂ
  • null set: ∅={}={x∈U|contradiction}
  • universe: U={x∈U|tautology}


Set Comparison

Equality

Two sets are equal if and only if every element in A is an element in B and every element in B is an element in A.

∀x{x∈A↔x∈B}

Subsets

Set A is a subset of B, denoted by A⊆B, if and only if every element in A is an element in B.

∀x{x∈A→x∈B}

"Element Chasing" Proof. To prove A⊆B, let c be an arbitrary element of A. Then argue to show that c is an element of B.

The empty set is a subset of every set, every set is a subset of itself, and every set is a subset of the universe.

∅⊆S⊆S⊆U

Proper Subset

Set A is a proper subset of B if and only if A⊆B and A≠B. Written A⊂B


Venn diagrams

Graphical version/representation of truth table/membership table for Propoitional logic


Cardinality

denoted by |S| and represents the number of elements in S


Cartesian Product

A×B is the set of all possible ordered pairs between A and B:

A×B={(a,b)|a∈A∧b∈B}

Relationships to Propositional Logic

Connectives

and (∧) intersection (∩)
or (∨) union (∪)
not (¬) complement (A)
conditional (→) subset (⊆)
biconditional (↔) equality (=)

Laws

Law Logical Sets
distribution p∨(q∧r)≡(p∨q)∧(p∨r) A∪(B∩C)=(A∪B)∩(A∪C)
deMorgan's ¬(p∨q)≡¬p∧¬q A∪B‾=A‾∩B‾

To prove these laws, show that the left side is a subset of the right side and vice versa.

Example Proof of deMorgan's Law

Proposition: A∪B‾=A‾∩B‾

Proof (direct). To prove the above, we need to prove the following:

  1. A∪B‾⊆A‾∩B‾
  2. A‾∩B‾⊆A∪B‾

Proof of (1). Let x∈A∪B‾ be an arbitrary element.

  1. x∉A∪B (definition of complement)
  2. ¬(x∈A∪B) (definiton of negation)
  3. ¬(x∈A∨x∈B) (definition of union)
  4. ¬(x∈A)∧¬(x∈B) (deMorgan's law)
  5. x∉A∧x∉B (notation)
  6. x∈A‾∧x∈B‾ (definition of complement)
  7. x∈A‾∪B‾ (definition of intersection)

Proving part (1).

Proof of (2). reverse the proof of part (1).

Q.E.D.
Note: Be careful! Not all proofs are reversible