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={xU|P(x)}
  3. Real intervals
    • (2,5]={x|2<x5}


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: ={}={xU|contradiction}
  • universe: U={xU|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{xAxB}

Subsets

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

x{xAxB}

"Element Chasing" Proof. To prove AB, 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.

SSU

Proper Subset

Set A is a proper subset of B if and only if AB and AB. Written AB


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)|aAbB}

Relationships to Propositional Logic

Connectives

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

Laws

Law Logical Sets
distribution p(qr)(pq)(pr) A(BC)=(AB)(AC)
deMorgan's ¬(pq)¬p¬q AB=AB

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: AB=AB

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

  1. ABAB
  2. ABAB

Proof of (1). Let xAB be an arbitrary element.

  1. x∉AB (definition of complement)
  2. ¬(xAB) (definiton of negation)
  3. ¬(xAxB) (definition of union)
  4. ¬(xA)¬(xB) (deMorgan's law)
  5. x∉Ax∉B (notation)
  6. xAxB (definition of complement)
  7. xAB (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