equal
deleted
inserted
replaced
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 |