Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Case (a), β=1\beta=1β=1 — C≤c4ε−2(log⁡ε)2C\le c_4\varepsilon^{-2}(\log\varepsilon)^2C≤c4​ε−2(logε)2 with c4=2c3c52c2+c3M2M−1(2c1)1/αc_4=2c_3c_5^2c_2+c_3\frac{M^2}{M-1}(\sqrt2c_1)^{1/\alpha}c4​=2c3​c52​c2​+c3​M−1M2​(2​c1​)1/α

Proved
GilesMLMC.Complexity.case_a_complexity

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

complexitymultilevel-monte-carlop2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let M≥2M\ge2M≥2 be an integer, T>0T>0T>0, α≥12\alpha\ge\frac12α≥21​, c1,c2,c3>0c_1,c_2,c_3>0c1​,c2​,c3​>0 and 0<ε<e−10<\varepsilon<e^{-1}0<ε<e−1. For every level lll and sample size n≥1n\ge1n≥1 let Cl(n)C_l^{(n)}Cl(n)​ be the computational complexity of the level-lll estimator with nnn samples, and assume

(iv) Cl(n)≤c3 n hl−1C_l^{(n)}\le c_3\,n\,h_l^{-1}Cl(n)​≤c3​nhl−1​ for every lll and n≥1n\ge1n≥1, where hl=M−lTh_l=M^{-l}Thl​=M−lT.

Let L≥0L\ge0L≥0 be the level of (6) and Nl=⌈2ε−2(L+1)c2hl⌉N_l=\lceil2\varepsilon^{-2}(L+1)c_2h_l\rceilNl​=⌈2ε−2(L+1)c2​hl​⌉. Then the total complexity C=∑l=0LCl(Nl)C=\sum_{l=0}^LC_l^{(N_l)}C=∑l=0L​Cl(Nl​)​ satisfies

C≤c4 ε−2(log⁡ε)2,c4=2c3c52c2+c3M2M−1(2c1)1/α,C\le c_4\,\varepsilon^{-2}(\log\varepsilon)^2,\qquad c_4=2c_3c_5^2c_2+c_3\frac{M^2}{M-1}(\sqrt2c_1)^{1/\alpha},C≤c4​ε−2(logε)2,c4​=2c3​c52​c2​+c3​M−1M2​(2​c1​)1/α,

with c5c_5c5​ as in the bound L+1≤c5log⁡ε−1L+1\le c_5\log\varepsilon^{-1}L+1≤c5​logε−1.

This is the cost half of the theorem in the case β=1\beta=1β=1.

Formalization Note The complexity Cl(n)C_l^{(n)}Cl(n)​ is abstract and constrained only by (iv); CCC is the sum of the level complexities. The level LLL is the natural number equal to the paper's integer ceiling in (6); this encodes that the ceiling is nonnegative, which the proof assumes silently (for a negative ceiling there is no estimator ∑l=0L\sum_{l=0}^L∑l=0L​). ε>0\varepsilon>0ε>0 is implicit in "ε<e−1\varepsilon<e^{-1}ε<e−1".

Preamble
import Mathlib
import Definitions.Def_GilesMLMC_Complexity_Setup
import Definitions.Def_GilesMLMC_Complexity_Choices
Formal statement
namespace GilesMLMC.Complexity

/-- Case (a) of the proof of Theorem 3.1, complexity (Giles 2008, §3, p. 610, PDF 4, left column, top): with `N_l = ⌈2ε⁻²(L+1)c₂h_l⌉`, `C ≤ c₄ ε⁻²(log ε)²` where `c₄ = 2c₃c₅²c₂ + c₃ M²/(M−1) (√2c₁)^{1/α}`.

Formalization Note. `cost l n` is the computational complexity C_l of the level-`l` estimator with `n` samples, constrained only by (iv) for every `n ≥ 1`; `C = Σ_{l=0}^L C_l` is `totalCost`. The level `L` is the paper's choice (6), taken as a natural number: `(L : ℤ) = Lchoice …` encodes that the integer ceiling is nonnegative, which the proof assumes silently (for a negative ceiling there is no estimator `Σ_{l=0}^L`). `ε > 0` is implicit in "ε < e⁻¹". -/
theorem case_a_complexity
    (M : ℕ) (hM : 2 ≤ M) (T : ℝ) (hT : 0 < T)
    (α c₁ c₂ c₃ : ℝ) (hα : 1 / 2 ≤ α) (hc₁ : 0 < c₁) (hc₂ : 0 < c₂) (hc₃ : 0 < c₃)
    (cost : ℕ → ℕ → ℝ) (h_iv : ∀ l N, 1 ≤ N → cost l N ≤ c₃ * N * (h M T l)⁻¹)
    (ε : ℝ) (hε : 0 < ε) (hε1 : ε < Real.exp (-1))
    (L : ℕ) (hL : (L : ℤ) = Lchoice M T α c₁ ε) :
    totalCost cost (NA M T c₂ ε L) L ≤ c₄A M T α c₁ c₂ c₃ * ε ^ (-2 : ℝ) * Real.log ε ^ 2 := by sorry

end GilesMLMC.Complexity
Source
Giles, Multilevel Monte Carlo path simulation, Operations Research 56(3) (2008), §3, proof of Theorem 3.1, case (a), complexity, p. 610
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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