Lemma 5, merging step — a polynomial-time machine averaging generators with equal integer coordinates
ProvedIntConeFPT.lemma_5_merge_writerThere are an absolute constant and a deterministic algorithm with the following property. Its input consists of dimensions and an oracle output , where is a list of generators , with positive rational multiplicities . The algorithm outputs . Here replaces all entries with the same integer coordinates by the single entry
The output has length at most , and the algorithm halts within steps, where is the input length.
This is the algorithmic content of the merging step at the end of the proof of Lemma 5 (p.36): "Since the averaging combines at most generators of polynomial encoding length, the resulting rational generators and multiplicities also have polynomial encoding length. The averaging takes polynomial time."
Formalization Note. The input is encNat d ++ [3] ++ encNat k ++ [3] ++ encOracle o and the output is encOracle of the merged tuple. Rationals are written in lowest terms, so the bound on the output length is part of the statement. The machine model is the mission's Machine/RunsWithin.
import Mathlib import Definitions.Def_OnlineCRS_Combine_Sym import Definitions.Def_OnlineCRS_Combine_encNat import Definitions.Def_OnlineCRS_Combine_encInt import Definitions.Def_OnlineCRS_Combine_encRat import Definitions.Def_OnlineCRS_Combine_encVec import Definitions.Def_IntConeFPT_Machine import Definitions.Def_IntConeFPT_Instance import Definitions.Def_IntConeFPT_Problem import Definitions.Def_IntConeFPT_Residue import Definitions.Def_IntConeFPT_Formulation import Definitions.Def_IntConeFPT_fracMerge open OnlineCRS.Combine
namespace IntConeFPT
theorem lemma_5_merge_writer :
∃ C : ℕ, ∃ M : Machine, ∀ (d k : ℕ)
(o : ℚ × ((Fin d → ℚ) × (Fin k → ℚ)) × ℚ × List ((Fin d → ℤ) × (Fin k → ℚ) × ℚ)),
(∀ e ∈ o.2.2.2, 0 < e.2.2) →
let inp := encNat d ++ [3] ++ encNat k ++ [3] ++ encOracle o
let out := encOracle (o.1, o.2.1, o.2.2.1, fracMerge o.2.2.2)
out.length ≤ inp.length ^ C ∧ RunsWithin M inp out ((inp.length : ℝ) ^ C) := by sorry
end IntConeFPT