PANIC SHEET 03 · Sets, Relations, POSETs & Lattices
Relations, Closures, Equivalence Partitions & Counting
Full Lesson →CORE INVARIANT ANCHOR:“For a set of size n: Reflexive = 2^{n^2 - n}, Symmetric = 2^{n(n+1)/2}, Anti-symmetric = 2^n * 3^{n(n-1)/2}, Reflexive & Symmetric = 2^{n(n-1)/2}.”
Must-Remember Principles:- —Total Relations on set of size n: 2^{n^2}.
- —Reflexive Relations: 2^{n^2 - n} (diagonal pairs must be included).
- —Irreflexive Relations: 2^{n^2 - n} (diagonal pairs must be excluded).
- —Symmetric Relations: 2^{n(n+1)/2} (diagonal pairs can be in/out, off-diagonal symmetric pairs chosen together).
- —Anti-Symmetric Relations: 2^n * 3^{n(n-1)/2} (diagonal in/out, off-diagonal can be (a,b), (b,a), or neither).
- —Asymmetric Relations: 3^{n(n-1)/2} (no diagonal allowed).
- —Equivalence Relation: Simultaneously Reflexive, Symmetric, and Transitive. Partitions set into disjoint equivalence classes.
Critical Exam Pitfalls:- —Anti-symmetric is NOT the opposite of symmetric. A relation can be BOTH symmetric and anti-symmetric (e.g. Identity relation R = {(a, a)}).
- —A relation can be NEITHER symmetric nor anti-symmetric.
PANIC SHEET 04 · Sets, Relations, POSETs & Lattices
POSETs, Hasse Diagrams, Lattices & Boolean Algebras
Full Lesson →CORE INVARIANT ANCHOR:“A POSET is a Lattice iff EVERY pair of elements has a UNIQUE LUB (join v) and a UNIQUE GLB (meet ^). A complemented distributive lattice is a Boolean Algebra.”
Must-Remember Principles:- —POSET Definition: Reflexive + Anti-Symmetric + Transitive.
- —Hasse Diagram: Visual DAG of a finite POSET with reflexive self-loops and transitive edges removed.
- —LUB (Least Upper Bound / Supremum): Smallest among all upper bounds. Must be unique.
- —GLB (Greatest Lower Bound / Infimum): Largest among all lower bounds. Must be unique.
- —Distributive Lattice: a ^ (b v c) = (a ^ b) v (a ^ c) for all a, b, c.
- —Complement of a in bounded lattice [0, 1]: An element b such that a v b = 1 and a ^ b = 0.
- —Boolean Algebra: Bounded + Distributive + Complemented lattice.
- —Divisibility Lattice D_n: Forms a Boolean Algebra iff n is a SQUARE-FREE integer (e.g. D_30 = {1, 2, 3, 5, 6, 10, 15, 30}).
Critical Exam Pitfalls:- —If two elements share multiple upper bounds with no single unique least upper bound, the POSET is NOT a lattice.
- —A lattice can have elements with NO complements or MULTIPLE complements, unless it is a Boolean algebra where complements are strictly unique.