Set Theory
927 words
5 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Set Theory ## ๐ฏ Learning Objectives - Define sets using roster and set-builder notation - Perform set operations: $\cup$, $\cap$, $-$ (difference), $\overline{A}$ (complement) - Prove set identities using element arguments - Understand power sets and Cartesian products - Compare finite and infinite cardinalities...

Set Theory
๐ฏ Learning Objectives
- Define sets using roster and set-builder notation
- Perform set operations: โช, โฉ, โ (difference), A (complement)
- Prove set identities using element arguments
- Understand power sets and Cartesian products
- Compare finite and infinite cardinalities
5.1 Intuition: The Building Blocks of Mathematics
A set is a collection of distinct objects. It's the most fundamental concept in mathematics โ everything else (numbers, functions, relations) is built from sets.
๐ Key Insight: Two sets are equal iff they have exactly the same elements. Order and repetition don't matter.
5.2 Definitions
Basic Notation
- A={1,2,3} โ roster notation
- B={xโN:x>5} โ set-builder notation
- โ โ empty set (or {})
- aโA โ a is an element of A
- AโB โ A is a subset of B
Important Sets
- N={1,2,3,โฆ} โ natural numbers
- Z={โฆ,โ2,โ1,0,1,2,โฆ} โ integers
- Q={qpโ:p,qโZ,q๎ =0} โ rationals
- R โ real numbers
- C โ complex numbers
5.3 Set Operations
| Operation | Notation | Definition | Example ( A={1,2},B={2,3} ) |
|---|---|---|---|
| Union | AโชB | {x:xโAโจxโB} | {1,2,3} |
| Intersection | AโฉB | {x:xโAโงxโB} | {2} |
| Difference | AโB | {x:xโAโงxโ/B} | {1} |
| Complement | A | {xโU:xโ/A} | Depends on universe U |
5.4 Set Identities
| Name | Identity |
|---|---|
| Commutative | AโชB=BโชA ; AโฉB=BโฉA |
| Associative | (AโชB)โชC=Aโช(BโชC) |
| Distributive | Aโฉ(BโชC)=(AโฉB)โช(AโฉC) |
| De Morgan | AโชB=AโฉB ; AโฉB=AโชB |
| Identity | Aโชโ =A ; AโฉU=A |
| Domination | AโชU=U ; Aโฉโ =โ |
Proving Set Identities: Element Method
Prove Aโฉ(BโชC)=(AโฉB)โช(AโฉC):
Proof (โ): Let xโAโฉ(BโชC). Then xโA AND xโBโชC.
- Since xโBโชC, either xโB or xโC.
- If xโB, then xโAโฉB, so xโ(AโฉB)โช(AโฉC).
- If xโC, then xโAโฉC, so xโ(AโฉB)โช(AโฉC). Proof (โ): Let xโ(AโฉB)โช(AโฉC).
- Either xโAโฉB or xโAโฉC.
- In either case, xโA. And xโB or xโC, so xโBโชC.
- Therefore xโAโฉ(BโชC). โก
5.5 Power Sets
The power set P(A) is the set of all subsets of A.
If โฃAโฃ=n, then โฃP(A)โฃ=2n.
Example: A={a,b}, P(A)={โ
,{a},{b},{a,b}}.
5.6 Cartesian Products
AรB={(a,b):aโA,bโB} โ ordered pairs.
If โฃAโฃ=m and โฃBโฃ=n, then โฃAรBโฃ=mn.
5.7 Cardinality
Finite sets: โฃAโฃ = number of elements.
Infinite sets: Two sets have the same cardinality if there's a bijection between them.
- โฃNโฃ=โฃZโฃ=โฃQโฃ (countably infinite)
- โฃRโฃ is uncountably infinite (Cantor's diagonal argument)
โ Practice Questions
Q1: If A={1,2,3}, B={2,3,4}, find AโชB, AโฉB, AโB, BโA.
>f(n)=โฉโจโงโ02nโโ2nโ1โโn=1nย evennย odd,n>1โ>SolutionAโชB={1,2,3,4}, AโฉB={2,3}, AโB={1}, BโA={4}. Q2: Prove AโฉB=AโชB using element argument. Solution(โ): Let xโAโฉB. Then xโ/AโฉB, so xโ/A or xโ/B. If xโ/A, then xโAโAโชB. Similarly if xโ/B. (โ): Let xโAโชB. Then xโ/A or xโ/B, so xโ/AโฉB, hence xโAโฉB. Q3: How many subsets does {a,b,c,d} have? Solution24=16 subsets. Q4: Prove AโB iff AโฉB=A. Solution(โ) Assume AโB. If xโA, then xโB, so xโAโฉB. Thus AโAโฉB. Also AโฉBโA always. So AโฉB=A. (โ) Assume AโฉB=A. If xโA, then xโAโฉB, so xโB. Thus AโB. Q5: Show โฃNโฃ=โฃZโฃ by constructing a bijection. SolutionDefine f:NโZ as:
This gives: 1โ0, 2โ1, 3โโ1, 4โ2, 5โโ2, etc. It's bijective. Join Discord PreviousAdvanced ProofsNextSet Operation Proofs