X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicElim.mli;h=0d81b7a60b9198d8f4374431e58a7581231623d4;hb=12cc5b2b8e7f7bb0b5e315094b008a293a4df6b1;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..0d81b7a60 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 + +(** @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