Partial Order and Hasse Diagram

1. Introduction to Relations

Before diving into partial orders, let's establish the foundational concept of relations and their properties.

Definition: Binary Relation

A binary relation R R on a set A A is a subset of A×A A \times A . We write aRb aRb (or ab a \sim b ) to mean (a,b)R (a,b) \in R .

Key Properties of Relations

Reflexivity: A relation R R on set A A is reflexive if for every element aA a \in A , we have aRa aRa .

  • Example: " = = " on real numbers (every number equals itself)
  • Counter-example: " < < " on real numbers (no number is less than itself)

Antisymmetry: A relation R R on set A A is antisymmetric if for all a,bA a, b \in A , if aRb aRb and bRa bRa , then a=b a = b .

  • Example: " \leq " on real numbers (if ab a \leq b and ba b \leq a , then a=b a = b )
  • Counter-example: "loves" relation among people (mutual love doesn't imply identity)

Transitivity: A relation R R on set A A is transitive if for all a,b,cA a, b, c \in A , if aRb aRb and bRc bRc , then aRc aRc .

  • Example: "ancestor of" relation (if A A is ancestor of B B and B B is ancestor of C C , then A A is ancestor of C C )
  • Counter-example: "is friend of" relation (friend of friend isn't necessarily a friend)

Symmetry: A relation R R on set A A is symmetric if for all a,bA a, b \in A , if aRb aRb then bRa bRa .

  • Example: "is married to" relation
  • Counter-example: "is parent of" relation

2. Partial Orders: Definition and Properties

Definition: Partial Order (Poset)

A partial order (or partially ordered set, abbreviated as poset) is a set P P together with a binary relation \preceq that satisfies three properties:

  1. Reflexivity: For all aP a \in P , aa a \preceq a
  2. Antisymmetry: For all a,bP a, b \in P , if ab a \preceq b and ba b \preceq a , then a=b a = b
  3. Transitivity: For all a,b,cP a, b, c \in P , if ab a \preceq b and bc b \preceq c , then ac a \preceq c

We denote a partially ordered set as (P,) (P, \preceq) or simply P P when the relation is clear from context.

Strict Partial Order

The strict partial order associated with \preceq is the relation \prec defined by: ab a \prec b if and only if ab a \preceq b and ab a \neq b

This relation is:

  • Irreflexive: No element is related to itself
  • Asymmetric: If ab a \prec b , then not ba b \prec a
  • Transitive: If ab a \prec b and bc b \prec c , then ac a \prec c

Comparability

Two elements a a and b b in a poset are comparable if either ab a \preceq b or ba b \preceq a (or both, in which case a=b a = b ). Elements that are not comparable are called incomparable.

3. Examples of Partial Orders

Example 1: Divisibility on Natural Numbers

Let N={1,2,3,4,5,6,7,8,9,10,11,12} N = \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12\} and define ab a \preceq b if a a divides b b .

Verification:

  • Reflexivity: Every number divides itself
  • Antisymmetry: If ab a|b and ba b|a , then a=b a = b
  • Transitivity: If ab a|b and bc b|c , then ac a|c

Relations:

  • 1 1 \preceq everything (1 divides all numbers)
  • 24,6,8,10,12 2 \preceq 4, 6, 8, 10, 12
  • 36,9,12 3 \preceq 6, 9, 12
  • 48,12 4 \preceq 8, 12
  • 612 6 \preceq 12

Incomparable pairs: (2,3) (2,3) , (2,5) (2,5) , (3,4) (3,4) , (3,5) (3,5) , (4,5) (4,5) , (4,6) (4,6) , (4,9) (4,9) , etc.

Example 2: Subset Relation on Power Set

Let A={a,b,c} A = \{a, b, c\} and consider P(A)={,{a},{b},{c},{a,b},{a,c},{b,c},{a,b,c}} \mathcal{P}(A) = \{\emptyset, \{a\}, \{b\}, \{c\}, \{a,b\}, \{a,c\}, \{b,c\}, \{a,b,c\}\} with the subset relation \subseteq .

Structure:

  • \emptyset \subseteq all sets
  • {a}{a,b},{a,c},{a,b,c} \{a\} \subseteq \{a,b\}, \{a,c\}, \{a,b,c\}
  • {b}{a,b},{b,c},{a,b,c} \{b\} \subseteq \{a,b\}, \{b,c\}, \{a,b,c\}
  • {c}{a,c},{b,c},{a,b,c} \{c\} \subseteq \{a,c\}, \{b,c\}, \{a,b,c\}
  • {a,b},{a,c},{b,c}{a,b,c} \{a,b\}, \{a,c\}, \{b,c\} \subseteq \{a,b,c\}

Incomparable pairs: ({a},{b}) (\{a\}, \{b\}) , ({a},{c}) (\{a\}, \{c\}) , ({b},{c}) (\{b\}, \{c\}) , ({a,b},{a,c}) (\{a,b\}, \{a,c\}) , ({a,b},{b,c}) (\{a,b\}, \{b,c\}) , ({a,c},{b,c}) (\{a,c\}, \{b,c\})

Example 3: Lexicographic Order on Strings

Consider the set of strings {a,aa,ab,b,ba,bb} \{a, aa, ab, b, ba, bb\} with lexicographic ordering (dictionary order).

Order: aaaabbbabb a \preceq aa \preceq ab \preceq b \preceq ba \preceq bb

This is actually a total order since every pair of elements is comparable.

Example 4: Information Order on Partial Functions

Let X={1,2,3} X = \{1, 2, 3\} and Y={a,b} Y = \{a, b\} . Consider partial functions from X X to Y Y , ordered by information content: fg f \preceq g if dom(f)dom(g) \text{dom}(f) \subseteq \text{dom}(g) and f(x)=g(x) f(x) = g(x) for all xdom(f) x \in \text{dom}(f) .

Example functions:

  • f1 f_1 : undefined everywhere
  • f2 f_2 : 1a 1 \mapsto a
  • f3 f_3 : 2b 2 \mapsto b
  • f4 f_4 : 1a,2b 1 \mapsto a, 2 \mapsto b
  • f5 f_5 : 1a,3a 1 \mapsto a, 3 \mapsto a

Relations: f1 f_1 \preceq everything, f2f4 f_2 \preceq f_4 , f2f5 f_2 \preceq f_5 , f3f4 f_3 \preceq f_4 , but f2 f_2 and f3 f_3 are incomparable.

4. Special Elements in Partial Orders

Minimal and Maximal Elements

  • An element a a is minimal if there is no element b b such that ba b \prec a
  • An element a a is maximal if there is no element b b such that ab a \prec b

Note: A poset may have multiple minimal/maximal elements, or none at all.

Least and Greatest Elements

  • An element a a is the least element (or minimum) if ab a \preceq b for all b b in the poset
  • An element a a is the greatest element (or maximum) if ba b \preceq a for all b b in the poset

Note: If they exist, least and greatest elements are unique.

Lower and Upper Bounds

For a subset S S of a poset P P :

  • An element aP a \in P is a lower bound of S S if as a \preceq s for all sS s \in S
  • An element aP a \in P is an upper bound of S S if sa s \preceq a for all sS s \in S

Infimum and Supremum

For a subset S S of a poset P P :

  • The infimum (or greatest lower bound, glb) of S S is the greatest element among all lower bounds of S S
  • The supremum (or least upper bound, lub) of S S is the least element among all upper bounds of S S

Example: In the divisibility poset on {1,2,3,4,5,6,12} \{1,2,3,4,5,6,12\} :

  • inf({4,6})=2 \inf(\{4,6\}) = 2 (greatest common divisor)
  • sup({4,6})=12 \sup(\{4,6\}) = 12 (least common multiple)

5. Hasse Diagrams: Construction and Interpretation

Definition and Purpose

A Hasse diagram is a graphical representation of a finite partially ordered set that eliminates redundant information by showing only the "covering" relations.

Covering Relation

Element a a covers element b b (written ba b \lessdot a ) if:

  1. ba b \prec a (b b is strictly less than a a )
  2. There is no element c c such that bca b \prec c \prec a

Construction Rules for Hasse Diagrams

  1. Vertices: Each element of the poset is represented by a vertex
  2. Edges: Draw an edge between a a and b b if one covers the other
  3. Vertical arrangement: If ab a \prec b , place a a below b b
  4. Transitivity elimination: Don't draw edges for relations that follow from transitivity
  5. No self-loops: Reflexivity is implicit
  6. Direction: Lower elements are "less than" higher elements

Step-by-Step Construction Example

Poset: Divisibility on {1,2,3,4,6,12} \{1, 2, 3, 4, 6, 12\}

Step 1: List all relations

  • 11,12,13,14,16,112 1|1, 1|2, 1|3, 1|4, 1|6, 1|12
  • 22,24,26,212 2|2, 2|4, 2|6, 2|12
  • 33,36,312 3|3, 3|6, 3|12
  • 44,412 4|4, 4|12
  • 66,612 6|6, 6|12
  • 1212 12|12

Step 2: Identify covering relations

  • 12 1 \lessdot 2 (1<2 1 < 2 , no element between)
  • 13 1 \lessdot 3 (1<3 1 < 3 , no element between)
  • 24 2 \lessdot 4 (2<4 2 < 4 , no element between)
  • 26 2 \lessdot 6 (2<6 2 < 6 , no element between)
  • 36 3 \lessdot 6 (3<6 3 < 6 , no element between)
  • 412 4 \lessdot 12 (4<12 4 < 12 , no element between)
  • 612 6 \lessdot 12 (6<12 6 < 12 , no element between)

Step 3: Draw the diagram

Divisibility poset diagram

Reading Hasse Diagrams

To determine if ab a \preceq b : Check if there's an upward path from a a to b b .

Examples using the divisibility diagram above:

  • 112 1 \preceq 12 ? Yes (path: 12412 1 \to 2 \to 4 \to 12 or 13612 1 \to 3 \to 6 \to 12 )
  • 26 2 \preceq 6 ? Yes (direct path: 26 2 \to 6 )
  • 46 4 \preceq 6 ? No (no upward path from 4 to 6)

6. Advanced Examples and Applications

Example 1: Boolean Algebra B₃

Consider the Boolean algebra of subsets of a 3-element set {x,y,z} \{x, y, z\} .

Elements: All 8 subsets of {x,y,z} \{x, y, z\} Relation: Subset inclusion \subseteq

Boolean Algebra B₃ Hasse Diagram

Properties:

  • Least element: \emptyset
  • Greatest element: {x,y,z} \{x,y,z\}
  • Every pair has a unique inf and sup
  • Complemented (every element has a complement)

Operations:

  • Join ( \vee ): {x}{y}={x,y} \{x\} \vee \{y\} = \{x,y\}
  • Meet ( \wedge ): {x,y}{x,z}={x} \{x,y\} \wedge \{x,z\} = \{x\}
  • Complement: {x}={y,z} \overline{\{x\}} = \{y,z\}

Example 2: Non-Distributive Lattices

Definition: Distributive Lattice

A lattice L L is distributive if for all elements a,b,cL a, b, c \in L : a(bc)=(ab)(ac)a \wedge (b \vee c) = (a \wedge b) \vee (a \wedge c)

Equivalently, a lattice is distributive if: a(bc)=(ab)(ac)a \vee (b \wedge c) = (a \vee b) \wedge (a \vee c)

These two conditions are equivalent in the context of lattices. Many common lattices are distributive (e.g., Boolean algebras, divisibility posets), but some important lattices fail this property.


Diamond and Pentagon Lattices

The Diamond lattice M3 M_3 and Pentagon lattice N5 N_5 are fundamental examples of non-distributive lattices. These are the smallest lattices that fail the distributive property.

Diamond M3 M_3 failure: a(bc)=a1=a a \wedge (b \vee c) = a \wedge 1 = a (ab)(ac)=00=0 (a \wedge b) \vee (a \wedge c) = 0 \vee 0 = 0 Since a0 a \neq 0 , distributivity fails.

Pentagon N5 N_5 failure: Similarly demonstrates non-distributivity and is also non-modular.

Example 3: Partition Lattice

Consider all partitions of the set {1,2,3,4} \{1, 2, 3, 4\} ordered by refinement.

Partitions:

  • {{1,2,3,4}} \{\{1,2,3,4\}\} (coarsest)
  • {{1,2,3},{4}} \{\{1,2,3\}, \{4\}\} , {{1,2,4},{3}} \{\{1,2,4\}, \{3\}\} , {{1,3,4},{2}} \{\{1,3,4\}, \{2\}\} , {{2,3,4},{1}} \{\{2,3,4\}, \{1\}\}
  • {{1,2},{3,4}} \{\{1,2\}, \{3,4\}\} , {{1,3},{2,4}} \{\{1,3\}, \{2,4\}\} , {{1,4},{2,3}} \{\{1,4\}, \{2,3\}\} , {{1,2},{3},{4}} \{\{1,2\}, \{3\}, \{4\}\} , {{1,3},{2},{4}} \{\{1,3\}, \{2\}, \{4\}\} , {{1,4},{2},{3}} \{\{1,4\}, \{2\}, \{3\}\} , {{2,3},{1},{4}} \{\{2,3\}, \{1\}, \{4\}\} , {{2,4},{1},{3}} \{\{2,4\}, \{1\}, \{3\}\} , {{3,4},{1},{2}} \{\{3,4\}, \{1\}, \{2\}\}
  • {{1},{2},{3},{4}} \{\{1\}, \{2\}, \{3\}, \{4\}\} (finest)

Refinement relation: P1P2 P_1 \preceq P_2 if every block of P1 P_1 is contained in some block of P2 P_2 .

Example 4: Young Diagrams

Young diagrams (used in representation theory) form a partial order under inclusion.

Example Young diagrams for partitions of 4:

Young diagrams for partitions of 4

Ordering: λμ \lambda \preceq \mu if the Young diagram of λ \lambda fits inside the Young diagram of μ \mu .

Example 5: Dominance Order on Permutations

Consider permutations of {1,2,3} \{1, 2, 3\} with the weak order.

Permutations: 123,132,213,231,312,321 123, 132, 213, 231, 312, 321

Covering relations (via adjacent transpositions):

  • 123132 123 \lessdot 132 (swap positions 2,3)
  • 123213 123 \lessdot 213 (swap positions 1,2)
  • 132312 132 \lessdot 312 (swap positions 1,2)
  • 132231 132 \lessdot 231 (swap positions 1,3)
  • 213231 213 \lessdot 231 (swap positions 2,3)
  • 213312 213 \lessdot 312 (swap positions 1,3)
  • 231321 231 \lessdot 321 (swap positions 1,2)
  • 312321 312 \lessdot 321 (swap positions 2,3)

Permutation Weak Order on S₃

Inversion Table Interpretation: Each permutation can be characterized by its inversion count. The covering relations correspond to adding exactly one inversion via adjacent transposition.

Geometric Interpretation: This poset corresponds to regions in the braid arrangement, with maximal chains corresponding to reduced expressions in the symmetric group.

Example 6: Ideal Lattice in Ring Theory

In the ring Z12=Z/12Z \mathbb{Z}_{12} = \mathbb{Z}/12\mathbb{Z} , consider the lattice of ideals ordered by inclusion.

Ideals: (0),(1),(2),(3),(4),(6),(12) (0), (1), (2), (3), (4), (6), (12) where (n) (n) represents the ideal generated by n n .

Relations:

  • (12)(6)(3)(1) (12) \subseteq (6) \subseteq (3) \subseteq (1)
  • (12)(6)(2)(1) (12) \subseteq (6) \subseteq (2) \subseteq (1)
  • (12)(4)(2)(1) (12) \subseteq (4) \subseteq (2) \subseteq (1)
  • (0) (0) \subseteq everything

Example 7: Formal Concept Analysis

Given a formal context K=(G,M,I) \mathcal{K} = (G, M, I) where G G is a set of objects, M M is a set of attributes, and IG×M I \subseteq G \times M : Example Context

Object Attribute 1 Attribute 2 Attribute 3
Object A
Object B
Object C

Galois Connection: For AG A \subseteq G and BM B \subseteq M :

  • A={mM:gA,(g,m)I} A' = \{m \in M : \forall g \in A, (g,m) \in I\}
  • B={gG:mB,(g,m)I} B' = \{g \in G : \forall m \in B, (g,m) \in I\}

Formal Concepts: Pairs (A,B) (A, B) where A=B A' = B and B=A B' = A

The set of all formal concepts forms a complete lattice called the concept lattice.

7. Comparing Partial Orders

Order Isomorphism

Two posets (P,P) (P, \preceq_P) and (Q,Q) (Q, \preceq_Q) are order isomorphic if there exists a bijection f:PQ f: P \to Q such that: aPb a \preceq_P b if and only if f(a)Qf(b) f(a) \preceq_Q f(b)

Order Embedding

A function f:PQ f: P \to Q between posets is an order embedding if: aPb a \preceq_P b if and only if f(a)Qf(b) f(a) \preceq_Q f(b)

Chain and Antichain

  • A chain is a totally ordered subset (all elements are comparable)
  • An antichain is a subset where no two distinct elements are comparable

Dilworth's Theorem: In any finite poset, the maximum size of an antichain equals the minimum number of chains needed to cover the poset.

Chains and Antichains Visualization

Width and Height

  • The width of a poset is the size of its largest antichain
  • The height of a poset is the size of its longest chain minus 1

8. Real-World Applications

Real-World Applications

Software Version Control

Git commits form a partial order where commit A A \preceq commit B B if A A is an ancestor of B B . Merge operations create elements with multiple immediate predecessors.

Example: Consider commits c1,c2,c3,c4 c_1, c_2, c_3, c_4 where:

  • c1 c_1 is the initial commit
  • c2 c_2 and c3 c_3 branch from c1 c_1
  • c4 c_4 merges c2 c_2 and c3 c_3

This creates the poset: c1c2,c3c4 c_1 \prec c_2, c_3 \prec c_4

Task Dependencies in Project Management

In project management, tasks form a partial order where task A A \preceq task B B if A A must be completed before B B can begin. Critical path analysis finds maximal chains.

Example Project Tasks:

  • T1 T_1 : Requirements gathering
  • T2 T_2 : Database design
  • T3 T_3 : UI design
  • T4 T_4 : Backend implementation
  • T5 T_5 : Frontend implementation
  • T6 T_6 : Integration testing

Dependencies: T1T2,T3 T_1 \prec T_2, T_3 and T2T4 T_2 \prec T_4 and T3T5 T_3 \prec T_5 and T4,T5T6 T_4, T_5 \prec T_6

Information Systems and Query Specificity

In databases, queries can be ordered by specificity. A more specific query provides a subset of results from a less specific query.

Example SQL queries on employee database:

  • Q1 Q_1 : SELECT * FROM employees
  • Q2 Q_2 : SELECT * FROM employees WHERE department = 'Engineering'
  • Q3 Q_3 : SELECT * FROM employees WHERE department = 'Engineering' AND salary > 100000

Order: Q3Q2Q1 Q_3 \prec Q_2 \prec Q_1 (more specific queries return subsets)

Concurrency Theory and Causality

Events in concurrent systems form a partial order where AB A \preceq B if event A A causally precedes event B B . Incomparable events represent potentially simultaneous occurrences.

Lamport's Happens-Before Relation: For events e1,e2 e_1, e_2 in a distributed system: e1e2 e_1 \to e_2 if:

  1. e1 e_1 and e2 e_2 are in the same process and e1 e_1 occurs before e2 e_2
  2. e1 e_1 is a send event and e2 e_2 is the corresponding receive event
  3. There exists e3 e_3 such that e1e3 e_1 \to e_3 and e3e2 e_3 \to e_2 (transitivity)

Concept Hierarchies in Knowledge Representation

In ontologies and knowledge graphs, concepts form partial orders where AB A \preceq B if concept A A is more specific than concept B B .

Example Taxonomy: Golden RetrieverDogMammalAnimalLiving Thing \text{Golden Retriever} \prec \text{Dog} \prec \text{Mammal} \prec \text{Animal} \prec \text{Living Thing}

Multiple inheritance: PlatypusMammal,Egg-laying Animal \text{Platypus} \prec \text{Mammal}, \text{Egg-laying Animal}

Preference Modeling in Decision Theory

Consumer preferences often form partial orders where incomparable elements represent different trade-offs.

Example: Smartphone preferences based on (price, performance, battery life)

  • Phone A: ($800, high performance, average battery)
  • Phone B: ($600, average performance, excellent battery)
  • Phone C: ($400, low performance, poor battery)

Relations: CA C \prec A and CB C \prec B , but A A and B B are incomparable (different trade-offs)

Security Classification Lattices

Security classifications form lattices where information can flow from lower to higher classification levels.

Example Military Classification:

  • Levels: Unclassified \prec Confidential \prec Secret \prec Top Secret
  • Compartments: Need-to-know basis creates additional partial order structure
  • Clearance: Person can access information at their level and below

Resource Allocation in Distributed Systems

Resource allocations form partial orders based on availability and priority.

Example Computing Resources:

  • Allocation A1 A_1 : 2 CPUs, 4GB RAM
  • Allocation A2 A_2 : 4 CPUs, 2GB RAM
  • Allocation A3 A_3 : 4 CPUs, 4GB RAM

Relations: A1A3 A_1 \prec A_3 and A2A3 A_2 \prec A_3 , but A1 A_1 and A2 A_2 are incomparable

Basic Exercises

Exercise 1: Determine which of the following relations on {1,2,3,4} \{1, 2, 3, 4\} are partial orders:

a) R1={(1,1),(2,2),(3,3),(4,4),(1,2),(2,3),(1,3)} R_1 = \{(1,1), (2,2), (3,3), (4,4), (1,2), (2,3), (1,3)\}

