Discrete Structures
Lecture Notes, 25 Oct 2010
Last Update: 25 October 2010
Note:
or
material is highlighted
|
Note: A username and password may be required to access certain
documents.
Please
contact
Bill Rapaport.
Index to all lecture notes
…Previous lecture
§2.1: Sets
- Where We've Been:
- I've taught you a language (FOL),
- which we'll "speak" from now on.
- Now we need something to talk about.
- Logicism:
- Many mathematicians, logicians, and philosophers
believe that:
- Math = logic + set theory
- i.e., "sets" are the basic data type of mathematical objects
- All other mathematical objects can be constructed
from,
—i.e., defined in terms of—
sets
- For a graphic history of logicism,
see:
Doxiadis, Apostolos;
Papadimitriou, Christos H.;
Papadatos, Alecos;
& Di Donna, Annie
(2009),
Logicomix
(Bloomsbury USA).
- What is a set?
- Def: A set isdef … ?
∃ 2 possible ways to continue this definition:
- Take "object" as primitive & undefined
- Then define "set" as a "collection" of objects.
- But what's a "collection"?
- This was
Cantor's
definition, but …
- … it led to Russell's paradox:
- Take "set" & "member" as primitive & undefined
- But give axioms for them.
- So: ∃ 2 primitive, undefined types of things:
- sets
- members (or: elements)
& one 2-place relation between them ("set membership"):
- Notation:
- "e ∉ S" for: ¬(e ∈ S)
- "S = {e1, e2, … ,
en}" for:
the set S such that (hereafter: "s.t.")
∀x[x ∈ S ↔
(x=e1)
∨ … ∨
(x=en)]
- This is called an "extensional" description of S;
it shows you all its members.
- A special case of an extensional description:
{} or ∅ for: the empty set
- i.e., the set S s.t. ¬∃x[x ∈
S]
- An "intensional" description of S;
it describes all its members:
{x | P(x)} for: the set of all x (in the
domain) s.t. P(x)
- i.e., the set S s.t. ∀x[x ∈ S
↔ P(x)]
- Note: This gets us in trouble if we let P(x)
= x ∉ x:
- See Rosen, p. 121, #38.
- Bertrand Russell's way out:
sets come in "types";
every set must be of a "higher" type than its members.
(So P(x) is simply ungrammatical.)
- E.g.: The set S consisting of all natural numbers n ≤
4:
0 ∈ S, 1 ∈ S, 2 ∈ S, 3 ∈ S, 4 ∈ S
S = {0,1,2,3,4} (extensional description)
= {x | (x ∈ N) ^
(x ≤ 4)} (intensional description)
- E.g.: The set USP of all US presidents:
USP = {GW, JA, TJ, …, GWB, BO, …}
(extensionally)
= {x | POTUS(x)} (intensionally)
(where "POTUS(x)" = x is President Of The US)
- Def: Set Equality:
Let A,B be sets.
Then A = B =def ∀x[x ∈ A
↔ x ∈ B]
- I.e., a set is "determined by" its members.
- ∴ teams and clubs are not sets!
- Sometimes this is presented as an axiom rather than
a definition:
- Axiom of Extensionality:
A = B ↔ ∀x[x ∈ A
↔ x ∈ B]
- E.g.: {1,2,3} = {3,1,2} = {1,1,1,2,2,3,3,3,3}
- Def: Subset
Let A,B be sets.
Then A is a subset of B =def ∀x[x ∈ A
→ x ∈ B]
- I.e., all A's are Bs.
- Notation: A ⊆ B
- E.g.: Recall that:
W = the whole numbers = {1,2,3,…}
N = the natural numbers = {0,1,2,3,…}
N+ = the positive natural numbers = {1,2,3,…}
Z = the integers =
{…–3,–2,–1,0,1,2,3,…}
Q = the rational numbers
R = the real numbers
C = the complex numbers
∴
W ⊆ N+ ⊆ N
⊆ Z ⊆ Q ⊆ R
⊆ C.
- Thm:
(∀ set S)[(∅ ⊆ S) ∧ (S ⊆ S)]
- Proof of (∅ ⊆ S) is in text.
- Proof of (S ⊆ S):
Show (S ⊆ S):
Show ∀x[x ∈ S → x ∈ S]:
Choose arb. e ∈ S, & show e ∈ S →
e ∈ S:
Supp. e ∈ S, & show e ∈ S:
- Def: Proper Subset
Let A,B be sets.
Then A is a proper subset of B =def
∀x[x ∈ A → x ∈ B]
∧ ∃x[x ∈ B ∧ x ∉ A]
- Notation: A ⊂ B
- ∴ A ⊂ B ↔ A ⊆ B ∧ A ≠ B
- Also: A ⊄ A
- E.g.: N+ ⊂ N
⊂ Z ⊂ Q ⊂ R
⊂ C
- Def: Power Set
Let S be a set.
Then the power set of S =def {A | A ⊆ S}
- Notation: ℘(S)
- E.g.: Let S = {0,1,2}.
Then ℘(S) = {∅, {0}, {1}, {2}, {0,1}, {0,2}, {1,2}, S}
Notes:
- {0} ⊆ S, and 0 &isin S.
These are related, but distinct, facts.
- {0} &isin ℘(S), but 0 ∉ ℘(S)
Next lecture…
Text copyright © 2010 by William J. Rapaport
(rapaport@buffalo.edu)
Cartoon links and screen-captures appear here for your enjoyment.
They are not meant to infringe on any copyrights held by the creators.
For more information on any cartoon, click on it, or contact me.
http://www.cse.buffalo.edu/~rapaport/191/F10/lecturenotes-20101025.html-20101025