--- a/src/ZF/Tools/ind_cases.ML Mon Mar 10 17:09:40 2014 +0100
+++ b/src/ZF/Tools/ind_cases.ML Mon Mar 10 17:52:30 2014 +0100
@@ -48,7 +48,7 @@
let
val ctxt = Proof_Context.init_global thy;
val facts = args |> map (fn ((name, srcs), props) =>
- ((name, map (Attrib.attribute_cmd_global thy) srcs),
+ ((name, map (Attrib.attribute_cmd ctxt) srcs),
map (Thm.no_attributes o single o smart_cases ctxt) props));
in thy |> Global_Theory.note_thmss "" facts |> snd end;
--- a/src/ZF/Tools/inductive_package.ML Mon Mar 10 17:09:40 2014 +0100
+++ b/src/ZF/Tools/inductive_package.ML Mon Mar 10 17:52:30 2014 +0100
@@ -560,7 +560,7 @@
val read_terms = map (Syntax.parse_term ctxt #> Type.constraint Ind_Syntax.iT)
#> Syntax.check_terms ctxt;
- val intr_atts = map (map (Attrib.attribute_cmd_global thy) o snd) intr_srcs;
+ val intr_atts = map (map (Attrib.attribute_cmd ctxt) o snd) intr_srcs;
val sintrs = map fst intr_srcs ~~ intr_atts;
val rec_tms = read_terms srec_tms;
val dom_sum = singleton read_terms sdom_sum;