Checkable, Stronger Constraint Solvers
Certification and Clausal-Arithmetic Unification
M.L. Flippo (TU Delft - Electrical Engineering, Mathematics and Computer Science)
M.M. de Weerdt – Promotor (TU Delft - Electrical Engineering, Mathematics and Computer Science)
E. Demirović – Copromotor (TU Delft - Electrical Engineering, Mathematics and Computer Science)
More Info
expand_more
Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.
Abstract
Constraint solvers solve a wide variety of large and complex industrial problems. Such problems include planning, scheduling, routing, allocation, and verification problems across various domains. These solvers differ in the reasoning they implement. The combination of reasoning rules can be seen as the proof system implemented by the solver. Some paradigms implement canonical and well-specified proof systems. Constraint Programming (CP), however, lacks this grounding. It has favoured combining heterogeneous reasoning to solve a problem, making it difficult to standardise on a fixed set of rules.
In this dissertation, we contribute to the field of CP through the lens of proof systems. We pursue this gap along two threads: trust and reasoning strength. The trust thread makes the reasoning a CP solver already performs externally verifiable, rather than being taken on faith. The reasoning-strength thread asks whether the clausal reasoning CP solvers perform today is the right target to standardise on, and proposes a new system of rules that enables stronger reasoning.
First, we address the trust thread. We introduce DRCP, an externally checkable proof system for CP solvers. The accompanying checker, FznDrcpCheck, is formally verified in the Rocq theorem prover. As a result, when a proof is accepted by this checker, we can be confident the conclusion it supports is correct.
To keep proof production affordable, we produce DRCP proofs in two stages. First, the solver logs a computationally inexpensive proof scaffold during solving. Once the solver completes, the scaffold is expanded into a checkable proof. This keeps the overhead during the solving phase negligible, far below prior CP proof-logging attempts. Solving and formally verifying the result together take, on average, about twice the original solving time. This enables us to formally verify conclusions on well-known CP benchmarks for the first time.
Our proofs certify a solver’s conclusion, but not that the solver reasoned as strongly as intended while reaching it. We address this by having the solver justify, at every step, that it has not skipped any reasoning. Independent checkers verify these justifications at runtime and identify when the solver diverges from its specification. For constraints where determining feasibility is NP-hard, we introduce weak consistency as a new consistency property that is tractable to check. Using this approach, we identified several implementation errors within a few seconds of starting the solver. Crucially, the solver incurs no overhead once the checkers are disabled.
Next, we address the reasoning-strength thread. We first compare Lazy Clause Generation (LCG), the dominant CP architecture, to DPLL(T), the dominant SMT architecture. Both extend CDCL search from SAT solving, but their research communities are largely disjoint. Our comparison surfaces several areas where the algorithms employed by one of the two paradigms could be transfered to the other.
Handling of arithmetic constraints is an area where LCG can take inspiration from DPLL(T). LCG’s clausal reasoning discards arithmetic structure that is common in real constraint problems. Lazy Linear Generation (LLG) imports cutting-planes reasoning and expresses propagation explanations as linear inequalities rather than clauses. LLG reduces conflicts during search by over 90% compared to LCG on instances with many arithmetic constraints. However, cutting-planes reasoning over integer variables is incomplete, requiring the solver to occasionally fall back to clausal reasoning.
Our next contribution addresses the incompleteness by introducing hypercube-linear resolution. It is the first sound and complete proof system to natively unify clausal and arithmetic reasoning over integer variables, without reducing one to the other. It reasons over a new constraint type: the hypercube-linear constraint, which is a conditionally true linear inequality that holds when a conjunction of propositional facts is satisfied. In cases where the incompleteness of cutting-planes reasoning is problematic, hypercubelinear resolution allows clausal resolution on a single variable, rather than abandoning arithmetic reasoning entirely. An implementation of this proof system yields up to two orders of magnitude fewer conflicts than clausal resolution on some instances.
Everything is implemented in Pumpkin, a new CP solver that is a contribution of this dissertation in its own right. The solver is competitive, winning a silver and a bronze medal at the 2026 MiniZinc Challenge and a bronze medal in 2025.
Across both threads, this dissertation grounds CP solving in a proof system. The trust thread means a CP solver’s conclusions can be checked independently rather than being taken on faith. As solvers are trusted with more consequential decisions, that ability is crucial. The reasoning-strength thread means a CP solver can reason with more than clauses: hypercube-linear resolution combines arithmetic and clausal reasoning natively, reducing the search needed to reach a conclusion.