proper context for typedef;
authorwenzelm
Sun, 09 Nov 2014 20:49:28 +0100
changeset 58960 4bee6d8c1500
parent 58959 1f195ed99941
child 58961 7c507e664047
child 58963 26bf09b95dda
proper context for typedef;
src/HOL/Import/import_rule.ML
--- a/src/HOL/Import/import_rule.ML	Sun Nov 09 20:41:53 2014 +0100
+++ b/src/HOL/Import/import_rule.ML	Sun Nov 09 20:49:28 2014 +0100
@@ -222,7 +222,7 @@
     val tnames = sort_strings (map fst tfrees)
     val ((_, typedef_info), thy') =
      Typedef.add_typedef_global false (Binding.name tycname, map (rpair dummyS) tnames, NoSyn) c
-       (SOME (Binding.name rep_name, Binding.name abs_name)) (rtac th2 1) thy
+       (SOME (Binding.name rep_name, Binding.name abs_name)) (fn _ => rtac th2 1) thy
     val aty = #abs_type (#1 typedef_info)
     val th = freezeT (#type_definition (#2 typedef_info))
     val (th_s, _) = Thm.dest_comb (Thm.dest_arg (cprop_of th))