exception Elim_failure of string
exception Can_t_eliminate
-(*
-let debug_print = fun _ -> () *)
-let debug_print = prerr_endline
+let debug_print = fun _ -> ()
+(*let debug_print = prerr_endline *)
let counter = ref ~-1 ;;
in
add_params (fun b s t -> Cic.Lambda (b, s, t)) leftno ty cic
in
+(*
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
CicTypeChecker.type_of_aux' [] [] eliminator_body CicUniv.empty_ugraph