src/HOL/Tools/inductive.ML
changeset 45592 8baa0b7f3f66
parent 45291 57cd50f98fdc
child 45647 96af0578571c
--- a/src/HOL/Tools/inductive.ML	Sat Nov 19 17:20:17 2011 +0100
+++ b/src/HOL/Tools/inductive.ML	Sat Nov 19 21:18:38 2011 +0100
@@ -775,9 +775,9 @@
       |> Local_Theory.conceal
       |> Local_Theory.define
         ((rec_name, case cnames_syn of [(_, syn)] => syn | _ => NoSyn),
-         ((Binding.empty, [Attrib.internal (K Nitpick_Unfolds.add)]),
-         fold_rev lambda params
-           (Const (fp_name, (predT --> predT) --> predT) $ fp_fun)))
+         ((Binding.empty, @{attributes [nitpick_unfold]}),
+           fold_rev lambda params
+             (Const (fp_name, (predT --> predT) --> predT) $ fp_fun)))
       ||> Local_Theory.restore_naming lthy;
     val fp_def' = Simplifier.rewrite (HOL_basic_ss addsimps [fp_def])
       (cterm_of (Proof_Context.theory_of lthy') (list_comb (rec_const, params)));