From: Enrico Tassi Date: Wed, 30 Jul 2008 15:19:04 +0000 (+0000) Subject: allowed sort elim now check for recursive types X-Git-Tag: make_still_working~4870 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;ds=sidebyside;h=190c0efe22d097c4b4e85207342224622b1fccb9;p=helm.git allowed sort elim now check for recursive types --- diff --git a/helm/software/components/cic_proof_checking/cicTypeChecker.ml b/helm/software/components/cic_proof_checking/cicTypeChecker.ml index fa24119b3..111d20126 100644 --- a/helm/software/components/cic_proof_checking/cicTypeChecker.ml +++ b/helm/software/components/cic_proof_checking/cicTypeChecker.ml @@ -1179,7 +1179,9 @@ and check_allowed_sort_elimination ~subst ~metasenv ~logger context uri i in (* is it a singleton or empty non recursive and non informative definition? *) - non_informative, ugraph + non_informative && + does_not_occur [Some (C.Name name,C.Decl ty)] 0 1 + (debrujin_constructor uri 1 [] (snd (List.nth cl 0))), ugraph else false,ugraph | _ ->