Proposition B.1: CLT p-values are asymptotically valid
ProvedLearnThenTest.clt_pvalue_asymptotically_validLet be i.i.d. real losses with finite mean and finite, positive variance. Let ; this covers the null hypothesis and its boundary . For each , let and let be the empirical standard deviation, and let be the standard normal distribution function. Then the CLT p-value
is asymptotically valid: for every ,
Formalization Note The paper prints , which is the empirical standard deviation it names divided by ; the statement uses the empirical standard deviation. The null is taken closed, , which strengthens the printed . Under the strict null alone, in probability by the law of large numbers, and the statement would hold for any consistent or even wrongly scaled . At the central limit theorem gives , which is the content the paper intends. The hypothesis of positive variance is added because the formula is undefined when . With zero variance, almost surely; with positive variance, the event has probability tending to . On that event Lean evaluates the quotient as .
import Mathlib import Definitions.Def_LearnThenTest_Basic open MeasureTheory ProbabilityTheory Filter
namespace LearnThenTest
theorem clt_pvalue_asymptotically_valid {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] (L : ℕ → Ω → ℝ) (hmeas : ∀ i, Measurable (L i))
(hind : iIndepFun L P) (hident : ∀ i, IdentDistrib (L i) (L 0) P P)
(hL2 : MemLp (L 0) 2 P) (hvar : 0 < variance (L 0) P) (α : ℝ)
(hnull : α ≤ ∫ ω, L 0 ω ∂P) :
∀ u ∈ Set.Icc (0 : ℝ) 1,
limsup (fun n : ℕ => P {ω | cltPValue α (fun i : Fin n => L i ω) ≤ u}) atTop ≤
ENNReal.ofReal u := by sorry
end LearnThenTestRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a probability space. Let be a sequence of real random variables, indexed by the natural numbers starting at . Let be arbitrary. The theorem assumes the following:
- each is measurable;
- the family is mutually independent under ;
- every has the same distribution under as ;
- is square-integrable, ;
- the variance is strictly positive, ;
- the null condition holds, with the inequality non-strict and pointing in this direction.
No boundedness or range condition (such as ) is imposed on the .
For each and , the statistic uses only the first variables . The empirical mean is
The empirical standard deviation is
The CLT p-value is
where is the distribution function of a standard normal .
These formulas use total-function conventions in degenerate cases: division by zero yields , and the square root of a negative number yields . This has the following consequences:
- For , and .
- For , the factor is , so .
- For any and with , the denominator is . In that case:
- the argument of is set to ;
- , whatever the value of .
For , the event (all equal) can have positive probability when the law of has atoms.
The conclusion is that, for every ,
Here the probabilities are taken as values in . The limit superior is taken in that extended range as through the natural numbers. Because it is a limit superior, the values at any finitely many (including the degenerate ) do not affect it.
The statement is only asymptotic. It gives no bound for any particular finite , and no rate of convergence. No measurability of the events is asserted; is simply evaluated on these sets.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.