]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/cic_disambiguation/disambiguateTypes.ml
Wrong invariant: Hypothesis (i.e. lambda-abstractions) can have no
[helm.git] / helm / software / components / cic_disambiguation / disambiguateTypes.ml
index 79388f8198d3e20372a6f19c6ad17d55d0e0837a..8263fd3152b8c2c05bb13e7ce25c64e36f53d8c1 100644 (file)
@@ -55,6 +55,16 @@ struct
 
   include Environment'
 
+  let find k env =
+   match k with
+      Symbol (sym,n) ->
+       (try find k env
+        with Not_found -> find (Symbol (sym,0)) env)
+    | Num n ->
+       (try find k env
+        with Not_found -> find (Num 0) env)
+    | _ -> find k env
+
   let cons k v env =
     try
       let current = find k env in