A linear extension of a finite poset is a total ordering of that respects ; equivalently, a topological ordering of the corresponding directed acyclic graph. The number of linear extensions measures how far a partial order is from being a total one: it governs the number of comparisons needed to sort under partial information (Kahn–Saks 1984), it is the normalized volume of the order polytope (Stanley 1986), and it counts the feasible schedules of jobs under precedence constraints.
Computing is -complete (Brightwell–Winkler 1991), even for posets of height two (Dittmer–Pak 2020). Exact algorithms are therefore exponential, and the question is the base of the exponent.
This mission formalizes the 2026 result and the statements it is built from.
Let be a poset on . An antichain is a set of pairwise incomparable elements; is the largest size of one. An ideal of is a downward-closed subset, and is the family of ideals. The comparability graph joins each comparable pair, and denotes the union of the neighborhoods of the vertices of .
Fix an antichain and call the core. For put
A pattern selects an element for every with . It is compatible if adding the relations for all to creates no cycle; is then the transitive closure. The deadline of is , or if , and is the number of elements of with deadline .
The deadline dynamic program of a compatible pattern has states : is an ideal of the core in , and counts, for each deadline , the elements with and that have not been placed yet. From one may place an element of with deadline (allowed when , with weight , decreasing by one), or a core element (allowed when is again an ideal and, if , ; weight , with increased by the newly released elements). The weight of a path is the product of its transition weights.
For a simple graph , a flow decomposition is a partition with independent, , , together with a fixed-point-free map along edges of with for all . A star block is a set of to vertices one of which is adjacent to all the others.
Pattern partition and correctness (any antichain ):
Multiplicity uniqueness: a compatible pattern is determined by .
State counts: for a maximum antichain, with , , ,
Decomposition: every graph has a flow decomposition, and the set of a flow decomposition partitions into star blocks , for which when . With such a decomposition of and ,
Polynomial-time versions of Dilworth's decomposition (a maximum antichain and a partition into chains), of the flow decomposition and of the star partition; the order-ideal dynamic program in ; and
The goal is stated with the base of the paper. The milestone list follows the paper section by section: every numbered lemma, theorem and displayed estimate of Sections 2–5 has a milestone.
The theorem. It is the first algorithm for counting linear extensions of an arbitrary poset, with no assumption on height, width or dimension, whose running time is , and it settles the question from the 2013 Dagstuhl list. The intermediate statements are of independent use: the pattern partition and the deadline dynamic program apply to every antichain of every poset, and the flow decomposition is a statement about arbitrary graphs.
The formalization. The result is proved in the paper; nothing here is open. The paper reports that its key ideas were found in AI-assisted exploration and then verified by the author, which makes an independent machine-checked proof of the combinatorial core (pattern partition, correctness of the weighted dynamic program, the state counts and the decomposition lemmas) directly informative. No statement of the paper has a machine-checked proof yet. The algorithmic milestones additionally require implementing the dynamic programs, bipartite matching and a maximum-flow computation on a concrete machine and proving the cost bounds.
An antichain of size contributes ideals to the standard dynamic program although its elements are interchangeable in the total count . Merging elements of an antichain that have the same comparability neighborhood in the core, the idea behind the two-dimensional result, fails for general posets because the elements of can have distinct neighborhoods. Any state compression must therefore treat elements with different upper sets as equivalent, and a count of the compressed states has to control the number of ways in which the upper constraints are resolved; a product bound on the number of patterns is far too large. On the formal side, the correctness of a weighted path count requires a bijection between weighted paths and linear extensions of , and the running-time statements require explicit programs.
Posets and patterns. The ground set is Fin n, and a poset is a term P : PartialOrder (Fin n); is allowed. is the number of order-preserving bijections onto Fin n. A pattern is a function Fin n → Option (Fin n), with none for the deadline and for elements on which no choice is made. The states of the dynamic program are those reachable from the initial state; the vector is indexed by Option (Fin n) and vanishes outside .
Machine. The paper names no machine. Running times are stated on a deterministic random access machine with logarithmic cost: registers hold natural numbers, the instructions are constant load, addition, truncated subtraction, halving, indirect load and store, conditional jump and halt, and a step costs one plus the binary lengths of the addresses and values it touches. Space is the sum, over all registers ever used, of the binary lengths of the address and of the largest value held; input registers count. " time and space" means one program and constants such that every run is within in both measures. A unit-cost machine on unbounded integers would make the statements weaker than the paper's, and a Turing machine would change exponential running times by more than a polynomial factor.
Input and output. A poset is given by , a tag, and either its strict order matrix or the adjacency matrix of a DAG whose transitive closure is ; both forms are covered by every algorithmic statement. The count is returned in register . Sets are returned as indicator lists and partitions as labellings.
Not a trivialization. The program and the constants are quantified before the input, so a table of answers cannot be hard-coded, and the bound applies to every valid encoding of every poset.
Reusable parts. The pattern partition, the deadline dynamic program, Dilworth's decomposition with chain bounds on , the flow decomposition and the star partition are independent of the machine model. Proofs of any milestone, alternative proofs of the decomposition lemmas, and library material on linear extensions, ideals and flows are welcome.
namespace CountingLinExt33
theorem theorem_1 :
CountsInStarTime (fun _ _ => True) (fun n _ => (33 : ℝ) ^ ((n : ℝ) / 6)) := by sorry
end CountingLinExt33Given an -element poset , the number of its linear extensions can be computed deterministically in time and space.
Formalization Note One program and constants : on every valid encoding of an -element poset (its strict order matrix, or a DAG matrix whose transitive closure is ) the program halts with in register within logarithmic cost and space on the deterministic logarithmic-cost RAM. The bound follows from .
No open leaves. Every sub-goal is proved or awaiting decomposition.