Section 4: the mixture CDF and the recovered alien CDF
ProvedOpenCategoryPAC.mixture_cdf_decompositionLet and be probability measures on (the nominal and alien score laws) with CDFs and , and let . Then the mixture is a probability measure whose CDF satisfies, for all ,
This identity is the basis of the estimate of eq. (1).
import Mathlib import Definitions.Def_OpenCategoryPAC_Basic open MeasureTheory ProbabilityTheory Filter Topology
namespace OpenCategoryPAC
theorem mixture_cdf_decomposition (μ0 μa : Measure ℝ) [IsProbabilityMeasure μ0]
[IsProbabilityMeasure μa] (α : ℝ) (hα0 : 0 < α) (hα1 : α ≤ 1) :
IsProbabilityMeasure (mixture α μ0 μa) ∧
(∀ t : ℝ, cdf (mixture α μ0 μa) t = (1 - α) * cdf μ0 t + α * cdf μa t) ∧
(∀ t : ℝ, cdf μa t = alienCDF α (cdf (mixture α μ0 μa)) (cdf μ0) t) := by sorry
end OpenCategoryPACRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and be arbitrary probability measures on the real line . Informally, is the "nominal" score law and is the "alien" score law. Let be a real number with
The endpoint is allowed, and is excluded.
The mixture. Define the mixture measure
The weights are first converted to extended non-negative reals, with negative values truncated to . Because , both weights and are already non-negative, so no truncation occurs. When the mixture is exactly .
Cumulative distribution functions. For a measure , write for its cumulative distribution function. For a probability measure this is
For measures that are not probability measures, the library's CDF construction does not in general agree with .
The alien-CDF recovery formula. Given a weight and two real functions and , define
The statement. Under the hypotheses above, all three of the following hold simultaneously:
- is a probability measure.
- For every real ,
- For every real ,
The division here is by , which is strictly positive under the hypotheses, so it is a genuine division and not a division by zero.
No further assumptions are made on and . In particular, they need not be distinct, absolutely continuous, or related to each other in any way.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.