§2.1–2.2, pp. 8–10 — greedy-within-class: every testing scheme is matched by a path of the DP over
ProvedBatchTesting.PTAS.greedy_within_classLet be an instance with , , , , and let . For every testing scheme there is a path of the dynamic program over the full state space whose cost, converted back to the original units, is at most the expected cost of under the rounded costs :
This is the content of the greedy-within-class property: testing the variables of each cost class in non-decreasing order of never hurts, so a scheme is determined, up to cost, by how many variables of each class it has tested. It shows is at most the rounded optimum.
Formalization Note. The page says an optimal scheme "necessarily" has the property; with ties among the that is true only up to ties, so the statement is the dominance form the dynamic program needs. Empty batches of (which would be zero actions) are allowed in ; the path has strictly increasing states.
import Mathlib import Definitions.Def_BatchTesting_PTAS_Model
namespace BatchTesting.PTAS
theorem greedy_within_class {n : ℕ} (I : Instance n) (hI : I.Standing) (eps : ℝ) (h0 : 0 < eps) (h1 : eps ≤ 1)
(S : List (Finset (Fin n))) (hS : IsTestingScheme S) :
∃ π, IsPath I eps (F I eps) π ∧
cmin I * pathCost I eps π ≤ expectedCostWith I (roundedCost I eps) S := by sorry
end BatchTesting.PTAS
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.