in
ok left rightr
in
- (if r then
- debug_print
- (lazy
- (Printf.sprintf "SUBSUMPTION! %s\n%s\n"
- (Inference.string_of_equality target) (Utils.print_subst s))));
+(* (if r then *)
+(* debug_print *)
+(* (lazy *)
+(* (Printf.sprintf "SUBSUMPTION! %s\n%s\n" *)
+(* (Inference.string_of_equality target) (Utils.print_subst s)))); *)
r, s
;;
incr maxmeta;
let irl =
CicMkImplicit.identity_relocation_list_for_metavariable context in
- debug_print (lazy (Printf.sprintf "\nADDING META: %d\n" !maxmeta));
- print_newline ();
+(* debug_print (lazy (Printf.sprintf "\nADDING META: %d\n" !maxmeta)); *)
+(* print_newline (); *)
C.Meta (!maxmeta, irl)
in
let eq_found =
if !Utils.compare_terms left' left = Utils.Lt then left' else left in
let newright =
if !Utils.compare_terms right' right = Utils.Lt then right' else right in
- if newleft != left || newright != right then (
- debug_print
- (lazy
- (Printf.sprintf "left: %s, left': %s\nright: %s, right': %s\n"
- (CicPp.ppterm left) (CicPp.ppterm left') (CicPp.ppterm right)
- (CicPp.ppterm right')))
- );
+(* if newleft != left || newright != right then ( *)
+(* debug_print *)
+(* (lazy *)
+(* (Printf.sprintf "left: %s, left': %s\nright: %s, right': %s\n" *)
+(* (CicPp.ppterm left) (CicPp.ppterm left') (CicPp.ppterm right) *)
+(* (CicPp.ppterm right'))) *)
+(* ); *)
let w' = Utils.compute_equality_weight ty newleft newright in
let o' = !Utils.compare_terms newleft newright in
newmeta, (w', p, (ty, newleft, newright, o'), m, a)
let maxmeta = ref newmeta in
let build_new (bo, s, m, ug, (eq_found, eq_URI)) =
- debug_print (lazy "\nSUPERPOSITION LEFT\n");
+(* debug_print (lazy "\nSUPERPOSITION LEFT\n"); *)
let time1 = Unix.gettimeofday () in
in
match proof with
| Inference.BasicProof _ ->
- debug_print (lazy "replacing a BasicProof");
+(* debug_print (lazy "replacing a BasicProof"); *)
pb
| Inference.ProofGoalBlock (_, parent_proof) ->
- debug_print (lazy "replacing another ProofGoalBlock");
+(* debug_print (lazy "replacing another ProofGoalBlock"); *)
Inference.ProofGoalBlock (pb, parent_proof)
| _ -> assert false
in
incr maxmeta;
let irl =
CicMkImplicit.identity_relocation_list_for_metavariable context in
- debug_print (lazy (Printf.sprintf "\nADDING META: %d\n" !maxmeta));
+(* debug_print (lazy (Printf.sprintf "\nADDING META: %d\n" !maxmeta)); *)
C.Meta (!maxmeta, irl)
in
let eq_found =
in
let rec repl = function
| Inference.NoProof ->
- debug_print (lazy "replacing a NoProof");
+(* debug_print (lazy "replacing a NoProof"); *)
pb
| Inference.BasicProof _ ->
- debug_print (lazy "replacing a BasicProof");
+(* debug_print (lazy "replacing a BasicProof"); *)
pb
| Inference.ProofGoalBlock (_, parent_proof) ->
- debug_print (lazy "replacing another ProofGoalBlock");
+(* debug_print (lazy "replacing another ProofGoalBlock"); *)
Inference.ProofGoalBlock (pb, parent_proof)
| (Inference.SubProof (term, meta_index, p) as subproof) ->
- debug_print
- (lazy
- (Printf.sprintf "replacing %s"
- (Inference.string_of_proof subproof)));
+(* debug_print *)
+(* (lazy *)
+(* (Printf.sprintf "replacing %s" *)
+(* (Inference.string_of_proof subproof))); *)
Inference.SubProof (term, meta_index, repl p)
| _ -> assert false
in repl proof