Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4, pp. 18–19 — ∑m′≥mP0(N⋄(m′−1))≤(1+ϵ)2ϵP0(N⋄(m−1))\sum_{m'\ge m}P_0(N^{\diamond(m'-1)})\le\frac{(1+\epsilon)^2}{\epsilon}P_0(N^{\diamond(m-1)})∑m′≥m​P0​(N⋄(m′−1))≤ϵ(1+ϵ)2​P0​(N⋄(m−1))

Proved
BatchTesting.PTAS.lemma_4

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

approximation-schemebucketingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1sequential-testing

Let (p,c,β)(p,c,\beta)(p,c,β) be an instance with n≥1n\ge1n≥1, pi∈[0,1]p_i\in[0,1]pi​∈[0,1], ci>0c_i>0ci​>0, β≥0\beta\ge0β≥0, let 0<ϵ≤10<\epsilon\le10<ϵ≤1, let N∗N^{*}N∗ be a path of the dynamic program over FFF, and let N⋄(0),…,N⋄(M)N^{\diamond(0)},\dots,N^{\diamond(M)}N⋄(0),…,N⋄(M) be its bucketed subsequence (§4.3). Then for every 1≤m≤M1\le m\le M1≤m≤M,

∑m′=mMP0(N⋄(m′−1)) ≤ (1+ϵ)2ϵ⋅P0(N⋄(m−1)).\sum_{m'=m}^{M}P_0\big(N^{\diamond(m'-1)}\big)\ \le\ \frac{(1+\epsilon)^2}{\epsilon}\cdot P_0\big(N^{\diamond(m-1)}\big).m′=m∑M​P0​(N⋄(m′−1)) ≤ ϵ(1+ϵ)2​⋅P0​(N⋄(m−1)).

Since consecutive bucketed states lie in distinct buckets of geometrically decreasing probability, the tail sums of P0P_0P0​ are geometric; this bounds the extra cost Property C charges to earlier steps.

Formalization Note. Optimality of N∗N^*N∗ is not used, so it is not assumed. Steps with P0=0P_0=0P0​=0 form one extra last bucket.

Preamble
import Mathlib
import Definitions.Def_BatchTesting_PTAS_Model
Formal statement
namespace BatchTesting.PTAS

theorem lemma_4 {n : ℕ} (I : Instance n) (hI : I.Standing) (eps : ℝ) (h0 : 0 < eps) (h1 : eps ≤ 1)
    (πs : List (State I eps)) (hπs : IsPath I eps (F I eps) πs) :
    ∀ k, k + 1 < (bucketed I eps πs).length →
      ∑ j ∈ Finset.Ico k ((bucketed I eps πs).length - 1), P0 I eps ((bucketed I eps πs).getD j 0) ≤
        (1 + eps) ^ 2 / eps * P0 I eps ((bucketed I eps πs).getD k 0) := by sorry

end BatchTesting.PTAS
Source
Segev & Shaposhnik, A Polynomial-Time Approximation Scheme for Sequential Batch Testing of Series Systems, SSRN preprint 3277805 (Nov. 2018), pp. 18–19, §4.3, Lemma 4
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 20, 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