termlib-0.9: Term Rewriting Library

Safe HaskellSafe-Infered

Termlib.Rule

Documentation

data Rule

Constructors

Rule 

Fields

lhs :: Term

left hand side of rule

rhs :: Term

right hand side of rule

data Strictness

Constructors

StrictRule 
WeakRule 

toPair :: Rule -> (Term, Term)

rewrites :: Term -> Term -> Rule -> Bool

rewriteAny :: [Term] -> [Rule] -> Maybe (Term, Term)

bothsides :: (Term -> Bool) -> Rule -> Bool

type Overlap = (Rule, [Int], Rule)