Theorem 1, p. 6 — an optimal path of the DP over great-looking states gives a testing scheme within of optimal, over an explicitly bounded state space
ProvedBatchTesting.PTAS.theorem_1Let () be independent Bernoulli variables with , testing costs and set-up cost , and let . Run the algorithm of the paper: normalize the costs by , round them up to powers of , and solve the dynamic program over the great-looking states . Then:
- the dynamic program over has an optimal path;
- for every optimal path , its testing scheme is a testing scheme of , and for every testing scheme , with the original costs,
- the state space is small:
This is the paper's main result: sequential batch testing of series systems admits a polynomial-time approximation scheme, improving the earlier guarantee.
Formalization Note. The factor is the rounding factor times Theorem 3's explicit ; it is , and the paper's "within factor " follows by running the algorithm with a smaller . The running time is not formalized; the explicit state count in part 3 stands in for it. "There is a scheme within of optimal" would be trivially true (an optimal scheme exists), so the statement is about the output of the algorithm, compared with the original costs. Added hypotheses: , , , .
import Mathlib import Definitions.Def_BatchTesting_PTAS_Model
namespace BatchTesting.PTAS
theorem theorem_1 {n : ℕ} (I : Instance n) (hI : I.Standing) (eps : ℝ) (h0 : 0 < eps) (h1 : eps ≤ 1) :
(∃ π, IsOptPath I eps (FGreat I eps) π) ∧
(∀ π, IsOptPath I eps (FGreat I eps) π →
IsTestingScheme (schemeOf I eps π) ∧
∀ S, IsTestingScheme S →
expectedCost I (schemeOf I eps π) ≤ (1 + eps) * K eps * expectedCost I S) ∧
(FGreat I eps).card ≤ (n + 1) * (R I eps + ⌈Real.logb (1 + eps) (n : ℝ)⌉₊ + 1) *
Nat.choose (⌊3 * (kappa n eps : ℝ) / eps ^ 2⌋₊ + (kappa n eps).toNat) (kappa n eps).toNat := by sorry
end BatchTesting.PTAS
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.