Partially Ordered Sets and Hasse Diagrams
“Mr. Smith, could you explain to us what recursion is all about?” The professor in Introduction to Programming asked an apathetic student. “I don’t know the question, but sex, money, or both is definitely the answer, and God, justice, our values, and love are just the excuses,” I replied. “You shall not pass,” the teacher was far from amused, Apocalypse, Anawim, #justtothepoint.
Partially Ordered Sets (Posets)
In mathematics, we are used to comparing numbers: given any two real numbers, one is always less than, greater than, or equal to the other. However, many mathematical structures—such as sets under inclusion, tasks with dependencies, or subgroups of a group—have a natural notion of “preceding” or “being contained in” where not every pair of elements can be compared. This generalization of order is captured by the concept of a partially ordered set.
Definition. Let $X$ be a set. A partial order on $X$ is a binary relation $\preceq$ on $X$ (formally, a subset $\preceq \subseteq X \times X$) that satisfies the following three axioms for all $x, y, z \in X$:
- Reflexivity: $x \preceq x$.
- Antisymmetry: If $x \preceq y$ and $y \preceq x$, then $x = y$.
- Transitivity: If $x \preceq y$ and $y \preceq z$, then $x \preceq z$.
A partially ordered set, or poset for short, is an ordered pair $(X, \preceq)$ consisting of a set $X$ equipped with a partial order $\preceq$.
Given two elements $x, y \in X$:
- We say $x$ and $y$ are comparable if either $x \preceq y$ or $y \preceq x$.
- We say $x$ and $y$ are incomparable if neither $x \preceq y$ nor $y \preceq x$.
If every pair of elements in $X$ is comparable, then $\preceq$ is called a total order (or linear order), and $(X, \preceq)$ is a totally ordered set (or chain). Every total order is a partial order, but the converse is false.
We also define the associated strict partial order $\prec$ by: $x \prec y \iff (x \preceq y \text{ and } x \neq y)$.
Notice that $\prec$ is irreflexive ($x \not\prec x$), asymmetric (if $x \prec y$, then $y \not\prec x$), and transitive.
Core Examples and Non-Examples
- Standard Numerical Order.
The usual order $\le$ on $\mathbb{R}$ (as well as $\mathbb{Q}$, $\mathbb{Z}$, and $\mathbb{N}$), defined by $a \le b \iff b - a \ge 0$ ($b - a$ is non-negative), is a partial order. In fact, it is a total order, because for any $a, b \in \mathbb{R}$, either $a \le b$ or $b \le a$.
- Power Set under Inclusion.
Let $X$ be any set, and let $\mathcal{P}(X)$ denote its power set—the set of all subsets of $X$, including $\emptyset$ and $X$ itself. Then $(\mathcal{P}(X), \subseteq)$ is a poset.
Proof: Let $A, B, C \in \mathcal{P}(X)$.
- Reflexivity: For any $x \in A$, we trivially have $x \in A$, so $A \subseteq A$.
- Antisymmetry: If $A \subseteq B$ and $B \subseteq A$, then $A$ and $B$ contain the exact same elements, so $A = B$ by the axiom of extensionality.
- Transitivity: Suppose $A \subseteq B$ and $B \subseteq C$. For any $x \in A$, $A \subseteq B$ implies $x \in B$, and $B \subseteq C$ implies $x \in C$. Thus $A \subseteq C$.
The Axiom of Extensionality is one of the fundamental axioms of set theory and states that two sets are equal if and only if they have exactly the same elements. Symbolically, $A = B \quad\Longleftrightarrow\quad (\forall x)\,(x \in A \iff x \in B).$
If $\vert{}X\vert{} \ge 2$, this order is strictly partial, not total. For instance, if $X = \{a, b, c, d\}$, the subsets $A = \{a, b\}$ and $B = \{c, d\}$ satisfy $A \not\subseteq B$ and $B \not\subseteq A$, so they are indeed incomparable. The word partial is used to indicate that not every pair of elements needs to be comparable.
- Divisibility on Positive Integers.
Let $\mathbb{Z}^+ = \{1, 2, 3, \dots\}$ be the set of positive integers equipped with the divisibility relation $\mid$, defined by: $m \mid n \iff \exists k \in \mathbb{Z}^+ \text{ such that } n = km$.
Then, $(\mathbb{Z}^+, \mid)$ is a poset.
Proof: Let $a, b, c \in \mathbb{Z}^+$.
- Reflexivity: $a = 1 \cdot a$, so $a \mid a$.
- Antisymmetry: Suppose $a \mid b$ and $b \mid a$. Then $b = k_1 a$ and $a = k_2 b$ for some $k_1, k_2 \in \mathbb{Z}^+$. Substituting gives $a = (k_1 k_2)a$. Since $a \in \mathbb{Z}^+, a \gt 0$, we can divide by $a$ to get $k_1 k_2 = 1$. Because $k_1, k_2 \in \mathbb{Z}^+$, we must have $k_1 = k_2 = 1$ (the only positive integers whose product is $1$ are $k_1 = k_2 = 1$), hence $a = b$.
- Transitivity: If $a \mid b$ and $b \mid c$, then $b = k_1 a$ and $c = k_2 b$, so $c = (k_2 k_1)a$, which means $a \mid c$.
For example, $1 \mid 2$, $1 \mid 3$, and $2 \mid 4$, whereas $2 \nmid 3$ and $3 \nmid 2$, so $2$ and $3$ are incomparable.
Edge Case ($\mathbb{N}_0$ vs. $\mathbb{Z}$): If we include $0$ in $\mathbb{N}_0 = \{0, 1, 2, \dots\}$, divisibility remains a partial order, with $0$ acting as the greatest element (since $n \mid 0$ for every $n$). However, on all integers $\mathbb{Z}$, divisibility is not a partial order: $2 \mid -2$ and $-2 \mid 2$, yet $2 \neq -2$, violating antisymmetry.
- Subgroups of a Group.
Let $G$ be a group, and let $\mathrm{Sub}(G)$ be the set of all subgroups of $G$. Define $H \le K$ to mean that $H$ is a subgroup of $K$ (equivalently, $H \subseteq K$). Because subgroup inclusion inherits reflexivity, antisymmetry, and transitivity directly from set inclusion, $(\mathrm{Sub}(G), \le)$ is a poset.
- Pointwise Order on Functions.
Let $S$ be any set, let $(T, \le_T)$ be a poset, and let $\mathbb{F} = T^S$ be the set of all functions $f: S \to T$. Define the pointwise order $\le$ on $\mathbb{F}$ by: $f \le g \iff f(x) \le_T g(x) \quad \forall x \in S$.
Then, $(\mathbb{F}, \le)$ is a poset. Reflexivity, antisymmetry, and transitivity hold because they hold pointwise in $(T, \le_T)$ for every $x \in S.$
- Lexicographical Order.
Let $(A, \preceq_A)$ and $(B, \preceq_B)$ be posets. The lexicographical order $\preceq_{\text{lex}}$ on the Cartesian product $A \times B$ is defined by: $(a, b) \preceq_{\text{lex}} (c, d) \iff (a \prec_A c) \text{ or } (a = c \text{ and } b \preceq_B d)$.
This is the exact mechanism behind alphabetical ordering in a dictionary. If both $A$ and $B$ are totally ordered, then $(A \times B, \preceq_{\text{lex}})$ is also totally ordered.
- A Common Non-Example: “Is Father Of”.
Be careful with real-world hierarchies. The relation “is father of” on a set of people is not a partial order: it is neither reflexive (no one is their own father -or their own ancestor-, assuming no bizarre time-travel family trees!) nor transitive (the father of your father is your grandfather, not your father). To obtain a valid partial order, one must use “is an ancestor of, or equal to”.
$a \prec b \iff a$ is an ancestor of $b$ or equal to, $a = b$. This relation is a valid partial order.
- Reflexive: $a = a$.
- Antisymmetric: If $a$ is an ancestor-or-equal of $b$ and vice versa, then $a = b$.
- Transitive: Ancestor relationships compose.
Minimal, Maximal, Least, and Greatest Elements
In a poset $(X, \preceq)$, we distinguish between local and global extremes:
- An element $m \in X$ is minimal if there is no $x \in X$ such that $x \prec m$.
- An element $m \in X$ is the least (minimum) element if $m \preceq x$ for all $x \in X$.
- An element $M \in X$ is maximal if there is no $x \in X$ such that $M \prec x$.
- An element $M \in X$ is the greatest (maximum) element if $x \preceq M$ for all $x \in X$.
If a least (or greatest) element exists, antisymmetry guarantees it is unique. However, a poset can have multiple minimal elements and no least element at all.
Hasse Diagram
A Hasse Diagram is a visual representation of a finite poset $(X, \preceq)$ that strips away redundant information.
First, we define the covering relation: we say $y$ covers $x$ (written $x \lessdot y$) if $x \prec y$ and there is no intermediate element $z \in X$ such that $x \prec z \prec y$.
To draw the Hasse Diagram of $(X, \preceq)$:
- Represent each element of $X$ as a vertex.
- Draw a line segment between $x$ and $y$ if and only if $y$ covers $x$ ($x \lessdot y$).
- Position $y$ vertically higher than $x$ so that upward movement indicates the direction of the relation.
Because reflexivity (self-loops) and transitivity (shortcut edges) are implied by the axioms of a partial order, omitting them keeps the diagram clean. Consequently, $x \preceq y$ if and only if there is an upward path from $x$ to $y$ in the Hasse Diagram.
Hasse Diagram Examples
- Power Sets $\mathcal{P}(\{a, b\})$ and $\mathcal{P}(\{a, b, c\})$
For $X = \{a, b\}$, $\vert{}\mathcal{P}(X)\vert{} = 2^2 = 4$. Its Hasse Diagram forms a diamond (a 2-dimensional square, Figure 1.a). For $X = \{a, b, c\}$, $\vert{}\mathcal{P}(X)\vert{} = 2^3 = 8$. Its Hasse Diagram forms the skeleton of a 3-dimensional cube, Figure 1.b, with $\emptyset$ as the least element at the bottom and $X$ as the greatest element at the top. Following any upward path—such as $\emptyset \subset \{a\} \subset \{a, b\} \subset \{a, b, c\}$—traces a chain of comparable subsets.
- Divisibility on a Finite Subset.
Consider $A = \{2, 3, 4, 7, 8, 12, 14, 24, 35\}$ under divisibility $\mid$, Figure 1.c.
-
Minimal elements: $2, 3, 7$ (no element in $A$ properly divides them). Because there are three minimal elements, $A$ has no least element.
-
Maximal elements: $14, 24, 35$ (they divide no other elements in $A$). Thus, $A$ has no greatest element.
-
Covering relations: $2 \lessdot 4 \lessdot 8 \lessdot 24$, $4 \lessdot 12 \lessdot 24$, $3 \lessdot 12$, $2 \lessdot 14$, $7 \lessdot 14$, $7 \lessdot 35$.
-
Subgroup Lattices of $\mathbb{Z}_6$, $\mathbb{Z}_4$, and $K_4$.
Subgroup posets reveal the internal structure of finite groups—even when two groups have the same order.
- $\mathbb{Z}_6 = \{0, 1, 2, 3, 4, 5\}$: Its subgroups correspond to the divisors of $6$: $\{0\}$ (order 1), $\langle 3 \rangle = \{0, 3\}$ (order 2), $\langle 2 \rangle = \{0, 2, 4\}$ (order 3), and $\mathbb{Z}_6$ (order 6). Its Hasse Diagram is a diamond, Figure 1.d.
- $\mathbb{Z}_4 = \langle 1 \rangle = \{0, 1, 2, 3\}$: A cyclic group of order 4. It has only one proper nontrivial subgroup, $\langle 2 \rangle = \{0, 2\}$. Its Hasse Diagram is a simple vertical chain: $\{0\} \le \{0, 2\} \le \mathbb{Z}_4$.
- The Klein Four-Group $K_4 \cong \mathbb{Z}_2 \oplus \mathbb{Z}_2$: Its elements are $\{(0, 0), (1, 0), (0, 1), (1, 1)\}$. Every non-identity element has order 2, so $K_4$ is not cyclic and therefore not isomorphic to $\mathbb{Z}_4$. It has three distinct subgroups of order 2: $\langle (1, 0) \rangle$, $\langle (0, 1) \rangle$, and $\langle (1, 1) \rangle$. Its Hasse Diagram has three middle vertices between $\{(0,0)\}$ and $K_4$, making it structurally distinct from $\mathbb{Z}_4$, Figure 1.e.
- The Subgroup Lattice of the Dihedral Group $D_4$.
A square is a regular quadrilateral with four equal sides and four $90^\circ$ ($\pi/2$ radian) angles. The dihedral group $D_4$ (using the convention where $D_n$ has order $2n$) is the symmetry group of the square, containing $8$ elements:
- Four rotations: the identity $e$, and anticlockwise rotations $r$ ($90^\circ$), $r^2$ ($180^\circ$), and $r^3$ ($270^\circ$).
- Four reflections: $s$ (across the horizontal $x$-axis), $r^2 s$ (across the vertical $y$-axis), and $rs, r^3 s$ (across the two diagonals).
In terms of generators and relations: $D_4 = \langle r, s \mid r^4 = s^2 = e, \; rs = sr^3 \rangle = \{e, r, r^2, r^3, s, rs, r^2 s, r^3 s\}$
By Lagrange’s Theorem, the order of any subgroup of $D_4$ must divide $8$ (so orders $1, 2, 4,$ or $8$). Enumerating them gives 10 subgroups arranged across four levels in the Hasse Diagram:
- Order 1 (1 subgroup): $\{e\}$. Every subgroup contains the identity, so every subgroup lies above it.
- Order 2 (5 subgroups): $\langle r^2 \rangle = \{e, r^2\}$ (the center of $D_4$), plus the four reflection subgroups $\langle s \rangle$, $\langle rs \rangle$, $\langle r^2 s \rangle$, and $\langle r^3 s \rangle$.
Since $(r^2)^2=r^4=e,$ the element $r^2$ has order $2$, so $\langle r^2\rangle=\{e,r^2\}.$ Every reflection squares to the identity: $s^2=(rs)^2=(r^2s)^2=(r^3s)^2=e.$ Thus, each reflection generates a two-element subgroup.
- Order 4 (3 subgroups): $\langle r \rangle = \{e, r, r^2, r^3\} \cong \mathbb{Z}_4$ (all rotations and no reflection. It is cyclic because one element, $r$, generates all four elements), $\langle r \rangle \cong \mathbb{Z}_4$. The set $\{e, r^2, s, r^2 s\}$ (horizontal/vertical reflections together with $e$ and $180^\circ$ rotation). Notice that every non-identity element has order 2, hence it cannot be cyclic. Instead, $\{e, r^2, s, r^2 s\} \cong K_4$. Similarly, $\{e, r^2, rs, r^3 s\} \cong K_4$ (diagonal reflections, together with $e$, and $180^\circ$ rotation).
- Order 8 (1 subgroup): $D_4$.
Notice how cleanly the Hasse Diagram displays the group’s geometry: $\langle r^2 \rangle$ sits beneath all three subgroups of order 4, while the reflection subgroups pair off into the two Klein four-subgroups.
Why Posets Matter Beyond Pure Math
Partially ordered sets are not just an abstract curiosity; they model dependency structures across computer science and engineering:
- Task Scheduling and Build Systems: Compilers, package managers, and project schedules model dependencies as a poset (represented as a Directed Acyclic Graph). Finding a valid execution order is equivalent to finding a linear extension of the poset (topological sorting).
- Version Control (Git): A Git commit history is a poset under ancestry. Parallel branches represent incomparable commits, while a merge commit creates an upper bound for both branches.
- Foundations of Algebra and Analysis: Posets are the stepping stone to lattices, Boolean algebras (the foundation of digital logic), and Zorn’s Lemma, which is used to prove fundamental existence theorems such as the fact that every vector space has a basis.
Bibliography
- NPTEL-NOC IITM, Introduction to Galois Theory.
- Algebra, Second Edition, by Michael Artin.
- LibreTexts, Abstract and Geometric Algebra, Abstract Algebra: Theory and Applications (Judson).
- Field and Galois Theory, by Patrick Morandi. Springer.
- Michael Penn (Abstract Algebra), and MathMajor.
- Contemporary Abstract Algebra, Joseph, A. Gallian.
- Andrew Misseldine: College Algebra and Abstract Algebra.