Lemma 6 — with probability 1 − ε, Σ_{t≤2ℓ} π_t x_t(p̂^ℓ) ≥ (1 − 2h_ℓ − ε) OPT_{2ℓ}((2ℓ/n) b) for all ℓ ∈ L
ProvedDynamicOnlineLP.DLA.learned_price_near_optimalUnder the setting of Lemma 5 (an online LP instance with constraints, , , in general position and in uniformly random order; , , a positive integer; , and the learned dual prices of (13) as there), let denote the optimal value of the partial program on the first arrivals with right-hand side . There is an absolute constant such that, if , then with probability at least , for all ,
This is the optimality half of the analysis: the price learned from the first arrivals, applied to the first arrivals, is nearly optimal for the proportionally scaled partial program.
Formalization Note The paper's condition is ; as for Lemma 5, its proof does not deliver the constant , and an absolute constant quantified before every instance parameter is used instead. The probability and the factor are exact. is the natural logarithm; times are Lean's firstTimes n (2ℓ).
import Mathlib import Definitions.Def_DynamicOnlineLP_DLA_PackingLP import Definitions.Def_DynamicOnlineLP_DLA_Instance import Definitions.Def_DynamicOnlineLP_DLA_Algorithm
namespace DynamicOnlineLP.DLA
/-- Lemma 6 (Agrawal–Wang–Ye 2014, p. 884), with an absolute constant `C` in place of the paper's
`10`: under Assumptions 1–3, `ε = 2^{-E}` and `εn ∈ ℕ`, if `b_i ≥ C m log(n/ε)/ε²` for all `i`,
then with probability at least `1 - ε` over the arrival order, for all `ℓ ∈ L`,
`∑_{t=1}^{2ℓ} π_t x_t(p̂^ℓ) ≥ (1 - 2h_ℓ - ε) OPT_{2ℓ}((2ℓ/n) b)`. -/
theorem learned_price_near_optimal :
∃ C : ℝ, 0 < C ∧
∀ (m n E : ℕ) (I : Instance m n) (rule : DualRule m n),
1 ≤ m → 1 ≤ E → 0 < n → 2 ^ E ∣ n → I.GeneralPosition → IsValidDualRule rule →
(∀ i : Fin m, C * (m : ℝ) * Real.log ((n : ℝ) / eps E) / eps E ^ 2 ≤ I.b i) →
1 - eps E ≤ probPerm (fun σ : Equiv.Perm (Fin n) =>
∀ ℓ ∈ phases n E,
(1 - 2 * slack n E ℓ - eps E) *
I.partialOPT σ (2 * ℓ) (fun i => (2 * (ℓ : ℝ) / (n : ℝ)) * I.b i) ≤
∑ t ∈ firstTimes n (2 * ℓ),
I.arrPi σ t * threshold (I.arrPi σ) (I.arrA σ) (learnedPrice I rule E σ ℓ) t) := by sorry
end DynamicOnlineLP.DLA
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The theorem asserts that there is a real constant , chosen once before all other quantities, that works for all of the following.
Setting. Take any , any instance (with , , and unrestricted), and any dual rule. Suppose:
- , , , and ;
- is in general position: for every , at most columns satisfy ;
- the rule is valid: it depends only on the first arrivals, and for and it returns an optimal dual price of the packing LP on the first columns;
- for all , where and is the natural logarithm.
Conclusion. With uniformly random over the permutations, the following holds with probability at least for every , where :
The symbols mean:
- .
- is the supremum of over with for all and . It is if no such exists.
- is if , and otherwise.
- is the rule's output at on the permuted data, with right-hand side .
The sum on the right runs over all times , including the first . It uses the threshold proposals, not the algorithm's executed decisions.
Degenerate cases:
- Parameters. , so . The bound on forces , so the partial LP is feasible and its optimum is a true supremum, which is since .
- Negative coefficient. can be negative. For example, with and , the coefficient is . For such the left side is the right side, and the inequality holds automatically.
- Excluded cases. , and are excluded.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.