src/Pure/drule.ML
changeset 8496 7e4a466b18d5
parent 8406 a217b0cd304d
child 8550 b44c185f8018
     1.1 --- a/src/Pure/drule.ML	Fri Mar 17 16:27:28 2000 +0100
     1.2 +++ b/src/Pure/drule.ML	Fri Mar 17 16:28:59 2000 +0100
     1.3 @@ -99,9 +99,9 @@
     1.4    val unvarify          : thm -> thm
     1.5    val rule_attribute    : ('a -> thm -> thm) -> 'a attribute
     1.6    val tag_rule          : tag -> thm -> thm
     1.7 -  val untag_rule        : tag -> thm -> thm
     1.8 +  val untag_rule        : string -> thm -> thm
     1.9    val tag               : tag -> 'a attribute
    1.10 -  val untag             : tag -> 'a attribute
    1.11 +  val untag             : string -> 'a attribute
    1.12    val tag_lemma         : 'a attribute
    1.13    val tag_assumption    : 'a attribute
    1.14    val tag_internal      : 'a attribute
    1.15 @@ -752,10 +752,10 @@
    1.16    Thm.put_name_tags (Thm.name_of_thm thm, f (#2 (Thm.get_name_tags thm))) thm;
    1.17  
    1.18  fun tag_rule tg = map_tags (fn tgs => if tg mem tgs then tgs else tgs @ [tg]);
    1.19 -fun untag_rule tg = map_tags (fn tgs => tgs \ tg);
    1.20 +fun untag_rule s = map_tags (filter_out (equal s o #1));
    1.21  
    1.22  fun tag tg x = rule_attribute (K (tag_rule tg)) x;
    1.23 -fun untag tg x = rule_attribute (K (untag_rule tg)) x;
    1.24 +fun untag s x = rule_attribute (K (untag_rule s)) x;
    1.25  
    1.26  fun simple_tag name x = tag (name, []) x;
    1.27