Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Explicit logarithmic truncation gives dyadic counting accuracy

Proved
CountingLLL.DetCount.dyadic_truncation_accuracy

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

Let Φ\PhiΦ satisfy Condition 1.1 and have mmm constraints. Fix a valid enumeration choice and a nonnegative integer sss, and set ε=2−s\varepsilon=2^{-s}ε=2−s and

L=10(s+⌊log⁡2(m+1)⌋+6).L=10\bigl(s+\lfloor\log_2(m+1)\rfloor+6\bigr).L=10(s+⌊log2​(m+1)⌋+6).

The product of the corresponding budget-LLL estimated conditional satisfaction probabilities, multiplied by the number of all assignments, lies between (1−ε)ZΦ(1-\varepsilon)Z_\Phi(1−ε)ZΦ​ and (1+ε)ZΦ(1+\varepsilon)Z_\Phi(1+ε)ZΦ​. This makes the logarithmic truncation used in Section 4.2 explicit; it asserts accuracy, while the program construction and cost bound remain separate.

Preamble
import Definitions.Def_CountingLLL_DetCount_Expansion
open scoped Classical BigOperators
Formal statement
namespace CountingLLL.DetCount
open CSP
/-- A concrete logarithmic truncation budget yields dyadic relative accuracy. -/
theorem dyadic_truncation_accuracy (Φ : CSP) (hΦ : Φ.Condition11)
    (en : Φ.EnumChoice) (hen : Φ.ValidEnum en) (s : ℕ) :
    let ε : ℝ := (1/2)^s
    let L := 10 * (s + Nat.log2 (Φ.m+1) + 6)
    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, §4.2, equation (21) and proof of Theorem 1.2; an explicit sufficient truncation choice.

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