X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicElim.mli;h=f1f84c92eafcc4d575ed78fbe89889efe443d885;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=015b6c9d1381886fa91231ef7cc56435d40bf64d;hpb=086099d1a60948454cf0874744ef2222c2edc1b6;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicElim.mli b/helm/ocaml/cic_proof_checking/cicElim.mli index 015b6c9d1..f1f84c92e 100644 --- a/helm/ocaml/cic_proof_checking/cicElim.mli +++ b/helm/ocaml/cic_proof_checking/cicElim.mli @@ -23,18 +23,19 @@ * 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 -(** @param sort target sort, defaults to Type + (** 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 -* @return type of elimination principle for the given inductive type -*) -val elim_of: ?sort:Cic.sort -> UriManager.uri -> int -> Cic.term - -(** parameters as above -* @return body of elimination principle for the given inductive type +* @raise Can_t_eliminate +* @return Cic constant corresponding to the required elimination principle +* and its uri *) -val body_of: ?sort:Cic.sort -> UriManager.uri -> int -> Cic.term - +val elim_of: sort:Cic.sort -> UriManager.uri -> int -> UriManager.uri * Cic.obj