Discrete Structures
Lecture Notes, 1 Dec 2010
Last Update: 1 December 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
§§8.1; 8.5: Relations
- Database Theory as the Computational Theory of Relations:
- All set operations apply to relations: That's how databases work!
- E.g.)
- E.g.)
- Equivalence Relations:
- Let ∼ ⊆ A × A.
Then ∼ is an equivalence relation on A =def
R is reflexive, symmetric, & transitive.
- Notation: "a ∼ b" for: (a,b) ∈ ∼
(read: "a is equivalent to b")
- E.g.)
Let WFPL = {A | A is a well-formed proposition of propositional
logic}
Let ≡ ⊆ WFPL×WFPL s.t. A≡B iff tval(A)=tval(B)
i.e.) iff (A↔B) is a tautology
Then ≡ is an equivalence relation on WFPL
- proof:
tval(A)=tval(A)
∴ A≡A
tval(A)=tval(B) → tval(B)=tval(A)
∴ A≡B →
B≡A
(tval(A)=tval(B) ∧ tval(B)=tval(C)) →
tval(A)=tval(C)
∴ (A≡B ∧ B≡C) → A≡C
QED
- Def:
Let A1, …, An ⊆ A.
Then:
- The Ai are mutually exclusive =def
they are "pairwise disjoint"
- i.e.) (∀Ai, Aj)[Ai
∩ Aj = ∅]
- The Ai are jointly exhaustive =def
∪iAi = A
- Let A1, …, An ⊆ A be mutually
exclusive
& jointly exhaustive.
Then {A1, …, An} isdef
a partition of A.
- Def:
Let ∼ be an equivalence relation on set A.
Let a ∈ A.
Then:
- the equivalence class of a under ∼
=def
{a′ ∈ A | a′ ∼ a}
- α is a representative of [a]∼ =def
α ∈ [a]∼.
- Thm:
Let A be a set.
Then:
(∀ equiv relation ∼ ⊆ A×A)(∃ A1,…,An ⊆
A)[{A1,…,An} is a partition of A]
- i.e.) ∀ equivalence relation, ∃ partition
i.e.) every equiv relation "induces" a partition
- proof sketch:
Let ∼ be an equiv relation on A.
Let P = {[a1]∼, …,
[an]∼} be the set of all
equivalence classes of elements of A under ∼.
Then ∪i[ai]∼ =
A.
∴ They are jointly exhaustive.
And (∀i, j)[[ai]∼ ∩
[aj]∼ = ∅
∴ They are mutually exclusive.
∴ P is a partition of A.
QED.
- Thm:
(∀ partition {A1,…,An} of A)(∃
∼ that is an equivalence relation on A]
- i.e.) ∀ partition, ∃ equivalence relation
- proof sketch,
Let P = {A1,…,An} be a partition of A.
Let a,b ∈ A.
Let a ∼ b =def ∃Ai[a,b ∈ Ai].
Show ∼ reflexive, symmetric, & transitive.
QED
- Best Example: Q as fractions:
- Consider the set of all fractions F = {numerals m/n
| m,n ∈ Z}
- numerals are symbols that name
numbers:
- "1", "one", "un", "uno", and "I"
are 5 different
numerals
that all name the same number (namely, S(0)).
- "½" ∈ F;
"2/4" ∈ F;
and those are two different members of F
- As numerals, "½" ≠ "2/4".
- As numbers, ½ = 2/4
- Better: As numerals, ½ ∼ 2/4,
where a/b ∼ c/d =def ad=bc
- The relation between 2 fractions
when they can be reduced to the
same lowest common denominator
is an equivalence relation that
partitions F
into subsets of equivalent fractions
- Let ∼ be that equivalence relation on F, as above.
Then [½]∼ = [2/4]∼
& any fraction a/b ∼ ½ can represent any other fraction
that = ½.
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-20101201.html-20101201