MF

M.L. Flippo

info

Please Note

6 records found

Conference paper (2026) - Maarten Flippo, Konstantin Sidorov, Tip ten Brink, Clément Pit-Claudel, Emir Demirović
As constraint programming (CP) solvers are increasingly used in critical applications, there is a growing need for certification of solver claims of infeasibility and optimality. Recent work has demonstrated that certification is feasible for CP solvers using a multi-stage proof-generation framework; however, the underlying proof system was informal, and verification relied on translation into an external proof format, impacting the trustworthiness. We address these issues by formalising a rigorous, solver-agnostic framework for certifying CP solver claims. We present a formal definition of DRCP, a proof system for CP over integer domains that captures core solver operations, including conflict analysis and heterogeneous propagation, by modular inference rules with precise semantics. We also develop FznDrcpCheck, a formally verified proof checker in Rocq that validates DRCP proofs directly against FlatZinc models. Our evaluation shows that our framework enables practical certification across various benchmarks with negligible overhead during solving and modest proof-checking costs. ...

Generalising Conflict-Driven Clause Learning for Constraint Programming

Conference paper (2026) - Imko Marijnissen, Maarten Flippo, Emir Demirović
Conflict-Driven Clause Learning (CDCL) is central to the success of SAT solvers, and its adaptation to Constraint Programming (CP) through Lazy Clause Generation (LCG) has been a major breakthrough for CP solving. A core requirement of LCG is to maintain both a CP and SAT view of the problem. Because maintaining a full SAT encoding is impractical, solvers rely on partial and solver-specific encodings – an approach that has evolved as folklore rather than formal design. We present the first systematic analysis of how leading LCG solvers maintain their SAT encodings, based on source-code inspection and developer correspondence. Our analysis reveals substantial differences in explanation lifting, backwards explanations, linking clauses, and nogood minimisation, all driven by the need to preserve a SAT view. To overcome these compromises, we propose a native CDCL framework for CP. We replace SAT literals with atomic constraints, enabling conflict analysis, nogood learning, and nogood propagation directly at the CP level. This results in cleaner algorithmic design, eliminates SAT-specific complications, and allows us to introduce extended nogood propagation, a generalisation of SAT-based clause propagation, as well as CPIP nogoods, a generalisation of SAT-based learned nogoods. Our implementation of the framework in Pumpkin demonstrates competitive performance in the MiniZinc Challenge 2025. Additionally, we empirically show that extended nogood propagation combined with CPIP nogoods can significantly reduce failures, especially on problems with constraints that reason over domain holes. Overall, our framework provides a principled and semantically rich generalisation of CDCL for CP. ...

Certification and Clausal-Arithmetic Unification

Doctoral thesis (2026) - M.L. Flippo, M.M. de Weerdt, E. Demirović
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. ...
Journal article (2026) - Ignace Bleukx, Maarten Flippo, Bart Bogaerts, Emir Demirović, Tias Guns
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. ...
Conference paper (2025) - Robbin Baauw, Maarten Flippo, Emir Demirović
This paper introduces a novel constraint learning mechanism for Constraint Programming (CP) solvers that integrates cutting planes reasoning into the conflict analysis procedure. Drawing inspiration from Lazy Clause Generation (LCG), our approach, named Lazy Linear Generation (LLG), can generate linear integer inequalities to prune the search space, rather than propositional clauses as in LCG. This combines the strengths of constraint programming (strong propagation through global constraints) with cutting-planes reasoning. We present linear constraint explanations for various arithmetic constraints and the element constraint. An experimental evaluation shows that the improved generality of linear constraints has a practical impact on a CP solver by reducing the number of encountered conflicts in 45% of our benchmark instances. Our analysis and prototype implementation show promising results and are an important step towards a new paradigm to make constraint programming solvers more effective. ...
Proof logging is used to increase trust in the optimality and unsatisfiability claims of solvers. However, to this date, no constraint programming solver can practically produce proofs without significantly impacting performance, which hinders mainstream adoption. We address this issue by introducing a novel proof generation framework, together with a CP proof format and proof checker. Our approach is to divide the proof generation into three steps. At runtime, we require the CP solver to only produce a proof sketch, which we call a scaffold. After the solving is done, our proof processor trims and expands the scaffold into a full CP proof, which is subsequently verified. Our framework is agnostic to the solver and the verification approach. Through MiniZinc benchmarks, we demonstrate that with our framework, the overhead of logging during solving is often less than 10%, significantly lower than other approaches, and that our proof processing step can reduce the overall size of the proof by orders of magnitude and by extension the proof checking time. Our results demonstrate that proof logging has the potential to become an integral part of the CP community. ...