picologic-0.1.1: Utilities for symbolic predicate logic expressions
Picologic.AST
Synopsis
data Expr Source
Constructors
Variable
Logical negation
Logical conjunction
Logical disjunction
Logical biconditional
Material implication
Instances
newtype Ident Source
newtype Solutions Source
type Ctx = Map Ident BoolSource
variables :: Expr -> [Ident]Source
Variables in expression
eval :: Ctx -> Expr -> BoolSource
Evaluate expression.
cnf :: Expr -> ExprSource
Conjunctive normal form.
nnf :: Expr -> ExprSource
Negation normal form.
simp :: Expr -> ExprSource
Remove tautologies.