A polynomial-time encoder for the weighted parity queries in directed cycle search
ProvedDirectedHamiltonicity.Main.prepare_cycle_parity_query_polydirected-hamiltonicityexact-exponential-algorithms
One fixed binary program takes an explicit Boolean matrix and an arbitrary natural-number trial rank. It returns the exact self-delimiting weighted-path instance specified by the cycle search, or an empty list when the trial does not issue a parity call. Its running time is polynomial in the binary input length.
Preamble
import Definitions.Def_DirectedHamiltonicity_CycleSearch import Definitions.Def_QuantumMaxCutFiniteNumericRuntime open DirectedHamiltonicity.Main DirectedHamiltonicity.Main.CycleReduction
Formal statement
theorem DirectedHamiltonicity.Main.prepare_cycle_parity_query_poly :
∃ prepare : List (List Bool) × ℕ → List Bool, OAI.MetricKMedian.Binary.Automatic.Poly prepare ∧
∀ (n : ℕ) (adj : Fin n → Fin n → Bool) (word : ℕ),
prepare (List.ofFn (fun u => List.ofFn (adj u)),word) =
if h : word < drawCount n then (candidateInput adj ((rankDraw n).symm ⟨word,h⟩)).getD [] else [] := by sorrySource
T. Koana and S. Kumabe, Breaking the 2^n barrier for directed hamiltonicity, Section 2, proof of Theorem 1. https://arxiv.org/html/2609.39062v2#S2