src/Tools/eqsubst.ML
changeset 58826 2ed2eaabe3df
parent 58318 f95754ca7082
child 58838 59203adfc33f
--- a/src/Tools/eqsubst.ML	Wed Oct 29 17:01:44 2014 +0100
+++ b/src/Tools/eqsubst.ML	Wed Oct 29 19:01:49 2014 +0100
@@ -45,8 +45,6 @@
   val searchf_lr_unify_all: searchinfo -> term -> match Seq.seq Seq.seq
   val searchf_lr_unify_valid: searchinfo -> term -> match Seq.seq Seq.seq
   val searchf_bt_unify_valid: searchinfo -> term -> match Seq.seq Seq.seq
-
-  val setup : theory -> theory
 end;
 
 structure EqSubst: EQSUBST =
@@ -418,12 +416,12 @@
 (* combination method that takes a flag (true indicates that subst
    should be done to an assumption, false = apply to the conclusion of
    the goal) as well as the theorems to use *)
-val setup =
-  Method.setup @{binding subst}
-    (Scan.lift (Args.mode "asm" -- Scan.optional (Args.parens (Scan.repeat Parse.nat)) [0]) --
-        Attrib.thms >>
-      (fn ((asm, occs), inthms) => fn ctxt =>
-        SIMPLE_METHOD' ((if asm then eqsubst_asm_tac else eqsubst_tac) ctxt occs inthms)))
-    "single-step substitution";
+val _ =
+  Theory.setup
+    (Method.setup @{binding subst}
+      (Scan.lift (Args.mode "asm" -- Scan.optional (Args.parens (Scan.repeat Parse.nat)) [0]) --
+        Attrib.thms >> (fn ((asm, occs), inthms) => fn ctxt =>
+          SIMPLE_METHOD' ((if asm then eqsubst_asm_tac else eqsubst_tac) ctxt occs inthms)))
+      "single-step substitution");
 
 end;