From: Enrico Tassi Date: Thu, 30 Aug 2007 16:46:19 +0000 (+0000) Subject: reverted assertion, since it may happen to look for a coercion to funclass X-Git-Tag: make_still_working~6084 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=68df3763b02a1c274bd4394afde6ff67b6d8e539;p=helm.git reverted assertion, since it may happen to look for a coercion to funclass even outside fix_arity (in cicRefine/eat_prods) --- diff --git a/helm/software/components/library/coercDb.ml b/helm/software/components/library/coercDb.ml index e0dc18d05..fae096229 100644 --- a/helm/software/components/library/coercDb.ml +++ b/helm/software/components/library/coercDb.ml @@ -41,7 +41,10 @@ let coerc_carr_of_term t = try match t with | Cic.Sort s -> Sort s - | Cic.Prod _ -> assert false + | Cic.Prod _ -> Fun 0 + (* BUG: this should be the real arity. The computation + requires menv, context etc.., but since carrs are compared discharging Fun + arity... it works *) | Cic.Appl (t::_) | t -> Uri (CicUtil.uri_of_term t) with Invalid_argument _ ->