]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/disambiguateChoices.ml
first moogle template checkin
[helm.git] / helm / ocaml / cic_disambiguation / disambiguateChoices.ml
index c74566f20861c4e030621d6b49c0cf642cb1726b..368bc2f45f9a21911821ba9ffbd905a37c542ad7 100644 (file)
@@ -84,10 +84,15 @@ let lookup_num_by_dsc dsc =
   (** initial table contents *)
 
 let _ =
-  let uri s = UriManager.uri_of_string s in
-  let const s = Cic.Const (uri s, []) in
-  let mutind s = Cic.MutInd (uri s, 0, []) in
-  add_binary_op "exists" "exists" (mutind "cic:/Coq/Init/Logic/ex.ind");
-  add_binary_op "exists" "exists over terms with sort Type"
-    (mutind "cic:/Coq/Init/Logic_Type/exT.ind");
+  add_binary_op "exists" "exists"
+    (Cic.MutInd (HelmLibraryObjects.Logic.ex_URI, 0, []));
+  add_symbol_choice "cast"
+    ("type cast",
+      (fun env _ args ->
+        let t1, t2 =
+          match args with 
+          | [t1; t2] -> t1, t2
+          | _ -> raise Invalid_choice
+        in
+        Cic.Cast (t1, t2)));