Towards Clause Learning à la Carte through VarMonads

08/22/2022
by   Arved Friedemann, et al.
0

More and more languages have a need for constraint solving capabilities for features like error detection or automatic code generation. Imagine a dependently typed language that can immediately implement a program as soon as its type is given. In SAT-solving, there have been several techniques to speed up a search process for satisfying assignments to variables that could be used for program synthesis. One of these techniques is clause learning where, if a search branch runs into a conflict, the cause of the conflict is analysed and used to create a new clause that lets a branch fail earlier if the conflict arises again. We provide a framework with which this technique can come for free not just for Boolean solvers, but for any constraint solver running on recursive algebraic data types. We achieve this by tracking the read operations that happen before a variable is assigned and use this information to create the dependency graph needed for conflict analysis. Our results are implemented in Agda for best readability, but they transfer to other functional languages as well. For brevity, we do not provide an entire search system utilizing the clause learning, but it will become clear from the formalisms that our technique indeed enables a clause learning search system to be built.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/11/2010

Heuristics in Conflict Resolution

Modern solvers for Boolean Satisfiability (SAT) and Answer Set Programmi...
research
11/21/2017

Program Synthesis using Conflict-Driven Learning

We propose a new conflict-driven program synthesis technique that is cap...
research
07/26/2023

Improving Conflict Analysis in MIP Solvers by Pseudo-Boolean Reasoning

Conflict analysis has been successfully generalized from Boolean satisfi...
research
12/02/2019

FourierSAT: A Fourier Expansion-Based Algebraic Framework for Solving Hybrid Boolean Constraints

The Boolean SATisfiability problem (SAT) is of central importance in com...
research
07/27/2021

On Improving the Backjump Level in PB Solvers

Current PB solvers implement many techniques inspired by the CDCL archit...
research
05/10/2021

A Deep Dive into Conflict Generating Decisions

Boolean Satisfiability (SAT) is a well-known NP-complete problem. Despit...
research
02/12/2021

Edge Minimizing the Student Conflict Graph

In many schools, courses are given in sections. Prior to timetabling stu...

Please sign up or login with your details

Forgot password? Click here to reset