X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicElim.mli;h=f1f84c92eafcc4d575ed78fbe89889efe443d885;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=828028d0ad289c2f6edf3f18842a0c905cdb2d36;hpb=cbd78f48f8aa055e2d66922291717842d84383d1;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicElim.mli b/helm/ocaml/cic_proof_checking/cicElim.mli index 828028d0a..f1f84c92e 100644 --- a/helm/ocaml/cic_proof_checking/cicElim.mli +++ b/helm/ocaml/cic_proof_checking/cicElim.mli @@ -23,8 +23,19 @@ * 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