Weighted deadline DP on a RAM given any antichain
OpenCountingLinExt33.deadline_dp_given_antichainalgorithmscombinatoricsposets
There exist a deterministic logarithmic-cost RAM program and constants such that for every finite poset on and every antichain , given the closed strict order matrix of concatenated with the indicator vector of , there is an orientation satisfying
such that halts within logarithmic-cost steps and outputs the linear extension count in register .
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 open scoped Classical
Formal statement
namespace CountingLinExt33
theorem deadline_dp_given_antichain :
∃ (prog : List Instr) (c d : ℕ),
∀ (n : ℕ) (P : PartialOrder (Fin n)) (B : Finset (Fin n)),
IsAntichain (· < ·) (B : Set (Fin n)) →
∃ (P' : PartialOrder (Fin n)),
(P' = P ∨ P' = dualOrder P) ∧
2 * (upperCore P' B).card ≤ (lowerCore P' B).card + (upperCore P' B).card ∧
HaltsWithin prog
(inputMem (encodeOrder ⟨true, fun u v => decide (P.lt u v)⟩ ++
List.ofFn (fun v : Fin n => if v ∈ B then 1 else 0)))
(c * (n + 1) ^ d * (1 + totalStates P' B))
(fun m => m 0 = extensionCount P) := by sorry
end CountingLinExt33Source
STOC 2027 submission #725, Counting Linear Extensions Faster than 2^n, Section 3.3 (Weighted deadline DP for any given antichain B)