proper context;
authorwenzelm
Tue, 21 May 2013 13:22:47 +0200
changeset 52100 e58762f34639
parent 52099 6225d5b308f9
child 52101 7679178b0aa5
proper context;
src/HOL/BNF/Tools/bnf_lfp.ML
--- a/src/HOL/BNF/Tools/bnf_lfp.ML	Tue May 21 12:03:05 2013 +0200
+++ b/src/HOL/BNF/Tools/bnf_lfp.ML	Tue May 21 13:22:47 2013 +0200
@@ -1731,12 +1731,13 @@
               ctors (0 upto n - 1) witss
           end;
 
-        fun wit_tac ctxt _ = mk_wit_tac ctxt n (flat ctor_set_thmss) (maps wit_thms_of_bnf bnfs);
+        fun wit_tac {context = ctxt, prems = _} =
+          mk_wit_tac ctxt n (flat ctor_set_thmss) (maps wit_thms_of_bnf bnfs);
 
         val (Ibnfs, lthy) =
           fold_map9 (fn tacs => fn b => fn map_b => fn rel_b => fn set_bs => fn mapx => fn sets =>
               fn T => fn wits => fn lthy =>
-            bnf_def Dont_Inline (user_policy Note_Some) I tacs (wit_tac lthy) (SOME deads)
+            bnf_def Dont_Inline (user_policy Note_Some) I tacs wit_tac (SOME deads)
               map_b rel_b set_bs
               (((((b, fold_rev Term.absfree fs' mapx), sets), absdummy T bd), wits), NONE)
               lthy