]> matita.cs.unibo.it Git - helm.git/commitdiff
reverted assertion, since it may happen to look for a coercion to funclass
authorEnrico Tassi <enrico.tassi@inria.fr>
Thu, 30 Aug 2007 16:46:19 +0000 (16:46 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Thu, 30 Aug 2007 16:46:19 +0000 (16:46 +0000)
even outside fix_arity (in cicRefine/eat_prods)

components/library/coercDb.ml

index e0dc18d05f7146e9bf0125265eb9ef4aaa41e660..fae09622950467c001f8271e4baf646f83feba11 100644 (file)
@@ -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 _ ->