]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nCicUntrusted.ml
minor changes to make the library compile after wilmers new exists.
[helm.git] / helm / software / components / ng_kernel / nCicUntrusted.ml
index 167fd47c9e313fa5e574a9f3794d25d47cf12eb0..d7635fe8860ef409efa5534aa255d3ba263562dc 100644 (file)
@@ -72,3 +72,18 @@ let metas_of_term subst context term =
     HExtlib.list_uniq (List.sort Pervasives.compare (aux context [] term))
 ;;
 
+module NCicHash =
+ Hashtbl.Make
+  (struct
+    type t = C.term
+    let equal = (==)
+    let hash = Hashtbl.hash_param 100 1000 
+   end)
+;;
+
+let mk_appl he args = 
+  if args = [] then he else
+  match he with
+  | NCic.Appl l -> NCic.Appl (l@args)
+  | _ -> NCic.Appl (he::args)
+;;