reduce max number of dependencies for MaSh to get rid of junk
authorblanchet
Thu, 06 Dec 2012 11:25:10 +0100
changeset 50397 d84a5ab736bb
parent 50396 5c9a2f5ab323
child 50398 78c7b52dbadb
reduce max number of dependencies for MaSh to get rid of junk
src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML	Thu Dec 06 11:25:10 2012 +0100
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML	Thu Dec 06 11:25:10 2012 +0100
@@ -590,7 +590,7 @@
 
 (* Too many dependencies is a sign that a crazy decision procedure is at work.
    There isn't much to learn from such proofs. *)
-val max_dependencies = 100
+val max_dependencies = 10
 val atp_dependency_default_max_facts = 50
 
 (* "type_definition_xxx" facts are characterized by their use of "CollectI". *)
@@ -747,8 +747,7 @@
             in
               (fact_G, mash_QUERY ctxt overlord max_facts (parents, feats))
             end)
-    val (chained, unchained) =
-      List.partition (fn ((_, (scope, _)), _) => scope = Chained) facts
+    val chained = facts |> filter (fn ((_, (scope, _)), _) => scope = Chained)
     val raw_mash =
       facts |> suggested_facts suggs
             (* The weights currently returned by "mash.py" are too spaced out to