Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Display (5), p. 10 — for a (φ,σ)-test with σ ≥ φ, the critical values satisfy t_L ≤ c ≤ t_H

Proved
ScarceTesting.PerfectTest.display_5

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

bayesian-agentsdiagnostic-testingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Throughout, 0<c<10<c<10<c<1 is the cost-to-benefit ratio of acting (seeking treatment), and a (φ,σ)(\varphi,\sigma)(φ,σ)-test has false positive rate φ\varphiφ and true positive rate σ\sigmaσ with 0≤φ≤σ≤10\le\varphi\le\sigma\le10≤φ≤σ≤1, σ>0\sigma>0σ>0 and φ<1\varphi<1φ<1. The critical values

tL=cφcφ+(1−c)σ,tH=c(1−φ)c(1−φ)+(1−c)(1−σ)t_L=\frac{c\varphi}{c\varphi+(1-c)\sigma},\qquad t_H=\frac{c(1-\varphi)}{c(1-\varphi)+(1-c)(1-\sigma)}tL​=cφ+(1−c)σcφ​,tH​=c(1−φ)+(1−c)(1−σ)c(1−φ)​

satisfy

tL≤c≤tH.t_L\le c\le t_H.tL​≤c≤tH​.

This places the cost ratio ccc between the two thresholds that separate low-, medium- and high-likelihood agents.

Formalization Note The conditions σ>0\sigma>0σ>0 and φ<1\varphi<1φ<1 keep the denominators of tLt_LtL​ and tHt_HtH​ positive (Lean evaluates 0/00/00/0 as 000); they exclude only the degenerate (0,0)(0,0)(0,0)- and (1,1)(1,1)(1,1)-tests.

Preamble
import Mathlib
import Definitions.Def_ScarceTesting_PerfectTest_Setting
Formal statement
namespace ScarceTesting.PerfectTest

/-- Display (5), p. 10: for a `(φ,σ)`-test with `σ ≥ φ`, `t_L ≤ c ≤ t_H`. -/
theorem display_5 (c φ σ : ℝ)
    (hc0 : 0 < c) (hc1 : c < 1) (hφ0 : 0 ≤ φ) (hφσ : φ ≤ σ) (hσ1 : σ ≤ 1)
    (hσ0 : 0 < σ) (hφ1 : φ < 1) :
    tL c φ σ ≤ c ∧ c ≤ tH c φ σ := by sorry

end ScarceTesting.PerfectTest
Source
Drakopoulos & Randhawa, Why Perfect Tests May Not Be Worth Waiting For: Information as a Commodity, SSRN 3565245 (version of January 13, 2021), display (5) and the sentence following it, p. 10
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 19, 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