Corollary 3, p. 22 — (R(g,ℙ) − R(ℙ))² ≤ B_X² (R_LS(g,ℙ) − R_LS(ℙ)): squared-loss excess risk bounds the optimality-gap excess risk
ProvedEndToEndRisk.SquaredLoss.corollary_3Let be convex, compact and non-empty, let be convex and continuous on , and let be a measurable selection of . Let be bounded (Assumption 2). Let have joint law on such that, for every , the conditional law is concentrated on , is square integrable, and has mean , and such that . Write for the expected optimality gap of a predictor , for its squared-loss risk, and , for the infima over measurable predictors. Then for every measurable ,
where is the Euclidean diameter of . Equivalently, for , .
A predictor trained only by least squares, without any knowledge of or , therefore has excess optimality-gap risk at most times the square root of its excess squared-loss risk.
Formalization Note The factor is multiplied out: for this is equivalent, and for a one-point (where the printed expression is undefined) both sides are trivially consistent since . Risks are -valued and excess risks are truncated differences; the hypothesis is added because without it may be infinite (conditional variances unbounded in ), where the paper's expression is . Measurability of and is added (the paper works up to Lebesgue measurability). Assumption 2 is part of the section's standing hypotheses (it enters through Theorem 3).
Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.
import Mathlib import Definitions.Def_EndToEndRisk_SquaredLoss_Setting
namespace EndToEndRisk.SquaredLoss
open MeasureTheory ProbabilityTheory
open scoped ENNReal InnerProductSpace
/-- Corollary 3, p. 22 (proof p. ec10): for the squared loss,
`(1/B_X²) (R(g, ℙ) − R(ℙ))² ≤ R_{ℓ_LS}(g, ℙ) − R_{ℓ_LS}(ℙ)`, stated multiplied out by `B_X²`. -/
theorem corollary_3 {m : ℕ} {W : Type*} [MeasurableSpace W]
(X : Set (EuclideanSpace ℝ (Fin m))) (f : EuclideanSpace ℝ (Fin m) → ℝ) (hS : Standing X f)
(xstar : EuclideanSpace ℝ (Fin m) → EuclideanSpace ℝ (Fin m))
(hx : IsArgminSelection X f xstar) (hxm : Measurable xstar)
(C : Set (EuclideanSpace ℝ (Fin m))) (hA2 : Bornology.IsBounded C)
(μ : Measure W) [IsProbabilityMeasure μ]
(κ : Kernel W (EuclideanSpace ℝ (Fin m))) [IsMarkovKernel κ]
(hκ : ∀ w, κ w ∈ lsClass C)
(hsq : ∫⁻ p, ‖p.2‖ₑ ^ 2 ∂(μ ⊗ₘ κ) < ⊤)
(g : W → EuclideanSpace ℝ (Fin m)) (hg : Measurable g) :
(risk (trueLoss X f xstar) (μ ⊗ₘ κ) g - bayesRisk (trueLoss X f xstar) (μ ⊗ₘ κ)) ^ 2 ≤
ENNReal.ofReal (Metric.diam X ^ 2) *
(risk lsLoss (μ ⊗ₘ κ) g - bayesRisk lsLoss (μ ⊗ₘ κ)) := by sorry
end EndToEndRisk.SquaredLoss
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.