routine check of theory context;
authorwenzelm
Mon, 31 Aug 2015 18:59:27 +0200
changeset 61354 1727d7d14d76
parent 61353 b7e822883535
child 61355 31829cf53f5d
routine check of theory context;
src/Pure/raw_simplifier.ML
--- a/src/Pure/raw_simplifier.ML	Tue Oct 06 21:12:01 2015 +0200
+++ b/src/Pure/raw_simplifier.ML	Mon Aug 31 18:59:27 2015 +0200
@@ -1381,13 +1381,15 @@
 
 local
 
-fun gen_norm_hhf ss ctxt th =
-  (if Drule.is_norm_hhf (Thm.prop_of th) then th
-   else
-    Conv.fconv_rule
-      (rewrite_cterm (true, false, false) (K (K NONE)) (put_simpset ss ctxt)) th)
-  |> Thm.adjust_maxidx_thm ~1
-  |> Variable.gen_all ctxt;
+fun gen_norm_hhf ss ctxt =
+  Thm.transfer (Proof_Context.theory_of ctxt) #>
+  (fn th =>
+    if Drule.is_norm_hhf (Thm.prop_of th) then th
+    else
+      Conv.fconv_rule
+        (rewrite_cterm (true, false, false) (K (K NONE)) (put_simpset ss ctxt)) th) #>
+  Thm.adjust_maxidx_thm ~1 #>
+  Variable.gen_all ctxt;
 
 val hhf_ss =
   simpset_of (empty_simpset (Context.proof_of (Context.the_thread_data ()))