M.L. Flippo
Please Note
6 records found
1
From Literals to Atomic Constraints
Generalising Conflict-Driven Clause Learning for Constraint Programming
Checkable, Stronger Constraint Solvers
Certification and Clausal-Arithmetic Unification
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. ...
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.
In the field of Explainable Constraint Solving, it is common to explain to a user why a problem is unsatisfiable. A recently proposed method for this is to compute a sequence of explanation steps. Such a step-wise explanation shows individual reasoning steps involving constraints from the original specification, that in the end explain a conflict. However, computing a step-wise explanation is computationally expensive, limiting the scope of problems for which it can be used. We investigate how we can use proofs generated by a constraint solver as a starting point for computing step-wise explanations, instead of computing them step-by-step. More specifically, we define a framework of abstract proofs, in which both proofs and step-wise explanations can be represented. We then propose several methods for converting a proof to a step-wise explanation sequence, with special attention to trimming and simplification techniques to keep the sequence and its individual steps small. Our results show our method significantly speeds up the generation of step-wise explanation sequences, while the resulting step-wise explanation has a quality similar to the current state-of-the-art.