]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicElim.ml
added homepage URL, now we have one
[helm.git] / helm / ocaml / cic_proof_checking / cicElim.ml
index ab7ddd0e1fb2bb0a75bd4a4a48a3a82ae12f5f37..e3fca907dd562f494a479333400c33ef069f08b8 100644 (file)
@@ -29,12 +29,14 @@ exception Elim_failure of string
 exception Can_t_eliminate
 
 let debug_print = fun _ -> ()
+(*let debug_print = prerr_endline *)
 
 let counter = ref ~-1 ;;
 
-let fresh_binder () =
+let fresh_binder () =  Cic.Name "matita_dummy"
+(*
  incr counter;
- Cic.Name ("e" ^ string_of_int !counter)
+ Cic.Name ("e" ^ string_of_int !counter) *)
 
   (** verifies if a given inductive type occurs in a term in target position *)
 let rec recursive uri typeno = function
@@ -367,6 +369,14 @@ let elim_of ?(sort = Cic.Type (CicUniv.fresh ())) uri typeno =
 (*
 debug_print (CicPp.ppterm eliminator_type);
 debug_print (CicPp.ppterm eliminator_body);
+*)
+      let eliminator_type = 
+       FreshNamesGenerator.mk_fresh_names [] [] [] eliminator_type in
+      let eliminator_body = 
+       FreshNamesGenerator.mk_fresh_names [] [] [] eliminator_body in
+(*
+debug_print (CicPp.ppterm eliminator_type);
+debug_print (CicPp.ppterm eliminator_body);
 *)
       let (computed_type, ugraph) =
         try