Export list and haddock structure

This commit is contained in:
Dimitri Lozeve 2016-08-05 08:28:57 +01:00
parent e68aea36d9
commit 7d3ee96c26
No known key found for this signature in database
GPG key ID: 12B390E6BD7CF219
2 changed files with 49 additions and 2 deletions

View file

@ -10,7 +10,14 @@ Portability : portable
-}
module Civilisation where
module Civilisation (
-- * DIMACS CNF parsing
parseDIMACS,
parseClause,
litFromInt,
-- * Main
main
) where
import Data.Maybe

42
Sat.hs
View file

@ -11,7 +11,47 @@ Portability : portable
A simple SAT solver.
-}
module Sat where
module Sat (
-- * Types
-- ** Literals, clauses and formulas
Var,
Lit(..),
Clause,
CNF,
-- ** Assignments and results
Assignment,
Result(..),
-- * General-purpose functions
fromLit,
isPos,
isNeg,
isClauseTrue,
notLit,
evalLit,
-- * Simple rules
-- ** Pure literal rule
testPureLit,
testPureVar,
eliminatePure,
posLits,
negLits,
pureLits,
pureLitRule,
-- ** Unit clause rule
eliminateUnits,
unitPropagate,
-- * Solvers
-- ** Resolution-rule solver
commonVar,
resolve,
findMatchingClause,
findMatchingPair,
resolveAll,
resolutionSolve,
-- ** DPLL solver
solveDPLL,
selectLit
) where
import Data.List