Proposition 7: U-risk control
ProvedConformalRiskControl.u_risk_controlLet , let be nonempty and compact with , and let . For every -subset let be a random function on . Assume the family is exchangeable under relabelling of . Assume every realisation of every is non-increasing and right-continuous, and that almost surely
Then the parameter of eq. (16) satisfies
This extends Theorem 1 to risks that are expectations of order- U-statistics, as in ranking and metric learning.
Formalization Note Proposition 7 does not state exchangeability, but its proof uses it ("the same argument as in the end of the proof of Theorem 1"), and without it the claim fails. The condition is the range in which the factor of eq. (16) is defined.
import Mathlib import Definitions.Def_ConformalRiskControl_Basic open MeasureTheory ProbabilityTheory Filter
namespace ConformalRiskControl
theorem u_risk_control {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] (n k : ℕ) (hk : 1 < k) (hkn : k ≤ n) (Λ : Set ℝ)
(hΛ : IsCompact Λ) (hΛne : Λ.Nonempty) (B α : ℝ) (hαB : α < B)
(L : Finset (Fin (n + k)) → Ω → ℝ → ℝ) (hexch : IsExchangeableU P Λ n k L)
(hanti : ∀ S : Finset (Fin (n + k)), S.card = k → ∀ ω, AntitoneOn (L S ω) Λ)
(hrc : ∀ S : Finset (Fin (n + k)), S.card = k → ∀ ω, IsRightContOn Λ (L S ω))
(h5 : ∀ᵐ ω ∂P, ∀ S : Finset (Fin (n + k)), S.card = k → LossBounds Λ B α (L S ω)) :
upperExp P B (fun ω => L (testSubset n k) ω (lhatU Λ B α n k (fun S => L S ω)))
≤ (α : EReal) := by sorry
end ConformalRiskControlRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix a probability space , where is a probability measure. Fix natural numbers with
so and . Fix a parameter set that is compact and nonempty, so exists and belongs to . Fix reals with .
Losses. For every subset , every outcome and every , there is a real number . Such a family is given for every subset , but all hypotheses below concern only subsets with . Two collections of -subsets are singled out:
- the calibration subsets : all -element subsets of (there are of them);
- the test subset , which has exactly elements.
Hypotheses.
- Exchangeability under relabelling. For every with and every , the map is measurable. For every permutation of , the joint law under of the array equals the joint law of . Both are viewed as random elements of the space of real functions on with the product σ-algebra. Only values at enter.
- Monotonicity. For every with and every (not merely almost every), is non-increasing on .
- Right-continuity. For every with and every , at each the function is continuous at relative to .
- Bounds. For -almost every , simultaneously for all with :
- for all , and
- .
The parameter. For each define
If this set is empty, is instead . Here , so no truncated subtraction occurs. The prefactor is literally , applied to a sum over the calibration subsets. Since is closed and bounded, in both cases.
Conclusion. Let be the test-subset loss at the data-dependent parameter. The theorem asserts
computed in the extended reals . The integral is a lower Lebesgue integral with values in , and denotes the positive part. No measurability of is assumed or required for this quantity to be defined. If the integral is , the left side is and the inequality holds trivially. Whenever almost surely and is measurable, the left side equals the ordinary expectation (possibly ). So in that case the statement reads .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.