For D₁₂ = {1, 2, 3, 4, 6, 12} under divisibility, find the Hasse diagram, the extremal elements, and decide whether it is a lattice and whether it is complemented.
A partial order is a reflexive, antisymmetric, transitive relation: it ranks elements without forcing every pair to be comparable. Hasse diagrams draw posets, extremal elements and bounds describe them, lattices guarantee joins and meets, and topological sorting turns them into schedules.
A relation ≼ on a set S is a partial order if it is reflexive, antisymmetric and transitive; the pair (S, ≼) is a partially ordered set or poset. Read a ≼ b as “a precedes b” or “a is below b”. The associated strict order a ≺ b (a ≼ b and a ≠ b) is irreflexive and transitive, hence asymmetric.
| Poset | a ≼ b means | Is every pair comparable? | Remark |
|---|---|---|---|
| (ℤ, ≤) | a ≤ b | yes | a total order |
| (ℤ⁺, |) | a divides b | no — 2 and 3 are incomparable | partial, not total |
| (P(S), ⊆) | A ⊆ B | no — {a} and {b} are incomparable | partial whenever |S| ≥ 2 |
| Strings, prefix order | u is a prefix of v | no — “ab” and “ba” | partial |
| Strings, dictionary order | u comes first alphabetically | yes | total (lexicographic) |
Non-examples are just as instructive: (ℤ, <) is not reflexive, (ℤ, |) is not antisymmetric (2 | −2 and −2 | 2 with 2 ≠ −2), and “is a friend of” is not transitive.
Elements a and b are comparable if a ≼ b or b ≼ a, and incomparable otherwise. A poset in which every two elements are comparable is a total (linear) order; a totally ordered subset is a chain and a subset of pairwise incomparable elements is an antichain. A total order in which every non-empty subset has a least element is well-ordered — (ℕ, ≤) is, while (ℤ, ≤) and (ℚ⁺, ≤) are not.
Element b covers a if a ≺ b and no c satisfies a ≺ c ≺ b. A Hasse diagram (after Helmut Hasse) draws only the covering pairs, with b placed higher than a. Arrowheads, loops and transitive edges are left out, because reflexivity, antisymmetry and transitivity let the reader restore them.
Divisors of 12 under "divides": D12 = {1, 2, 3, 4, 6, 12}
12
/ \
4 6
\ / \
2 3
\ /
1
Covering pairs (7 edges): 1-2, 1-3, 2-4, 2-6, 3-6, 4-12, 6-12
Left out as transitive: 1-4, 1-6, 1-12, 2-12, 3-12 (and the 6 loops)
The relation itself has 18 pairs; the diagram shows only 7 of them.Divisors of 30: D30 = {1, 2, 3, 5, 6, 10, 15, 30} - the shape of a cube
30
/ | \
6 10 15
| \/ \/ |
| /\ /\ |
2 3 5
\ | /
1
Covering pairs (12 edges): 1-2, 1-3, 1-5, 2-6, 2-10, 3-6, 3-15, 5-10, 5-15,
6-30, 10-30, 15-30
(The crossing lines are 6-3, 10-2 and 10-5, 15-3.)D₃₀ has exactly the shape of the power set of {a, b, c} under ⊆ — match 2 ↔ {a}, 3 ↔ {b}, 5 ↔ {c}, 6 ↔ {a, b}, …, 30 ↔ {a, b, c} — because 30 = 2 · 3 · 5 is a product of three distinct primes. Divisibility then behaves exactly like inclusion of prime-factor sets.
| Term | Definition | In the Hasse diagram |
|---|---|---|
| Maximal element | no b with a ≺ b | nothing is drawn above it |
| Minimal element | no b with b ≺ a | nothing is drawn below it |
| Greatest element (maximum, top, 1) | b ≼ a for every b in S | the single top that every element climbs to |
| Least element (minimum, bottom, 0) | a ≼ b for every b in S | the single bottom below everything |
A greatest element, if it exists, is unique and is then the only maximal element; dually for least. A finite non-empty poset always has at least one maximal and one minimal element, but an infinite one may have none — (ℤ, ≤) has neither. A poset can have several maximal elements and no greatest.
Example: S = {2, 3, 4, 6, 9, 12, 18} under divisibility. The minimal elements are 2 and 3 (nothing else in S divides them); the maximal elements are 12 and 18 (neither divides another element of S). There is no greatest element, since 12 ∤ 18, and no least element, since 2 ∤ 3.
S = {2, 3, 4, 6, 9, 12, 18} under "divides"
12 18
/ \ / \
4 \ / 9
| \ / |
| 6 |
| / \ |
| / \ |
\ / \ /
2 3
Covering pairs (8 edges): 2-4, 2-6, 3-6, 3-9, 4-12, 6-12, 6-18, 9-18
Maximal: 12, 18 Minimal: 2, 3 Greatest: none Least: noneLet A be a subset of a poset S. An element u ∈ S is an upper bound of A if a ≼ u for every a ∈ A, and l ∈ S is a lower bound if l ≼ a for every a ∈ A. The least upper bound (lub, supremum, join) is an upper bound that lies below every other upper bound; the greatest lower bound (glb, infimum, meet) is a lower bound above every other. Either may fail to exist; when they exist they are unique, and they must lie in S but need not lie in A.
| Subset A of S = {2, 3, 4, 6, 9, 12, 18} | Upper bounds | lub | Lower bounds | glb |
|---|---|---|---|---|
| {2, 3} | 6, 12, 18 | 6 | none (1 ∉ S) | none |
| {4, 6} | 12 | 12 | 2 | 2 |
| {2, 4} | 4, 12 | 4 | 2 | 2 |
| {12, 18} | none (36 ∉ S) | none | 2, 3, 6 | 6 |
| {4, 9} | none | none | none | none |
In the standard posets the bounds have familiar names: in (ℤ⁺, |), lub{a, b} = lcm(a, b) and glb{a, b} = gcd(a, b); in (P(S), ⊆), lub{A, B} = A ∪ B and glb{A, B} = A ∩ B; in a chain, lub = max and glb = min.
A lattice is a poset in which every pair {a, b} has both a lub, written a ∨ b (join), and a glb, written a ∧ b (meet). Examples: (P(S), ⊆) with ∪ and ∩; (Dₙ, |) with lcm and gcd; every chain. Non-examples: the set S of the previous section (2 and 3 have no glb, 12 and 18 no lub) and ({1, 2, 3}, |) (2 and 3 have no lub).
| Law | Join form | Meet form |
|---|---|---|
| Idempotent | a ∨ a = a | a ∧ a = a |
| Commutative | a ∨ b = b ∨ a | a ∧ b = b ∧ a |
| Associative | (a ∨ b) ∨ c = a ∨ (b ∨ c) | (a ∧ b) ∧ c = a ∧ (b ∧ c) |
| Absorption | a ∨ (a ∧ b) = a | a ∧ (a ∨ b) = a |
| Order from operations | a ≼ b ⇔ a ∨ b = b | a ≼ b ⇔ a ∧ b = a |
Special kinds: a lattice is bounded if it has a greatest element 1 and a least element 0 (every finite lattice is bounded); complemented if every a has some a′ with a ∨ a′ = 1 and a ∧ a′ = 0; distributive if a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c) for all a, b, c. A complemented distributive lattice is a Boolean algebra, and in it each complement is unique. By Birkhoff's theorem, a lattice is non-distributive exactly when it contains the five-element “diamond” M₃ or “pentagon” N₅ as a sublattice.
| In D₃₀ | Complement (lcm 30, gcd 1) | In D₁₂ | Complement (lcm 12, gcd 1) |
|---|---|---|---|
| 1 | 30 | 1 | 12 |
| 2 | 15 | 2 | none — no x has lcm(2, x) = 12 and gcd(2, x) = 1 |
| 3 | 10 | 3 | 4 |
| 5 | 6 | 4 | 3 |
| 6 | 5 | 6 | none |
| 10, 15, 30 | 3, 2, 1 | 12 | 1 |
A total order ≤ₜ is compatible with a partial order ≼ (a linear extension) when a ≼ b implies a ≤ₜ b. Producing one is called topological sorting. Every finite poset has one: output a minimal element, delete it, and repeat — a finite non-empty poset always has a minimal element. Usually there are many valid answers.
For D₁₂, the orders 1, 2, 3, 4, 6, 12 and 1, 3, 2, 6, 4, 12 and 1, 2, 4, 3, 6, 12 are all valid. Applications include project scheduling (PERT/CPM), course planning, build tools such as make, package managers and spreadsheet recalculation. Kahn's algorithm (1962) and depth-first search produce a topological order of a graph in O(V + E) time (Module 3); a cycle in the dependencies means no such order exists — and that the relation was not a partial order.
Given posets (A, ≼₁) and (B, ≼₂), the product order on A × B puts (a₁, b₁) ≼ (a₂, b₂) when a₁ ≼₁ a₂ and b₁ ≼₂ b₂. It is only partial, even when both factors are total: under ≤ in both coordinates, (1, 2) and (2, 1) are incomparable.
The lexicographic order puts (a₁, b₁) ≺ (a₂, b₂) when a₁ ≺₁ a₂, or a₁ = a₂ and b₁ ≺₂ b₂. If both factors are total, so is the result — it is dictionary order, and it is exactly how SQL's ORDER BY col1, col2 sorts rows. For example (3, 5) ≺ (4, 1) lexicographically because 3 < 4, while under the product order the two pairs are incomparable.
Strings are compared the same way, letter by letter: “disc” ≺ “discrete” (a proper prefix comes first) and “discrete” ≺ “disk”, because at the fourth position c comes before k.
Try the problem first, then reveal the working one step at a time.
For D₁₂ = {1, 2, 3, 4, 6, 12} under divisibility, find the Hasse diagram, the extremal elements, and decide whether it is a lattice and whether it is complemented.
Compute 6 ∨ 10, 6 ∧ 10, 10 ∧ 15 and the complement of every element in D₃₀ under divisibility, and identify the structure.
Let T = D₃₀ − {30} = {1, 2, 3, 5, 6, 10, 15} under divisibility. Find the maximal elements, lub{2, 3}, glb{6, 10} and decide whether T is a lattice.
Which of the following are posets? (a) (ℤ, ≤) (b) (ℤ, <) (c) (ℤ⁺, |) (d) (ℤ, |) (e) (P({1, 2}), ⊆)
Draw the Hasse diagram of P({a, b, c}) under ⊆ and count its edges. Is it a lattice? A Boolean algebra?
In D₂₀ = {1, 2, 4, 5, 10, 20} under divisibility, find lub and glb of {4, 10} and of {2, 5}. Is D₂₀ complemented?
Give two different topological sorts of D₂₄ = {1, 2, 3, 4, 6, 8, 12, 24} under divisibility.
Compare (2, 7) with (3, 1), and (2, 7) with (2, 9), under (a) the lexicographic order and (b) the product order, using ≤ in each coordinate.
10 questions. 70 % passes the topic quiz (+30 XP, +20 more for 100 %). Exam scoring: +1 correct, −⅓ wrong.