Theorem 1, proof:
ProvedOpenCategoryPAC.alien_cdf_uniform_deviationLet be probability measures on with continuous CDFs , let , and let with CDF . Let consist of i.i.d. draws from and, independently, of i.i.d. draws from , and let be the estimate of eq. (1). For and , if
then
This is the uniform deviation bound established in the proof of Theorem 1 from Massart's form of the Dvoretzky–Kiefer–Wolfowitz inequality (eq. (2)) applied to each sample.
Formalization Note The probability is that of the product law of the two samples, which encodes the independence of and used in the last step of the proof. The bound is stated for the measure of the deviation event itself (an outer measure if the event were not measurable). The paper writes the proof for , but does not enter this bound, so only is assumed.
import Mathlib import Definitions.Def_OpenCategoryPAC_Basic open MeasureTheory ProbabilityTheory Filter Topology
namespace OpenCategoryPAC
theorem alien_cdf_uniform_deviation (μ0 μa μm : Measure ℝ) [IsProbabilityMeasure μ0]
[IsProbabilityMeasure μa] [IsProbabilityMeasure μm] (α : ℝ) (hα0 : 0 < α) (hα1 : α ≤ 1)
(hm : μm = mixture α μ0 μa) (hF0 : Continuous (cdf μ0)) (hFa : Continuous (cdf μa))
(ε δ : ℝ) (hε : 0 < ε) (hδ0 : 0 < δ) (hδ1 : δ < 1) (n : ℕ)
(hn : sampleSizeBound α ε δ < n) :
sampleLaw μ0 μm n {s | ε < supDev (alienCDFEst α s.1 s.2) (cdf μa)} ≤ ENNReal.ofReal δ := by sorry
end OpenCategoryPACRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let , and be three probability measures on the real line (Borel sets). Their cumulative distribution functions are , and . Let be a real number with , and assume:
- Mixture hypothesis: equals the mixture
When this says .
- Continuity hypotheses: and are both continuous functions on . No continuity assumption is stated for separately.
No other relation between and is assumed. In particular there is no ordering of their CDFs and no disjointness of their supports.
Let and be real numbers with and . Let be a natural number satisfying the strict inequality
For the left-hand side is strictly positive, so this forces .
The samples. Consider a pair of samples with and . Both samples have the same size . They are drawn from the product law
so the are i.i.d. with law , the are i.i.d. with law , and the two samples are independent.
The estimator. The empirical CDFs are
The estimated alien CDF is
This need not lie in and need not be monotone. It is, however, bounded, as is , so the real supremum
is a genuine finite supremum.
Conclusion. The theorem asserts that
That is, the probability that the uniform deviation of from the true alien CDF strictly exceeds is at most .
The left-hand side is the measure applied directly to this set. The statement does not separately assert that the set is measurable; if it is not, the quantity is 's outer measure of the set.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.