Lemma 5, input writer — move the query before the instance and prefix the dimensions
ProvedIntConeFPT.lemma_5_lex_lp_prep_writerThere are a constant and a deterministic algorithm that, for every valid instance , type , residue and rational query , rewrites the input
into
within steps, where is the input length.
This is the format change between the call of Lemma 5's linear-programming stage and the generic column-generation procedure IntConeFPT.lex_column_generation. That procedure reads the dimensions and the query first and treats the instance as an opaque context word passed to the pricing oracle. The algorithm parses the self-delimiting encoding of to locate the query.
Formalization Note. Input encLocal I t r ++ encVec z ++ encVec w ++ encRat n ++ [3], output encNat d ++ [3] ++ encNat k ++ [3] ++ encVec z ++ encVec w ++ encRat n ++ [3] ++ encLocal I t r, in the mission's Machine/RunsWithin model.
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 open OnlineCRS.Combine
namespace IntConeFPT
theorem lemma_5_lex_lp_prep_writer :
∃ C : ℕ, ∃ W : Machine, ∀ I : Instance, I.Valid →
∀ (t : Fin I.τ) (r : Residue I.d) (z : Fin I.d → ℚ) (w : Fin I.k → ℚ) (n : ℚ),
let inp := encLocal I t r ++ encVec z ++ encVec w ++ encRat n ++ [3]
RunsWithin W inp
(encNat I.d ++ [3] ++ encNat I.k ++ [3] ++ encVec z ++ encVec w ++ encRat n ++ [3] ++
encLocal I t r)
(((inp.length : ℝ) + 2) ^ C) := by sorry
end IntConeFPT