| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
TPDB.Data
Description
Data types for rewrite systems and termination problems.
A "bare" term rewrite system (list of rules and relative rules) is TRS v s.
A termination problem is Problem v s. This contains a rewrite system plus extra
information (strategy, theory, etc.)
Synopsis
- data Theory
- data Theorydecl v s
- data Type
- data RS s r = RS {}
- data Problem v s = Problem {
- type_ :: Type
- trs :: TRS v s
- strategy :: Maybe Strategy
- full_signature :: Signature
- startterm :: Maybe Startterm
- attributes :: Attributes
- data Strategy
- class Ord (Var t) => Variables t where
- type family Var t
- type TES = TRS Identifier Identifier
- data Funcsym = Funcsym {}
- data Replacementmap = Replacementmap [Int]
- data Signature
- strict_rules :: RS s b -> [(b, b)]
- weak_rules :: RS s b -> [(b, b)]
- equal_rules :: RS s b -> [(b, b)]
- type TRS v s = RS s (Term v s)
- type SRS s = RS s [s]
- data Startterm
- type SES = SRS Identifier
- mknullary :: Text -> Identifier
- mkunary :: Text -> Identifier
- from_strict_rules :: Bool -> [(t, t)] -> RS i t
- with_rules :: RS s r1 -> [Rule r2] -> RS s r2
- module TPDB.Data.Identifier
- module TPDB.Data.Term
- module TPDB.Data.Rule
Documentation
data Theorydecl v s Source #
this is modelled after https://www.lri.fr/~marche/tpdb/format.html
Constructors
| Termination | |
| Complexity |
Constructors
| RS | |
Instances
| Functor (RS s) Source # | |
| Variables (SRS s) Source # | |
| Reader (SRS Identifier) Source # | |
Defined in TPDB.Plain.Read | |
| Eq r => Eq (RS s r) Source # | |
| (Pretty s, PrettyTerm r, Variables (RS s r), Pretty (Var (RS s r))) => Pretty (RS s r) Source # | |
Defined in TPDB.Plain.Write | |
| (Ord v, TermC v s) => Variables (TRS v s) Source # | |
| Reader (TRS Identifier Identifier) Source # | |
Defined in TPDB.Plain.Read Methods reader :: Parser (TRS Identifier Identifier) Source # | |
| XmlContent (TRS Identifier Symbol) Source # | |
Defined in TPDB.CPF.Proof.Write Methods toContents :: TRS Identifier Symbol -> [Node] Source # parseContents :: Cursor -> [TRS Identifier Symbol] Source # | |
| type Var (SRS s) Source # | |
| type Var (TRS v s) Source # | |
Constructors
| Problem | |
Fields
| |
type TES = TRS Identifier Identifier Source #
legacy stuff (used in matchbox)
according to XTC spec
data Replacementmap Source #
Constructors
| Replacementmap [Int] |
Instances
| Show Replacementmap Source # | |
Defined in TPDB.Data Methods showsPrec :: Int -> Replacementmap -> ShowS # show :: Replacementmap -> String # showList :: [Replacementmap] -> ShowS # | |
Constructors
| Signature [Funcsym] | |
| HigherOrderSignature |
strict_rules :: RS s b -> [(b, b)] Source #
weak_rules :: RS s b -> [(b, b)] Source #
equal_rules :: RS s b -> [(b, b)] Source #
Constructors
| Startterm_Constructor_based | |
| Startterm_Full |
type SES = SRS Identifier Source #
mknullary :: Text -> Identifier Source #
mkunary :: Text -> Identifier Source #
from_strict_rules :: Bool -> [(t, t)] -> RS i t Source #
module TPDB.Data.Identifier
module TPDB.Data.Term
module TPDB.Data.Rule