A finite bit program computing a rational Euclidean approximation of a positive definite form
ProvedRationalQuadraticForm.binary_euclidean_approximationbin-packingcomputational-complexityfixed-parameter-tractabilityinteger-programming
One finite binary stack realizer computes, from any positive definite rational matrix, rational coordinates whose Euclidean norm approximates the input form within a factor of two. The program emits the canonical encoded matrix. Its bit time is polynomial in the displayed dimension-dependent bound, whose coefficient-height dependence is linear before applying the fixed polynomial.
Preamble
import Definitions.Def_EdgeSublinearMWIS_Main_BinaryOracleImplementation open Matrix OAI.ThreeMachine.StackCompiler EdgeSublinearMWIS.Main EdgeSublinearMWIS.Main.RawStack EdgeSublinearMWIS.Main.GLS.EllipsoidRounding
Formal statement
namespace RationalQuadraticForm
theorem binary_euclidean_approximation :
∃ (f : SignedMatrix→SignedMatrix) (R : Realizer f) (P : Polynomial ℕ),
∀ (n s : ℕ) (A : Matrix (Fin n) (Fin n) ℚ),(realShape A).PosDef →
(∀ i j,(A i j).num.natAbs ≤ 2^s ∧ (A i j).den ≤ 2^s) →
let B:=8^(n+1)*(s+1)
let code:=fun (Q : Matrix (Fin n) (Fin n) ℚ)=>List.ofFn fun i=>List.ofFn fun j=>codeWords (rationalCode (Q i j))
∃ X : Matrix (Fin n) (Fin n) ℚ,f (code A)=code X ∧
R.time (code A) ≤ P.eval (2*(n*(n*(16*(B+2)+1)+2)+1)+1+n+2) ∧
(∀ i j,(X i j).num.natAbs ≤ 2^B ∧ (X i j).den ≤ 2^B) ∧
(∀ z : Fin n→ℝ,z ⬝ᵥ (realShape A *ᵥ z) ≤ ∑ i,((realShape X) *ᵥ z) i^2 ∧
(∑ i,((realShape X) *ᵥ z) i^2) ≤ 4*(z ⬝ᵥ (realShape A *ᵥ z))) ∧
(realShape A).det ≤ (realShape X).det^2 := by sorry
end RationalQuadraticFormSource
Binary implementation of rational Schur-complement elimination and square-root approximation for the bounded integer-feasibility routine in Koana and Kumabe, High-Multiplicity Bin Packing is FPT, Lemma 5.