Proposition 3 (as proved): simultaneous confidence bound for the FPR
ProvedConformalOutlierTesting.fpr_simultaneous_boundLet be i.i.d. with law on and cumulative distribution function . Let satisfy the band condition of Theorem 4 at level . Then
Equivalently, wherever , and for , where and is the empirical distribution function. Applied to the scores of a one-class classifier, this gives a uniform upper confidence bound for its false positive rate as a function of the threshold.
Formalization Note The paper states with as in Theorem 4. Since , that would need for every , which fails with probability one for continuous . The proof uses , which holds for but not for . What the proof establishes is the bound by stated here. It holds for any law , as the paper's "some distribution" allows.
import Mathlib import Definitions.Def_ConformalOutlierTesting_Basic open MeasureTheory ProbabilityTheory Filter Topology Set BoundedContinuousFunction
namespace ConformalOutlierTesting
theorem fpr_simultaneous_bound {n : ℕ} (μ : Measure ℝ) [IsProbabilityMeasure μ]
(δ : ℝ) (hδ0 : 0 < δ) (hδ1 : δ < 1) (b : ℕ → ℝ) (hb : IsCCVSequence n δ b) :
ENNReal.ofReal (1 - δ) ≤ (Measure.pi fun _ : Fin n => μ)
{z | ∀ x : ℝ, cdf μ x ≤ b ((Finset.univ.filter fun j => z j ≤ x).card + 1)} := by sorry
end ConformalOutlierTestingRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix:
- a natural number , the number of calibration scores;
- a probability measure on , with cumulative distribution function
- a real number with (strict on both sides);
- a sequence of real numbers indexed by all naturals .
Hypothesis on . The sequence must satisfy all of the following:
- and ;
- for every ;
- for every . This makes ; it does not separately require , although that follows from .
- Let be i.i.d. with law Lebesgue measure restricted to , and let be their ascending order statistics. Then
Values with are unconstrained, and none of them enters the conclusion.
Conclusion. Let have law , so the are i.i.d. with law . For , write
for the number of coordinates at most . The theorem asserts
In words: with probability at least , simultaneously for all real , the true CDF value is at most .
Some features of this statement:
- The index ranges over , so never appears.
- When , the bound reads , which always holds.
- The inequality between and is non-strict.
- No continuity or atomlessness assumption is made on ; ties among the are allowed.
Measurability. Both probabilities above are evaluated on sets whose measurability is not asserted. If such a set is not measurable, the value is the outer measure. Both comparisons are made in , with .
Degenerate case . Here is a single point carrying mass . The hypothesis reduces to and ; the probability condition holds automatically because that probability is . The conclusion reduces to for all , which holds with probability .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.