]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicElim.mli
support for terms with metas in check
[helm.git] / helm / ocaml / cic_proof_checking / cicElim.mli
index b341d36a4cbe9b7a3a93d184754ebd32b18f36ea..722e52f33a7884dfb2b93687579a2e729dc21772 100644 (file)
  * http://helm.cs.unibo.it/
  *)
 
-exception Failure of string
+  (** 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
 *)
-val elim_of: ?sort:Cic.sort -> UriManager.uri -> int -> Cic.term
+val elim_of: ?sort:Cic.sort -> UriManager.uri -> int -> Cic.obj