]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicElim.ml
permutation.ma added to the repository.
[helm.git] / helm / ocaml / cic_proof_checking / cicElim.ml
index 869d5d08b9fccea8021c85a9418c0672ad4d5460..fb568613c943c8b3b7389d9d09d039d8e88b8046 100644 (file)
@@ -28,9 +28,8 @@ open Printf
 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 s = prerr_endline (Lazy.force s) *)
 
 let counter = ref ~-1 ;;
 
@@ -367,14 +366,18 @@ let elim_of ?(sort = Cic.Type (CicUniv.fresh ())) uri typeno =
         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);
+(*
+debug_print (lazy (CicPp.ppterm eliminator_type));
+debug_print (lazy (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);
+(*
+debug_print (lazy (CicPp.ppterm eliminator_type));
+debug_print (lazy (CicPp.ppterm eliminator_body));
+*)
       let (computed_type, ugraph) =
         try
           CicTypeChecker.type_of_aux' [] [] eliminator_body CicUniv.empty_ugraph