Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lovász Local Lemma for kkk-SAT: bounded variable occurrence implies satisfiability

Proved
QLLL.SAT.sat_of_degree_le

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

k-satlovasz-local-lemmaquantum-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 Φ\PhiΦ be a CNF formula over the variables x1,…,xVx_1, \dots, x_Vx1​,…,xV​ in which every clause involves exactly kkk distinct variables, where k≥1k \ge 1k≥1. Let D≥1D \ge 1D≥1 be an integer such that every variable occurs in at most DDD clauses of Φ\PhiΦ, and suppose

D⋅e⋅k ≤ 2k.D \cdot e \cdot k \ \le\ 2^{k}.D⋅e⋅k ≤ 2k.

Then Φ\PhiΦ is satisfiable.

This is Corollary 2 of Ambainis, Kempe and Sattath: a kkk-CNF formula in which every variable appears in at most 2k/(e⋅k)2^k / (e \cdot k)2k/(e⋅k) clauses is satisfiable. It is the classical model for the kkk-QSAT corollary QLLL.QSAT.satisfiable_of_degree_le.

Formalization Note Formulas are Std.Sat.CNF (Fin V) from the Lean core library and satisfiability is Std.Sat.CNF.Sat. The paper's bound "at most 2k/(ek)2^k/(e k)2k/(ek) clauses" is written as Dek≤2kD e k \le 2^kDek≤2k for an integer DDD. The hypotheses k≥1k \ge 1k≥1 and D≥1D \ge 1D≥1 are explicit; with k≥1k \ge 1k≥1 the case D=0D = 0D=0 only covers the empty formula.

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.sat_of_degree_le {V : ℕ} (f : CNF (Fin V)) (k D : ℕ) (hk : 1 ≤ k) (hD1 : 1 ≤ D)
    (hvars : ∀ i : Fin f.clauses.size, (clauseVars (f.clauses[i.1]'i.2)).card = k)
    (hdeg : ∀ v : Fin V, (univ.filter fun i : Fin f.clauses.size =>
        v ∈ clauseVars (f.clauses[i.1]'i.2)).card ≤ D)
    (hDk : (D : ℝ) * (Real.exp 1 * k) ≤ 2 ^ k) :
    ∃ a, CNF.Sat a f := 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), Corollary 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me