Display (6), p. 11 — the demand for a (φ,σ)-test is F(t_H) − F(t_L), so the availability is min{1, κ/(F(t_H) − F(t_L))}
ProvedScarceTesting.PerfectTest.display_6Throughout, is the cost-to-benefit ratio of acting (seeking treatment), and a -test has false positive rate and true positive rate with , and . The prior density is a nonnegative integrable function on with total mass , and . Let be the mass of available test kits. The demand — the -mass of agents with positive value of the test — equals
and consequently the availability under uniformly random allocation is
This expresses the congestion created by a test entirely through its two thresholds.
Formalization Note The conditions and keep the denominators of and positive (Lean evaluates as ); they exclude only the degenerate - and -tests. The availability is when the demand does not exceed , including zero demand.
import Mathlib import Definitions.Def_ScarceTesting_PerfectTest_Setting
namespace ScarceTesting.PerfectTest
/-- Display (6) and the availability, p. 11: the demand for a `(φ,σ)`-test is
`D(φ,σ) = F(t_H) − F(t_L)`, so the availability is `A(t_L,t_H) = min{1, κ/(F(t_H) − F(t_L))}`. -/
theorem display_6 (f : ℝ → ℝ) (c κ φ σ : ℝ)
(hc0 : 0 < c) (hc1 : c < 1) (hφ0 : 0 ≤ φ) (hφσ : φ ≤ σ) (hσ1 : σ ≤ 1)
(hσ0 : 0 < σ) (hφ1 : φ < 1)
(hκ0 : 0 < κ) (hκ1 : κ < 1) (hf : IsPriorDensity f) :
demand f c φ σ = cdf f (tH c φ σ) - cdf f (tL c φ σ) ∧
availability κ (demand f c φ σ) = availThr f κ (tL c φ σ) (tH c φ σ) := by sorry
end ScarceTesting.PerfectTest
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.