Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2.3, proof of Theorem 5 — recombination identity

Proved
QuantumMC.MeanEst.theorem_5_recombination

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

mean-estimationmonte-carlop2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-algorithms

For an integrable output XXX, positive σ\sigmaσ, any real mmm, and B=X/σ−mB=X/\sigma-mB=X/σ−m, let B<0B_{<0}B<0​ and B≥0B_{\ge0}B≥0​ retain BBB on the indicated half-lines and output zero elsewhere. Then

E[X]=σ(m−E[−B<0]+E[B≥0]).\mathbb E[X]=\sigma\bigl(m-\mathbb E[-B_{<0}]+\mathbb E[B_{\ge0}]\bigr).E[X]=σ(m−E[−B<0​]+E[B≥0​]).

This is the expectation identity behind Algorithm 3's final combination.

Preamble
import Mathlib
import Definitions.Def_QuantumMC_MeanEst_Setting
Formal statement
namespace QuantumMC.MeanEst

open MeasureTheory ProbabilityTheory

/-- §2.3, proof of Theorem 5, p. 12: recombination of the negative and positive parts. -/
theorem theorem_5_recombination {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] (X : Ω → ℝ) (hX : Integrable X P)
    (σ m : ℝ) (hσ : 0 < σ) :
    (∫ ω, X ω ∂P) = σ *
      (m - (∫ ω, -(truncLt 0 (alg3B σ m X) ω) ∂P) +
        (∫ ω, truncGe 0 (alg3B σ m X) ω ∂P)) := by sorry
end QuantumMC.MeanEst
Source
Montanaro, Quantum speedup of Monte Carlo methods, arXiv:1504.06987v3, §2.3, proof of Theorem 5, p. 12
Human review
  • Endorsed by Shuze Chen · Oct 16, 2026

    Confirmed by the moderator at approval.

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