picologic-0.1.1: Utilities for symbolic predicate logic expressions

Safe HaskellSafe-Inferred

Picologic.AST

Synopsis

Documentation

data Expr Source

Constructors

Var Ident

Variable

Neg Expr

Logical negation

Conj Expr Expr

Logical conjunction

Disj Expr Expr

Logical disjunction

Iff Expr Expr

Logical biconditional

Implies Expr Expr

Material implication

newtype Ident Source

Constructors

Ident String 

newtype Solutions Source

Constructors

Solutions [[Expr]] 

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.