improved handling of chained facts
authorpaulson
Wed, 02 Feb 2005 15:43:04 +0100
changeset 15486 06a32fe35ec3
parent 15485 e93a3badc2bc
child 15487 55497029b255
improved handling of chained facts
src/Provers/eqsubst.ML
--- a/src/Provers/eqsubst.ML	Wed Feb 02 10:16:33 2005 +0100
+++ b/src/Provers/eqsubst.ML	Wed Feb 02 15:43:04 2005 +0100
@@ -117,8 +117,8 @@
    the first one, then the second etc *)
 fun eqsubst_meth inthms =
     Method.METHOD 
-      (fn facts =>
-          HEADGOAL (eqsubst_tac inthms THEN' Method.insert_tac facts));
+      (fn facts =>  (*first, insert chained facts*)
+          HEADGOAL (Method.insert_tac facts THEN' eqsubst_tac inthms));
 
 
 fun apply_subst_in_asm rule cfvs i th matchseq = 
@@ -184,8 +184,9 @@
    the first one, then the second etc *)
 fun eqsubst_asm_meth inthms =
     Method.METHOD 
-      (fn facts =>
-          HEADGOAL (eqsubst_asm_tac inthms THEN' Method.insert_tac facts));
+      (fn facts =>  (*first, insert chained facts*)
+          HEADGOAL (Method.insert_tac facts THEN' eqsubst_asm_tac inthms));
+
 
 (* combination method that takes a flag (true indicates that subst
 should be done to an assumption, false = apply to the conclusion of