src/HOL/Tools/Predicate_Compile/predicate_compile_fun.ML
changeset 61268 abe08fb15a12
parent 59582 0fbed69ff081
child 62581 fc5198b44314
equal deleted inserted replaced
61267:0b6217fda81b 61268:abe08fb15a12
   308     end
   308     end
   309 
   309 
   310 fun rewrite_intro thy intro =
   310 fun rewrite_intro thy intro =
   311   let
   311   let
   312     fun lookup_pred t = lookup thy (Fun_Pred.get thy) t
   312     fun lookup_pred t = lookup thy (Fun_Pred.get thy) t
   313     (*val _ = tracing ("Rewriting intro " ^ Display.string_of_thm_global thy intro)*)
   313     (*val _ = tracing ("Rewriting intro " ^ Thm.string_of_thm_global thy intro)*)
   314     val intro_t = Logic.unvarify_global (Thm.prop_of intro)
   314     val intro_t = Logic.unvarify_global (Thm.prop_of intro)
   315     val (prems, concl) = Logic.strip_horn intro_t
   315     val (prems, concl) = Logic.strip_horn intro_t
   316     val frees = map fst (Term.add_frees intro_t [])
   316     val frees = map fst (Term.add_frees intro_t [])
   317     fun rewrite prem names =
   317     fun rewrite prem names =
   318       let
   318       let