Extending CDCL to disjunctions of parity equations
Paul Beame, Glenn Sun
原文摘要
Problems provably hard for Resolution are also provably hard for CDCL, but shorter proofs can sometimes be found using stronger proof systems such as Res($\oplus$), a generalization of Resolution to XNF formulas, whose constraints are disjunctions of parity equations, called linear clauses. While some solvers like CryptoMiniSat reason on Boolean clauses with separate parity equations in a system called CNF-XOR, general XNF reasoning is less explored. We present CDCL($\oplus$), a generalization of CDCL to XNF formulas that includes branching on arbitrary parity equations, linear-algebraic reasoning during unit propagation, and learning linear clauses in conflict analysis. Our key tool is the affine resolution rule, which generalizes classical resolution and allows translations of 1-UIP clause learning and variable elimination. We develop a theory of UIPs to show that we learn an asserting clause with the largest possible backjump, the same guarantee as classical CDCL. We prove that CDCL($\oplus$) not only produces Res($\oplus$) proofs, but also polynomially simulates Res($\oplus$) given nondeterministic decisions and restarts, much like the relationship between CDCL and Resolution. We implement CDCL($\oplus$) in our solver Xorcle, which cleanly adapts over a dozen major classical CDCL heuristics. We introduce the CSIDS decision heuristic, which selects decisions from activity-ranked clauses, and the LRUP($\oplus$) proof logging format. On a suite of cryptographic benchmarks, Xorcle is generally competitive with or outperforms Kissat, CaDiCaL, and CryptoMiniSat, and beats the concurrently developed XNF solver Xorricane. Additionally, Xorcle's reasoning and search alone (i.e., without detecting XORs) solves CNF versions of Tseitin formulas, perfect matching formulas, and bijective pigeonhole formulas with $n+1$ pigeons into $n$ holes using apparently polynomial running time.
cs.LO · cs.CC