src/HOL/Set.ML
changeset 7717 e7ecfa617443
parent 7658 2d3445be4e91
child 7969 7a20317850ab
--- a/src/HOL/Set.ML	Tue Oct 05 15:29:36 1999 +0200
+++ b/src/HOL/Set.ML	Tue Oct 05 15:29:46 1999 +0200
@@ -745,3 +745,20 @@
 Goal"[| (A::'a set) <= B; B < C|] ==> A < C";
 by (auto_tac (claset(), simpset() addsimps [psubset_eq]));
 qed "subset_psubset_trans";
+
+
+(* attributes *)
+
+local
+
+fun gen_rulify_prems x =
+  Attrib.no_args (Drule.rule_attribute (fn _ => (standard o
+    rule_by_tactic (REPEAT (ALLGOALS (resolve_tac [allI, ballI, impI])))))) x;
+
+in
+
+val rulify_prems_attrib_setup =
+ [Attrib.add_attributes
+  [("rulify_prems", (gen_rulify_prems, gen_rulify_prems), "put theorem into standard rule form")]];
+
+end;