Theorem 1: type-I error of Fisher's combination test
OpenConformalOutlierTesting.fisher_type_one_errorLet the scores be continuously distributed with law , and assume the global null: the test scores and the calibration scores are all i.i.d. with law . Let with , and let . As :
- The type-I error of Fisher's combination test applied to the marginal conformal p-values satisfies
- The conditional type-I error given the calibration data converges in distribution:
Since , the limiting type-I error exceeds whenever . So the dependence induced by the shared calibration set invalidates Fisher's test.
Formalization Note The level is restricted to , which is implicit in the paper. Convergence in distribution is stated as convergence of for every bounded continuous . Because the test scores are independent of , the conditional probability is written as the probability over the test scores with the calibration scores held fixed.
import Mathlib import Definitions.Def_ConformalOutlierTesting_Basic open MeasureTheory ProbabilityTheory Filter Topology Set BoundedContinuousFunction
namespace ConformalOutlierTesting
theorem fisher_type_one_error (μ : Measure ℝ) [IsProbabilityMeasure μ] [NullSingletonClass μ]
(γ : ℝ) (hγ : 0 < γ) (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) :
Tendsto (fun n : ℕ =>
((scoreLaw (n := n) μ (fun _ : Fin ⌊γ * (n : ℝ)⌋₊ => μ))
{ω | quantile (chiSqLaw (2 * ⌊γ * (n : ℝ)⌋₊)) (1 - α) ≤ fisherStat ω.1 ω.2}).toReal)
atTop (𝓝 (normSurv (quantile stdNormal (1 - α) / Real.sqrt (1 + γ)))) ∧
∀ f : ℝ →ᵇ ℝ,
Tendsto (fun n : ℕ =>
∫ s, f (condFisherRejProb μ ⌊γ * (n : ℝ)⌋₊ α s) ∂(Measure.pi fun _ : Fin n => μ))
atTop (𝓝 (∫ w, f (normSurv (quantile stdNormal (1 - α) + Real.sqrt γ * w)) ∂stdNormal)) := by sorry
end ConformalOutlierTestingRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a probability measure on with no atoms: for every . Let and be real numbers (strict inequalities: , ). For each , set
Because , for all sufficiently large , but is allowed for small , including .
Objects used in the statement.
- Conformal p-value. For calibration scores and ,
This always lies in , so its logarithm is a genuine real number.
- Fisher statistic. For test scores ,
It equals when .
- Chi-square quantile. denotes the Gamma law with shape and rate (Lebesgue measure weighted by the Gamma density). For a measure on with cumulative distribution function , the -quantile is
Write .
- When the "law" is Gamma with shape , which is a degenerate object (not the point mass at ). is then whatever the definitions produce.
- This affects only finitely many .
- Normal quantities. is the cumulative distribution function of , and . The normal quantile is
Claim (a): unconditional rejection probability. Let and be independent, all with law . In other words, the joint law is the product on . Then, as ,
Claim (b): conditional rejection probability. For calibration scores , define the conditional rejection probability
where the test scores are i.i.d. . The claim is that for every bounded continuous function , as ,
That is, the law of under converges weakly to the law of with . One caveat: under the formal conventions, the left-hand integral is set to if fails to be measurable. The statement does not itself assert that is measurable.
The theorem asserts the conjunction of (a) and (b). Both claims are limits as only. They say nothing about any fixed finite , and no rate of convergence is stated.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.