theory FOR_Certificate imports Rewriting begin section ‹Certificate syntax and type declarations› type_alias fvar = nat ― ‹variable id› datatype ftrs = Fwd nat | Bwd nat ― ‹TRS id and direction› definition map_ftrs where "map_ftrs f = case_ftrs (Fwd ∘ f) (Bwd ∘ f)" subsection ‹GTT relations› (* note: the 'trs will always be trs, but this way we get map functions for free *)