Theorem 2 (as proved): the risk is at least
ProvedConformalRiskControl.risk_lower_boundLet , , and . Let be i.i.d. random functions with non-increasing, right-continuous realisations. Assume that almost surely, for every :
- and for all ;
- .
Assume also that for every and every . Then the conformal risk control parameter of eq. (4) satisfies
So the procedure is not conservative by more than .
Formalization Note Hypothesis 2 is not in the paper. Without it the printed theorem is false: if on , , and , then and . The proof needs the infimum to have a left neighbourhood on which the criterion fails. Hypothesis 2 guarantees this, and it holds in the paper's examples, where the smallest parameter gives the largest loss. The jump is defined through a left limit, so is the interval .
import Mathlib import Definitions.Def_ConformalRiskControl_Basic open MeasureTheory ProbabilityTheory Filter
namespace ConformalRiskControl
theorem risk_lower_bound {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] (n : ℕ) (hn : 0 < n) (a b : ℝ) (hab : a < b) (B α : ℝ)
(hαB : α < B) (L : Fin (n + 1) → Ω → ℝ → ℝ) (hiid : IsIID P (Set.Icc a b) L)
(hanti : ∀ i ω, AntitoneOn (L i ω) (Set.Icc a b))
(hrc : ∀ i ω, IsRightContOn (Set.Icc a b) (L i ω))
(h5 : ∀ᵐ ω ∂P, ∀ i, LossBounds (Set.Icc a b) B α (L i ω))
(hnonneg : ∀ᵐ ω ∂P, ∀ i, ∀ x ∈ Set.Icc a b, 0 ≤ L i ω x)
(hjump : ∀ i, ∀ x ∈ Set.Ioc a b, P {ω | 0 < jump (L i ω) x} = 0)
(hend : ∀ᵐ ω ∂P, ∀ i, α ≤ L i ω a) :
((α - 2 * B / (n + 1) : ℝ) : EReal) ≤
upperExp P B (fun ω =>
L (Fin.last n) ω (lhat (Set.Icc a b) B α (fun i : Fin n => L i.castSucc ω))) := by sorry
end ConformalRiskControlRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a probability space. Let be a natural number with , and let be real numbers. Write for the closed interval. Let be real numbers with .
We are given random functions indexed by :
Each is defined on all of , but the hypotheses constrain it only on (or on ). Indices are the calibration losses, and index is the test loss. The hypotheses are:
- Measurability and i.i.d. For every and every , the map is measurable. The restrictions , viewed as random elements of with the product σ-algebra, are:
- mutually independent over under ;
- identically distributed, meaning that for every pair they have the same law under .
- Monotonicity, for every (not just almost surely). For every and every , is non-increasing on .
- Right-continuity, for every . For every and every , and at each , is continuous at within . This is vacuous in content at .
- Bounds, almost surely. For -almost every , for all :
- for all ;
- , where .
- Nonnegativity, almost surely. For -almost every , for all and all , .
- No upward jumps. For every and every , the set has -(outer) measure . Here the jump is
where is the left limit of at as a function on . By convention , and hence , whenever that left limit does not exist. 7. Left endpoint, almost surely. For -almost every , for all , .
Since is a probability measure, hypotheses 4, 5 and 7 jointly force the existence of an with . In particular, they force .
The parameter . For each , define the empirical risk of the first losses,
and the parameter
The constraint is equivalently . By convention, when this set is empty. In all cases .
The expectation . Let be the test loss evaluated at . The expectation is defined as the extended real number
Here is the lower Lebesgue integral of a -valued function. No measurability of is assumed. The value is if the integral is infinite. Since almost surely, this coincides with the usual expectation whenever the latter is defined.
The conclusion is the inequality, in the extended reals,
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.