attrib_setup: rulify;
authorwenzelm
Mon, 16 Nov 1998 11:11:58 +0100
changeset 5888 d8e51792ca85
parent 5887 0864c6578d16
child 5889 d3ecef6b5682
attrib_setup: rulify;
src/FOL/IFOL.ML
src/HOL/HOL.ML
--- a/src/FOL/IFOL.ML	Mon Nov 16 11:11:42 1998 +0100
+++ b/src/FOL/IFOL.ML	Mon Nov 16 11:11:58 1998 +0100
@@ -441,3 +441,18 @@
       bind_thm (name, normalize_thm [RSspec,RSmp] (prove_goalw thy defs s p));
 
 end;
+
+
+(* attributes *)
+
+local
+
+fun gen_rulify x = Attrib.no_args (Attribute.rule (K (normalize_thm [RSspec, RSmp]))) x;
+
+in
+
+val attrib_setup =
+ [Attrib.add_attributes
+  [("rulify", (gen_rulify, gen_rulify), "put theorem into standard rule form")]];
+
+end;
--- a/src/HOL/HOL.ML	Mon Nov 16 11:11:42 1998 +0100
+++ b/src/HOL/HOL.ML	Mon Nov 16 11:11:58 1998 +0100
@@ -416,3 +416,18 @@
 	bind_thm (name, normalize_thm [RSspec,RSmp] (prove_goalw thy defs s p));
 
 end;
+
+
+(* attributes *)
+
+local
+
+fun gen_rulify x = Attrib.no_args (Attribute.rule (K (normalize_thm [RSspec, RSmp]))) x;
+
+in
+
+val attrib_setup =
+ [Attrib.add_attributes
+  [("rulify", (gen_rulify, gen_rulify), "put theorem into standard rule form")]];
+
+end;