b) R2={(1,1),(2,2),(3,3),(4,4),(1,2),(2,1),(3,4)} R_2 = \{(1,1), (2,2), (3,3), (4,4), (1,2), (2,1), (3,4)\}

c) R3={(1,1),(2,2),(3,3),(4,4),(1,2),(1,3),(1,4),(2,4),(3,4)} R_3 = \{(1,1), (2,2), (3,3), (4,4), (1,2), (1,3), (1,4), (2,4), (3,4)\}

Exercise 2: For the poset of divisors of 24, find:

a) All maximal elements

b) All minimal elements

c) The greatest element (if it exists)

d) The least element (if it exists)

Exercise 3: Draw the Hasse diagram for:

a) The poset of divisors of 30

b) The poset P({a,b}) \mathcal{P}(\{a,b\}) ordered by \subseteq

c) The poset {1,2,3,4,5,6} \{1,2,3,4,5,6\} with ab a \preceq b iff ab a|b

Intermediate Exercises

Exercise 4: In the lattice of subsets of {1,2,3,4} \{1,2,3,4\} , find:

a) {1,2}{2,3} \{1,2\} \vee \{2,3\}

b) {1,2}{2,3} \{1,2\} \wedge \{2,3\}

c) {1,3}{2,4} \{1,3\} \vee \{2,4\}

d) {1,2,3}{2,3,4} \{1,2,3\} \wedge \{2,3,4\}

Exercise 5: Prove that in any poset, if a greatest element exists, then it is unique.

Exercise 6: Given the poset with Hasse diagram:


              d
             / \
            b   c
             \ /
              a
          

a) Which elements are comparable to b b ?

b) What are sup({b,c}) \sup(\{b,c\}) and inf({b,c}) \inf(\{b,c\}) ?