Lemma 1 (Jump Lemma): jumps of the empirical risk are at most
ProvedConformalRiskControl.jump_lemmaLet , , and . Let be i.i.d. random functions. Assume every realisation is non-increasing and right-continuous, for all almost surely, and for every and every ,
Then, with , almost surely
The lemma is the continuity input of the lower bound in Theorem 2. It is applied there to the losses .
Formalization Note The paper states the lemma "in the setting of Theorem 2" for . The proof uses only the hypotheses listed here, and the proof of Theorem 2 applies the lemma to functions, so it is stated for any number of i.i.d. functions. The jump is defined through a left limit, so is an interval and ranges over .
import Mathlib import Definitions.Def_ConformalRiskControl_Basic open MeasureTheory ProbabilityTheory Filter
namespace ConformalRiskControl
theorem jump_lemma {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(m : ℕ) (hm : 0 < m) (a b : ℝ) (hab : a < b) (B : ℝ) (L : Fin m → Ω → ℝ → ℝ)
(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 ω))
(hbd : ∀ᵐ ω ∂P, ∀ i, ∀ x ∈ Set.Icc a b, 0 ≤ L i ω x ∧ L i ω x ≤ B)
(hjump : ∀ i, ∀ x ∈ Set.Ioc a b, P {ω | 0 < jump (L i ω) x} = 0) :
∀ᵐ ω ∂P, ∀ x ∈ Set.Ioc a b, jump (empRisk fun i => L i ω) x ≤ B / m := by sorry
end ConformalRiskControlRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a measurable space and a probability measure on it. The theorem fixes:
- a natural number with ;
- real numbers , so the parameter interval is nondegenerate;
- a real number ;
- for each index and each outcome , a function . Each function is defined on all of , but the hypotheses mostly constrain it only on .
Hypotheses.
- (i.i.d.)
- For every and every , the map is measurable.
- The restricted random functions are mutually independent under . They are viewed as random elements of with the product -algebra.
- Any two of these restricted random functions have the same distribution.
- (Monotonicity, for every .) For every and every (not merely almost every ), is non-increasing on .
- (Right-continuity, for every .) For every , every and every , the function is continuous at within . At this condition is automatic.
- (Boundedness, almost surely.) There is a -null set outside of which, for all and all ,
Since is a probability measure and , this forces . 5. (No positive jumps at fixed points.) For every and every fixed ,
This is the outer measure; measurability of the set is not assumed. The null set may depend on and on .
The jump function. For a function , the jump is
Here is the limit of as with . By convention, if this left limit does not exist, is taken to be , so .
For , the left limit only involves values of on near . For a function that is non-increasing on the left limit exists and .
Conclusion. Define the empirical risk, for every real , by
The theorem asserts that there is a single -null set outside of which, simultaneously for all ,
The same left-limit convention applies here.
The left endpoint is not covered by this conclusion. No level or parameter appears in the statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.