Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2, pp. 9–10 — |C^oracle − p₀f₀(z₀) − C^apx-risk| = o(p₀D₀²) as the region R₀ shrinks to a point with a nondegenerate optimum

Proved
StochOptForest.ApxRisk.theorem_2

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

p2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1perturbation-analysisrandom-forestssecond-order-expansionsplitting-criterion

Let μ\muμ be the law of the features on Rp\mathbb R^pRp (a probability measure) and cˉ(x,z)=E[c(z;Y)∣X=x]\bar c(x,z)=\mathbb E[c(z;Y)\mid X=x]cˉ(x,z)=E[c(z;Y)∣X=x] the regression cost. Assume:

  1. for every xxx, z↦cˉ(x,z)z\mapsto\bar c(x,z)z↦cˉ(x,z) is twice continuously differentiable;
  2. cˉ\bar ccˉ, ∇zcˉ\nabla_z\bar c∇z​cˉ and ∇z2cˉ\nabla^2_z\bar c∇z2​cˉ are LLL-Lipschitz in xxx, uniformly in zzz (condition 4, as used in the proof);
  3. at an anchor point xˉ∈Rp\bar x\in\mathbb R^pxˉ∈Rp, cˉ(xˉ,⋅)\bar c(\bar x,\cdot)cˉ(xˉ,⋅) has a unique minimizer zˉ\bar zzˉ, its Hessian there is positive definite, and some sublevel set {z:cˉ(xˉ,z)≤α}\{z:\bar c(\bar x,z)\le\alpha\}{z:cˉ(xˉ,z)≤α} with α>cˉ(xˉ,zˉ)\alpha>\bar c(\bar x,\bar z)α>cˉ(xˉ,zˉ) is bounded.

