more careful declaration of "intros" as Pure.intro;
authorwenzelm
Wed, 22 Nov 2006 15:58:15 +0100
changeset 21465 2d3f477118c2
parent 21464 abaf43b011ee
child 21466 6ffb8f455b84
more careful declaration of "intros" as Pure.intro;
src/HOL/Tools/inductive_package.ML
--- a/src/HOL/Tools/inductive_package.ML	Wed Nov 22 12:01:59 2006 +0100
+++ b/src/HOL/Tools/inductive_package.ML	Wed Nov 22 15:58:15 2006 +0100
@@ -663,12 +663,12 @@
       note_theorems
         (map (NameSpace.qualified rec_name) intr_names ~~
          intr_atts ~~
-         map (fn th => [([th], [])]) (ProofContext.export ctxt1 ctxt intrs)) |>>
+         map (fn th => [([th], [Attrib.internal (ContextRules.intro_query NONE)])])
+           (ProofContext.export ctxt1 ctxt intrs)) |>>
       map (hd o snd); (* FIXME? *)
     val (((_, elims'), (_, [induct'])), ctxt3) =
       ctxt2 |>
-      note_theorem ((NameSpace.qualified rec_name "intros",
-          [Attrib.internal (ContextRules.intro_query NONE)]), intrs') ||>>
+      note_theorem ((NameSpace.qualified rec_name "intros", []), intrs') ||>>
       fold_map (fn (name, (elim, cases)) =>
         note_theorem ((NameSpace.qualified (Sign.base_name name) "cases",
           [Attrib.internal (RuleCases.case_names cases),