Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 8, first display — a decision optimal for the estimate v costs at most 2B‖u − v‖ extra under the true cost u

Proved
FastCLO.ETO.pointwise_bound

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

contextual-optimizationlinear-optimizationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let Z⊆Rd\mathcal Z \subseteq \mathbb R^dZ⊆Rd be a polytope with ∥z∥≤B\|z\| \le B∥z∥≤B for all z∈Zz \in \mathcal Zz∈Z. Let u,v∈Rdu, v \in \mathbb R^du,v∈Rd, let z1∈Zz_1 \in \mathcal Zz1​∈Z minimize v⊤zv^\top zv⊤z over z∈Zz \in \mathcal Zz∈Z, and let z2∈Zz_2 \in \mathcal Zz2​∈Z be arbitrary. Then

u⊤(z1−z2)≤2B ∥u−v∥.u^\top (z_1 - z_2) \le 2B\,\|u - v\|.u⊤(z1​−z2​)≤2B∥u−v∥.

In the paper u=f∗(X)u = f^*(X)u=f∗(X) is the true conditional mean cost, v=f^(X)v = \hat f(X)v=f^​(X) its estimate, z1=πf^(X)z_1 = \pi_{\hat f}(X)z1​=πf^​​(X) the plug-in decision and z2=π∗(X)z_2 = \pi^*(X)z2​=π∗(X) an optimal decision: the excess cost of the plug-in decision at a single point is at most 2B2B2B times the estimation error there. It is the first step of the proof of Theorem 8.

Formalization Note The display is stated for arbitrary vectors and points of Z\mathcal ZZ, which is all the paper's display uses.

Preamble
import Mathlib
import Definitions.Def_FastCLO_ETO_Model
open MeasureTheory ProbabilityTheory
open scoped InnerProductSpace ENNReal
Formal statement
namespace FastCLO.ETO

/-- **Proof of Theorem 8, first display** (Hu, Kallus, Mao, *Fast Rates for Contextual Linear
Optimization*, arXiv:2011.03030v3, Appendix A.5, p. 30): "By optimality of `π_f̂` with respect to
`f̂`, we have that `f*(X)ᵀ(π_f̂(X) − π*(X)) ≤ … ≤ 2B‖f*(X) − f̂(X)‖`."

Stated for one point: if `z₁` minimizes `vᵀz` over `Z` (the plug-in decision for the estimate
`v = f̂(x)`) and `z₂ ∈ Z` (the optimal decision `π*(x)`), then for the true cost `u = f*(x)`,
`uᵀ(z₁ − z₂) ≤ 2B‖u − v‖`.

Formalization Note: the display is formalized for arbitrary vectors `u, v` and points `z₁, z₂` of
`Z`, which is all the display uses; `B` is the norm bound of the polytope. -/
theorem pointwise_bound {d : ℕ} (P : Polytope d) (u v z₁ z₂ : FastCLO.ERM.Vec d)
    (hz₁ : z₁ ∈ P.Z) (hz₂ : z₂ ∈ P.Z) (hopt : ∀ z ∈ P.Z, ⟪v, z₁⟫_ℝ ≤ ⟪v, z⟫_ℝ) :
    ⟪u, z₁ - z₂⟫_ℝ ≤ 2 * P.B * ‖u - v‖ := by sorry

end FastCLO.ETO
Source
Hu, Kallus, Mao, Fast Rates for Contextual Linear Optimization, arXiv:2011.03030v3, proof of Theorem 8 (Appendix A.5), first display, p. 30
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me