Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2, p. 14 — the §3.4 actions cost at most (1+ϵ) C(Δ∗(t))(1+\epsilon)\,C(\Delta^{*(t)})(1+ϵ)C(Δ∗(t))

Proved
BatchTesting.PTAS.lemma_2

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

approximation-schemedynamic-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1sequential-testing

In the setting of Lemma 1 — 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, 0<ϵ≤10<\epsilon\le10<ϵ≤1, a path N∗(0),…,N∗(T)N^{*(0)},\dots,N^{*(T)}N∗(0),…,N∗(T) of the dynamic program over FFF, and the §3.4 sequence N(0),…,N(T)N^{(0)},\dots,N^{(T)}N(0),…,N(T) built from it — the actions satisfy

C(N(t)−N(t−1)) ≤ (1+ϵ)⋅C(N∗(t)−N∗(t−1))for every 1≤t≤T,C\big(N^{(t)}-N^{(t-1)}\big)\ \le\ (1+\epsilon)\cdot C\big(N^{*(t)}-N^{*(t-1)}\big)\qquad\text{for every }1\le t\le T,C(N(t)−N(t−1)) ≤ (1+ϵ)⋅C(N∗(t)−N∗(t−1))for every 1≤t≤T,

where C(Δ)=β/cmin⁡+∑rΔr(1+ϵ)rC(\Delta)=\beta/c_{\min}+\sum_r\Delta_r(1+\epsilon)^rC(Δ)=β/cmin​+∑r​Δr​(1+ϵ)r.

Exhausting the classes at least κ\kappaκ below the most expensive class touched costs at most ϵ\epsilonϵ times that class's cost; this is the per-step charge of Theorem 2.

Formalization Note. N(t)−N(t−1)N^{(t)}-N^{(t-1)}N(t)−N(t−1) is the action Δ(t)\Delta^{(t)}Δ(t) of §3.4 (coordinatewise; the sequence is non-decreasing). β≥0\beta\ge0β≥0 is used.

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

theorem lemma_2 {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) :
    ∀ t, t + 1 < πs.length →
      stepCost I eps ((niceSeq I eps πs).getD (t + 1) 0 - (niceSeq I eps πs).getD t 0) ≤
        (1 + eps) * stepCost I eps (πs.getD (t + 1) 0 - πs.getD t 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), p. 14, §3.4, Lemma 2
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