X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicTypeChecker.ml;h=cd49f2cea93332c7de1eb428292240225d4df6b2;hb=a90c31c1b53222bd6d57360c5ba5c2d0fe7d5207;hp=ccbebc27164a16afb088bfa131a252dca37fe472;hpb=4377e950998c9c63937582952a79975947aa9a45;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicTypeChecker.ml b/helm/software/components/ng_kernel/nCicTypeChecker.ml index ccbebc271..cd49f2cea 100644 --- a/helm/software/components/ng_kernel/nCicTypeChecker.ml +++ b/helm/software/components/ng_kernel/nCicTypeChecker.ml @@ -659,7 +659,7 @@ and check_allowed_sort_elimination ~subst ~metasenv r = (PP.ppterm ~subst ~metasenv ~context so) ))); (match arity1, R.whd ~subst ((name,C.Decl so)::context) ta with - | C.Sort s1, (C.Sort s2 as arity2) -> + | C.Sort s1, C.Sort s2 -> (match NCicEnvironment.allowed_sort_elimination s1 s2 with | `Yes -> () | `UnitOnly -> @@ -680,11 +680,7 @@ and check_allowed_sort_elimination ~subst ~metasenv r = is_non_informative ~metasenv ~subst leftno constrty)) then raise (TypeCheckerFailure (lazy - ("Sort elimination not allowed: " ^ - NCicPp.ppterm ~metasenv ~subst ~context arity1 - ^ " towards "^ - NCicPp.ppterm ~metasenv ~subst ~context arity2 - )))) + ("Sort elimination not allowed")))) | _ -> ()) | _,_ -> () in @@ -1308,9 +1304,7 @@ let typecheck_obj (uri,height,metasenv,subst,kind) = | C.Appl (C.Const (Ref.Ref (uri,Ref.Ind _) as ref) :: _) -> let _,_,itl,_,_ = E.get_checked_indtys ref in uri, List.length itl - | _ -> - raise (TypeCheckerFailure - (lazy "Fix: the recursive argument is not inductive")) + | _ -> assert false in (* guarded by destructors conditions D{f,k,x,M} *) let rec enum_from k =