removed pointless special case
authorblanchet
Fri, 04 Oct 2013 12:59:18 +0200
changeset 54060 5f96d29fb7c2
parent 54059 896b55752938
child 54061 6807b8e95adb
removed pointless special case
src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML	Fri Oct 04 11:52:10 2013 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML	Fri Oct 04 12:59:18 2013 +0200
@@ -935,23 +935,22 @@
 
 val max_proximity_facts = 100
 
-fun find_mash_suggestions _ _ [] _ _ raw_unknown = ([], raw_unknown)
-  | find_mash_suggestions ctxt max_facts suggs facts chained raw_unknown =
-    let
-      val inter_fact = inter (eq_snd Thm.eq_thm_prop)
-      val raw_mash = find_suggested_facts ctxt facts suggs
-      val proximate = take max_proximity_facts facts
-      val unknown_chained = inter_fact raw_unknown chained
-      val unknown_proximate = inter_fact raw_unknown proximate
-      val mess =
-        [(0.9 (* FUDGE *), (map (rpair 1.0) unknown_chained, [])),
-         (0.4 (* FUDGE *), (weight_facts_smoothly unknown_proximate, [])),
-         (0.1 (* FUDGE *), (weight_facts_steeply raw_mash, raw_unknown))]
-      val unknown =
-        raw_unknown
-        |> fold (subtract (eq_snd Thm.eq_thm_prop))
-                [unknown_chained, unknown_proximate]
-    in (mesh_facts (eq_snd Thm.eq_thm_prop) max_facts mess, unknown) end
+fun find_mash_suggestions ctxt max_facts suggs facts chained raw_unknown =
+  let
+    val inter_fact = inter (eq_snd Thm.eq_thm_prop)
+    val raw_mash = find_suggested_facts ctxt facts suggs
+    val proximate = take max_proximity_facts facts
+    val unknown_chained = inter_fact raw_unknown chained
+    val unknown_proximate = inter_fact raw_unknown proximate
+    val mess =
+      [(0.9 (* FUDGE *), (map (rpair 1.0) unknown_chained, [])),
+       (0.4 (* FUDGE *), (weight_facts_smoothly unknown_proximate, [])),
+       (0.1 (* FUDGE *), (weight_facts_steeply raw_mash, raw_unknown))]
+    val unknown =
+      raw_unknown
+      |> fold (subtract (eq_snd Thm.eq_thm_prop))
+              [unknown_chained, unknown_proximate]
+  in (mesh_facts (eq_snd Thm.eq_thm_prop) max_facts mess, unknown) end
 
 fun add_const_counts t =
   fold (fn s => Symtab.map_default (s, 0) (Integer.add 1))