Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Online fractional covering is O(log⁡n)O(\log n)O(logn)-competitive (Buchbinder–Naor), in the form (4.4)

Proved
BudgetedAffine.Disjoint.online_cover_exists

by tianyipeng · Nov 3, 2026 · Mathlib 0df444a (Lean v4.33.1)

affine-policiesrobust-optimization

Consider the online fractional covering problem

min⁡{d⊤y:My≥1, y≥0}\min\{d^\top y : My\ge \mathbb 1,\ y\ge 0\}min{d⊤y:My≥1, y≥0}

with a non-negative constraint matrix M∈R+m×nM\in\mathbb R_+^{m\times n}M∈R+m×n​ and a cost vector d∈R+nd\in\mathbb R_+^nd∈R+n​. The covering requirements arrive online in batches S1,S2,⋯⊆[m]S_1,S_2,\dots\subseteq[m]S1​,S2​,⋯⊆[m]: when SrS_rSr​ arrives, the algorithm must augment its current solution yAy^{\mathcal A}yA (it may never decrease it) so that every revealed row is covered.

There are constants K>0K>0K>0 and NNN such that for every n≥Nn\ge Nn≥N, every mmm, every such MMM and every such ddd, there is an online algorithm with the following properties:

  1. it starts from y=0y=0y=0 and only ever augments its non-negative solution;
  2. whenever the revealed rows can be covered at all, it covers every revealed row;
  3. for every sequence of pairwise disjoint batches whose union S1∪⋯∪SRS_1\cup\dots\cup S_RS1​∪⋯∪SR​ can be covered, its cost satisfies
A(S1,…,SR)≤Klog⁡n⋅Θ(1(S1∪⋯∪SR)),\mathcal A(S_1,\dots,S_R)\le K\log n\cdot\Theta\big(\mathbb 1(S_1\cup\dots\cup S_R)\big),A(S1​,…,SR​)≤Klogn⋅Θ(1(S1​∪⋯∪SR​)),

where Θ(h)=min⁡y≥0{d⊤y:My≥h}\Theta(h)=\min_{y\ge0}\{d^\top y: My\ge h\}Θ(h)=miny≥0​{d⊤y:My≥h} is the offline covering cost.

This is the O(log⁡n)O(\log n)O(logn)-competitive online fractional covering algorithm of Buchbinder and Naor that El Housni and Goyal use in Section 4.1 (eq. (4.4)) to construct both the greedy scenario of Algorithm 1 and the affine policy for disjoint constrained budgeted sets.

Formalization Note "Online algorithm with competitive ratio ρ\rhoρ" is the platform structure OnlineCover M d ρ (definition BudgetedAffine_Disjoint_OnlineCover). Its solution is a function of the revealed list of batches, which encodes the online (prefix-only) dependence. Variables with zero cost are allowed; log⁡\loglog is the natural logarithm.

Preamble
import Mathlib
import Definitions.Def_BudgetedAffine_Disjoint_Model
import Definitions.Def_BudgetedAffine_Disjoint_OnlineCover
Formal statement
namespace BudgetedAffine.Disjoint

open Matrix

/-- Buchbinder–Naor: online fractional covering admits an `O(log n)`-competitive online algorithm,
i.e. there are `K > 0` and `N` such that for every `n ≥ N`, every non-negative `M ∈ ℝ^{m×n}` and
every cost `d ≥ 0` there is an online covering algorithm for `M`, `d` with competitive ratio
`K log n` (in the sense of `OnlineCover`). -/
theorem online_cover_exists :
    ∃ K : ℝ, 0 < K ∧ ∃ N : ℕ, ∀ n ≥ N, ∀ (m : ℕ) (M : Matrix (Fin m) (Fin n) ℝ) (d : Fin n → ℝ),
      (∀ i j, 0 ≤ M i j) → 0 ≤ d → Nonempty (OnlineCover M d (K * Real.log n)) := by sorry

end BudgetedAffine.Disjoint
Source
Buchbinder, Naor, Online Primal-Dual Algorithms for Covering and Packing, Math. Oper. Res. 34(2):270-286, 2009, Theorem 4.1 (O(log n)-competitive online fractional covering); used as eq. (4.4) in El Housni, Goyal, On the Optimality of Affine Policies for Budgeted Uncertainty Sets, arXiv:1807.00163v2, Sec. 4.1, p. 15

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me