Documentation

CslibFrontier.Algorithms.Lean.CDCL.CertificateSize

The size of the CDCL solver's LRUP (RUP-only LRAT) certificates #

On an unsatisfiable formula, the CDCL solver (Cslib.Algorithms.Lean.CDCL.solve) emits a RUP-only LRAT (LRUP) certificate — with no RAT steps — that Cslib.Logic.PL.CNF.checkLRUP accepts (Cslib.Algorithms.Lean.CDCL.solve_unsat). Every accepted LRUP certificate translates to a resolution refutation with at most |φ| + min (H) (S · N) lines, where H is its number of RUP/empty hints, S its number of steps and N the number of variables (Cslib.Logic.PL.CNF.refutableInSize_of_checkLRUP). So the resolution lower bounds apply to the solver's RUP-only output (in contrast to solvers emitting full LRAT certificates with RAT steps accepted by CNF.checkLRATRat, which can simulate Extended Resolution and refute both families in polynomial size):

These bound the solver's output, not its running time, and hold for every RUP-only certificate that checkLRUP accepts (Cslib.Logic.PL.CNF.two_pow_le_of_checkLRUP_pigeonhole, Cslib.Logic.PL.CNF.exists_forall_checkLRUP_exp_le); the solver contributes only that it returns one. The number of steps S alone is at least (2 ^ (n / 24) - (n + 1) - n (n + 1)²) / ((n + 1) n) on PHP^{n+1}_n, still exponential in n.

Main results #

The CDCL solver's RUP-only (LRUP) certificates for the pigeonhole formulas are exponentially long. For an injective map f numbering the variables of PHP^{n+1}_n, the solver returns a RUP-only certificate for the relabelled formula, and with H hints and S steps it satisfies 2 ^ (n / 24) ≤ (n + 1) + n (n + 1)² + min H (S · (n + 1) n). A corollary of Haken's theorem through the translation of LRUP certificates to resolution (Cslib.Logic.PL.CNF.two_pow_le_of_checkLRUP_pigeonhole); it bounds the output, not the running time.

theorem Cslib.Algorithms.Lean.CDCL.exists_solve_exp_le (n : ℕ) :
n ≥ 4392000 → ∃ m ≤ 120 * n, ∃ (φ : Logic.PL.CNF (Fin m)), List.length φ ≤ 2 ^ 120 * n ∧ (∀ c ∈ φ, c.width ≤ 120) ∧ ∃ (cert : Array Std.Tactic.BVDecide.LRAT.IntAction), solve (Logic.PL.CNF.relabel Fin.val φ) = DPLL.Result.unsat cert ∧ Real.exp (↑n / (960 * 36000 ^ 2)) ≤ ↑(2 ^ 120 * n + min (Logic.PL.CNF.lrupHintCount cert.toList) (cert.size * m))

The CDCL solver's RUP-only (LRUP) certificates for the Tseitin formulas of expanders are 2 ^ Ω(n) long. For every n ≥ 4392000 there is an unsatisfiable formula with m ≤ 120 n variables and at most 2 ^ 120 · n clauses, of width at most 120, on which, numbered along Fin.val, the solver returns a RUP-only certificate with H hints and S steps satisfying exp (n / (960 · 36000²)) ≤ 2 ^ 120 · n + min H (S · m). A corollary of the bound of Ben-Sasson and Wigderson through the translation of LRUP certificates to resolution (Cslib.Logic.PL.CNF.exists_forall_checkLRUP_exp_le); it bounds the output, not the running time.