satchmo-1.4: SAT encoding monad

Satchmo.Boolean

Synopsis

Documentation

type SAT a = WriterT [Clause] (State Accu) aSource

monadic :: Monad m => ([a] -> m b) -> [m a] -> m bSource

fun2 :: (Bool -> Bool -> Bool) -> Boolean -> Boolean -> SAT BooleanSource

implement the function by giving a full CNF that determines the outcome

fun3 :: (Bool -> Bool -> Bool -> Bool) -> Boolean -> Boolean -> Boolean -> SAT BooleanSource

implement the function by giving a full CNF that determines the outcome

monadic :: Monad m => ([a] -> m b) -> [m a] -> m bSource