Theorem 8, p. 13 — for λ < 0, T_λ(x) = {z : E[ℓ(Y; z) | X = x] ≥ −λ} has E|T_λ(X)| ≤ E|T′(X)| whenever R(T′) ≤ R(T_λ)
ProvedRiskControl.Optimal.theorem_8Theorem 8 (Optimality of set predictors, generalized form). Let have law on , with marginal and a regular conditional distribution of given . Let be a finite measure on a measurable space and measurable; is the cost of not including in the prediction set when the true response is . The loss of a set is
and the risk of a set-valued predictor is . For let
If is any set-valued predictor (with measurable graph) such that , then
where .
The threshold sets (11) are thus the smallest on average among all set-valued predictors that are at least as accurate, for every loss of this integral form; Theorem 7 of the paper is the special case of a weighted miscoverage loss on a discrete label space.
Formalization Note The paper states the theorem for ; it is false at (take and : then and both have risk , but ), and its proof divides by ; the statement is posed for . The set size is the measure of the loss, as the proof (p. 27) uses; p. 13 describes as Lebesgue or counting measure in the context of Theorem 7. The conditional expectation is for a Markov kernel with ; such a kernel exists, for instance, whenever is standard Borel. The predictor is required to have a measurable graph , so that its risk and expected size are integrals of measurable functions; the page leaves this implicit. All integrals are lower Lebesgue integrals in , so no integrability assumption is made.
import Mathlib import Definitions.Def_RiskControl_Optimal_Setting open MeasureTheory ProbabilityTheory open scoped ENNReal NNReal
namespace RiskControl.Optimal
/-- Theorem 8 (Optimality of set predictors, generalized form), arXiv:2101.02703v3, p. 13, proof
p. 27. Let the loss be `L(y; 𝒮) = ∫_{z ∈ 𝒮ᶜ} ℓ(y, z) dμ(z)` for a nonnegative measurable `ℓ` and a
finite measure `μ`, let `κ` be a regular conditional distribution of `Y` given `X`
(`P.fst ⊗ₘ κ = P`), let `λ < 0` (the page allows `λ ≤ 0`; the claim fails at `λ = 0`), and let
`𝒯_λ(x) = {z : 𝔼[ℓ(Y; z) | X = x] ≥ −λ}` be (11). For every set-valued predictor `𝒯′` with a
measurable graph and `R(𝒯′) ≤ R(𝒯_λ)`, `𝔼[|𝒯_λ(X)|] ≤ 𝔼[|𝒯′(X)|]`, sizes measured by `μ`. -/
theorem theorem_8 {𝒳 𝒴 𝒵 : Type*} [MeasurableSpace 𝒳] [MeasurableSpace 𝒴]
[MeasurableSpace 𝒵]
(P : Measure (𝒳 × 𝒴)) [IsProbabilityMeasure P]
(μ : Measure 𝒵) [IsFiniteMeasure μ]
(ℓ : 𝒴 → 𝒵 → ℝ≥0) (hℓ : Measurable (Function.uncurry ℓ))
(κ : Kernel 𝒳 𝒴) [IsMarkovKernel κ] (hκ : P.fst ⊗ₘ κ = P)
(lam : ℝ) (hlam : lam < 0)
(T' : 𝒳 → Set 𝒵) (hT' : MeasurableSet {q : 𝒳 × 𝒵 | q.2 ∈ T' q.1})
(hR : risk P μ ℓ T' ≤ risk P μ ℓ (thresholdSet κ ℓ lam)) :
expSize P μ (thresholdSet κ ℓ lam) ≤ expSize P μ T' := by sorry
end RiskControl.Optimal
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.