]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/tactics/tacticChaser.ml
Modified filtering function
[helm.git] / helm / ocaml / tactics / tacticChaser.ml
index e4e20f640af03cdf2525340b2abf4449f8be893c..831ccc6f4bedaf2cc4f32d77f4067aa25486948b 100644 (file)
@@ -145,7 +145,7 @@ let matchConclusion2 mqi_handle ?(output_html = (fun _ -> ())) ~choose_must() st
   *)
   (* concl_cost are the costants in the conclusion of the proof 
      while hyp_const are the constants in the hypothesis *)
-  let concl_const = NewConstraints.constants_concl ty in
+  let (main_concl,concl_const) = NewConstraints.mainandcons ty in
   prerr_endline ("Ne sono rimasti 1 " ^ string_of_int (List.length uris));
   let hyp t set =
     match t with
@@ -161,7 +161,7 @@ let matchConclusion2 mqi_handle ?(output_html = (fun _ -> ())) ~choose_must() st
     if (List.length uris < (Filter_auto.power 2 (List.length (NewConstraints.StringSet.elements all_const))))
      then 
      (prerr_endline("metodo vecchio");List.filter (Filter_auto.filter_new_constants conn all_const) uris)
-    else Filter_auto.filter_uris conn all_const uris in 
+    else Filter_auto.filter_uris conn all_const uris main_concl in 
 (*
   let uris =
     (* ristretto all cache *)