src/HOL/Library/simps_case_conv.ML
changeset 55997 9dc5ce83202c
parent 54883 dd04a8b654fc
child 56252 b72e0a9d62b9
--- a/src/HOL/Library/simps_case_conv.ML	Sat Mar 08 13:49:01 2014 +0100
+++ b/src/HOL/Library/simps_case_conv.ML	Sat Mar 08 21:08:10 2014 +0100
@@ -202,8 +202,7 @@
 
 fun case_of_simps_cmd (bind, thms_ref) lthy =
   let
-    val thy = Proof_Context.theory_of lthy
-    val bind' = apsnd (map (Attrib.intern_src thy)) bind
+    val bind' = apsnd (map (Attrib.check_src lthy)) bind
     val thm = (Attrib.eval_thms lthy) thms_ref |> to_case lthy
   in
     Local_Theory.note (bind', [thm]) lthy |> snd
@@ -211,8 +210,7 @@
 
 fun simps_of_case_cmd ((bind, thm_ref), splits_ref) lthy =
   let
-    val thy = Proof_Context.theory_of lthy
-    val bind' = apsnd (map (Attrib.intern_src thy)) bind
+    val bind' = apsnd (map (Attrib.check_src lthy)) bind
     val thm = singleton (Attrib.eval_thms lthy) thm_ref
     val simps = if null splits_ref
       then to_simps lthy thm