Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.4, p. 14 — i.i.d. Budgeted Greedy has approximation factor 3 + 2√2

Proved
OverflowBinPacking.IID.theorem_4_4

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

approximation-ratiobin-packingonline-algorithmsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-packing

Let X1,…,XnX_1,\ldots,X_nX1​,…,Xn​ be nonnegative i.i.d. item sizes and let an overflowed bin incur penalty C≥1C\ge1C≥1. Budgeted Greedy with risk parameter γ=2\gamma=\sqrt2γ=2​ is a measurable, feasible online policy. For every measurable feasible adaptive policy PPP,

cost⁡(BG2)≤(3+22)cost⁡(P).\operatorname{cost}(\mathrm{BG}_{\sqrt2})\le(3+2\sqrt2)\operatorname{cost}(P).cost(BG2​​)≤(3+22​)cost(P).

Thus the same factor holds against the infimum of costs of policies that know the horizon nnn, whether or not an optimum is attained.

Formalization Note The i.i.d. joint law is the product of a single probability measure supported on nonnegative reals. The algorithm's policy status is part of the conclusion, ensuring its expected cost is meaningful. Items and bins use zero-based indices.

Preamble
import Mathlib
import Definitions.Def_OverflowBinPacking_IID_BudgetedGreedy
Formal statement
namespace OverflowBinPacking.IID

open MeasureTheory

/-- Theorem 4.4, p. 14 (= Theorem 1.2, p. 5). -/
theorem theorem_4_4 (n : ℕ) (C : ℝ) (hC : 1 ≤ C)
    (ν : Measure ℝ) [IsProbabilityMeasure ν]
    (hν0 : ν (Set.Iio 0) = 0) :
    IsPolicy (bgRule (fun _ : Fin n => ν) C (Real.sqrt 2)) ∧
    ∀ a : Rule n, IsPolicy a →
      cost (fun _ : Fin n => ν) C
        (bgRule (fun _ : Fin n => ν) C (Real.sqrt 2)) ≤
      (3 + 2 * Real.sqrt 2) * cost (fun _ : Fin n => ν) C a := by sorry

end OverflowBinPacking.IID
Source
Perez-Salazar, Singh & Toriello, Adaptive Bin Packing with Overflow, arXiv:2007.11532v2, p. 14, Theorem 4.4 (= Theorem 1.2, p. 5)
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 21, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me