src/HOL/NSA/transfer.ML
changeset 30528 7173bf123335
parent 30510 4120fc59dd85
child 33519 e31a85f92ce9
--- a/src/HOL/NSA/transfer.ML	Sun Mar 15 15:59:44 2009 +0100
+++ b/src/HOL/NSA/transfer.ML	Sun Mar 15 15:59:44 2009 +0100
@@ -108,14 +108,13 @@
     {intros=intros, unfolds=unfolds, refolds=refolds, consts=c::consts}))
 
 val setup =
-  Attrib.add_attributes
-    [("transfer_intro", Attrib.add_del_args intro_add intro_del,
-      "declaration of transfer introduction rule"),
-     ("transfer_unfold", Attrib.add_del_args unfold_add unfold_del,
-      "declaration of transfer unfolding rule"),
-     ("transfer_refold", Attrib.add_del_args refold_add refold_del,
-      "declaration of transfer refolding rule")] #>
-  Method.add_method ("transfer", Method.thms_ctxt_args (fn ths => fn ctxt =>
-    SIMPLE_METHOD' (transfer_tac ctxt ths)), "transfer principle");
+  Attrib.setup @{binding transfer_intro} (Attrib.add_del intro_add intro_del)
+    "declaration of transfer introduction rule" #>
+  Attrib.setup @{binding transfer_unfold} (Attrib.add_del unfold_add unfold_del)
+    "declaration of transfer unfolding rule" #>
+  Attrib.setup @{binding transfer_refold} (Attrib.add_del refold_add refold_del)
+    "declaration of transfer refolding rule" #>
+  Method.setup @{binding transfer} (Attrib.thms >> (fn ths => fn ctxt =>
+    SIMPLE_METHOD' (transfer_tac ctxt ths))) "transfer principle";
 
 end;