Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Relative second moment of an independent product

Proved
CountingLLL.RandomRAM.product_relative_second_moment

by wcysai · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

probability

For a finite family of independent real random variables with finite second moments and nonzero means, the second moment of their product divided by the square of the product of their means is exactly the product over factors of one plus variance divided by squared mean. It is bounded by the exponential of the sum of these relative variances. This is the probabilistic factorization and exponential estimate used in the proof of equation (34) for randomized counting.

Preamble
import Mathlib
open MeasureTheory ProbabilityTheory
open scoped BigOperators
Formal statement
theorem CountingLLL.RandomRAM.product_relative_second_moment {Ω ι : Type} [MeasurableSpace Ω] [Fintype ι]
    (μ : Measure Ω) [IsProbabilityMeasure μ] (X : ι → Ω → ℝ)
    (hind : iIndepFun X μ) (hL2 : ∀ i, MemLp (X i) 2 μ)
    (hmean : ∀ i, (∫ ω, X i ω ∂μ) ≠ 0) :
    (∫ ω, (∏ i, X i ω) ^ 2 ∂μ) / (∏ i, ∫ ω, X i ω ∂μ) ^ 2 =
      ∏ i, (1 + variance (X i) μ / (∫ ω, X i ω ∂μ) ^ 2) ∧
    (∫ ω, (∏ i, X i ω) ^ 2 ∂μ) / (∏ i, ∫ ω, X i ω ∂μ) ^ 2 ≤
      Real.exp (∑ i, variance (X i) μ / (∫ ω, X i ω ∂μ) ^ 2) := by sorry
Source
Liu, Wang, Yin, Zhang, Zhou, A Counting and Sampling Lovasz Local Lemma, STOC submission #442, proof of Theorem 1.3, Section 5.3, equation (34), PDF p.21, https://github.com/sigact-stoc/stoc2027/releases/download/papers-1/442.pdf

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