termlib-0.9: Term Rewriting Library

Safe HaskellSafe-Infered

Termlib.Substitution

Documentation

empty :: Substitution

singleton :: Variable -> Term -> Substitution

map :: (Term -> Term) -> Substitution -> Substitution

toList :: Substitution -> [(Variable, Term)]

union :: Substitution -> Substitution -> Substitution

lookup :: Variable -> Substitution -> Maybe Term

apply :: Substitution -> Term -> Term

compose :: Substitution -> Substitution -> Substitution

match :: Term -> Term -> Substitution -> Maybe Substitution

unify :: Term -> Term -> Maybe Substitution