How this calculation works
Find the order dimension of a finite poset and a smallest realizer whose linear-order intersection reconstructs it.
dim(P)=min{|R| : P=intersection of the linear extensions in R}.A worked example
The default six-element standard example has three lower and three upper elements and order dimension 3; its 48 linear extensions admit a three-order realizer.
Good to know
1–7 elements with strict acyclic precedence pairs. Complete linear-extension enumeration and exact ordered-incomparability cover; 3000000 search states. Nonempty chains have dimension 1; cap exhaustion is unresolved.
Reference: SageMath finite posets: Dushnik–Miller dimension and certificate (opens in a new tab) ↗
Measure how many viewpoints describe an order
A partial order can leave some pairs incomparable. One linear extension resolves every pair into a total order while respecting all required precedences, so it necessarily introduces comparisons that the original poset did not require. Order dimension asks how many such total-order viewpoints are needed to remove those accidental comparisons by intersection.
In a realizer, x precedes y in the original poset exactly when x appears before y in every listed total order. An incomparable pair must therefore appear in both relative orders somewhere across the family. The number of elements and the number of linear extensions are different quantities from the minimum family size.
Compare this with the Linear extension count calculator for a partially ordered set. Find the smallest family of total orders whose intersection equals the entered poset, rather than count how many individual linear extensions exist.
Enter strict relations rather than a total ranking
Declare the element count and list strict zero-based precedence pairs. You may enter Hasse covers or additional already implied pairs: the calculator forms transitive closure before solving. A cycle is rejected because it would violate antisymmetry of the intended finite order, while the reflexive comparisons are supplied internally.
Labels identify elements but carry no inherent ranking. For example, entering 4 before 1 is legitimate even though the label is larger. Unlisted pairs can become comparable through transitivity, so omitting an explicit edge does not automatically make the two elements incomparable. Review the closure interpretation when comparing your input with a diagram.
Enumerate the admissible total orders
A linear extension is generated by repeatedly selecting an element whose strict predecessors have already been placed. Enumerating these choices gives every compatible total order once. The small element bound keeps that complete family manageable, although an antichain still has n! different extensions.
Each extension covers one direction of every unordered incomparable pair. Comparable pairs need no extra covering choice because all extensions already respect them. Finding a realizer becomes a finite set-cover problem on the ordered incomparable pairs, and the calculator tests family sizes in increasing order with explicit search accounting.
Why a covering family is a certificate
For each incomparable x,y, some selected extension must put x before y and another must put y before x. This eliminates both possible false universal comparisons. Every required comparable pair remains in the same direction throughout the family, so intersecting the total orders recovers exactly the original relation.
The implementation reconstructs that intersection from the returned orders and checks every labeled pair against the transitive closure. This verifies the witness independently of the reported family size. Optimality additionally requires completion of the cover search for every smaller size; an interrupted search is never presented as a dimension proof.
Understand the six-element example
The default standard example has lower elements 0,1,2 and upper elements 3,4,5. Each lower element precedes two upper elements but is incomparable with its paired upper element. The three exceptional pairs cannot all be reversed in only two compatible total orders without contradicting the cross precedences.
A family of three returned extensions reverses the exceptional pairs in turn while maintaining every required relation. The calculator enumerates 48 linear extensions for this instance, but its dimension is only 3. Those numbers answer separate questions: how many compatible rankings exist, and how many are needed together to specify the partial order.
Use chains and antichains as checks
A nonempty chain is already a total order and has dimension 1. An antichain with at least two elements has dimension 2: one total order and its reverse intersect only in the reflexive comparisons. A single element is again a chain, so its dimension is 1 rather than 2.
These examples show that more incomparability does not automatically mean larger dimension. Structure matters: the arrangement of constraints can force several distinct reversals to be separated into different extensions. Width, height and linear-extension count can all provide useful context, but none is simply substituted for the dimension computed here.
Interpret the bounded exact result
The realizer can be used to encode a finite precedence system through several consistent rankings. It does not assign geometric coordinates or estimate uncertainty, and it does not claim that the listed family is unique. Different minimum realizers can reconstruct the same relation with different internal ordering choices.
Exact cover search may reach its resource cap on a difficult supported input. In that case the output is unresolved, not a heuristic upper bound mislabeled as the minimum. Boolean dimension, fractional dimension and optimization of an incomplete noisy relation use different definitions; their values cannot be read from this ordinary order-dimension certificate.
A few questions, answered
Is dimension the number of linear extensions?
No. It is the smallest number of extensions needed together to reconstruct the poset by intersection.
Can I enter only Hasse edges?
Yes. Transitive closure is formed internally, so covering relations are sufficient.
Why does an antichain usually have dimension two?
A total order and its reversal disagree on every distinct pair, leaving all those pairs incomparable in their intersection.
How is the realizer checked?
The calculator intersects the returned total orders and compares every pair with the supplied poset’s transitive closure.