src/HOL/Library/comm_ring.ML
changeset 31242 ed40b987a474
parent 31021 53642251a04f
child 31986 a68f88d264f7
--- a/src/HOL/Library/comm_ring.ML	Mon May 25 12:48:18 2009 +0200
+++ b/src/HOL/Library/comm_ring.ML	Mon May 25 12:49:05 2009 +0200
@@ -100,13 +100,10 @@
     THEN (simp_tac cring_ss i)
   end);
 
-val comm_ring_meth =
-  Method.ctxt_args (SIMPLE_METHOD' o comm_ring_tac);
-
 val setup =
-  Method.add_method ("comm_ring", comm_ring_meth,
-    "reflective decision procedure for equalities over commutative rings") #>
-  Method.add_method ("algebra", comm_ring_meth,
-    "method for proving algebraic properties (same as comm_ring)");
+  Method.setup @{binding comm_ring} (Scan.succeed (SIMPLE_METHOD' o comm_ring_tac))
+    "reflective decision procedure for equalities over commutative rings" #>
+  Method.setup @{binding algebra} (Scan.succeed (SIMPLE_METHOD' o comm_ring_tac))
+    "method for proving algebraic properties (same as comm_ring)";
 
 end;