Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Example: Z ⊆ R.
{1, 2} ⊆ {1, 2, 3, 4}
1
More on Subsets
2
Creating New Sets - Set Operations
Binary Operations
3
Some Proofs about Sets
4
Theorem: For any sets A and B, A ⊆ A ∪ B.
5
Venn Diagrams and More Set Operations
Sets and relationships between sets are represented visu-
ally using Venn Diagrams, which were introduced by
mathematician John Venn.
Venn Diagrams
• The universal set U, which contains all objects
under consideration, is represented by a rectangle.
• Circles and other shapes are used inside the rectangle
to represent sets (which are subsets of U).
• Elements of U (or other sets) are represented by dots.
6
More Set Operations
7
Set Identities
Identity Name
A∪∅=A identity laws
A∩U =A
A∪U =U domination laws
A∩∅=∅
A∪A=A idempotence
A∩A=A
(Ac)c = A double complement law
A∪B =B∪A commutative laws
A∩B =B∩A
A ∪ (B ∪ C) = (A ∪ B) ∪ C associative laws
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) distributive laws
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A∪B =A∩B DeMorgan’s laws
A∩B =A∪B
A ∪ (A ∩ B) = A absorption laws
A ∩ (A ∪ B) = A
A ∪ Ac = U complement laws
A ∩ Ac = ∅
8
Proving Set Equality
Set equality proofs are usually a special type of linear equivalence proof
that uses definitions about set operations and logical identities.
Example: Prove A ∩ B = A ∪ B
Let x ∈ A ∩ B
≡x∈ / A ∩ B {Definition of set complement}
≡ ¬(x ∈ A ∩ B) {Meaning of ∈ / abbreviation}
≡ ¬(x ∈ A ∧ x ∈ B) {Definition of set intersection}
≡x∈ / A∨x∈ / B {De Morgan, ∈ / abbreviation}
≡ x ∈ A ∨ x ∈ B {Definition of set complement (twice)}
≡ x ∈ A ∪ B {Definition of set union}
Therefore ∀x(x ∈ A ∩ B ↔ x ∈ A ∪ B) {Universal Generalization}
In other words: A ∩ B = A ∪ B {Definition of set equality}
Note: Some set equality proofs are more challenging, and require two sepa-
rate subset proofs instead. However, your general approach to a set equality
proof should be to do a linear equivalence proof. If, along the way, you find
that some necessary step can only be accomplished with an inference (not an
equivalence), then your set equality proof becomes a subset proof, and you
will also need to do another subset proof in the opposite direction.
1
More Proofs of Identities
Proof:
11
More on the Cardinality of a Set
12
The Power Set
13
Cartesian Products
14
More on Cartesian Products
15