Made encoded type for apply less restrictive
authorsteckerm
Sat, 20 Sep 2014 10:44:23 +0200
changeset 58405 c3c7a09a3ada
parent 58404 4be5ab4452f4
child 58406 539cc471186f
Made encoded type for apply less restrictive
src/HOL/Tools/ATP/atp_waldmeister.ML
--- a/src/HOL/Tools/ATP/atp_waldmeister.ML	Sat Sep 20 10:44:23 2014 +0200
+++ b/src/HOL/Tools/ATP/atp_waldmeister.ML	Sat Sep 20 10:44:23 2014 +0200
@@ -201,7 +201,7 @@
 
 end;
 
-structure ATP_Waldmeister : ATP_WALDMEISTER  =
+structure ATP_Waldmeister (*** : ATP_WALDMEISTER  *) =
 struct
 
 open ATP_Util
@@ -301,9 +301,10 @@
     let
       val funT = type_of function
       val argT = type_of a
-      val newT = funT --> argT --> (dest_funT funT |> snd)
+      val resT = dest_funT funT |> snd
+      val newT = funT --> argT --> resT
     in
-      mk_waldmeister_app (Const (waldmeister_apply ^ encode_type newT, newT) $ function $ a) args
+      mk_waldmeister_app (Const (waldmeister_apply ^ encode_type resT, newT) $ function $ a) args
     end
 
 fun hide_partial_applications info (trm as (_ $ _)) =