X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcic%2FcicUtil.ml;h=36f65391eeac23d27c565b65d8e09ea52cd22f0c;hb=b378b7f4f2a3a897c4b69f44d4d1d54cc4d0aa56;hp=c5061c62fd1f7a7ac6db4e0bbd66258ad74e3a86;hpb=987627a48b2a3c2345d1af2c2a6b1ab78aa90b58;p=helm.git diff --git a/helm/software/components/cic/cicUtil.ml b/helm/software/components/cic/cicUtil.ml index c5061c62f..36f65391e 100644 --- a/helm/software/components/cic/cicUtil.ml +++ b/helm/software/components/cic/cicUtil.ml @@ -216,16 +216,6 @@ let attributes_of_obj = function let is_generated obj = List.exists ((=) `Generated) (attributes_of_obj obj) -let arity_of_composed_coercion obj = - let attrs = attributes_of_obj obj in - try - let tag=List.find (function `Class (`Coercion _) -> true|_->false) attrs in - match tag with - | `Class (`Coercion n) -> n - | _-> assert false - with Not_found -> 0 -;; - let projections_of_record obj uri = let attrs = attributes_of_obj obj in try @@ -560,7 +550,8 @@ let alpha_equivalence = let is_sober c t = let rec sober_term c g = function - | C.Rel _ + | C.Rel i -> + if i <= 0 then fun b -> false else g | C.Sort _ | C.Implicit _ -> g | C.Const (_, xnss) @@ -575,7 +566,8 @@ let is_sober c t = | C.LetIn (_, v, ty, t) -> sober_term c (sober_term c (sober_term c g t) ty) v | C.Appl [] - | C.Appl [_] -> fun b -> false + | C.Appl [_] + | C.Appl (C.Appl _ :: _) -> fun b -> false | C.Appl ts -> sober_terms c g ts | C.MutCase (_, _, t, v, ts) -> sober_terms c (sober_term c (sober_term c g t) v) ts