Commit 2024-04-17 11:15 145460b9

View on Github →

chore: Rename nat_cast/int_cast/rat_cast to natCast/intCast/ratCast (#11486) Now that I am defining NNRat.cast, I want a definitive answer to this naming issue. Plenty of lemmas in mathlib already use natCast/intCast/ratCast over nat_cast/int_cast/rat_cast, and this matches with the general expectation that underscore-separated name parts correspond to a single declaration.

Estimated changes

added theorem inv_intCast_smul_comm
added theorem inv_intCast_smul_eq
deleted theorem inv_int_cast_smul_comm
deleted theorem inv_int_cast_smul_eq
added theorem inv_natCast_smul_comm
added theorem inv_natCast_smul_eq
deleted theorem inv_nat_cast_smul_comm
deleted theorem inv_nat_cast_smul_eq
added theorem map_intCast_smul
deleted theorem map_int_cast_smul
added theorem map_inv_intCast_smul
deleted theorem map_inv_int_cast_smul
added theorem map_inv_natCast_smul
deleted theorem map_inv_nat_cast_smul
added theorem map_natCast_smul
deleted theorem map_nat_cast_smul
added theorem map_ratCast_smul
deleted theorem map_rat_cast_smul
added theorem ratCast_smul_eq
deleted theorem rat_cast_smul_eq
added theorem Quaternion.coe_intCast
deleted theorem Quaternion.coe_int_cast
added theorem Quaternion.coe_natCast
deleted theorem Quaternion.coe_nat_cast
added theorem Quaternion.coe_ratCast
deleted theorem Quaternion.coe_rat_cast
added theorem Quaternion.intCast_im
added theorem Quaternion.intCast_imI
added theorem Quaternion.intCast_imJ
added theorem Quaternion.intCast_imK
added theorem Quaternion.intCast_re
deleted theorem Quaternion.int_cast_im
deleted theorem Quaternion.int_cast_imI
deleted theorem Quaternion.int_cast_imJ
deleted theorem Quaternion.int_cast_imK
deleted theorem Quaternion.int_cast_re
added theorem Quaternion.natCast_im
added theorem Quaternion.natCast_imI
added theorem Quaternion.natCast_imJ
added theorem Quaternion.natCast_imK
added theorem Quaternion.natCast_re
deleted theorem Quaternion.nat_cast_im
deleted theorem Quaternion.nat_cast_imI
deleted theorem Quaternion.nat_cast_imJ
deleted theorem Quaternion.nat_cast_imK
deleted theorem Quaternion.nat_cast_re
added theorem Quaternion.ratCast_im
added theorem Quaternion.ratCast_imI
added theorem Quaternion.ratCast_imJ
added theorem Quaternion.ratCast_imK
added theorem Quaternion.ratCast_re
deleted theorem Quaternion.rat_cast_im
deleted theorem Quaternion.rat_cast_imI
deleted theorem Quaternion.rat_cast_imJ
deleted theorem Quaternion.rat_cast_imK
deleted theorem Quaternion.rat_cast_re
added theorem star_intCast_smul
deleted theorem star_int_cast_smul
added theorem star_inv_intCast_smul
deleted theorem star_inv_int_cast_smul
added theorem star_inv_natCast_smul
deleted theorem star_inv_nat_cast_smul
added theorem star_natCast_smul
deleted theorem star_nat_cast_smul
added theorem star_ratCast_smul
deleted theorem star_rat_cast_smul
added theorem Complex.conj_natCast
deleted theorem Complex.conj_nat_cast
added theorem Complex.div_intCast
added theorem Complex.div_intCast_im
added theorem Complex.div_intCast_re
deleted theorem Complex.div_int_cast
deleted theorem Complex.div_int_cast_im
deleted theorem Complex.div_int_cast_re
added theorem Complex.div_natCast
added theorem Complex.div_natCast_im
added theorem Complex.div_natCast_re
deleted theorem Complex.div_nat_cast
deleted theorem Complex.div_nat_cast_im
deleted theorem Complex.div_nat_cast_re
added theorem Complex.div_ratCast
added theorem Complex.div_ratCast_im
added theorem Complex.div_ratCast_re
deleted theorem Complex.div_rat_cast
deleted theorem Complex.div_rat_cast_im
deleted theorem Complex.div_rat_cast_re
added theorem Complex.intCast_im
added theorem Complex.intCast_re
deleted theorem Complex.int_cast_im
deleted theorem Complex.int_cast_re
added theorem Complex.natCast_im
added theorem Complex.natCast_re
deleted theorem Complex.nat_cast_im
deleted theorem Complex.nat_cast_re
added theorem Complex.normSq_intCast
deleted theorem Complex.normSq_int_cast
added theorem Complex.normSq_natCast
deleted theorem Complex.normSq_nat_cast
added theorem Complex.normSq_ratCast
deleted theorem Complex.normSq_rat_cast
added theorem Complex.ofReal_intCast
deleted theorem Complex.ofReal_int_cast
added theorem Complex.ofReal_natCast
deleted theorem Complex.ofReal_nat_cast
added theorem Complex.ofReal_ratCast
deleted theorem Complex.ofReal_rat_cast
added theorem Complex.ratCast_im
added theorem Complex.ratCast_re
deleted theorem Complex.rat_cast_im
deleted theorem Complex.rat_cast_re
added theorem Fin.natCast_eq_zero
added theorem Fin.natCast_self
deleted theorem Fin.nat_cast_eq_zero
deleted theorem Fin.nat_cast_self
added theorem Fin.neg_natCast_eq_one
deleted theorem Fin.neg_nat_cast_eq_one
added theorem Fin.val_natCast
deleted theorem Fin.val_nat_cast
added theorem Num.of_natCast
deleted theorem Num.of_nat_cast
added theorem ZNum.of_intCast
deleted theorem ZNum.of_int_cast
added theorem ZNum.of_natCast
deleted theorem ZNum.of_nat_cast
added theorem ZMod.cast_intCast'
added theorem ZMod.cast_intCast
deleted theorem ZMod.cast_int_cast'
deleted theorem ZMod.cast_int_cast
added theorem ZMod.cast_natCast'
added theorem ZMod.cast_natCast
deleted theorem ZMod.cast_nat_cast'
deleted theorem ZMod.cast_nat_cast
added theorem ZMod.coe_intCast
deleted theorem ZMod.coe_int_cast
added theorem ZMod.intCast_cast
added theorem ZMod.intCast_comp_cast
added theorem ZMod.intCast_mod
added theorem ZMod.intCast_zmod_cast
deleted theorem ZMod.int_cast_cast
deleted theorem ZMod.int_cast_comp_cast
deleted theorem ZMod.int_cast_mod
deleted theorem ZMod.int_cast_surjective
deleted theorem ZMod.int_cast_zmod_cast
added theorem ZMod.ker_intCastAddHom
deleted theorem ZMod.ker_int_castAddHom
deleted theorem ZMod.ker_int_castRingHom
added theorem ZMod.natCast_comp_val
added theorem ZMod.natCast_mod
added theorem ZMod.natCast_self'
added theorem ZMod.natCast_self
added theorem ZMod.natCast_toNat
added theorem ZMod.natCast_val
added theorem ZMod.natCast_zmod_val
deleted theorem ZMod.nat_cast_comp_val
deleted theorem ZMod.nat_cast_mod
deleted theorem ZMod.nat_cast_self'
deleted theorem ZMod.nat_cast_self
deleted theorem ZMod.nat_cast_toNat
deleted theorem ZMod.nat_cast_val
deleted theorem ZMod.nat_cast_zmod_val
added theorem ZMod.val_intCast
deleted theorem ZMod.val_int_cast
added theorem ZMod.val_natCast
added theorem ZMod.val_natCast_of_lt
deleted theorem ZMod.val_nat_cast
deleted theorem ZMod.val_nat_cast_of_lt
added theorem Ordinal.lift_natCast
deleted theorem Ordinal.lift_nat_cast
added theorem Ordinal.natCast_div
added theorem Ordinal.natCast_inj
added theorem Ordinal.natCast_le
added theorem Ordinal.natCast_lt
added theorem Ordinal.natCast_mod
added theorem Ordinal.natCast_mul
added theorem Ordinal.natCast_pos
added theorem Ordinal.natCast_sub
deleted theorem Ordinal.nat_cast_div
deleted theorem Ordinal.nat_cast_eq_zero
deleted theorem Ordinal.nat_cast_inj
deleted theorem Ordinal.nat_cast_le
deleted theorem Ordinal.nat_cast_lt
deleted theorem Ordinal.nat_cast_mod
deleted theorem Ordinal.nat_cast_mul
deleted theorem Ordinal.nat_cast_ne_zero
deleted theorem Ordinal.nat_cast_pos
deleted theorem Ordinal.nat_cast_sub
deleted theorem Ordinal.one_add_nat_cast
added theorem Ordinal.sup_natCast
deleted theorem Ordinal.sup_nat_cast