Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Generating function for the contracted walk’s final counter

Proved
CountingLLL.ContractedWalk.initial_counter_generating_function

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

probability

Let an independent initial bit equal one with probability uuu. If it is zero, start the contracted walk at level one with counter one; if it is one, start at level three with counter two. Let NNN be the final counter, incremented on each upward move. For 0≤u≤10\le u\le10≤u≤1, 0≤θ<1/30\le\theta<1/30≤θ<1/3 and 0≤z≤10\le z\le10≤z≤1, its generating function satisfies E[zN−1]=(1−u)Gθ(z)+uzGθ(z)3\mathbb E[z^{N-1}]=(1-u)G_\theta(z)+uzG_\theta(z)^3E[zN−1]=(1−u)Gθ​(z)+uzGθ​(z)3. This is the paper’s suppressed-early-return contracted-walk model; its coupling to the full machine remains separate.

Preamble
import Definitions.Def_CountingLLL_ContractedGF
open MeasureTheory CountingLLL.ContractedWalk
open scoped ENNReal
Formal statement
theorem CountingLLL.ContractedWalk.initial_counter_generating_function (u θ z : ℝ) (hu0 : 0 ≤ u) (hu1 : u ≤ 1)
    (hθ0 : 0 ≤ θ) (hθ : θ < 1/3) (hz0 : 0 ≤ z) (hz1 : z ≤ 1) :
    (∫ x : Bool × Tape, z ^ (if x.1 then 1 + upwardCount x.2 3 else upwardCount x.2 1)
      ∂((bitLaw (ENNReal.ofReal u)).prod (tapeLaw (ENNReal.ofReal θ)))) =
      (1-u)*generatingFunction θ z + u*z*(generatingFunction θ z)^3 := 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 p. 27, 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