src/Pure/Isar/rule_cases.ML
changeset 18909 f1333b0ff9e5
parent 18799 f137c5e971f5
child 19012 2577ac76cdc6
--- a/src/Pure/Isar/rule_cases.ML	Thu Feb 02 16:31:37 2006 +0100
+++ b/src/Pure/Isar/rule_cases.ML	Thu Feb 02 16:31:38 2006 +0100
@@ -226,7 +226,8 @@
 fun put_consumes NONE th = th
   | put_consumes (SOME n) th = th
       |> PureThy.untag_rule consumes_tagN
-      |> PureThy.tag_rule (consumes_tagN, [Library.string_of_int n]);
+      |> PureThy.tag_rule
+        (consumes_tagN, [Library.string_of_int (if n < 0 then Thm.nprems_of th + n else n)]);
 
 fun add_consumes k th = put_consumes (SOME (k + get_consumes th)) th;