compile
authorblanchet
Wed, 18 Jul 2012 08:44:03 +0200
changeset 48297 dcf3160376ae
parent 48296 e7f01b7e244e
child 48298 f5b160f9859e
compile
src/HOL/TPTP/ROOT.ML
src/HOL/Tools/Sledgehammer/sledgehammer_filter_mash.ML
--- a/src/HOL/TPTP/ROOT.ML	Wed Jul 18 08:44:03 2012 +0200
+++ b/src/HOL/TPTP/ROOT.ML	Wed Jul 18 08:44:03 2012 +0200
@@ -8,8 +8,8 @@
 
 use_thys [
   "ATP_Theory_Export",
+  "MaSh_Eval",
   "MaSh_Export",
-  "MaSh_Import",
   "TPTP_Interpret",
   "THF_Arith"
 ];
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_filter_mash.ML	Wed Jul 18 08:44:03 2012 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_filter_mash.ML	Wed Jul 18 08:44:03 2012 +0200
@@ -215,13 +215,14 @@
 
 fun is_exists (s, _) = (s = @{const_name Ex} orelse s = @{const_name Ex1})
 
-val max_depth = 1
+val term_max_depth = 1
+val type_max_depth = 1
 
 (* TODO: Generate type classes for types? *)
 fun features_of thy (status, th) =
   let val t = Thm.prop_of th in
     thy_name_of (thy_name_of_thm th) ::
-    interesting_terms_types_and_classes max_depth max_depth t
+    interesting_terms_types_and_classes term_max_depth type_max_depth t
     |> not (has_no_lambdas t) ? cons "lambdas"
     |> exists_Const is_exists t ? cons "skolems"
     |> not (is_fo_term thy t) ? cons "ho"
@@ -364,20 +365,15 @@
 
 (*** High-level communication with MaSh ***)
 
-fun reset () =
-  ()
+fun reset () = ()
 
-fun can_suggest_facts () =
-  true
+fun can_suggest_facts () = true
 
-fun can_learn_thy thy =
-  true
+fun can_learn_thy thy = true
 
-fun learn_thy thy timeout =
-  ()
+fun learn_thy thy timeout = ()
 
-fun learn_proof thy t ths =
-  ()
+fun learn_proof thy t ths = ()
 
 fun relevant_facts ctxt params prover max_facts
                    ({add, only, ...} : fact_override) hyp_ts concl_t facts =