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
(*
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