Lemmas 2.1 and 3.11: polynomial-time bit-TM2 preprocessing of the registered graph and terminal inputs followed by the uniform minimum-cut RAM
ProvedSingleExpBisect.Main.registered_input_flow_pipelinealgorithmsgraph-theoryparameterized-complexity
From the registered binary encoding of an arbitrary graph G, parameter k, and both terminal sets S,T, a single finite deterministic bit-TM2 outputs the canonical raw memory image used by the certified minimum-cut word-RAM. It generates all ordinary, heavy terminal, and strong-connectivity arcs in the required order and computes both headers. The complete preprocessing takes at most 1048576(n+2)^6 + 4·bitlength(k) real TM2 transitions. Every emitted input cell agrees with the RAM encoding at every word width and address. For disjoint S,T the one fixed RAM starts from those exact output cells, halts within the stated actual instruction budget, and returns mincut(G,S,T)+1.
Preamble
import Definitions.Def_HMBinPacking_OutputsWithin import Definitions.Def_SingleExpBisect_Main_Encodings import Definitions.Def_SingleExpBisect_Main_ImportantEnumeration import Mathlib.Data.Nat.Log open WordRAM DirKECC1549.Main SingleExpBisect.ImportantSearch SingleExpBisect.FlowReduction SingleExpBisect.BagEnumeration open MinBisectFPT ExponomialAssortment.FPTAS
Formal statement
theorem SingleExpBisect.Main.registered_input_flow_pipeline :
∃ (M : Turing.TM2ComputableAux Bool Bool) (A : WordRAM.Complexity.Algorithm .multiplication) (K : ℕ),
∀ (n : ℕ) (G : SimpleGraph (Fin n)) (S T : Finset (Fin n)) (k : ℕ), Disjoint S T →
let g:=matrixOf G
let m:=(arcs g S T).length
let p:=n*n+2
let H:=A.capacity (8*blk (n+2) m+p)+20*(n+2)+40*m+600+p+1
let w : WordRAM.Width:=⟨Nat.log 2 H+1,Nat.zero_lt_succ _⟩
∃ data : List ℕ, HMBinPacking.OutputsWithin M (encodeInput G k++encodeSet S++encodeSet T)
(data.flatMap encodeNat) (1048576*(n+2)^6+4*k.bits.length) ∧
(∀ (u : WordRAM.Width) (a : ℕ), BitVec.ofNat u.bits (data[a]?.getD 0)=goalInput u (n+2) m (arcMap g S T) a) ∧
let initial : WordRAM.Memory w:=fun a=>BitVec.ofNat w.bits (data[a]?.getD 0)
let state:=runFrom A.code w initial (K*flowInstructionFactor n)
2^w.bits≤2*H ∧ state.halted=true ∧ state.ticks≤K*flowInstructionFactor n ∧
(state.mem (outCell (n+2) m 0)).toNat=mincut G S T+1 := by sorrySource
S. Kumabe, Single-Exponential FPT Algorithms for Minimum Bisection and Matching Cut via a New Unbreakable Decomposition, Sections 2 and 3, Prove2Me STOC project 803. The RAM suffix is the published uniform_raw_edge_list_mincut theorem.