GLS lexicographic column generation as a polynomial-time controller with a pricing oracle
DisprovedIntConeFPT.gls_lex_controllerThis is the algorithmic content of the lexicographic column generation step of Lemma 5: the algorithm is given as a polynomial-time controller that alternates computation with calls to the pricing oracle, in the form required by IntConeFPT.oracle_loop.
Setting. Let be a set of generators, , and two cost functions of the integer part. The oracle answers pricing queries: for a rational and a rational vector , the query word is answered by the encoding of a rational generator minimizing over all , together with the rational values and ; the answer has length at most .
The target is a rational point that is either or satisfies and . A fractional representation of the target is a finitely supported on with and ; its cost is .
Statement. For every there are a constant and a polynomial-time function on bit strings such that for all data as above there is an output with
- for every fractional representation of the target (optimality);
- for all (dual feasibility) and ;
- is a list of at most pairwise distinct generators of with positive rational weights that represents the target and has cost ;
- among all fractional representations of cost at most , has the smallest -cost (lexicographic optimality);
- the encoding of has length at most ;
and a run of the controller with the oracle on the input : words with and , where for
each is a pricing query of length at most , and .
Together with IntConeFPT.oracle_loop this gives IntConeFPT.gls_lex_oracle. It isolates the mathematics (the ellipsoid method with the pricing oracle as separation oracle for the dual, exact rounding, a basic optimal primal solution, and the lexicographic perturbation by ) from the Turing-machine construction.
Formalization Note Items 1–5 are verbatim the conclusions of IntConeFPT.gls_lex_oracle. bits writes a letter as the two bits , , and frame x y is x.flatMap (fun a => [0, a]) ++ 1 :: y; both are written out in the statement. The sequences are functions on of which only the indices up to matter.
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_OracleMachine import Definitions.Def_IntConeFPT_Instance import Definitions.Def_IntConeFPT_Problem import Definitions.Def_IntConeFPT_Residue import Definitions.Def_IntConeFPT_Formulation import Definitions.Def_Complexitylib_0ebd467_Computability_Machines_Turing_MultiTape_PolyTime open OnlineCRS.Combine
namespace IntConeFPT
theorem gls_lex_controller :
∀ K : ℕ, ∃ C : ℕ, ∃ step : List Bool → List Bool,
Turing.MultiTapeTM.ComputableInPolyTime step
(Function.Embedding.refl (List Bool)) (Function.Embedding.refl (List Bool)) ∧
∀ (d k : ℕ) (ctx : List Sym) (T A : Set (Gen d k)) (c s : (Fin d → ℝ) → ℝ),
A ⊆ T → ∀ O : List Sym → List Sym,
(∀ (ε : ℚ), 0 ≤ ε → ∀ (ax : Fin d → ℚ) (au : Fin k → ℚ),
∃ (x : Fin d → ℤ) (u : Fin k → ℚ) (cq sq : ℚ),
ratGen x u ∈ A ∧ (cq : ℝ) = c (fun i => (x i : ℝ)) ∧
(sq : ℝ) = s (fun i => (x i : ℝ)) ∧
(∀ g ∈ T, (cq : ℝ) + (ε : ℝ) * sq - pairing (ratPair ax au) (ratGen x u).toReal ≤
c (fun i => (g.1 i : ℝ)) + (ε : ℝ) * s (fun i => (g.1 i : ℝ)) -
pairing (ratPair ax au) g.toReal) ∧
(encGen x u ++ encRat cq ++ encRat sq ++ [3]).length ≤ ctx.length ^ K ∧
O (ctx ++ encRat ε ++ [3] ++ encVec ax ++ encVec au) =
encGen x u ++ encRat cq ++ encRat sq ++ [3]) →
∀ (z : Fin d → ℚ) (w : Fin k → ℚ) (n : ℚ),
((ratPair z w).1, (ratPair z w).2, (n : ℝ)) = 0 ∨
(0 < (n : ℝ) ∧ ((n : ℝ)⁻¹ • (ratPair z w).1, (n : ℝ)⁻¹ • (ratPair z w).2) ∈
convexHull ℝ (Gen.toReal '' T)) →
let inp := encNat d ++ [3] ++ encNat k ++ [3] ++ encVec z ++ encVec w ++ encRat n ++ [3] ++ ctx
∃ o : ℚ × ((Fin d → ℚ) × (Fin k → ℚ)) × ℚ × List ((Fin d → ℤ) × (Fin k → ℚ) × ℚ),
(∀ θ : Gen d k →₀ ℝ, IsFracRep T θ ((ratPair z w).1, (ratPair z w).2, (n : ℝ)) →
(o.1 : ℝ) ≤ fracCost c θ) ∧
(∀ g ∈ T, pairing (ratPair o.2.1.1 o.2.1.2) g.toReal + (o.2.2.1 : ℝ) ≤
c (fun i => (g.1 i : ℝ))) ∧
(o.1 : ℝ) = pairing (ratPair o.2.1.1 o.2.1.2) (ratPair z w) + (o.2.2.1 : ℝ) * n ∧
o.2.2.2.length ≤ d + k + 1 ∧
(o.2.2.2.map fun e => (e.1, e.2.1)).Nodup ∧
(∀ e ∈ o.2.2.2, ratGen e.1 e.2.1 ∈ A ∧ 0 < e.2.2) ∧
(o.2.2.2.map fun e => (e.2.2 : ℝ) • (ratGen e.1 e.2.1).toReal).sum = ratPair z w ∧
(o.2.2.2.map fun e => (e.2.2 : ℝ)).sum = n ∧
(o.2.2.2.map fun e => (e.2.2 : ℝ) * c (fun i => (e.1 i : ℝ))).sum = o.1 ∧
(∀ θ : Gen d k →₀ ℝ, IsFracRep T θ ((ratPair z w).1, (ratPair z w).2, (n : ℝ)) →
fracCost c θ ≤ o.1 →
(o.2.2.2.map fun e => (e.2.2 : ℝ) * s (fun i => (e.1 i : ℝ))).sum ≤ fracCost s θ) ∧
(encOracle o).length ≤ inp.length ^ C ∧
∃ (R : ℕ) (σ q st : ℕ → List Sym),
R ≤ inp.length ^ C ∧ σ 0 = 1 :: inp ∧
(∀ i < R,
step ((σ i).flatMap fun a => [decide (2 ≤ a.1), decide (a.1 % 2 = 1)]) =
(((q i).flatMap (fun a => [(0 : Sym), a]) ++ 1 :: st i).flatMap
fun a => [decide (2 ≤ a.1), decide (a.1 % 2 = 1)]) ∧
(q i).length ≤ inp.length ^ C ∧
(∃ (ε : ℚ) (ax : Fin d → ℚ) (au : Fin k → ℚ),
0 ≤ ε ∧ q i = ctx ++ encRat ε ++ [3] ++ encVec ax ++ encVec au) ∧
σ (i + 1) = (st i).flatMap (fun a => [(0 : Sym), a]) ++ 1 :: O (q i)) ∧
step ((σ R).flatMap fun a => [decide (2 ≤ a.1), decide (a.1 % 2 = 1)]) =
((3 :: (encNat d ++ [3] ++ encNat k ++ [3] ++ encOracle o)).flatMap
fun a => [decide (2 ≤ a.1), decide (a.1 % 2 = 1)]) ∧
∀ i ≤ R, (σ i).length ≤ inp.length ^ C := by sorry
end IntConeFPT