Proposition 2, p. 13 — scarce tests, uniform random allocation: under the density conditions at 0 / at 1, a (φ,1)- or (0,σ̄)-test beats the perfect test
ProvedScarceTesting.PerfectTest.proposition_2Let , , and let be the mass of test kits (testing resources are scarce), allocated uniformly at random among requesting agents. Let be a prior density on with distribution function and mean , with mass on both sides of : . Let , , and let be the planner's objective (display (9) with ); a perfect test is available, so every with can be chosen. Assume is continuous on at and at . Then , , and
- if
there is a with ; 2. if
there is a with .
When tests are scarce and handed out uniformly at random among those who ask, the perfect test need not be optimal for the planner: a slightly imperfect test changes who asks for it, and the improved allocation can outweigh the loss in accuracy.
Formalization Note and are the integrals defined on p. 22, not existentially quantified constants: with arbitrary small the thresholds would exceed and and the statement would be empty. The value (resp. ) of a density is read with continuous on at that endpoint. is assumed (with no kits, no test changes anything). The witness tests are kept inside the set of tests, away from the degenerate corners.
import Mathlib import Definitions.Def_ScarceTesting_PerfectTest_Setting
namespace ScarceTesting.PerfectTest
/-- Proposition 2, p. 13. Assume that a perfect test is available, that testing resources are scarce
(`0 < κ < 1`) and that allocation is uniformly random to requesting agents. For any prior density `f`
with mass on both sides of `c` (`1 > F(c) > 0`), the constants `δ = ∫_c^1 (1−μ) f` and
`γ = ∫_0^c μ f` of p. 22 are positive, and
(i) if `f(0) > (β(1−μ̄)/(βδ+γ))((1−c)/c)`, some `(φ,1)`-test with `0 < φ < 1` has `S(φ,1) > S(0,1)`;
(ii) if `f(1) > (c/(1−c))(μ̄/(βδ+γ))`, some `(0,σ)`-test with `0 < σ < 1` has `S(0,σ) > S(0,1)`. -/
theorem proposition_2 (f : ℝ → ℝ) (c β κ : ℝ) (hc0 : 0 < c) (hc1 : c < 1)
(hβ0 : 0 ≤ β) (hβ1 : β < 1) (hκ0 : 0 < κ) (hκ1 : κ < 1)
(hf : IsPriorDensity f)
(hf0 : ContinuousWithinAt f (Set.Icc 0 1) 0) (hf1 : ContinuousWithinAt f (Set.Icc 0 1) 1)
(hFc0 : 0 < cdf f c) (hFc1 : cdf f c < 1) :
0 < deltaC f c ∧ 0 < gammaC f c ∧
(β * (1 - meanPrior f) / (β * deltaC f c + gammaC f c) * ((1 - c) / c) < f 0 →
∃ φ : ℝ, 0 < φ ∧ φ < 1 ∧ S f c β κ 0 1 < S f c β κ φ 1) ∧
(c / (1 - c) * (meanPrior f / (β * deltaC f c + gammaC f c)) < f 1 →
∃ σ : ℝ, 0 < σ ∧ σ < 1 ∧ S f c β κ 0 1 < S f c β κ 0 σ) := by sorry
end ScarceTesting.PerfectTest
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.