Canonical rational ellipsoid updates on ordinary Boolean Turing tapes
ProvedRationalEllipsoid.canonical_update_on_binary_tapesbin-packingcomputational-complexityfixed-parameter-tractabilityinteger-programming
One ordinary Boolean stack Turing machine takes unary dimension and iteration counters followed by a binary rational shape matrix, cut direction, and center. It outputs the exact prescribed rounded matrix and center in canonical self-delimiting binary rational fields in a polynomial number of steps in the full input length, for every positive cut quadratic form and every dimension at least two.
Preamble
import Mathlib import Definitions.Def_EdgeSublinearMWIS_Main_RationalEllipsoids import Definitions.Def_HMBinPacking_Encoding import Definitions.Def_HMBinPacking_OutputsWithin open Matrix EdgeSublinearMWIS.Main.GLS.EllipsoidCenter EdgeSublinearMWIS.Main.GLS.EllipsoidPrecision open EdgeSublinearMWIS.Main.GLS.EllipsoidIteration
Formal statement
namespace RationalEllipsoid
theorem canonical_update_on_binary_tapes :
∃ (M : Turing.TM2ComputableAux Bool Bool) (p : Polynomial ℕ),
∀ (n k : ℕ), 2 ≤ n → ∀ (A : Matrix (Fin n) (Fin n) ℚ) (a c : Fin n → ℚ),
0 < a ⬝ᵥ (A *ᵥ a) →
let unary := fun i : ℕ => List.replicate i true ++ [false]
let mat := fun B : Matrix (Fin n) (Fin n) ℚ => (List.ofFn (fun i => HMBinPacking.encVec (B i))).flatten
let input := unary n ++ unary k ++ mat A ++ HMBinPacking.encVec a ++ HMBinPacking.encVec c
let g := gridDenominator (2*k+2) (2*n+4) n
HMBinPacking.OutputsWithin M input
(mat (roundedStepShape n A a g (stepAccuracy n)) ++ HMBinPacking.encVec (roundedCenter n A a c g))
(p.eval input.length) := by sorry
end RationalEllipsoidSource
Rounded ellipsoid bit implementation for HMBinPacking Lemma 6, using RationalEllipsoid.canonical_update_realizer and the public raw-stack parser/serializer.