Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 2.1 — at most ∣COPT∣(log⁡2m+2)|\mathcal C_{OPT}|(\log_2 m+2)∣COPT​∣(log2​m+2) weight augmentations

Proved
OnlineSetCover.Unweighted.lemma_2_1

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

online-algorithmsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1potential-functionset-cover

Consider the unweighted online set-cover algorithm of Section 2 on an instance with mmm sets. Let σ\sigmaσ be any sequence of arriving elements and let COPT\mathcal C_{OPT}COPT​ be any family of sets covering every element of σ\sigmaσ. Then in every run of the algorithm on σ\sigmaσ, the number aaa of iterations in which a weight augmentation is performed satisfies

a  ≤  ∣COPT∣⋅(log⁡2m+2).a\;\le\;|\mathcal C_{OPT}|\cdot(\log_2 m+2).a≤∣COPT​∣⋅(log2​m+2).

This bounds the number of iterations in which the algorithm may add sets to its cover; combined with the per-iteration bound of Lemma 2.2 it bounds the size of the final cover (Theorem 2.3).

Formalization Note The logarithm is base 2: the paper's log⁡m+2\log m+2logm+2 is log⁡2(4m)\log_2(4m)log2​(4m), the number of doublings that take a weight from its initial value 1/(2m)1/(2m)1/(2m) to at most 222. The statement holds for every family covering the arrivals, in particular for an optimal one. Runs are those of the relation Run of the definition file; arrival lists may repeat elements.

Preamble
import Mathlib
import Definitions.Def_OnlinePrimalDual_OnlineSetCover_SetCoverInstance
import Definitions.Def_OnlinePrimalDual_OnlineSetCover_coveredBy
import Definitions.Def_OnlineSetCover_Unweighted_Algorithm
open OnlinePrimalDual.OnlineSetCover
Formal statement
namespace OnlineSetCover.Unweighted

/-- Lemma 2.1 (Alon et al. 2009, p. 363): for every family `OPT` of sets covering every element
of the arrival list `σ`, every run of the unweighted algorithm on `σ` performs at most
`|OPT| · (log₂ m + 2)` weight augmentations, where `m` is the number of sets. -/
theorem lemma_2_1 {E T : Type*} [Fintype E] [Fintype T] [DecidableEq T]
    (inst : SetCoverInstance E T) (σ : List E) (OPT : Finset T)
    (hOPT : ∀ j ∈ σ, coveredBy inst OPT j)
    (s : State T) (a : ℕ) (hrun : Run inst σ s a) :
    (a : ℝ) ≤ (OPT.card : ℝ) * (Real.logb 2 (Fintype.card T) + 2) := by sorry

end OnlineSetCover.Unweighted
Source
Alon, Awerbuch, Azar, Buchbinder, Naor, The Online Set Cover Problem, SIAM J. Comput. 39(2) (2009), p. 363, Lemma 2.1
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 2026

    Confirmed by the mission captain (proposal self-audit).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me