Theorem 1 — the dynamic learning algorithm is 1 − O(ε) competitive when B = min_i b_i ≥ Ω(m log(n/ε)/ε²)
ProvedDynamicOnlineLP.DLA.dla_competitive_ratioConsider the online linear program: columns with and (), a right-hand side , and the offline optimum
The columns are chosen adversarially but arrive in a uniformly random order (Assumption 1), is known in advance (Assumption 2), and the inputs are in general position (Assumption 3: for any price vector at most columns satisfy ). Let with and let be a positive integer. Let be the decisions of the dynamic learning algorithm (DLA): it accepts nothing up to time ; at each time in a period , , it proposes , the threshold decision at an optimal dual price of the partial LP (13) on the first arrivals with right-hand side , , and executes it if no constraint is violated.
There are absolute constants such that, whenever
the DLA is competitive in the random permutation model:
This is the main result of Agrawal, Wang and Ye: a competitive ratio for online linear programming under random order, with a right-hand-side requirement whose dependence on matches the lower bound for the one-dimensional secretary problem.
Formalization Note The paper writes and ; its proof aims at , but the constant does not survive the union-bound arithmetic of Appendix B.1, so the statement asserts absolute constants , quantified before , , , the instance and the algorithm. The expectation is the average over all arrival orders. Because optimal dual prices need not be unique, the DLA is parametrized by a dual-selection rule, and the theorem holds for every valid rule (one that returns an optimal dual price of the partial LP and looks only at the first arrivals). and the integrality of are the paper's standing assumptions of §3; is the natural logarithm.
import Mathlib import Definitions.Def_DynamicOnlineLP_DLA_PackingLP import Definitions.Def_DynamicOnlineLP_DLA_Instance import Definitions.Def_DynamicOnlineLP_DLA_Algorithm
namespace DynamicOnlineLP.DLA
/-- Theorem 1 (Agrawal–Wang–Ye 2014, p. 878), with absolute constants `C₁, C₂` in place of the
paper's `Ω(·)` and `O(·)`: under Assumptions 1–3, `ε = 2^{-E}` and `εn ∈ ℕ`, if
`B = min_i b_i ≥ C₁ m log(n/ε)/ε²`, then Algorithm DLA (with any valid dual-selection rule) is
`1 - C₂ ε` competitive in the random permutation model:
`E_σ[∑_t π_t x_t] ≥ (1 - C₂ ε) OPT`. -/
theorem dla_competitive_ratio :
∃ C₁ C₂ : ℝ, 0 < 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 - C₂ * eps E) * I.OPT ≤ avgPerm (fun σ : Equiv.Perm (Fin n) => dlaValue I rule E σ) := by sorry
end DynamicOnlineLP.DLA
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement asserts that two positive real constants and exist. The same pair must work for every choice of problem dimensions, instance, dual-selection rule and accuracy exponent.
Symbols from the imported files. Several names come from three imported definition files that are not shown here: Instance, DualRule, IsValidDualRule, GeneralPosition, OPT, b, eps, dlaValue and avgPerm. This read-back cannot unfold them, so it describes each one only by how it is used in the statement. The auditor should check their actual definitions separately.
- is an object of type "instance with and ", written . It has a real-valued vector indexed by , a real number , and a predicate " is in general position".
- is an object of type that satisfies a predicate called "valid dual rule".
- is a real number that depends only on the natural number .
- is a real number defined for each permutation of .
- turns a real-valued function on the permutations of into a single real number.
The doc comment calls this Theorem 1 of Agrawal–Wang–Ye (2014) and mentions Assumptions 1–3 and the random permutation model. Those descriptions are commentary only. The code's hypotheses are exactly the ones listed below.
The statement. There exist real numbers and with the following property. Take any natural numbers , any instance and any dual rule such that:
- ;
- ;
- ;
- divides ;
- is in general position;
- is a valid dual rule;
- for every ,
Then
where ranges over all permutations of .
Order of quantifiers. The constants are chosen once, before , , , and . Nothing is said about how large they are, beyond both being strictly positive. The conclusion is a one-sided "". There is no equality claim and no bound in the other direction.
What the hypotheses leave in place.
- Hypotheses 3 and 4 together force .
- is the real logarithm, which by convention gives and for .
- Real division by zero gives . So if for some , hypothesis 7 turns into .
- If (for example, a large positive ), the logarithm is negative and hypothesis 7 becomes a weaker lower bound on , possibly a negative one.
- The statement does not say that is positive or small. Whether it equals depends on the unseen definition.
- If , the factor is zero or negative. The conclusion then only requires the average to be at least a non-positive multiple of . This is trivially true if the average is non-negative and .
- If is negative, or takes a default value because the underlying optimum does not exist, the inequality carries whatever meaning that value gives it.
- Hypotheses 5 and 6 are vacuous if no instance is in general position or no rule is valid. Whether that happens cannot be determined from this code.
- Because is existential and has no upper bound, hypothesis 7 can require arbitrarily large . The statement only covers instances whose all reach that threshold.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.