Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1, p. 13 — the §3.4 sequence dominates the path: N(t)≥N∗(t)N^{(t)}\ge N^{*(t)}N(t)≥N∗(t)

Proved
BatchTesting.PTAS.lemma_1

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

approximation-schemedynamic-programmingp2o-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, and let N∗(0)=0→⋯→N∗(T)=N(all)N^{*(0)}=0\to\cdots\to N^{*(T)}=N^{(\mathrm{all})}N∗(0)=0→⋯→N∗(T)=N(all) be a path of the dynamic program over FFF. Let N(0)=0,N(1),…,N(T)N^{(0)}=0,N^{(1)},\dots,N^{(T)}N(0)=0,N(1),…,N(T) be the sequence of §3.4: with Δˉ(t)=[N∗(t)−N(t−1)]+\bar\Delta^{(t)}=[N^{*(t)}-N^{(t-1)}]^+Δˉ(t)=[N∗(t)−N(t−1)]+, the action Δ(t)\Delta^{(t)}Δ(t) copies Δˉ(t)\bar\Delta^{(t)}Δˉ(t) on the κ\kappaκ classes ending at ψ(Δˉ(t))\psi(\bar\Delta^{(t)})ψ(Δˉ(t)), exhausts every class r≤ψ(Δˉ(t))−κr\le\psi(\bar\Delta^{(t)})-\kappar≤ψ(Δˉ(t))−κ, and leaves the classes above ψ(Δˉ(t))\psi(\bar\Delta^{(t)})ψ(Δˉ(t)) alone; N(t)=N(t−1)+Δ(t)N^{(t)}=N^{(t-1)}+\Delta^{(t)}N(t)=N(t−1)+Δ(t). Then

N(t) ≥ N∗(t)for every 0≤t≤T.N^{(t)}\ \ge\ N^{*(t)}\qquad\text{for every }0\le t\le T.N(t) ≥ N∗(t)for every 0≤t≤T.

Together with Lemma 2, this shows that the nice-looking sequence costs at most 1+ϵ1+\epsilon1+ϵ times the original path (Theorem 2).

Formalization Note. The sequence may repeat a state (a zero action), as on the page.

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

theorem lemma_1 {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) :
    List.Forall₂ (fun Nstar N => Nstar ≤ N) πs (niceSeq I eps πs) := 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. 13, §3.4, Lemma 1
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