merged
authorwenzelm
Wed, 29 Jul 2009 22:38:35 +0200
changeset 32278 f73d48f5218b
parent 32276 756afe4a909a (current diff)
parent 32277 ff1e59a15146 (diff)
child 32279 e40563627419
child 32289 c14aeb0bcce4
merged
--- a/src/Provers/quasi.ML	Wed Jul 29 21:40:04 2009 +0200
+++ b/src/Provers/quasi.ML	Wed Jul 29 22:38:35 2009 +0200
@@ -549,9 +549,9 @@
 
 (* trans_tac - solves transitivity chains over <= *)
 
-fun trans_tac ctxt = SUBGOAL (fn (A, n) =>
+fun trans_tac ctxt = SUBGOAL (fn (A, n) => fn st =>
  let
-  val thy = ProofContext.theory_of ctxt;
+  val thy = Thm.theory_of_thm st;
   val rfrees = map Free (Term.rename_wrt_term A (Logic.strip_params A));
   val Hs = map (fn H => subst_bounds (rfrees, H)) (Logic.strip_assums_hyp A);
   val C = subst_bounds (rfrees, Logic.strip_assums_concl A);
@@ -562,17 +562,17 @@
  in
   FOCUS (fn {prems, ...} =>
     let val thms = map (prove prems) prfs
-    in rtac (prove thms prf) 1 end) ctxt n
+    in rtac (prove thms prf) 1 end) ctxt n st
  end
- handle Contr p => FOCUS (fn {prems, ...} => rtac (prove prems p) 1) ctxt n
-  | Cannot  => no_tac);
+ handle Contr p => FOCUS (fn {prems, ...} => rtac (prove prems p) 1) ctxt n st
+  | Cannot  => Seq.empty);
 
 
 (* quasi_tac - solves quasi orders *)
 
 fun quasi_tac ctxt = SUBGOAL (fn (A, n) => fn st =>
  let
-  val thy = ProofContext.theory_of ctxt;
+  val thy = Thm.theory_of_thm st;
   val rfrees = map Free (Term.rename_wrt_term A (Logic.strip_params A));
   val Hs = map (fn H => subst_bounds (rfrees, H)) (Logic.strip_assums_hyp A);
   val C = subst_bounds (rfrees, Logic.strip_assums_concl A);
--- a/src/Provers/trancl.ML	Wed Jul 29 21:40:04 2009 +0200
+++ b/src/Provers/trancl.ML	Wed Jul 29 22:38:35 2009 +0200
@@ -531,9 +531,9 @@
 end;
 
 
-fun trancl_tac ctxt = SUBGOAL (fn (A, n) =>
+fun trancl_tac ctxt = SUBGOAL (fn (A, n) => fn st =>
  let
-  val thy = ProofContext.theory_of ctxt;
+  val thy = Thm.theory_of_thm st;
   val Hs = Logic.strip_assums_hyp A;
   val C = Logic.strip_assums_concl A;
   val (rel, subgoals, prf) = mkconcl_trancl C;
@@ -543,14 +543,14 @@
  in
   FOCUS (fn {prems, ...} =>
     let val thms = map (prove thy rel prems) prfs
-    in rtac (prove thy rel thms prf) 1 end) ctxt n
+    in rtac (prove thy rel thms prf) 1 end) ctxt n st
  end
- handle Cannot => no_tac);
+ handle Cannot => Seq.empty);
 
 
 fun rtrancl_tac ctxt = SUBGOAL (fn (A, n) => fn st =>
  let
-  val thy = ProofContext.theory_of ctxt;
+  val thy = Thm.theory_of_thm st;
   val Hs = Logic.strip_assums_hyp A;
   val C = Logic.strip_assums_concl A;
   val (rel, subgoals, prf) = mkconcl_rtrancl C;