Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1, p. 32 — Fubini step: ∫∫ g(z) w(z − s) h(z) dz dP_Y(s) = ∫ g(z) (f_Y ∗ w)(z) h(z) dz

Proved
MultivarScores.L2Rule.integral_cross_term

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

convolutionfubinip2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1scoring-rules

Let PYP_YPY​ be a probability distribution on Rd\mathbb R^dRd and let g,w,h:Rd→Rg,w,h:\mathbb R^d\to\mathbb Rg,w,h:Rd→R be measurable. If (s,z)↦g(z) w(z−s) h(z)(s,z)\mapsto g(z)\,w(z-s)\,h(z)(s,z)↦g(z)w(z−s)h(z) is integrable with respect to PY⊗LdP_Y\otimes\mathcal L^dPY​⊗Ld, then

∫Rd(∫Rdg(z) w(z−s) h(z) dz) dPY(s)=∫Rdg(z) (fY∗w)(z) h(z) dz,\int_{\mathbb R^d}\Big(\int_{\mathbb R^d} g(z)\,w(z-s)\,h(z)\,dz\Big)\,dP_Y(s)=\int_{\mathbb R^d} g(z)\,(f_Y*w)(z)\,h(z)\,dz,∫Rd​(∫Rd​g(z)w(z−s)h(z)dz)dPY​(s)=∫Rd​g(z)(fY​∗w)(z)h(z)dz,

where (fY∗w)(z)=∫w(z−s) dPY(s)(f_Y*w)(z)=\int w(z-s)\,dP_Y(s)(fY​∗w)(z)=∫w(z−s)dPY​(s).

This is the step of the proof of Theorem 1 that "holds by Fubini's theorem and the definition of convolution": it turns the expectation over the realization of the cross term of the expanded score into an integral against the smoothed density fY∗wf_Y*wfY​∗w. With g=fX∗w−fY∗wg=f_X*w-f_Y*wg=fX​∗w−fY​∗w it is the passage from the second to the third line of the divergence computation.

Formalization Note The product integrability is the form Assumption 1(c) takes for this cross term; it is what makes Fubini's theorem applicable.

Preamble
import Mathlib
import Definitions.Def_MultivarScores_L2Rule_Setting
Formal statement
namespace MultivarScores.L2Rule

open MeasureTheory

/-- Fubini step in the proof of Theorem 1, p. 32: for a distribution `P_Y`,
`∫ (∫ g(z) w(z − s) h(z) dz) dP_Y(s) = ∫ g(z) (f_Y ∗ w)(z) h(z) dz`. -/
theorem integral_cross_term {d : ℕ} (PY : Measure (E d)) [IsProbabilityMeasure PY]
    (g w h : E d → ℝ) (hg : Measurable g) (hw : Measurable w) (hh : Measurable h)
    (hint : Integrable (fun p : E d × E d => g p.2 * w (p.2 - p.1) * h p.2) (PY.prod volume)) :
    ∫ s, (∫ z, g z * w (z - s) * h z) ∂PY = ∫ z, g z * smooth PY w z * h z := by sorry

end MultivarScores.L2Rule
Source
Meng, Taylor, Ben Taieb, Li, Scores for Multivariate Distributions and Level Sets, arXiv:2002.09578v6, p. 32, proof of Theorem 1, second and third lines of the divergence display
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

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