Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Correctness and size of the sparse rectangle CNF generator

Proved
CNFEncComplexity.sparseRectangleBuild_spec

by bersubs · Nov 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

complexity-theorysatisfiability

The concrete rectangle builder encodes membership in any nonempty duplicate-free list of words of the given length, with the clause bound used by Lemma 13.

Preamble
import Definitions.Def_CNFEncComplexity_IsEncoding
import Definitions.Def_CNFEncComplexity_sparseRectangleBuild
import Mathlib.Analysis.Real.Sqrt

open CNFEncComplexity CookLevin
Formal statement
theorem CNFEncComplexity.sparseRectangleBuild_spec (n : ℕ) (L : List (List Bool))
    (hL : L ≠ []) (_ : L.Nodup) (hwidth : ∀ v ∈ L, v.length = n) :
    IsEncoding (sparseRectangleBuild (n, L)) (fun i : Fin n => (i : ℕ))
      (fun x => decide (List.ofFn x ∈ L)) ∧
    ((sparseRectangleBuild (n, L)).length : ℝ) ≤
      (11 : ℝ) * ((n : ℝ) + Real.sqrt ((n : ℝ) * L.length)) := by sorry
Source
Krapivin, Przybocki, Subercaseaux, The CNF Encoding Complexity of Boolean Functions, arXiv:2611.05614, Lemma 11, Section 3.4.

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