Lemma 1 — the threshold solution at an optimal dual price is below every optimal primal solution and differs from it in at most m places
ProvedDynamicOnlineLP.DLA.threshold_le_optimalConsider the packing linear program with box constraints on a finite column set ,
and its dual subject to , . Let be an optimal primal solution and an optimal dual solution, and let be the threshold rule ( iff ). Then
and, if the columns in are in general position (for any at most columns satisfy ), then for at most indices .
This is the bridge between dual prices and primal decisions used throughout the paper's analysis: it is applied to the offline LP (1), the sample LP (7) and the partial LP (13).
Formalization Note The paper states the lemma for the offline LP (1); it is stated here for an arbitrary finite column set, arbitrary real data and an arbitrary right-hand side , which covers each LP it is applied to.
import Mathlib import Definitions.Def_DynamicOnlineLP_DLA_PackingLP
namespace DynamicOnlineLP.DLA
/-- Lemma 1 (Agrawal–Wang–Ye 2014, p. 881). Let `x*` be an optimal solution of the packing LP
`max ∑_{t∈S} π_t x_t` s.t. `∑_{t∈S} a_{it} x_t ≤ d_i`, `0 ≤ x_t ≤ 1`, and `(p*, y*)` an optimal
solution of its dual. Then `x_t(p*) ≤ x*_t` for all `t ∈ S`, and under Assumption 3 (general
position) `x*_t` and `x_t(p*)` differ for at most `m` values of `t ∈ S`. -/
theorem threshold_le_optimal {ι : Type} {m : ℕ} (S : Finset ι) (π : ι → ℝ)
(a : ι → Fin m → ℝ) (d : Fin m → ℝ) (x : ι → ℝ) (p : Fin m → ℝ) (y : ι → ℝ)
(hx : IsPrimalOptimal S π a d x) (hpy : IsDualOptimal S π a d p y) :
(∀ t ∈ S, threshold π a p t ≤ x t) ∧
(GeneralPositionOn S π a → (S.filter (fun t => threshold π a p t ≠ x t)).card ≤ m) := by sorry
end DynamicOnlineLP.DLA
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any type, , finite, and let , entries and be arbitrary real data. Let , and satisfy two hypotheses:
- (i) is primal optimal. It satisfies for all and for , and it maximizes among all such vectors.
- (ii) is dual optimal. It satisfies , and for , and it minimizes among all such pairs.
Write for the threshold value: if , and otherwise. The theorem asserts both of the following:
- For every , . In other words, whenever , then (so ).
- If general position holds on , then
General position here means: for every in , at most indices satisfy .
No sign conditions are imposed on , or . Coordinates outside play no role.
Degenerate cases:
- Vacuous hypotheses. If no primal-optimal or no dual-optimal exists (for instance, an infeasible primal), the statement is vacuous.
- . Both conclusions hold trivially.
- . The second conclusion says that under general position (no with ), equals when and when , for every .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.