equal
deleted
inserted
replaced
433 slow.*) |
433 slow.*) |
434 val case_simpset = |
434 val case_simpset = |
435 put_simpset HOL_basic_ss ctxt |
435 put_simpset HOL_basic_ss ctxt |
436 addsimps case_rewrites |
436 addsimps case_rewrites |
437 |> fold (Simplifier.add_cong o #case_cong_weak o snd) |
437 |> fold (Simplifier.add_cong o #case_cong_weak o snd) |
438 (Symtab.dest (Datatype.get_all theory)) |
438 (Symtab.dest (Datatype_Data.get_all theory)) |
439 val corollaries' = map (Simplifier.simplify case_simpset) corollaries |
439 val corollaries' = map (Simplifier.simplify case_simpset) corollaries |
440 val extract = Rules.CONTEXT_REWRITE_RULE |
440 val extract = Rules.CONTEXT_REWRITE_RULE |
441 (f, [R], @{thm cut_apply}, meta_tflCongs @ context_congs) |
441 (f, [R], @{thm cut_apply}, meta_tflCongs @ context_congs) |
442 val (rules, TCs) = ListPair.unzip (map extract corollaries') |
442 val (rules, TCs) = ListPair.unzip (map extract corollaries') |
443 val rules0 = map (rewrite_rule ctxt [Thms.CUT_DEF]) rules |
443 val rules0 = map (rewrite_rule ctxt [Thms.CUT_DEF]) rules |