Lemma 5 — with probability 1 − ε the learned prices never overspend: Σ_{t=ℓ+1}^{2ℓ} a_it x_t(p̂^ℓ) ≤ (ℓ/n) b_i for all i and ℓ ∈ L
ProvedDynamicOnlineLP.DLA.learned_price_feasibleConsider an instance of the online linear program with columns (, , ) in general position, arriving in a uniformly random order. Let with , assume is a positive integer, let , , and let be an optimal dual price of the partial LP (13) on the first arrivals (chosen by any valid dual-selection rule). There is an absolute constant such that, if
then with probability at least over the arrival order,
Here is the threshold decision for the column arriving at time . The lemma says that in each doubling period the decisions induced by the price learned at its start consume at most that period's proportional share of every resource, which is what keeps the dynamic learning algorithm from running out of capacity.
Formalization Note The paper states the condition as . Its proof (Appendix B.1) does not close with the constant (the union-bound step needs , false for , and the count of distinct threshold patterns by is too small), so the statement uses an absolute constant , quantified before every instance parameter; everything else is exact, including the probability . is the natural logarithm. Times are 0-based in Lean, so the paper's times are Lean times . General position (Assumption 3), a standing assumption of the paper's analysis, is a hypothesis.
import Mathlib import Definitions.Def_DynamicOnlineLP_DLA_PackingLP import Definitions.Def_DynamicOnlineLP_DLA_Instance import Definitions.Def_DynamicOnlineLP_DLA_Algorithm
namespace DynamicOnlineLP.DLA
/-- Lemma 5 (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,
`∑_{t=ℓ+1}^{2ℓ} a_{it} x_t(p̂^ℓ) ≤ (ℓ/n) b_i` for all `i` and all `ℓ ∈ L`
(paper times `ℓ+1, …, 2ℓ` are the 0-based times `ℓ, …, 2ℓ−1`). -/
theorem learned_price_feasible :
∃ 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, ∀ i : Fin m,
∑ t ∈ Finset.univ.filter (fun t : Fin n => ℓ ≤ t.val ∧ t.val < 2 * ℓ),
I.arrA σ t i *
threshold (I.arrPi σ) (I.arrA σ) (learnedPrice I rule E σ ℓ) t ≤
((ℓ : ℝ) / (n : ℝ)) * I.b i) := 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 that works for all of the following at once. The constant is chosen once, before and everything else.
Setting. Take any , any instance with rows and columns (so and , with unrestricted), and any dual rule. Suppose:
- , , , and divides ;
- 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;
- with and natural logarithm , for every :
Conclusion. With uniformly random over the permutations:
The symbols in the conclusion mean:
- with , which is exact here.
- ranges over times in with .
- is if , and otherwise.
- is the rule's output at on the permuted data, with right-hand side , where .
The quantity bounded is the resource use of the threshold proposals . It is not the resource use of the algorithm's executed decisions.
Degenerate cases:
- Parameters. Here , every satisfies , and . The bound on therefore forces every .
- Sign of . Since , , so the right-hand side fed to the rule is nonnegative.
- . and .
- Excluded cases. , and are excluded.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.