;;
-let string_of_equality ?env =
- match env with
- | None -> (
- function
- | _, (ty, left, right), _, _ ->
- Printf.sprintf "{%s}: %s = %s" (CicPp.ppterm ty)
- (CicPp.ppterm left) (CicPp.ppterm right)
- )
- | Some (_, context, _) -> (
- let names = names_of_context context in
- function
- | _, (ty, left, right), _, _ ->
- Printf.sprintf "{%s}: %s = %s" (CicPp.pp ty names)
- (CicPp.pp left names) (CicPp.pp right names)
- )
-;;
-
-
module OrderedEquality =
struct
type t = Inference.equality
context
;;
+
+let string_of_equality ?env =
+ match env with
+ | None -> (
+ function
+ | _, (ty, left, right), _, _ ->
+ Printf.sprintf "{%s}: %s = %s" (CicPp.ppterm ty)
+ (CicPp.ppterm left) (CicPp.ppterm right)
+ )
+ | Some (_, context, _) -> (
+ let names = names_of_context context in
+ function
+ | _, (ty, left, right), _, _ ->
+ Printf.sprintf "{%s}: %s = %s" (CicPp.pp ty names)
+ (CicPp.pp left names) (CicPp.pp right names)
+ )
+;;
+
+
val nonrec_kbo: Cic.term -> Cic.term -> comparison
+val string_of_equality:
+ ?env:Inference.environment -> Inference.equality -> string
+
val nonrec_kbo_w: (Cic.term * weight) -> (Cic.term * weight) -> comparison
val names_of_context: Cic.context -> (Cic.name option) list