Maths 1: Week 01 - The Master Encyclopedia of Sets & Relations
1. The Genesis: Why Sets Exist 📜
1.1 The Origin Story
Before the late 19th century, mathematics was a collection of different “islands”—Geometry, Algebra, and Calculus—with no single bridge connecting them. In the 1870s, Georg Cantor revolutionized thought by introducing Set Theory. He realized that everything in math—numbers, shapes, functions—could be described as a “Collection.”
Sets are not just a topic in math; they are the Mother Tongue of all modern mathematics. Without sets, we cannot define probabilities, we cannot build databases, and we cannot understand infinity.
1.2 The Philosophical Intuition
A Set is a “Container of Distinction.” It allows us to draw a boundary around a group of objects and say: “These belong together, and everything else does not.” This act of grouping is the first step in human logic.
2. Axiomatic Foundations: The Rules of the Universe 🏛️
2.1 What is a Set? (The Naive vs. Axiomatic View)
Initially, people thought a set was just “any collection you can dream of.” However, this led to Russell’s Paradox (the set of all sets that don’t contain themselves—it breaks logic!).
To fix this, mathematicians created Zermelo-Fraenkel Set Theory (ZFC). Essentially, we follow these core rules:
- Extensionality: Two sets are the same if they have the exact same members. .
- Empty Set: There exists a set with nothing in it, denoted as or . It is the “Atom” of Set Theory.
- Well-Definedness: For any object , it must be unequivocally true or false that .
2.2 Notations & Symbols (The Alphabet)
- : is an element of set .
- : is a subset of (Every item in is also in ).
- : is a proper subset (A is in B, but B is bigger).
- : The Cardinality (the count of how many unique items are inside).
3. The Calculus of Sets: Universal Operations 🛠️
3.1 The Big Four Operations
Everything you do with sets involves these four interactions. Imagine Two Circles ( and ) in a Box ():
- Union (): The “Collector.”
- Logic: .
- Intuition: Combine both circles into one single shape.
- Intersection (): The “Filter.”
- Logic: .
- Intuition: Only the shared area where the circles overlap.
- Difference ( or ): The “Cutter.”
- Logic: .
- Intuition: Take circle A and slice off the part that touches B.
- Complement ( or ): The “Void.”
- Logic: .
- Intuition: Everything in the entire box EXCEPT A.
3.2 De Morgan’s Laws (The Mirror Laws)
These laws are the secret to simplifying complex logic. They tell us how the “Not” operator flips operations:
- (The “Not” of a Union is the Intersection of the Nots).
- (The “Not” of an Intersection is the Union of the Nots).
4. Relations: The Architecture of Connectivity 🕸️
4.1 The Cartesian Product ()
Before a relation can exist, we need a “Space” of all possible connections.
- Definition: is the set of all ordered pairs where and .
- Size: .
4.2 What is a Relation?
A Relation from to is simply a subset of the Cartesian Product. It is a selection of specific pairs that “matter.”
4.3 The Trinity of Properties (The Soul of a Relation)
When we look at a relation on a single set , we analyze it through three lenses:
Lens 1: Reflexivity
- The Rule: For every , the pair must be in .
- Mental Model: “Everyone is their own friend.”
- Visual: If you draw the relation as a matrix, the main diagonal must be all s.
Lens 2: Symmetry
- The Rule: If , then MUST be in .
- Mental Model: “Friendship is a two-way street.”
- Visual: The matrix is symmetric across the diagonal.
Lens 3: Transitivity
- The Rule: If and , then MUST be in .
- Mental Model: “A friend of my friend is my friend.”
- Visual: The most complex to spot. Usually requires checking every chain of length 2.
5. Equivalence Relations & Partitions 🧩
5.1 The Equivalence Standard
If a relation is Reflexive, Symmetric, AND Transitive, it is an Equivalence Relation.
- The Power: It allows us to group elements into Equivalence Classes.
- Example: “Having the same remainder when divided by 2” is an equivalence relation. It splits all numbers into two piles: Evens and Odds.
5.2 The Partition Theorem
A set of equivalence classes forms a Partition of set . This means:
- The piles don’t overlap.
- If you combine all piles, you get the whole set back. This is the mathematical basis for “Categorization.”
6. The Encyclopedia of Worked Examples (10 Case Studies) 📚
Case 1: The Power Set Construction
Problem: Construct the Power Set of .
- Thinking Process: There are 3 elements, so there must be subsets.
- The Build:
- Size 0:
- Size 1:
- Size 2:
- Size 3:
- Result: .
Case 2: PIE for Three Sets (The Survey Trap)
Problem: In a group of 100 students, 50 like Python, 40 like Java, 30 like C++. 20 like Python & Java, 15 like Java & C++, 10 like Python & C++. 5 like all three. How many like at least one?
- Thinking Process: Use Principle of Inclusion-Exclusion (PIE).
- Procedure: .
- Calculation: .
- Result: 80 students like at least one language.
Case 3: Proving Reflexivity in Algebra
Problem: Let be a relation on defined by is even. Is it reflexive?
- Thinking Process: For reflexivity, we need for every .
- Logic: means is even. . Is even? Yes.
- Result: is reflexive.
Case 4: The Transitivity Test
Problem: on . Is it Transitive?
- Thinking Process: Look for a chain. and exists.
- Requirement: For transitivity, we need the shortcut .
- Check: is NOT in .
- Result: is NOT transitive.
Case 5: Defining the Codomain vs Range
Problem: where . Identify the Codomain and Range.
- Thinking Process: Codomain is the “Target Box” given in the definition (). Range is the “Actual Outputs.”
- Logic: Squaring any real number never gives a negative.
- Result: Codomain = . Range = .
Case 6: The Bijection Proof
Problem: Prove is bijective from .
- Step 1: Injective: . (Yes!)
- Step 2: Surjective: Let . Solve for : . Since is always a real number, every has an . (Yes!)
- Result: It is Bijective.
Case 7: Complement of Intersection
Problem: . Find .
- Step 1: Find intersection: .
- Step 2: Everything in except 4 and 6.
- Result: .
Case 8: Number of Relations
Problem: If , how many possible relations exist on ?
- Thinking Process: A relation is a subset of .
- Step 1: Find .
- Step 2: Number of subsets of a set with 9 items is .
- Result: possible relations.
Case 9: Inverse Function Calculation
Problem: Find for .
- Step 1: .
- Step 2: .
- Step 3: .
- Step 4: .
- Result: .
Case 10: Symmetry vs Antisymmetry
Problem: on . Is it Antisymmetric?
- Thinking Process: Antisymmetry says: If and exist, then must equal .
- Check: and exist. But .
- Result: NO, it’s not antisymmetric. It is, however, Symmetric.
7. Fundamental “How-To” Recipes 🍳
Recipe: Listing a Partition
- Find the Equivalence Classes: Pick an element, find everything related to it. That’s Class 1.
- Pick an Unused Element: Repeat until everyone has a class.
- The List: Your final list is the partition.
Recipe: Identifying Functions in Pairs
- Check Lead Elements: Look at the first number in every pair .
- Check for Repeats: If any value appears twice with different values, it is NOT a function.
- Check Coverage: Make sure every is represented at least once.
8. Encyclopedia Mastery Challenge 🏆
- The Axiom Test: Why can’t we have a set of “all sets”? (Research Russell’s Paradox).
- The Power Trick: If a set has total relations, how many are reflexive? (Advanced: Think about the diagonal of the matrix).
- The Composite Range: If and , what is the Domain of ? Explain the “security check” logic in depth.
- The Partition Challenge: Given a set of 10 items, what is the maximum number of equivalence classes possible? What about the minimum?
🚀 Master Status: You have completed the Encyclopedic Foundation of Discrete Mathematics. You now possess the tools to construct any mathematical system from its most basic atoms.