Logic.nth_prem;
authorwenzelm
Wed, 02 Nov 2005 14:46:47 +0100
changeset 18055 a93881a4422d
parent 18054 2493cb9f5ede
child 18056 397b39b06ec8
Logic.nth_prem;
src/HOL/Modelcheck/MuckeSyn.ML
--- a/src/HOL/Modelcheck/MuckeSyn.ML	Wed Nov 02 11:02:29 2005 +0100
+++ b/src/HOL/Modelcheck/MuckeSyn.ML	Wed Nov 02 14:46:47 2005 +0100
@@ -79,16 +79,13 @@
             ((rtac inst_move_thm i) THEN (dtac eq_reflection i) 
 		THEN (move_mus i)) state
 	end
-end; (* outer let *)
-end; (* local *)
+end;
+end;
 
 
-(* Type of call_mucke_tac has changed: an argument t of type thy was inserted (TH); *)
-(* Normally t can be user-instantiated by the value thy of the Isabelle context     *)
 fun call_mucke_tac i state =
 let val thy = Thm.theory_of_thm state;
-    val (subgoal::_) = Library.drop(i-1,prems_of state);
-    val OraAss = mc_mucke_oracle thy subgoal;
+    val OraAss = mc_mucke_oracle thy (Logic.nth_prem (i, Thm.prop_of state))
 in 
 (cut_facts_tac [OraAss] i) state
 end;