Other

sift

SAT solver in Haskell

A program in Haskell that checks whether a logical formula can be satisfied. The solver comes with a propositional-logic toolkit and a parser for files in the DIMACS format.

sift

About the project

sift is a SAT solver in Haskell: a program that decides whether a logical formula has an assignment of variables that makes it true. It runs on the DPLL algorithm (a backtracking search that fixes the values of variables step by step) and solves real instances. It reads DIMACS files, the standard format for writing down such problems, and translates arbitrary formulas to CNF (conjunctive normal form, which the solver works on) with the Tseitin transformation.

The challenge

A SAT solver sits at the heart of many hard problems, but the hardest thing in this project was precision: a working DPLL and a correct translation of formulas to CNF forgive no slips, because a small bug does not crash, it quietly yields wrong answers.

What we did

  1. 01

    A SAT solver based on the DPLL algorithm

  2. 02

    A parser for files in the DIMACS format

  3. 03

    Translation of formulas to CNF with the Tseitin transformation

  4. 04

    A toolkit for working with propositional-logic formulas

  5. 05

    Solving real instances of the SAT problem

Related projects

Describe your project.

A free quote comes back within an hour during working hours.

Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.