src/Pure/Isar/context_rules.ML
changeset 67626 cfa71f9933f4
parent 67147 dea94b1aabc3
child 67649 1e1782c1aedf
equal deleted inserted replaced
67625:eb11d722e3ef 67626:cfa71f9933f4
   191 (** attributes **)
   191 (** attributes **)
   192 
   192 
   193 (* add and del rules *)
   193 (* add and del rules *)
   194 
   194 
   195 
   195 
   196 val rule_del = Thm.declaration_attribute (fn th => Rules.map (del_rule th));
   196 val rule_del = Thm.declaration_attribute (Rules.map o del_rule);
   197 
   197 
   198 fun rule_add k view opt_w =
   198 fun rule_add k view opt_w =
   199   Thm.declaration_attribute (fn th => Rules.map (add_rule k opt_w (view th) o del_rule th));
   199   Thm.declaration_attribute (fn th => Rules.map (add_rule k opt_w (view th) o del_rule th));
   200 
   200 
   201 val intro_bang  = rule_add intro_bangK I;
   201 val intro_bang  = rule_add intro_bangK I;