X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicTypeChecker.ml;h=af98ff0efc72b53acfd7d7e8b225e45272a166f4;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=611585400c69251e86d8b34b5ee8a67b1121e70d;hpb=aa055bebbc6cd0e99df64020b7f6e26eb19e569a;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicTypeChecker.ml b/helm/ocaml/cic_proof_checking/cicTypeChecker.ml index 611585400..af98ff0ef 100644 --- a/helm/ocaml/cic_proof_checking/cicTypeChecker.ml +++ b/helm/ocaml/cic_proof_checking/cicTypeChecker.ml @@ -1308,7 +1308,7 @@ and check_allowed_sort_elimination ~subst ~metasenv ~logger context uri i let itl_len = List.length itl in let (name,_,ty,cl) = List.nth itl i in let cl_len = List.length cl in - if (itl_len = 1 && cl_len <= 1) then + if (cl_len = 0 || (itl_len = 1 && cl_len = 1)) then let non_informative,ugraph = if cl_len = 0 then true,ugraph else @@ -1319,12 +1319,7 @@ and check_allowed_sort_elimination ~subst ~metasenv ~logger context uri i definition? *) non_informative, ugraph else - let is_empty = - List.fold_left - (fun b (_,_,_,cl) -> b && List.length cl = 0) true itl - in - (* is it a block of mutual inductive empty definitions? *) - is_empty,ugraph + false,ugraph | _ -> raise (TypeCheckerFailure (lazy ("Unknown mutual inductive definition:" ^