§3.4 — the pattern-enumeration and deadline DP algorithm runs in when
ProvedCountingLinExt33.deadline_dp_timecombinatoricsexact-countingexact-exponential-algorithmslinear-extensionsposets
Let be an -element poset, and . If , then can be computed deterministically in
time and space (by enumerating the compatible patterns of a maximum antichain and evaluating the deadline dynamic program layer by layer).
Formalization Note One program and constants : on every valid encoding of a poset with it halts with in register within logarithmic cost and space . Nothing is asserted for posets with .
Preamble
import Mathlib import Definitions.Def_MinrankTW_RAM import Definitions.Def_CountingLinExt33_Main_Orders import Definitions.Def_CountingLinExt33_Combinatorics import Definitions.Def_CountingLinExt33_Machine open CountingLinExt33.Main MinrankTW
Formal statement
namespace CountingLinExt33
theorem deadline_dp_time :
CountsInStarTime (fun n P => 2 * (n - width P) < n)
(fun n P => (2 : ℝ) ^ (n - width P) * (Nat.choose n (n - width P) : ℝ)) := by sorry
end CountingLinExt33Source
Keigo Oka, Counting Linear Extensions Faster than 2^n, STOC 2027 submission #725 (manuscript dated October 26, 2026; sha256 39412ca8…f151825), §3.4, p. 6 ("Evaluating the DP layer by layer … therefore takes time and space in total"), used in the proof of Theorem 2
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.