tpdb-1.2.0: Data Type for Rewriting Systems

Safe HaskellSafe-Inferred
LanguageHaskell98

TPDB.DP.TCap

Synopsis

Documentation

tcap :: (Ord v, Ord c) => TRS v c -> Term v c -> Term Int c Source

This function keeps only those parts of the input term which cannot be reduced, even if the term is instantiated. All other parts are replaced by fresh variables. Def 4.4 in http://cl-informatik.uibk.ac.at/users/griff/publications/Sternagel-Thiemann-RTA10.pdf

walk :: (Ord v, Eq c) => RS s (Term v c) -> Term t c -> StateT Int Identity (Term Int c) Source