Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Integrated contracted-counter output formula

Proved
CountingLLL.ContractedWalk.counter_integral_correctness

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

analysisprobability

For e−3/10≤B<1e^{-3/10}\le B<1e−3/10≤B<1, put u=2(1−B)/(2−B)u=2(1-B)/(2-B)u=2(1−B)/(2−B) and θ=u2/(1−u+u2)\theta=u^2/(1-u+u^2)θ=u2/(1−u+u2). The source’s contracted-counter generating function H(z)=(1−u)Gθ(z)+uzGθ(z)3H(z)=(1-u)G_\theta(z)+uzG_\theta(z)^3H(z)=(1−u)Gθ​(z)+uzGθ​(z)3 satisfies 1−12∫01H(z) dz=1/(2B)1-\frac12\int_0^1H(z)\,dz=1/(2B)1−21​∫01​H(z)dz=1/(2B). This verifies the integrated output formula in the abstract walk model; the correspondence with the full ReciprocalTest execution remains separate.

Preamble
import Definitions.Def_CountingLLL_ContractedGF
open MeasureTheory CountingLLL.ContractedWalk
open scoped Interval
Formal statement
theorem CountingLLL.ContractedWalk.counter_integral_correctness (B : ℝ) (hB0 : 0 < B) (hB1 : B < 1)
    (hB : Real.exp (-(3/10 : ℝ)) ≤ B) :
    let u := 2*(1-B)/(2-B)
    let θ := u^2/(1-u+u^2)
    1 - (∫ z in (0:ℝ)..1, ((1-u)*generatingFunction θ z + u*z*(generatingFunction θ z)^3))/2 = 1/(2*B) := by sorry
Source
Liu, Wang, Yin, Zhang and Zhou, A Counting and Sampling Lovász Local Lemma, STOC 2027 #442, proof of Lemma 6.5, PDF pp. 27–28, 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