X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicElim.mli;h=722e52f33a7884dfb2b93687579a2e729dc21772;hb=0aaed6f96b856d1181a3cd1f2ef3ea4a91990771;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..722e52f33 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 *) -val elim_of: UriManager.uri -> int -> Cic.term +val elim_of: ?sort:Cic.sort -> UriManager.uri -> int -> Cic.obj