Corollary 1, proof: is a legal CDF and
ProvedOpenCategoryPAC.upper_bound_alien_cdfLet be probability measures on with CDFs , let , and let with CDF . Put
Then:
- is a legal CDF: it is nondecreasing, , , and it is the CDF of a probability measure on .
- For all , .
- If the anomaly detector is admissible ( on ), then for all .
These are the facts the proof of Corollary 1 uses to reduce the case of an upper bound to Theorem 1.
Formalization Note The paper's and are stated as limits at . "Legal CDF" is also stated as the existence of a probability measure with CDF , which is how the proof uses it. is the paper's implicit reading of as an upper bound on a fraction.
import Mathlib import Definitions.Def_OpenCategoryPAC_Basic open MeasureTheory ProbabilityTheory Filter Topology
namespace OpenCategoryPAC
theorem upper_bound_alien_cdf (μ0 μa μm : Measure ℝ) [IsProbabilityMeasure μ0]
[IsProbabilityMeasure μa] [IsProbabilityMeasure μm] (α α' : ℝ) (hα0 : 0 < α)
(hαα' : α ≤ α') (hα'1 : α' ≤ 1) (hm : μm = mixture α μ0 μa) :
(Monotone (alienCDF α' (cdf μm) (cdf μ0)) ∧
Tendsto (alienCDF α' (cdf μm) (cdf μ0)) atBot (𝓝 0) ∧
Tendsto (alienCDF α' (cdf μm) (cdf μ0)) atTop (𝓝 1) ∧
∃ ν : Measure ℝ, IsProbabilityMeasure ν ∧ ⇑(cdf ν) = alienCDF α' (cdf μm) (cdf μ0)) ∧
(∀ t : ℝ, alienCDF α' (cdf μm) (cdf μ0) t - cdf μa t =
(α - α') * (cdf μm t - cdf μ0 t) / (α * α')) ∧
(IsAdmissible μ0 μm → ∀ t : ℝ, cdf μa t ≤ alienCDF α' (cdf μm) (cdf μ0) t) := by sorry
end OpenCategoryPACRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. The statement is about three probability measures on the real line:
- , read as the "nominal" score law;
- , read as the "alien" score law;
- , a third law.
Write their cumulative distribution functions as , and .
There are two real parameters and , assumed to satisfy
It is further assumed that is the mixture
The weights and are nonnegative, since . The boundary case , where , is allowed, and so is .
The function . Using the second parameter , define
This is well defined because . The mixture weight used to build is , while the weight used in is ; these may differ.
Part 1 (G is a distribution function). All four of the following hold:
- is nondecreasing on ;
- as ;
- as ;
- there exists a probability measure on whose CDF equals at every point, that is, for all .
Part 2 (exact error identity). For every real ,
Part 3 (one-sided bound under admissibility). Suppose additionally that for every real ; this is the definition of "admissible" used here. Then
This is an implication. Admissibility is not assumed elsewhere in the statement, and the other parts do not depend on it.
Scope. The statement involves only the true CDFs. No samples, empirical CDFs, thresholds or probabilities over random samples appear in it.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.