]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/freshNamesGenerator.ml
ocaml 3.09 transition
[helm.git] / helm / ocaml / cic_proof_checking / freshNamesGenerator.ml
index 67d21354776883c0707a93d2aec92bfc8ad6e1f4..113edd1ff229ad00aecde38451ecb42339ff89a2 100755 (executable)
@@ -51,7 +51,7 @@ let rec guess_a_name context ty =
     Cic.Rel n ->  
       (match List.nth context (n-1) with
        None -> assert false
-      | Some (Cic.Anonymous,_) -> assert false
+      | Some (Cic.Anonymous,_) -> "eccomi_qua"
       | Some (Cic.Name s,_) -> get_initial s)
   | Cic.Var (uri,_) -> get_initial (UriManager.name_of_uri uri)
   | Cic.Sort _ -> higher_name 0 ty
@@ -256,7 +256,7 @@ let clean_dummy_dependent_types t =
             C.Anonymous ->
              if List.mem k rels2 then
 (
-              debug_print "If this happens often, we can do something about it (i.e. we can generate a new fresh name; problem: we need the metasenv and context ;-(. Alternative solution: mk_implicit does not generate entries for the elements in the context that have no name" ;
+              debug_print (lazy "If this happens often, we can do something about it (i.e. we can generate a new fresh name; problem: we need the metasenv and context ;-(. Alternative solution: mk_implicit does not generate entries for the elements in the context that have no name") ;
               C.Anonymous
 )
              else