X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Ftactics%2FprimitiveTactics.ml;h=b016eb85f6141cc7445bb75dcdcc306d5657c4c3;hb=9fa0f092e8c7500a3890a73893483b44c56db171;hp=16cff94d7796493f52a05658332a8261f564be4f;hpb=041ad23b567b9844ec187ad436595868441802f4;p=helm.git diff --git a/helm/software/components/tactics/primitiveTactics.ml b/helm/software/components/tactics/primitiveTactics.ml index 16cff94d7..b016eb85f 100644 --- a/helm/software/components/tactics/primitiveTactics.ml +++ b/helm/software/components/tactics/primitiveTactics.ml @@ -298,7 +298,8 @@ let apply_with_subst ~term ~subst ~maxmeta (proof, goal) = try new_metasenv_and_unify_and_t newmeta' metasenv' context term' ty termty n - with CicUnification.UnificationFailure _ when n > 0 -> + with (CicUnification.UnificationFailure _ + | CicUniv.UniverseInconsistency _ ) when n > 0 -> add_one_argument (n - 1) in add_one_argument goal_arity @@ -335,8 +336,8 @@ let apply_with_subst ~term ?(subst=[]) ?(maxmeta=0) status = (* TODO cacciare anche altre eccezioni? *) with | CicUnification.UnificationFailure msg - | CicTypeChecker.TypeCheckerFailure msg -> - raise (Fail msg) + | CicTypeChecker.TypeCheckerFailure msg -> raise (Fail msg) + | CicUniv.UniverseInconsistency msg -> raise (Fail (lazy msg)) (* ALB *) let apply_tac_verbose ~term status =