Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§3.2, p. 17 — 1/√(χ²(ν, π) + 1) ≤ Σ_x ν(x)√(π(x)/ν(x)) = ⟨ν|π⟩

Proved
QuantumMC.Cooling.inv_sqrt_chiSq_add_one_le_overlap

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

chi-squaredfidelityjensen-inequalityp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-sample

Let ν\nuν and π\piπ be probability distributions on a finite set Ω\OmegaΩ, with π(x)>0\pi(x)>0π(x)>0 for every xxx. Then

1χ2(ν,π)+1≤∑x∈Ων(x)π(x)ν(x)=⟨ν∣π⟩,\frac{1}{\sqrt{\chi^2(\nu,\pi)+1}}\le\sum_{x\in\Omega}\nu(x)\sqrt{\frac{\pi(x)}{\nu(x)}}=\langle\nu|\pi\rangle,χ2(ν,π)+1​1​≤x∈Ω∑​ν(x)ν(x)π(x)​​=⟨ν∣π⟩,

where ∣ν⟩=∑xν(x)∣x⟩|\nu\rangle=\sum_x\sqrt{\nu(x)}|x\rangle∣ν⟩=∑x​ν(x)​∣x⟩ and ∣π⟩=∑xπ(x)∣x⟩|\pi\rangle=\sum_x\sqrt{\pi(x)}|x\rangle∣π⟩=∑x​π(x)​∣x⟩ are the quantum sample states and ⟨ν∣π⟩\langle\nu|\pi\rangle⟨ν∣π⟩ is their (complex) inner product. Terms with ν(x)=0\nu(x)=0ν(x)=0 contribute 000 to the middle sum.

Combined with a bound on χ2\chi^2χ2, this gives a lower bound on the overlap of quantum samples.

Formalization Note The positivity of π\piπ is implicit on the page (the display divides by π(x)\pi(x)π(x)) and is stated as a hypothesis. In Lean, ν(x)π(x)/ν(x)\nu(x)\sqrt{\pi(x)/\nu(x)}ν(x)π(x)/ν(x)​ evaluates to 000 when ν(x)=0\nu(x)=0ν(x)=0, which matches the sum over the support of ν\nuν. The equality with ⟨ν∣π⟩\langle\nu|\pi\rangle⟨ν∣π⟩ is stated in C\mathbb CC.

Preamble
import Mathlib
import Definitions.Def_QuantumMC_Cooling_Setting

open scoped ENNReal InnerProductSpace
Formal statement
namespace QuantumMC.Cooling

/-- §3.2, p. 17 (Jensen display): for probability distributions `ν ≥ 0` and `π > 0` on `Ω`,
`1/√(χ²(ν, π) + 1) ≤ ∑_x ν(x) √(π(x)/ν(x)) = ⟨ν|π⟩`. -/
theorem inv_sqrt_chiSq_add_one_le_overlap {Ω : Type*} [Fintype Ω] (ν π : Ω → ℝ)
    (hν0 : ∀ x, 0 ≤ ν x) (hν : ∑ x, ν x = 1) (hπpos : ∀ x, 0 < π x) (hπ : ∑ x, π x = 1) :
    1 / Real.sqrt (chiSq ν π + 1) ≤ ∑ x, ν x * Real.sqrt (π x / ν x) ∧
      ((∑ x, ν x * Real.sqrt (π x / ν x) : ℝ) : ℂ) = ⟪qsample ν, qsample π⟫_ℂ := by sorry

end QuantumMC.Cooling
Source
Montanaro, Quantum speedup of Monte Carlo methods, arXiv:1504.06987v3, §3.2, p. 17, display after the first sentence
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me