]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicElim.mli
ocaml 3.09 transition
[helm.git] / helm / ocaml / cic_proof_checking / cicElim.mli
index 828028d0ad289c2f6edf3f18842a0c905cdb2d36..f1f84c92eafcc4d575ed78fbe89889efe443d885 100644 (file)
  * http://helm.cs.unibo.it/
  *)
 
-(** @param uri inductive type uri
+  (** can't build the required elimination principle (e.g. elimination from Prop
+  * to Set *)
+exception Can_t_eliminate
+
+  (** internal error while generating elimination principle *)
+exception Elim_failure of string Lazy.t
+
+(** @param sort target sort
+* @param uri inductive type uri
 * @param typeno inductive type number
+* @raise Failure
+* @raise Can_t_eliminate
+* @return Cic constant corresponding to the required elimination principle
+*         and its uri
 *)
-val elim_of: UriManager.uri -> int -> Cic.term
-
+val elim_of: sort:Cic.sort -> UriManager.uri -> int -> UriManager.uri * Cic.obj