avoid multiple type decls in TFF (improves on cef82dc1462d)
authorblanchet
Tue, 13 Dec 2011 14:55:42 +0100
changeset 45831 8f8fce7bd32b
parent 45830 45a5b6edd4f7
child 45832 d45024424526
avoid multiple type decls in TFF (improves on cef82dc1462d)
src/HOL/Tools/ATP/atp_translate.ML
--- a/src/HOL/Tools/ATP/atp_translate.ML	Tue Dec 13 14:55:42 2011 +0100
+++ b/src/HOL/Tools/ATP/atp_translate.ML	Tue Dec 13 14:55:42 2011 +0100
@@ -2284,9 +2284,7 @@
 fun problem_lines_for_sym_decls ctxt format conj_sym_kind mono type_enc
                                 (s, decls) =
   case type_enc of
-    Simple_Types _ =>
-    decls |> rationalize_decls ctxt
-          |> map (decl_line_for_sym ctxt format mono type_enc s)
+    Simple_Types _ => [decl_line_for_sym ctxt format mono type_enc s (hd decls)]
   | Guards (_, level) =>
     let
       val decls = decls |> rationalize_decls ctxt