no_vars: reset body mode, i.e. invent global frees (which are acceptable to Variable.auto_fixes);
--- a/src/Pure/Isar/attrib.ML Thu Apr 17 22:22:26 2008 +0200
+++ b/src/Pure/Isar/attrib.ML Thu Apr 17 22:22:27 2008 +0200
@@ -263,8 +263,10 @@
val standard = no_args (Thm.rule_attribute (K Drule.standard));
-val no_vars = no_args (Thm.rule_attribute (fn ctxt => fn th =>
- let val ((_, [th']), _) = Variable.import_thms true [th] (Context.proof_of ctxt)
+val no_vars = no_args (Thm.rule_attribute (fn context => fn th =>
+ let
+ val ctxt = Variable.set_body false (Context.proof_of context);
+ val ((_, [th']), _) = Variable.import_thms true [th] ctxt;
in th' end));
val eta_long =