Formally Verified Transformation of Non-binary Constraints into Binary Constraints
Catherine Dubois

TL;DR
This paper formalizes the Hidden Variable Encoding for transforming non-binary constraints into binary constraints within the Coq proof assistant, ensuring correctness and integrating it into a verified constraint solver.
Contribution
It provides a formal proof of the encoding's correctness in Coq and extends a verified solver to handle any n-ary constraint satisfaction problem.
Findings
Formal proof of the encoding's correctness in Coq
Integration of the encoding into a verified solver
Enabling the solver to handle any n-ary CSP
Abstract
It is well known in the Constraint Programming community that any non-binary constraint satisfaction problem (with finite domains) can be transformed into an equivalent binary one. One of the most well-known translations is the Hidden Variable Encoding. In this paper we formalize this encoding in the proof assistant Coq and prove that any solution of the binary constraint satisfaction problem makes it possible to build a solution of the original problem and vice-versa. This formal development is used to complete the formally verified constraint solver developed in Coq by Carlier, Dubois and Gotlieb in 2012, making it a tool able to solve any n-ary constraint satisfaction problem, The key of success of the connection between the translator and the Coq binary solver is the genericity of the latter.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
