This document provides an outline and definitions for fundamental concepts in set theory and discrete mathematics, including:
1. Definitions of sets, operations on sets like union and intersection, and relations.
2. Functions, relations, and properties like domains, ranges, and composition.
3. Partial orders, trees, groups, and other algebraic structures.
9. U U
U U A A( U ) A
A = {x ∈ U : x ∈ A},
U A
U {A : A ⊆ U}, U
P(U) 2U .
A
10. A, B A, B
A B A ∪ B;
A B A ∩ B;
A B A − B.
A ∪ B = {x : (x ∈ A) or (x ∈ B)};
A ∩ B = {x : (x ∈ A) and (x ∈ B)} = {x ∈ A : x ∈ B};
A − B = {x : (x ∈ A) and (x ∈ B)} = {x ∈ A : x ∈ B}.
A
12. (A) = A
A ∪ (A ∩ B) = A
A ∩ (A ∪ B) = A
A ∪ (B ∪ C) = (A ∪ B) ∪ C
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A∪B =A∩B
A∩B =A∪B
A
13. ( )
P(U) F (U ) F
U A, B ∈ F A ∪ B, A ∈ F
F0 = {∅, U}
A
15. a, b (a, b).
(a, b), (c, d) iff a = c, b = d
A,B
A × B = {(a, b) : (a ∈ A) and (b ∈ B)}.
n A1 · · · An
A1 × A2 × · · · × An
n
i=1 Ai .
A
16. A, B, C
A × ∅ = ∅ × A = ∅,
A = ∅, B = ∅ A=B A × B = B × A.
A × (B × C) = (A × B) × C;
A × (B ∪ C) = (A × B) ∪ (A × C);
A × (B ∩ C) = (A × B) ∩ (A × C);
(B ∪ C) × A = (B × A) ∪ (C × A);
(B ∩ C) × A = (B × A) ∩ (C × A).
A
17. ( )
A, B A B R A×B
A a B b a, b R (a, b) ∈ R.
aRb R(a, b).
A
18. A=B A × A,
∅, idA = {(a, a) : a ∈ A}.
A B R R
dom(R) = {x| y (x, y ) ∈ R};
ran(R) = {y | x (x, y ) ∈ R}.
A
19. ( )
A B R B C S
R
R ∼ = {(x, y )|(y , x) ∈ R}.
R S
R ◦ S = {(x, z)| y (xRy ) (ySz)}.
R∼ B A R◦S A C
A
21. Example (Russell & Novig: AIMA, Chapter 5)
Consider the following binary constraint problem P
V = {WA, SA, NT , Q, NSW , V , T }
U = {red, green, blue}
C: no neighboring regions have the same color
A
29. U R (reflexive) x ∈U
(x, x) ∈ R R idU ⊆ R.
U R x, y ∈ U
(x, y ) ∈ R (y , x) ∈ R R = R∼.
U R x, y ∈ U,
(x, y ) ∈ R (y , x) ∈ R x =y R ∩ R ∼ ⊆ idU .
U R x, y , z ∈ U,
(x, y ) ∈ R (y , z) ∈ R (x, z) ∈ R, R ◦ R ⊆ R.
A
35. ( )
P U, U P
U R R P- P R
U
r (R) R r (R) = R ∪ idA .
s(R) R s(R) = R ∪ R ∼ .
t(R) R
∞
t(R) = R ∪ R 2 ∪ R 3 ∪ · · · = Ri .
i=1
A
36. X X ,
a a;
if a b and b a then a = b;
if a b and b c then a c.
X
(partially ordered set, or poset)
A
37. An example of poset
The Hasse diagram of (℘({x, y , z}), ⊆)2
2
http://en.wikipedia.org/wiki/Hasse_diagram
A
38. Total order and well-order
A partial order
is total (or linear) if for any a, b ∈ X , a b or b a
is a well-order if every nonempty subset Y of X has a least
element
A
39. Tree
A (rooted) tree is a poset (T , ) such that
T has a unique least element, called the root
the predecessors of every node are well ordered by
A path on a tree T is a maximally linearly ordered subset of T .
A
40. Group
A group is a nonempty set G with a binary operation
◦ : G × G → G such that (a ◦ b) ◦ c = a ◦ (b ◦ c) for all
a, b, c ∈ G. An element e in G is called an identity if e ◦ x = x ◦ e
for any x. A semi-group that has an identity is called a monoid.
A semi-group with an identity e is a group if each element x has
a unique inverse y such that x ◦ y = y ◦ x = e.
A