Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

A clause on kkk distinct variables is satisfied by at least a 1−2−k1 - 2^{-k}1−2−k fraction of assignments

Proved
QLLL.SAT.counting_clauseEvent_ge

by sattath · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

k-satprobabilistic-methodquantum-lll

A clause is a disjunction of literals over boolean variables, and an assignment satisfies it if at least one literal evaluates to true. Let ccc be a clause over the variables x1,…,xVx_1, \dots, x_Vx1​,…,xV​ that involves exactly kkk distinct variables. Then, for an assignment aaa chosen uniformly from {0,1}V\{0,1\}^{V}{0,1}V,

Pr⁡[a satisfies c] ≥ 1−12k.\Pr\big[a \text{ satisfies } c\big] \ \ge\ 1 - \frac{1}{2^{k}}.Pr[a satisfies c] ≥ 1−2k1​.

This is the probability estimate in the derivation of Corollary 2 of Ambainis, Kempe and Sattath from the symmetric local lemma: a random assignment violates a kkk-clause with probability at most 2−k2^{-k}2−k.

Formalization Note The probability is the uniform counting valuation on Fin V → Bool.

Preamble
import Definitions.Def_QLLL_LocalLemma_Basic
import Definitions.Def_QLLL_Classical_KSAT
import Mathlib
import Std.Sat.CNF

open QLLL
open QLLL.SAT
open Finset Std.Sat
variable (Ω : Type*) [Fintype Ω] [DecidableEq Ω] [Nonempty Ω]
variable {V : ℕ}
Formal statement
theorem QLLL.SAT.counting_clauseEvent_ge {c : CNF.Clause (Fin V)} {k : ℕ}
    (hk : (clauseVars c).card = k) :
    1 - 1 / 2 ^ k ≤ counting (Asg V) (clauseEvent c) := by sorry
Source
A. Ambainis, J. Kempe, O. Sattath, A Quantum Lovász Local Lemma, J. ACM 59(5):24 (2012), arXiv:0911.1696 (numbering of the arXiv version), proof of Corollary 2 (the estimate p=2−kp = 2^{-k}p=2−k)

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me