proper context for simp_thms_conv;
authorwenzelm
Thu, 29 May 2008 23:46:39 +0200
changeset 27018 b3e63f39fc0f
parent 27017 1e0e8c1adf8c
child 27019 9ad9d6554d05
proper context for simp_thms_conv;
src/HOL/Tools/Qelim/cooper.ML
--- a/src/HOL/Tools/Qelim/cooper.ML	Thu May 29 23:46:37 2008 +0200
+++ b/src/HOL/Tools/Qelim/cooper.ML	Thu May 29 23:46:39 2008 +0200
@@ -16,7 +16,8 @@
 open Normalizer;
 
 exception COOPER of string * exn;
-val simp_thms_conv = Simplifier.rewrite (HOL_basic_ss addsimps simp_thms);
+fun simp_thms_conv ctxt =
+  Simplifier.rewrite (Simplifier.context ctxt HOL_basic_ss addsimps simp_thms);
 val FWD = Drule.implies_elim_list;
 
 val true_tm = @{cterm "True"};
@@ -491,7 +492,7 @@
    in [dp, inf, nb, pd] MRS cpth
    end
  val cpth' = Thm.transitive uth (cpth RS eq_reflection)
-in Thm.transitive cpth' ((simp_thms_conv then_conv eval_conv) (Thm.rhs_of cpth'))
+in Thm.transitive cpth' ((simp_thms_conv ctxt then_conv eval_conv) (Thm.rhs_of cpth'))
 end;
 
 fun literals_conv bops uops env cv =