Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (6)–(8), pp. 12–13 — the two importance-sampling expectations

Proved
VdNSim.Sparse.eqs_6_8

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

importance-samplingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1sparse-operator

Let σi=∑xαi(x)ϕri(x)‾ψx\sigma_i=\sum_x\alpha_i(x)\overline{\phi_{r_i(x)}}\psi_xσi​=∑x​αi​(x)ϕri​(x)​​ψx​, where (αi,ri)(\alpha_i,r_i)(αi​,ri​) is the iiith column-data slot of AAA. Define px=∣ψx∣2p_x=|\psi_x|^2px​=∣ψx​∣2, qy=∣ϕy∣2q_y=|\phi_y|^2qy​=∣ϕy​∣2, and the functions Fi,GiF_i,G_iFi​,Gi​ of Eqs. (7)–(8), splitting according to px≥qri(x)p_x\ge q_{r_i(x)}px​≥qri​(x)​ and its strict complement. Then

σi=∑xpxFi(x)+∑yqyGi(y).\sigma_i=\sum_x p_xF_i(x)+\sum_y q_yG_i(y).σi​=x∑​px​Fi​(x)+y∑​qy​Gi​(y).

The identity turns each contribution to the matrix element into expectations that can be estimated from the two sampling laws.

Formalization Note No state normalization is needed for this algebraic identity. The value of a quotient at a zero-probability outcome is zero; its weighted contribution is also zero.

Preamble
import Mathlib
import Definitions.Def_VdNSim_Sparse_Model

noncomputable section
Formal statement
namespace VdNSim.Sparse

/-- Eqs. (6)–(8): the p- and q-weighted expectations sum to sigma_i. -/
theorem eqs_6_8 {X : Type*} [Fintype X] [DecidableEq X]
    {A : Matrix X X ℂ} {s : ℕ} (D : ColumnData A s) (ψ ϕ : X → ℂ)
    (i : Fin s) :
    (∑ x, D.α i x * star (ϕ (D.r i x)) * ψ x) =
      expect (prob ψ) (F ψ ϕ D i) + expect (prob ϕ) (G ψ ϕ D i) := by sorry

end VdNSim.Sparse
Source
Van den Nest, Simulating quantum computers with probabilistic methods, arXiv:0911.1624v3, pp. 12–13, Eqs. (6)–(8)
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

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