Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Counting accuracy from truncated marginals

Proved
CountingLLL.DetCount.approximation_from_estimator

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

Let Φ\PhiΦ be a finite CSP satisfying Condition 1.1, with mmm constraints, and fix a valid enumeration choice for the truncated marginal estimator. For 0≤ε≤10\le\varepsilon\le10≤ε≤1, if LLL satisfies

8m(0.9)L≤ε/4,8m(0.9)^L\le\varepsilon/4,8m(0.9)L≤ε/4,

then the product of the estimated conditional satisfaction probabilities, multiplied by the total number of assignments, is within relative error ε\varepsilonε of ZΦZ_\PhiZΦ​. This is the mathematical accuracy step in the proof of Theorem 1.2; it does not assert a machine implementation or running-time bound.

Preamble
import Definitions.Def_CountingLLL_DetCount_Expansion
open scoped Classical BigOperators
Formal statement
namespace CountingLLL.DetCount
open CSP

/-- Section 4.2: truncation accuracy implies multiplicative counting accuracy. -/
theorem approximation_from_estimator (Φ : CSP) (hΦ : Φ.Condition11)
    (L : ℕ) (en : Φ.EnumChoice) (hen : Φ.ValidEnum en) (ε : ℝ)
    (hε : 0 ≤ ε) (hε1 : ε ≤ 1)
    (hL : (Φ.m : ℝ) * (8*(0.9 : ℝ)^L) ≤ ε/4) :
    let Cpre : ℕ → Finset (Fin Φ.m) :=
      fun i => Finset.univ.filter (fun j : Fin Φ.m => j.val < i)
    let Zhat : ℝ := (∏ v, (Φ.q v : ℝ)) *
      ∏ i : Fin Φ.m, (1 - Φ.rhatWith en L (Cpre (i.val+1)) i)
    (1-ε)*(Φ.ZPhi : ℝ) ≤ Zhat ∧ Zhat ≤ (1+ε)*(Φ.ZPhi : ℝ) := by sorry
end CountingLLL.DetCount
Source
Liu, Wang, Yin, Zhang, and Zhou, A Counting and Sampling Lovász Local Lemma, https://github.com/sigact-stoc/stoc2027/releases/download/papers-1/442.pdf, Section 4.2, equation (21) and proof of Theorem 1.2.

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