]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicElim.mli
*** empty log message ***
[helm.git] / helm / ocaml / cic_proof_checking / cicElim.mli
index 828028d0ad289c2f6edf3f18842a0c905cdb2d36..0d81b7a60b9198d8f4374431e58a7581231623d4 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
+
+(** @param sort target sort, defaults to Type
+* @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