This project is made to implement a simple solver that, given a formula
A TL;DR for the logic is that, we enumarete all possible valuations of a formula and evaluates the given formula for each valuation. We then filter out those that evaluates to false.
This is an exponential operation, more sophisticated heuristics are planned to be implemented (I'm yet to learn them).
- Install
stack
with your favorite package manager. - Run
stack run
to execute the program.
Use stack run -- -f path/to/file
to run with file as input.
Use stack run -- --stdin
to read from stdin
Use stack run -- -r
to solve interactively.
If you want to use this tool anywhere, simply do stack install .
.
Have fun :)