Lemma 3 — a maximum antichain and a partition into chains in polynomial time
ProvedCountingLinExt33.lemma_3combinatoricsexact-countingexact-exponential-algorithmslinear-extensionsposets
In polynomial time, one can find a maximum antichain of and a partition of into chains.
Formalization Note One program and constants : on every valid encoding of an -element poset it runs within and returns the indicator list of a maximum antichain followed by a list of labels such that any two distinct elements with the same label are comparable. The label classes are the chains; since is a maximum antichain, each of the labels is used.
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 lemma_3 :
∃ (prog : List Instr) (c d : ℕ),
∀ (n : ℕ) (P : PartialOrder (Fin n)) (a : OrderInput n), ValidInput P a →
RunsWithin prog (encodeOrder a) (polyBound c d n)
(fun mem => ∃ (B : Finset (Fin n)) (ch : Fin n → ℕ),
OutputIs mem (indicator B ++ tabulate ch) ∧
IsMaximumAntichain P B ∧
(∀ i, ch i < B.card) ∧
∀ i j, ch i = ch j → i ≠ j → P.lt i j ∨ P.lt j i) := 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), Lemma 3, p. 3 (Dilworth's chain–antichain decomposition)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.