rename 'dtor_set_induct_thms' to 'dtor_set_inducts'
authordesharna
Mon Oct 06 13:38:40 2014 +0200 (2014-10-06)
changeset 585808ee2d984caa8
parent 58579 b7bc5ba2f3fb
child 58581 e2e2d775869c
rename 'dtor_set_induct_thms' to 'dtor_set_inducts'
src/HOL/Tools/BNF/bnf_fp_def_sugar.ML
src/HOL/Tools/BNF/bnf_fp_n2m.ML
src/HOL/Tools/BNF/bnf_fp_util.ML
src/HOL/Tools/BNF/bnf_gfp.ML
src/HOL/Tools/BNF/bnf_lfp.ML
src/HOL/Tools/BNF/bnf_lfp_basic_sugar.ML
     1.1 --- a/src/HOL/Tools/BNF/bnf_fp_def_sugar.ML	Mon Oct 06 13:38:13 2014 +0200
     1.2 +++ b/src/HOL/Tools/BNF/bnf_fp_def_sugar.ML	Mon Oct 06 13:38:40 2014 +0200
     1.3 @@ -1935,7 +1935,7 @@
     1.4      val ((pre_bnfs, absT_infos), (fp_res as {bnfs = fp_bnfs as any_fp_bnf :: _, ctors = ctors0,
     1.5               dtors = dtors0, xtor_co_recs = xtor_co_recs0, xtor_co_induct, dtor_ctors,
     1.6               ctor_dtors, ctor_injects, dtor_injects, xtor_map_thms, xtor_set_thmss, xtor_rel_thms,
     1.7 -             xtor_co_rec_thms, xtor_rel_co_induct, dtor_set_induct_thms,
     1.8 +             xtor_co_rec_thms, xtor_rel_co_induct, dtor_set_inducts,
     1.9               xtor_co_rec_transfer_thms, ...},
    1.10             lthy)) =
    1.11        fp_bnf (construct_fp mixfixes map_bs rel_bs set_bss) fp_bs (map dest_TFree unsorted_As)
    1.12 @@ -2308,7 +2308,7 @@
    1.13  
    1.14          val (set_induct_thms, set_induct_attrss) =
    1.15            derive_set_induct_thms_for_types lthy nn fpTs (map #ctrs ctr_sugars)
    1.16 -            (map (map (mk_set As)) (map sets_of_bnf fp_bnfs)) dtor_set_induct_thms
    1.17 +            (map (map (mk_set As)) (map sets_of_bnf fp_bnfs)) dtor_set_inducts
    1.18              (map #exhaust ctr_sugars) (flat pre_set_defss) (flat ctr_defss)
    1.19              dtor_ctors abs_inverses
    1.20            |> split_list;
     2.1 --- a/src/HOL/Tools/BNF/bnf_fp_n2m.ML	Mon Oct 06 13:38:13 2014 +0200
     2.2 +++ b/src/HOL/Tools/BNF/bnf_fp_n2m.ML	Mon Oct 06 13:38:40 2014 +0200
     2.3 @@ -477,7 +477,7 @@
     2.4          xtor_co_rec_thms = xtor_co_rec_thms,
     2.5          xtor_co_rec_o_maps = fp_rec_o_maps (*theorems about old constants*),
     2.6          xtor_rel_co_induct = xtor_rel_co_induct,
     2.7 -        dtor_set_induct_thms = [],
     2.8 +        dtor_set_inducts = [],
     2.9          xtor_co_rec_transfer_thms = []}
    2.10         |> morph_fp_result (Morphism.term_morphism "BNF" (singleton (Variable.polymorphic lthy))));
    2.11    in
     3.1 --- a/src/HOL/Tools/BNF/bnf_fp_util.ML	Mon Oct 06 13:38:13 2014 +0200
     3.2 +++ b/src/HOL/Tools/BNF/bnf_fp_util.ML	Mon Oct 06 13:38:40 2014 +0200
     3.3 @@ -27,7 +27,7 @@
     3.4       xtor_co_rec_thms: thm list,
     3.5       xtor_co_rec_o_maps: thm list,
     3.6       xtor_rel_co_induct: thm,
     3.7 -     dtor_set_induct_thms: thm list,
     3.8 +     dtor_set_inducts: thm list,
     3.9       xtor_co_rec_transfer_thms: thm list}
    3.10  
    3.11    val morph_fp_result: morphism -> fp_result -> fp_result
    3.12 @@ -219,13 +219,13 @@
    3.13     xtor_co_rec_thms: thm list,
    3.14     xtor_co_rec_o_maps: thm list,
    3.15     xtor_rel_co_induct: thm,
    3.16 -   dtor_set_induct_thms: thm list,
    3.17 +   dtor_set_inducts: thm list,
    3.18     xtor_co_rec_transfer_thms: thm list};
    3.19  
    3.20  fun morph_fp_result phi {Ts, bnfs, ctors, dtors, xtor_co_recs, xtor_co_induct,
    3.21      dtor_ctors, ctor_dtors, ctor_injects, dtor_injects, xtor_map_thms, xtor_set_thmss,
    3.22      xtor_rel_thms, xtor_co_rec_thms, xtor_co_rec_o_maps, xtor_rel_co_induct,
    3.23 -    dtor_set_induct_thms, xtor_co_rec_transfer_thms} =
    3.24 +    dtor_set_inducts, xtor_co_rec_transfer_thms} =
    3.25    {Ts = map (Morphism.typ phi) Ts,
    3.26     bnfs = map (morph_bnf phi) bnfs,
    3.27     ctors = map (Morphism.term phi) ctors,
    3.28 @@ -242,7 +242,7 @@
    3.29     xtor_co_rec_thms = map (Morphism.thm phi) xtor_co_rec_thms,
    3.30     xtor_co_rec_o_maps = map (Morphism.thm phi) xtor_co_rec_o_maps,
    3.31     xtor_rel_co_induct = Morphism.thm phi xtor_rel_co_induct,
    3.32 -   dtor_set_induct_thms = map (Morphism.thm phi) dtor_set_induct_thms,
    3.33 +   dtor_set_inducts = map (Morphism.thm phi) dtor_set_inducts,
    3.34     xtor_co_rec_transfer_thms = map (Morphism.thm phi) xtor_co_rec_transfer_thms};
    3.35  
    3.36  fun time ctxt timer msg = (if Config.get ctxt bnf_timing
     4.1 --- a/src/HOL/Tools/BNF/bnf_gfp.ML	Mon Oct 06 13:38:13 2014 +0200
     4.2 +++ b/src/HOL/Tools/BNF/bnf_gfp.ML	Mon Oct 06 13:38:40 2014 +0200
     4.3 @@ -2542,7 +2542,7 @@
     4.4         xtor_map_thms = dtor_Jmap_thms, xtor_set_thmss = dtor_Jset_thmss',
     4.5         xtor_rel_thms = dtor_Jrel_thms, xtor_co_rec_thms = dtor_corec_thms,
     4.6         xtor_co_rec_o_maps = dtor_corec_o_Jmap_thms, xtor_rel_co_induct = Jrel_coinduct_thm,
     4.7 -       dtor_set_induct_thms = dtor_Jset_induct_thms,
     4.8 +       dtor_set_inducts = dtor_Jset_induct_thms,
     4.9         xtor_co_rec_transfer_thms = dtor_corec_transfer_thms};
    4.10    in
    4.11      timer; (fp_res, lthy')
     5.1 --- a/src/HOL/Tools/BNF/bnf_lfp.ML	Mon Oct 06 13:38:13 2014 +0200
     5.2 +++ b/src/HOL/Tools/BNF/bnf_lfp.ML	Mon Oct 06 13:38:40 2014 +0200
     5.3 @@ -1829,7 +1829,7 @@
     5.4         xtor_map_thms = ctor_Imap_thms, xtor_set_thmss = ctor_Iset_thmss',
     5.5         xtor_rel_thms = ctor_Irel_thms, xtor_co_rec_thms = ctor_rec_thms,
     5.6         xtor_co_rec_o_maps = ctor_rec_o_Imap_thms, xtor_rel_co_induct = Irel_induct_thm,
     5.7 -       dtor_set_induct_thms = [], xtor_co_rec_transfer_thms = ctor_rec_transfer_thms};
     5.8 +       dtor_set_inducts = [], xtor_co_rec_transfer_thms = ctor_rec_transfer_thms};
     5.9    in
    5.10      timer; (fp_res, lthy')
    5.11    end;
     6.1 --- a/src/HOL/Tools/BNF/bnf_lfp_basic_sugar.ML	Mon Oct 06 13:38:13 2014 +0200
     6.2 +++ b/src/HOL/Tools/BNF/bnf_lfp_basic_sugar.ML	Mon Oct 06 13:38:40 2014 +0200
     6.3 @@ -47,7 +47,7 @@
     6.4     xtor_co_rec_thms = [map_id0_of_bnf fp_bnf RS @{thm ctor_rec}],
     6.5     xtor_co_rec_o_maps = [ctor_rec_o_map],
     6.6     xtor_rel_co_induct = xtor_rel_induct,
     6.7 -   dtor_set_induct_thms = [],
     6.8 +   dtor_set_inducts = [],
     6.9     xtor_co_rec_transfer_thms = []};
    6.10  
    6.11  fun fp_sugar_of_sum ctxt =