rename 'xtor_rel_thms' to 'xtor_rels'
authordesharna
Mon Oct 06 13:41:37 2014 +0200 (2014-10-06)
changeset 58585efc8b2c54a38
parent 58584 b6492a7abb59
child 58586 1b11669a5c66
rename 'xtor_rel_thms' to 'xtor_rels'
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:40:56 2014 +0200
     1.2 +++ b/src/HOL/Tools/BNF/bnf_fp_def_sugar.ML	Mon Oct 06 13:41:37 2014 +0200
     1.3 @@ -1934,7 +1934,7 @@
     1.4  
     1.5      val ((pre_bnfs, absT_infos), (fp_res as {bnfs = fp_bnfs as any_fp_bnf :: _, ctors = ctors0,
     1.6               dtors = dtors0, xtor_co_recs = xtor_co_recs0, xtor_co_induct, dtor_ctors,
     1.7 -             ctor_dtors, ctor_injects, dtor_injects, xtor_maps, xtor_setss, xtor_rel_thms,
     1.8 +             ctor_dtors, ctor_injects, dtor_injects, xtor_maps, xtor_setss, xtor_rels,
     1.9               xtor_co_rec_thms, xtor_rel_co_induct, dtor_set_inducts,
    1.10               xtor_co_rec_transfers, ...},
    1.11             lthy)) =
    1.12 @@ -2360,7 +2360,7 @@
    1.13        |> live > 0 ? fold2 (fn Type (s, _) => fn bnf => register_bnf_raw s bnf) fpTs fp_bnfs
    1.14        |> fold_map define_ctrs_dtrs_for_type (fp_bnfs ~~ fp_bs ~~ fpTs ~~ ctors ~~ dtors ~~
    1.15          xtor_co_recs ~~ ctor_dtors ~~ dtor_ctors ~~ ctor_injects ~~ pre_map_defs ~~ pre_set_defss ~~
    1.16 -        pre_rel_defs ~~ xtor_maps ~~ xtor_setss ~~ xtor_rel_thms ~~ ns ~~ kss ~~ mss ~~
    1.17 +        pre_rel_defs ~~ xtor_maps ~~ xtor_setss ~~ xtor_rels ~~ ns ~~ kss ~~ mss ~~
    1.18          abss ~~ abs_injects ~~ abs_inverses ~~ type_definitions ~~ ctr_bindingss ~~ ctr_mixfixess ~~
    1.19          ctr_Tsss ~~ disc_bindingss ~~ sel_bindingsss ~~ raw_sel_default_eqss)
    1.20        |> wrap_ctrs_derive_map_set_rel_thms_define_co_rec_for_types
     2.1 --- a/src/HOL/Tools/BNF/bnf_fp_n2m.ML	Mon Oct 06 13:40:56 2014 +0200
     2.2 +++ b/src/HOL/Tools/BNF/bnf_fp_n2m.ML	Mon Oct 06 13:41:37 2014 +0200
     2.3 @@ -473,7 +473,7 @@
     2.4          dtor_injects = of_fp_res #dtor_injects (*too general types*),
     2.5          xtor_maps = of_fp_res #xtor_maps (*too general types and terms*),
     2.6          xtor_setss = of_fp_res #xtor_setss (*too general types and terms*),
     2.7 -        xtor_rel_thms = of_fp_res #xtor_rel_thms (*too general types and terms*),
     2.8 +        xtor_rels = of_fp_res #xtor_rels (*too general types and terms*),
     2.9          xtor_co_rec_thms = xtor_co_rec_thms,
    2.10          xtor_co_rec_o_maps = fp_rec_o_maps (*theorems about old constants*),
    2.11          xtor_rel_co_induct = xtor_rel_co_induct,
     3.1 --- a/src/HOL/Tools/BNF/bnf_fp_util.ML	Mon Oct 06 13:40:56 2014 +0200
     3.2 +++ b/src/HOL/Tools/BNF/bnf_fp_util.ML	Mon Oct 06 13:41:37 2014 +0200
     3.3 @@ -23,7 +23,7 @@
     3.4       dtor_injects: thm list,
     3.5       xtor_maps: thm list,
     3.6       xtor_setss: thm list list,
     3.7 -     xtor_rel_thms: thm list,
     3.8 +     xtor_rels: thm list,
     3.9       xtor_co_rec_thms: thm list,
    3.10       xtor_co_rec_o_maps: thm list,
    3.11       xtor_rel_co_induct: thm,
    3.12 @@ -215,7 +215,7 @@
    3.13     dtor_injects: thm list,
    3.14     xtor_maps: thm list,
    3.15     xtor_setss: thm list list,
    3.16 -   xtor_rel_thms: thm list,
    3.17 +   xtor_rels: thm list,
    3.18     xtor_co_rec_thms: thm list,
    3.19     xtor_co_rec_o_maps: thm list,
    3.20     xtor_rel_co_induct: thm,
    3.21 @@ -224,7 +224,7 @@
    3.22  
    3.23  fun morph_fp_result phi {Ts, bnfs, ctors, dtors, xtor_co_recs, xtor_co_induct,
    3.24      dtor_ctors, ctor_dtors, ctor_injects, dtor_injects, xtor_maps, xtor_setss,
    3.25 -    xtor_rel_thms, xtor_co_rec_thms, xtor_co_rec_o_maps, xtor_rel_co_induct,
    3.26 +    xtor_rels, xtor_co_rec_thms, xtor_co_rec_o_maps, xtor_rel_co_induct,
    3.27      dtor_set_inducts, xtor_co_rec_transfers} =
    3.28    {Ts = map (Morphism.typ phi) Ts,
    3.29     bnfs = map (morph_bnf phi) bnfs,
    3.30 @@ -238,7 +238,7 @@
    3.31     dtor_injects = map (Morphism.thm phi) dtor_injects,
    3.32     xtor_maps = map (Morphism.thm phi) xtor_maps,
    3.33     xtor_setss = map (map (Morphism.thm phi)) xtor_setss,
    3.34 -   xtor_rel_thms = map (Morphism.thm phi) xtor_rel_thms,
    3.35 +   xtor_rels = map (Morphism.thm phi) xtor_rels,
    3.36     xtor_co_rec_thms = map (Morphism.thm phi) xtor_co_rec_thms,
    3.37     xtor_co_rec_o_maps = map (Morphism.thm phi) xtor_co_rec_o_maps,
    3.38     xtor_rel_co_induct = Morphism.thm phi xtor_rel_co_induct,
     4.1 --- a/src/HOL/Tools/BNF/bnf_gfp.ML	Mon Oct 06 13:40:56 2014 +0200
     4.2 +++ b/src/HOL/Tools/BNF/bnf_gfp.ML	Mon Oct 06 13:41:37 2014 +0200
     4.3 @@ -2540,7 +2540,7 @@
     4.4         xtor_co_induct = dtor_coinduct_thm, dtor_ctors = dtor_ctor_thms, ctor_dtors = ctor_dtor_thms,
     4.5         ctor_injects = ctor_inject_thms, dtor_injects = dtor_inject_thms,
     4.6         xtor_maps = dtor_Jmap_thms, xtor_setss = dtor_Jset_thmss',
     4.7 -       xtor_rel_thms = dtor_Jrel_thms, xtor_co_rec_thms = dtor_corec_thms,
     4.8 +       xtor_rels = dtor_Jrel_thms, xtor_co_rec_thms = dtor_corec_thms,
     4.9         xtor_co_rec_o_maps = dtor_corec_o_Jmap_thms, xtor_rel_co_induct = Jrel_coinduct_thm,
    4.10         dtor_set_inducts = dtor_Jset_induct_thms,
    4.11         xtor_co_rec_transfers = dtor_corec_transfer_thms};
     5.1 --- a/src/HOL/Tools/BNF/bnf_lfp.ML	Mon Oct 06 13:40:56 2014 +0200
     5.2 +++ b/src/HOL/Tools/BNF/bnf_lfp.ML	Mon Oct 06 13:41:37 2014 +0200
     5.3 @@ -1827,7 +1827,7 @@
     5.4         xtor_co_induct = ctor_induct_thm, dtor_ctors = dtor_ctor_thms, ctor_dtors = ctor_dtor_thms,
     5.5         ctor_injects = ctor_inject_thms, dtor_injects = dtor_inject_thms,
     5.6         xtor_maps = ctor_Imap_thms, xtor_setss = ctor_Iset_thmss',
     5.7 -       xtor_rel_thms = ctor_Irel_thms, xtor_co_rec_thms = ctor_rec_thms,
     5.8 +       xtor_rels = ctor_Irel_thms, xtor_co_rec_thms = ctor_rec_thms,
     5.9         xtor_co_rec_o_maps = ctor_rec_o_Imap_thms, xtor_rel_co_induct = Irel_induct_thm,
    5.10         dtor_set_inducts = [], xtor_co_rec_transfers = ctor_rec_transfer_thms};
    5.11    in
     6.1 --- a/src/HOL/Tools/BNF/bnf_lfp_basic_sugar.ML	Mon Oct 06 13:40:56 2014 +0200
     6.2 +++ b/src/HOL/Tools/BNF/bnf_lfp_basic_sugar.ML	Mon Oct 06 13:41:37 2014 +0200
     6.3 @@ -43,7 +43,7 @@
     6.4     dtor_injects = @{thms xtor_inject},
     6.5     xtor_maps = [xtor_map],
     6.6     xtor_setss = [xtor_sets],
     6.7 -   xtor_rel_thms = [xtor_rel],
     6.8 +   xtor_rels = [xtor_rel],
     6.9     xtor_co_rec_thms = [map_id0_of_bnf fp_bnf RS @{thm ctor_rec}],
    6.10     xtor_co_rec_o_maps = [ctor_rec_o_map],
    6.11     xtor_rel_co_induct = xtor_rel_induct,