3 releases
Uses old Rust 2015
0.0.3 | Jan 3, 2024 |
---|---|
0.0.2 | Oct 30, 2023 |
0.0.1 | Oct 26, 2023 |
#1373 in Math
29 downloads per month
15KB
212 lines
SAT Solvers in Rust
This crate contains implementations of various satisfiability solvers for the boolean satisfiability problem (SAT).
List of available solvers:
crate::solvers::syntactic
- A purely syntactic solver based on a user provided interpretation
This crate also contains some useful structs for working with propositional variables and formulas, viz:
crate::notation::Formula
- A struct for working with propositional formulascrate::notation::Clause
- A struct for working with propositional clausescrate::notation::Literal
- A struct for working with propositional literals (atoms)
Usage
The crate can be used as a library or as a binary. To use it as a binary, run the following command:
cargo run <CNF_FILE> <SOLVER>
OR
sat-rs <CNF_FILE> <SOLVER>
Dependencies
~1–1.7MB
~31K SLoC