For a region R0=R1∪R2R_0=R_1\cup R_2R0​=R1​∪R2​ split into disjoint measurable R1,R2R_1,R_2R1​,R2​ of positive probability, let pjp_jpj​, fjf_jfj​ (j=0,1,2j=0,1,2j=0,1,2) be the probabilities and region averages, D0=sup⁡x,x′∈R0∥x−x′∥2\mathcal D_0=\sup_{x,x'\in R_0}\|x-x'\|_2D0​=supx,x′∈R0​​∥x−x′∥2​ its diameter, Coracle\mathcal C^{\mathrm{oracle}}Coracle the oracle criterion (8) and Capx-risk\mathcal C^{\mathrm{apx\text{-}risk}}Capx-risk the approximate risk criterion (13). Suppose that for both j=1,2j=1,2j=1,2 the conditions of Theorem 2 hold:

  1. f0f_0f0​ and fjf_jfj​ are twice continuously differentiable;
  2. there are α\alphaα and a bounded set containing every sublevel set {z:f0(z)+t(fj(z)−f0(z))≤α}\{z:f_0(z)+t(f_j(z)-f_0(z))\le\alpha\}{z:f0​(z)+t(fj​(z)−f0​(z))≤α}, t∈[0,1]t\in[0,1]t∈[0,1], each of which is nonempty;
  3. for every t∈[0,1]t\in[0,1]t∈[0,1], f0+t(fj−f0)f_0+t(f_j-f_0)f0​+t(fj​−f0​) has a unique minimizer, at which its Hessian is positive definite.

Then for every ε>0\varepsilon>0ε>0 there is δ>0\delta>0δ>0 such that every such split with R0R_0R0​ inside the ball of radius δ\deltaδ around xˉ\bar xxˉ, with z0z_0z0​ the unique minimizer of f0f_0f0​, satisfies

∣Coracle(R1,R2)−p0f0(z0)−Capx-risk(R1,R2)∣≤ε p0 D02.\bigl|\mathcal C^{\mathrm{oracle}}(R_1,R_2)-p_0f_0(z_0)-\mathcal C^{\mathrm{apx\text{-}risk}}(R_1,R_2)\bigr|\le\varepsilon\,p_0\,\mathcal D_0^2 .​Coracle(R1​,R2​)−p0​f0​(z0​)−Capx-risk(R1​,R2​)​≤εp0​D02​.

In short, the error is o(p0D02)o(p_0\mathcal D_0^2)o(p0​D02​) as R0R_0R0​ shrinks to xˉ\bar xxˉ.

This is the paper's justification for growing the trees of a stochastic optimization forest with the approximate risk criterion: it ranks candidate splits like the oracle criterion, up to an error negligible compared with the criterion's own size O(p0D02)O(p_0\mathcal D_0^2)O(p0​D02​), while needing only one Hessian per parent region.

Formalization Note The paper says "as the partition becomes finer" without naming a limit; the anchor xˉ\bar xxˉ with a nondegenerate, level-bounded minimizer, and regions in a ball around it, pin the limit down and make the little-ooo uniform as f0f_0f0​ moves with R0R_0R0​. The bound carries the factor p0≤1p_0\le1p0​≤1, so it implies the printed o(D02)o(\mathcal D_0^2)o(D02​); the printed form alone would follow from crude O(p0D02)O(p_0\mathcal D_0^2)O(p0​D02​) bounds on both terms whenever p0→0p_0\to0p0​→0, and is not the content of the theorem. Condition 4 ("twice Lipschitz-continuously differentiable in xxx") is replaced by xxx-Lipschitz bounds on cˉ\bar ccˉ and its first two zzz-derivatives, which is what the proof uses. Condition 3's minimizer is read as depending on ttt (the page names it z0z_0z0​ for every ttt, which would force ∇fj(z0)=0\nabla f_j(z_0)=0∇fj​(z0​)=0 and make the criterion zero). The minima in Coracle\mathcal C^{\mathrm{oracle}}Coracle are real infima; condition 3 at t=1t=1t=1 makes them attained.

Preamble
import Mathlib
import Definitions.Def_StochOptForest_ApxRisk_Model
Formal statement
namespace StochOptForest.ApxRisk

open MeasureTheory

theorem theorem_2 {p d : ℕ} (μ : Measure (Xp p)) [IsProbabilityMeasure μ]
    (cbar : Xp p → Ed d → ℝ) (L : ℝ) (xbar : Xp p) (zbar : Ed d)
    (hC2 : ∀ x, ContDiff ℝ 2 (cbar x)) (hLip : XLipschitz cbar L)
    (hanchor : IsUniqueMin (cbar xbar) zbar) (hpd : PosDefAt (cbar xbar) zbar)
    (hlev : ∃ α : ℝ, cbar xbar zbar < α ∧ Bornology.IsBounded {z | cbar xbar z ≤ α}) :
    ∀ ε > 0, ∃ δ > 0, ∀ R0 R1 R2 : Set (Xp p),
      MeasurableSet R1 → MeasurableSet R2 → Disjoint R1 R2 → R0 = R1 ∪ R2 →
      R0 ⊆ Metric.ball xbar δ → 0 < μ R1 → 0 < μ R2 →
      -- conditions 1–3 of Theorem 2, for both j = 1, 2
      (∀ Rj ∈ ({R1, R2} : Set (Set (Xp p))),
        -- condition 1: f₀ and f_j are twice continuously differentiable
        (ContDiff ℝ 2 (regionAvg μ cbar R0) ∧ ContDiff ℝ 2 (regionAvg μ cbar Rj)) ∧
        -- condition 2: the sublevel sets are nonempty and uniformly bounded for t ∈ [0,1]
        (∃ α : ℝ, ∃ C : Set (Ed d), Bornology.IsBounded C ∧ ∀ t ∈ Set.Icc (0 : ℝ) 1,
          {z | regionAvg μ cbar R0 z + t * (regionAvg μ cbar Rj z - regionAvg μ cbar R0 z) ≤ α}.Nonempty ∧
          {z | regionAvg μ cbar R0 z + t * (regionAvg μ cbar Rj z - regionAvg μ cbar R0 z) ≤ α} ⊆ C) ∧
        -- condition 3: a unique minimizer with positive definite Hessian for every t ∈ [0,1]
        (∀ t ∈ Set.Icc (0 : ℝ) 1, ∃ zt : Ed d,
          IsUniqueMin (fun z => regionAvg μ cbar R0 z + t * (regionAvg μ cbar Rj z - regionAvg μ cbar R0 z)) zt ∧
          PosDefAt (fun z => regionAvg μ cbar R0 z + t * (regionAvg μ cbar Rj z - regionAvg μ cbar R0 z)) zt)) →
      ∀ z0 : Ed d, IsUniqueMin (regionAvg μ cbar R0) z0 →
        |oracleCrit μ cbar R1 R2 - regionProb μ R0 * regionAvg μ cbar R0 z0
            - apxRiskCrit μ cbar R0 R1 R2 z0|
          ≤ ε * regionProb μ R0 * Metric.diam R0 ^ 2 := by sorry

end StochOptForest.ApxRisk
Source
Kallus & Mao, arXiv:2008.07473v6, pp. 9–10, Theorem 2 (proof p. 81)
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 23, 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