The size of the DPLL solver's refutations #
On an unsatisfiable formula, the search of the DPLL solver (Cslib.Algorithms.Lean.DPLL.solve)
ends with a tree-like resolution refutation (Cslib.Algorithms.Lean.DPLL.refutation?), which the
solver compiles to the LRAT certificate it returns
(Cslib.Algorithms.Lean.DPLL.solve_eq_unsat_iff). This file bounds the size of that output from
both sides. These are statements about what the solver returns, not running times: no cost model
is involved.
Upper bound. The search branches only on variables that it has not assigned
(Cslib.Algorithms.Lean.DPLL.OpenVars.fresh), so along every path of its search tree it branches
on each variable at most once, and its search tree has depth at most the number N of distinct
variables of the formula, φ.vars.toFinset.card. A derivation built along such a tree has fewer
than 2 ^ (N + 1) nodes (Cslib.Algorithms.Lean.DPLL.size_lt_of_refutation?_eq_some), and its
certificate has at most 2 ^ N steps (Cslib.Algorithms.Lean.DPLL.size_le_of_solve_eq_unsat):
the certificate of a tree-like refutation has one RUP step for each resolution step and a final
empty-clause step, so as many steps as the refutation has leaves
(Cslib.Logic.PL.CNF.Derivation.size_toLRAT).
Lower bound on pigeonhole formulas. The solver works over ℕ, so the pigeonhole formula
PHP^m_n (Cslib.Logic.PL.CNF.pigeonhole) is given to it relabelled along an injective map
f : Fin m × Fin n → ℕ, such as (i, j) ↦ n * i + j. A tree-like refutation of the relabelled
formula gives one of PHP^m_n with the same number of nodes
(Cslib.Logic.PL.CNF.Derivation.exists_size_eq_of_relabel), so for m > n the lower bound of
Beyersdorff, Galesi and Lauria [BeyersdorffGalesiLauria2010, Theorem 2]
(Cslib.Logic.PL.CNF.Derivation.pow_le_leafCount_pigeonhole) applies: the solver returns a
refutation with at least (n / 2 + 1) ^ (n / 2) nodes
(Cslib.Algorithms.Lean.DPLL.pow_half_le_size_refutation?_pigeonhole) and a certificate with at
least (n / 2 + 1) ^ (n / 2) steps
(Cslib.Algorithms.Lean.DPLL.pow_half_le_size_solve_pigeonhole).
This is 2 ^ Ω(n log n); with m = n + 1 there are N = (n + 1) * n variables, so in terms of
N it is 2 ^ Ω(√N log N). Earlier, Dantchev and Riis [DantchevRiis2001, Theorem 1] proved a
2 ^ Ω(n log n) lower bound for regular tree resolution through a factorial estimate; it is
historical context here, and the exact bound used is that of Beyersdorff, Galesi and Lauria.
Main definitions #
Cslib.Algorithms.Lean.DPLL.refutation?: the refutation found by the search.
Main results #
Cslib.Algorithms.Lean.DPLL.solve_eq_unsat_iff: the solver returns the certificate of that refutation.Cslib.Algorithms.Lean.DPLL.size_lt_of_refutation?_eq_some,Cslib.Algorithms.Lean.DPLL.size_le_of_solve_eq_unsat: fewer than2 ^ (N + 1)nodes and at most2 ^ Ncertificate steps.Cslib.Algorithms.Lean.DPLL.pow_half_le_size_refutation?_pigeonhole,Cslib.Algorithms.Lean.DPLL.pow_half_le_size_solve_pigeonhole: at least(n / 2 + 1) ^ (n / 2)nodes and certificate steps onPHP^m_n,m > n.
References #
The refutation found by the search #
The refutation found by the search from the empty partial assignment: none if the search
finds a model, and otherwise the tree-like refutation whose certificate solve returns.
The solver returns a certificate exactly when the search finds a refutation, and the certificate is that of the refutation.
The search finds a refutation of every unsatisfiable formula.
The upper bound #
Upper bound on the size of the solver's refutations. The refutation found by the search
has fewer than 2 ^ (N + 1) nodes, where N = φ.vars.toFinset.card is the number of distinct
variables of φ. This bounds the output, not the running time.
Upper bound on the length of the solver's certificates. A certificate returned by the
solver has at most 2 ^ N steps, where N = φ.vars.toFinset.card is the number of distinct
variables of φ. This bounds the output, not the running time.
The lower bound on pigeonhole formulas #
The solver's refutations of the pigeonhole formulas have 2 ^ Ω(n log n) nodes. For
m > n and an injective map f numbering the variables of PHP^m_n, the search finds a refutation
of the relabelled formula, and it has at least (n / 2 + 1) ^ (n / 2) nodes. This is the bound of
[BeyersdorffGalesiLauria2010, Theorem 2] for every tree-like refutation, applied to the solver's;
it bounds the output, not the running time.
The solver's certificates for the pigeonhole formulas have 2 ^ Ω(n log n) steps. For
m > n and an injective map f numbering the variables of PHP^m_n, the solver returns a
certificate for the relabelled formula, with at least (n / 2 + 1) ^ (n / 2) steps. It has one
step for each leaf of the refutation (Cslib.Logic.PL.CNF.Derivation.size_toLRAT), and the bound of
[BeyersdorffGalesiLauria2010, Theorem 2] holds for the leaves. This bounds the output, not the
running time.