Certifying Parity Reasoning Efficiently Using Pseudo-Boolean Proofs

Stephan Gocht, Jakob NordströmAAAI 2021

Introduction

Modern combinatorial solvers are essential tools in fields ranging from hardware verification to logistics. However, as these solvers grow more complex, the risk of implementation bugs increases. To ensure correctness, the SAT community developed "proof logging," where a solver outputs a certificate of its reasoning that an independent checker can verify. While the current standard, DRAT (Deletion Resolution Asymmetric Tautology), is effective for basic SAT solving, it faces a significant bottleneck when dealing with advanced reasoning techniques like parity (XOR) reasoning. This paper introduces a novel proof-logging method based on pseudo-Boolean (PB) reasoning that addresses this efficiency gap.

The Bottleneck: Parity Reasoning and DRAT

Parity reasoning, often implemented via Gaussian elimination, is a powerful technique for solving constraints involving XOR operations. Unfortunately, justifying these steps in the DRAT format requires a quadratic amount of work relative to the number of variables. For large-scale problems, this leads to an "explosion" in proof size, making verification practically impossible. This creates a trust gap where the most efficient solving techniques cannot be formally certified within reasonable time or memory constraints.

Methods: Pseudo-Boolean Proofs and Extension Variables

The authors propose a shift from clausal proofs to Pseudo-Boolean (PB) proofs, which utilize linear inequalities over 0-1 variables. The core of their approach involves two major innovations:

  1. Substitution Redundancy: A new proof rule that allows for the introduction of "extension variables." These variables represent complex sub-expressions, acting as a form of intermediate memory that prevents redundant re-computations.
  2. Concise XOR Encoding: By using extension variables, XOR constraints are encoded as a chain of 1-bit full adders. This structural representation allows the solver to justify parity propagation in linear time rather than quadratic.

These methods were implemented in the VeriPB tool and integrated with a version of MiniSat enhanced with an XOR reasoning engine.

Experimental Validation

The proposed method was evaluated using Tseitin formulas—a standard benchmark for parity reasoning—and instances from recent SAT competitions. The results demonstrate a transformative improvement in both proof size and verification speed.

Verification time and solver overhead: DRAT-trim vs. VeriPB.

As illustrated in the timing data, the verification of DRAT proofs for large instances often took thousands of seconds, whereas the new PB proofs (PBP) were verified in less than two seconds. Crucially, the overhead for the solver to generate these proofs was found to be almost negligible compared to the significant slowdown experienced when generating DRAT proofs.

Proof size scaling: DRAT (quadratic) vs. PBP (linear).

The scaling behavior highlights the efficiency of the PB approach. While DRAT proof sizes grow quadratically with the instance size, PBP proofs grow linearly. On the largest tested instances, PBP proofs were several orders of magnitude smaller than their DRAT counterparts.

Key Insights and Future Work

The transition to PB reasoning offers a path toward a unified, machine-verifiable proof format that can span SAT, Constraint Programming, and Mixed Integer Programming (MIP). Because the PB format is a strict generalization of DRAT, it maintains backward compatibility while enabling the certification of much more complex logic.

While the current framework excels at XOR and cardinality constraints, challenges remain in handling symmetry breaking. Future research aims to extend these techniques to MIP solvers, potentially bringing formal verification to the widely used tools of industrial operations research.

Summary updated

BibTeX
@inproceedings{gocht2021certifying,
  author = {Stephan Gocht and Jakob Nordström},
  title = {{Certifying Parity Reasoning Efficiently Using Pseudo-Boolean Proofs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16494},
}
Figure