renamings
authorblanchet
Thu May 02 21:04:50 2013 +0200 (2013-05-02)
changeset 51869d58cd7673b04
parent 51868 4ab609682752
child 51870 a331fbefcdb1
renamings
src/HOL/BNF/Tools/bnf_fp_def_sugar.ML
src/HOL/BNF/Tools/bnf_fp_util.ML
src/HOL/BNF/Tools/bnf_gfp.ML
src/HOL/BNF/Tools/bnf_lfp.ML
     1.1 --- a/src/HOL/BNF/Tools/bnf_fp_def_sugar.ML	Thu May 02 18:48:39 2013 +0200
     1.2 +++ b/src/HOL/BNF/Tools/bnf_fp_def_sugar.ML	Thu May 02 21:04:50 2013 +0200
     1.3 @@ -909,9 +909,10 @@
     1.4        map dest_TFree Xs ~~ map (Term.typ_subst_atomic (As ~~ unsorted_As)) ctr_sum_prod_TsXs;
     1.5  
     1.6      val (pre_bnfs, (fp_res as {bnfs = fp_bnfs as any_fp_bnf :: _, ctors = ctors0, dtors = dtors0,
     1.7 -           folds = fp_folds0, recs = fp_recs0, induct = fp_induct, strong_induct = fp_strong_induct,
     1.8 -           dtor_ctors, ctor_dtors, ctor_injects, map_thms = fp_map_thms, set_thmss = fp_set_thmss,
     1.9 -           rel_thms = fp_rel_thms, fold_thms = fp_fold_thms, rec_thms = fp_rec_thms, ...}, lthy)) =
    1.10 +           un_folds = fp_folds0, co_recs = fp_recs0, co_induct = fp_induct,
    1.11 +           strong_co_induct = fp_strong_induct, dtor_ctors, ctor_dtors, ctor_injects,
    1.12 +           map_thms = fp_map_thms, set_thmss = fp_set_thmss, rel_thms = fp_rel_thms,
    1.13 +           un_fold_thms = fp_fold_thms, co_rec_thms = fp_rec_thms, ...}, lthy)) =
    1.14        fp_bnf (construct_fp mixfixes map_bs rel_bs set_bss) fp_bs (map dest_TFree unsorted_As) fp_eqs
    1.15          no_defs_lthy0;
    1.16  
     2.1 --- a/src/HOL/BNF/Tools/bnf_fp_util.ML	Thu May 02 18:48:39 2013 +0200
     2.2 +++ b/src/HOL/BNF/Tools/bnf_fp_util.ML	Thu May 02 21:04:50 2013 +0200
     2.3 @@ -13,18 +13,18 @@
     2.4       bnfs: BNF_Def.bnf list,
     2.5       ctors: term list,
     2.6       dtors: term list,
     2.7 -     folds: term list,
     2.8 -     recs: term list,
     2.9 -     induct: thm,
    2.10 -     strong_induct: thm,
    2.11 +     un_folds: term list,
    2.12 +     co_recs: term list,
    2.13 +     co_induct: thm,
    2.14 +     strong_co_induct: thm,
    2.15       dtor_ctors: thm list,
    2.16       ctor_dtors: thm list,
    2.17       ctor_injects: thm list,
    2.18       map_thms: thm list,
    2.19       set_thmss: thm list list,
    2.20       rel_thms: thm list,
    2.21 -     fold_thms: thm list,
    2.22 -     rec_thms: thm list}
    2.23 +     un_fold_thms: thm list,
    2.24 +     co_rec_thms: thm list}
    2.25  
    2.26    val morph_fp_result: morphism -> fp_result -> fp_result
    2.27    val eq_fp_result: fp_result * fp_result -> bool
    2.28 @@ -183,37 +183,38 @@
    2.29     bnfs: BNF_Def.bnf list,
    2.30     ctors: term list,
    2.31     dtors: term list,
    2.32 -   folds: term list,
    2.33 -   recs: term list,
    2.34 -   induct: thm,
    2.35 -   strong_induct: thm,
    2.36 +   un_folds: term list,
    2.37 +   co_recs: term list,
    2.38 +   co_induct: thm,
    2.39 +   strong_co_induct: thm,
    2.40     dtor_ctors: thm list,
    2.41     ctor_dtors: thm list,
    2.42     ctor_injects: thm list,
    2.43     map_thms: thm list,
    2.44     set_thmss: thm list list,
    2.45     rel_thms: thm list,
    2.46 -   fold_thms: thm list,
    2.47 -   rec_thms: thm list};
    2.48 +   un_fold_thms: thm list,
    2.49 +   co_rec_thms: thm list};
    2.50  
    2.51 -fun morph_fp_result phi {Ts, bnfs, ctors, dtors, folds, recs, induct, strong_induct, dtor_ctors,
    2.52 -    ctor_dtors, ctor_injects, map_thms, set_thmss, rel_thms, fold_thms, rec_thms} =
    2.53 +fun morph_fp_result phi {Ts, bnfs, ctors, dtors, un_folds, co_recs, co_induct, strong_co_induct,
    2.54 +    dtor_ctors, ctor_dtors, ctor_injects, map_thms, set_thmss, rel_thms, un_fold_thms,
    2.55 +    co_rec_thms} =
    2.56    {Ts = map (Morphism.typ phi) Ts,
    2.57     bnfs = map (morph_bnf phi) bnfs,
    2.58     ctors = map (Morphism.term phi) ctors,
    2.59     dtors = map (Morphism.term phi) dtors,
    2.60 -   folds = map (Morphism.term phi) folds,
    2.61 -   recs = map (Morphism.term phi) recs,
    2.62 -   induct = Morphism.thm phi induct,
    2.63 -   strong_induct = Morphism.thm phi strong_induct,
    2.64 +   un_folds = map (Morphism.term phi) un_folds,
    2.65 +   co_recs = map (Morphism.term phi) co_recs,
    2.66 +   co_induct = Morphism.thm phi co_induct,
    2.67 +   strong_co_induct = Morphism.thm phi strong_co_induct,
    2.68     dtor_ctors = map (Morphism.thm phi) dtor_ctors,
    2.69     ctor_dtors = map (Morphism.thm phi) ctor_dtors,
    2.70     ctor_injects = map (Morphism.thm phi) ctor_injects,
    2.71     map_thms = map (Morphism.thm phi) map_thms,
    2.72     set_thmss = map (map (Morphism.thm phi)) set_thmss,
    2.73     rel_thms = map (Morphism.thm phi) rel_thms,
    2.74 -   fold_thms = map (Morphism.thm phi) fold_thms,
    2.75 -   rec_thms = map (Morphism.thm phi) rec_thms};
    2.76 +   un_fold_thms = map (Morphism.thm phi) un_fold_thms,
    2.77 +   co_rec_thms = map (Morphism.thm phi) co_rec_thms};
    2.78  
    2.79  fun eq_fp_result ({bnfs = bnfs1, ...} : fp_result, {bnfs = bnfs2, ...} : fp_result) =
    2.80    eq_list eq_bnf (bnfs1, bnfs2);
     3.1 --- a/src/HOL/BNF/Tools/bnf_gfp.ML	Thu May 02 18:48:39 2013 +0200
     3.2 +++ b/src/HOL/BNF/Tools/bnf_gfp.ML	Thu May 02 21:04:50 2013 +0200
     3.3 @@ -3027,12 +3027,12 @@
     3.4              ((Binding.qualify true (Binding.name_of b) (Binding.name thmN), []), [(thms, [])]))
     3.5            bs thmss)
     3.6    in
     3.7 -    ({Ts = Ts, bnfs = Jbnfs, ctors = ctors, dtors = dtors, folds = unfolds, recs = corecs,
     3.8 -      induct = dtor_coinduct_thm, strong_induct = dtor_strong_coinduct_thm,
     3.9 +    ({Ts = Ts, bnfs = Jbnfs, ctors = ctors, dtors = dtors, un_folds = unfolds, co_recs = corecs,
    3.10 +      co_induct = dtor_coinduct_thm, strong_co_induct = dtor_strong_coinduct_thm,
    3.11        dtor_ctors = dtor_ctor_thms, ctor_dtors = ctor_dtor_thms, ctor_injects = ctor_inject_thms,
    3.12        map_thms = folded_dtor_map_thms, set_thmss = folded_dtor_set_thmss',
    3.13 -      rel_thms = dtor_Jrel_thms, fold_thms = ctor_dtor_unfold_thms,
    3.14 -      rec_thms = ctor_dtor_corec_thms},
    3.15 +      rel_thms = dtor_Jrel_thms, un_fold_thms = ctor_dtor_unfold_thms,
    3.16 +      co_rec_thms = ctor_dtor_corec_thms},
    3.17       lthy |> Local_Theory.notes (common_notes @ notes) |> snd)
    3.18    end;
    3.19  
     4.1 --- a/src/HOL/BNF/Tools/bnf_lfp.ML	Thu May 02 18:48:39 2013 +0200
     4.2 +++ b/src/HOL/BNF/Tools/bnf_lfp.ML	Thu May 02 21:04:50 2013 +0200
     4.3 @@ -1850,11 +1850,11 @@
     4.4              ((Binding.qualify true (Binding.name_of b) (Binding.name thmN), []), [(thms, [])]))
     4.5            bs thmss)
     4.6    in
     4.7 -    ({Ts = Ts, bnfs = Ibnfs, ctors = ctors, dtors = dtors, folds = folds, recs = recs,
     4.8 -      induct = ctor_induct_thm, strong_induct = ctor_induct_thm, dtor_ctors = dtor_ctor_thms,
     4.9 +    ({Ts = Ts, bnfs = Ibnfs, ctors = ctors, dtors = dtors, un_folds = folds, co_recs = recs,
    4.10 +      co_induct = ctor_induct_thm, strong_co_induct = ctor_induct_thm, dtor_ctors = dtor_ctor_thms,
    4.11        ctor_dtors = ctor_dtor_thms, ctor_injects = ctor_inject_thms, map_thms = folded_ctor_map_thms,
    4.12 -      set_thmss = folded_ctor_set_thmss', rel_thms = ctor_Irel_thms, fold_thms = ctor_fold_thms,
    4.13 -      rec_thms = ctor_rec_thms},
    4.14 +      set_thmss = folded_ctor_set_thmss', rel_thms = ctor_Irel_thms, un_fold_thms = ctor_fold_thms,
    4.15 +      co_rec_thms = ctor_rec_thms},
    4.16       lthy |> Local_Theory.notes (common_notes @ notes) |> snd)
    4.17    end;
    4.18