Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(2.10), p. 5 — f̂′_N(x, d) = N⁻¹ Σ_{j=1}^N h′_{ωʲ}(x, d)

Proved
SAARate.Sharp.display_2_10

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

directional-derivativep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1sample-average-approximationstochastic-programming

Let h:Rm×Ω→Rh:\mathbb R^m\times\Omega\to\mathbb Rh:Rm×Ω→R with h(⋅,ω)h(\cdot,\omega)h(⋅,ω) convex for every ω\omegaω. For a sample ω1,…,ωN\omega^1,\dots,\omega^Nω1,…,ωN with N≥1N\ge1N≥1, let f^N(x)=N−1∑j=1Nh(x,ωj)\hat f_N(x)=N^{-1}\sum_{j=1}^N h(x,\omega^j)f^​N​(x)=N−1∑j=1N​h(x,ωj). Then for all x,d∈Rmx,d\in\mathbb R^mx,d∈Rm,

f^N′(x,d)=N−1∑j=1Nhωj′(x,d),(2.10)\hat f'_N(x,d)=N^{-1}\sum_{j=1}^N h'_{\omega^j}(x,d), \tag{2.10}f^​N′​(x,d)=N−1j=1∑N​hωj′​(x,d),(2.10)

where f^N′(x,d)\hat f'_N(x,d)f^​N′​(x,d) and hωj′(x,d)h'_{\omega^j}(x,d)hωj′​(x,d) are the directional derivatives of f^N\hat f_Nf^​N​ and of h(⋅,ωj)h(\cdot,\omega^j)h(⋅,ωj) at xxx in direction ddd.

This identity writes f^N′(x,d)\hat f'_N(x,d)f^​N′​(x,d) as a sample mean of i.i.d. variables, to which the strong law of large numbers applies in the proof of (2.6).

Formalization Note. The statement holds for every sample path, not only almost surely. The paper's ωj\omega^jωj is the Lean s (j-1).

Preamble
import Mathlib
import Definitions.Def_SAARate_Sharp_Setting
Formal statement
namespace SAARate.Sharp

open MeasureTheory ProbabilityTheory Filter Topology

theorem display_2_10 {m : ℕ} {Ω : Type*} (h : E m → Ω → ℝ)
    (hconv : ∀ ω, ConvexOn ℝ Set.univ (fun x => h x ω))
    (s : ℕ → Ω) (N : ℕ) (hN : 1 ≤ N) (x d : E m) :
    dirDeriv (saaObj h s N) x d =
      (N : ℝ)⁻¹ * ∑ j ∈ Finset.range N, dirDeriv (fun y => h y (s j)) x d := by sorry

end SAARate.Sharp
Source
Shapiro & Homem-de-Mello, On Rate of Convergence of Optimal Solutions of Monte Carlo Approximations of Stochastic Programs, preprint (SPEPS copy, edoc.hu-berlin.de), p. 5, proof of Proposition 2.2, (2.10)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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