1 (* Title: BaseDefinitions/rewrite-order.sml
3 (c) due to copyright terms
5 signature REWRITE_ORDER =
7 type id = Rule_Def.rew_ord_id
10 type function = Rule_Def.rew_ord_function
11 val function_empty: function
13 type T = Rule_Def.rew_ord_T
16 val to_string: T -> string
17 val equal: T * T -> bool
21 structure Rewrite_Ord(**): REWRITE_ORDER(**) =
25 type id = Rule_Def.rew_ord_id
26 val id_empty = "Rewrite_Ord.id_empty";
28 type function = Rule_Def.rew_ord_function;
29 fun function_empty (_: Proof.context) (_: LibraryC.subst) (_: term, _: term) = true;
31 type T = Rule_Def.rew_ord_T
32 val empty = (id_empty, function_empty)
34 fun to_string (rew_ord, _) = "(" ^ rew_ord ^ ", _: fn)"
35 fun equal ((id1, _), (id2, _)) = id1 = id2