src/HOL/Tools/TFL/tfl.ML
changeset 58111 82db9ad610b9
parent 57983 6edc3529bb4e
child 58112 8081087096ad
equal deleted inserted replaced
58110:019c0211ed1f 58111:82db9ad610b9
   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