Commit 2024-04-03 11:58 392a24a9

View on Github →

chore(Data/Int): Rename coe_nat to natCast (#11637) Reduce the diff of #11499

Renames

All in the Int namespace:

  • ofNat_eq_castofNat_eq_natCast
  • cast_eq_cast_iff_NatnatCast_inj
  • natCast_eq_ofNatofNat_eq_natCast
  • coe_nat_subnatCast_sub
  • coe_nat_nonnegnatCast_nonneg
  • sign_coe_add_onesign_natCast_add_one
  • nat_succ_eq_int_succnatCast_succ
  • succ_neg_nat_succsucc_neg_natCast_succ
  • coe_pred_of_posnatCast_pred_of_pos
  • coe_nat_divnatCast_div
  • coe_nat_edivnatCast_ediv
  • sign_coe_nat_of_nonzerosign_natCast_of_ne_zero
  • toNat_coe_nattoNat_natCast
  • toNat_coe_nat_add_onetoNat_natCast_add_one
  • coe_nat_dvdnatCast_dvd_natCast
  • coe_nat_dvd_leftnatCast_dvd
  • coe_nat_dvd_rightdvd_natCast
  • le_coe_nat_suble_natCast_sub
  • succ_coe_nat_possucc_natCast_pos
  • coe_nat_modEq_iffnatCast_modEq_iff
  • coe_natAbsnatCast_natAbs
  • coe_nat_eq_zeronatCast_eq_zero
  • coe_nat_ne_zeronatCast_ne_zero
  • coe_nat_ne_zero_iff_posnatCast_ne_zero_iff_pos
  • abs_coe_natabs_natCast
  • coe_nat_nonpos_iffnatCast_nonpos_iff Also rename Nat.coe_nat_dvd to Nat.cast_dvd_cast

Estimated changes

deleted theorem Int.cast_eq_cast_iff_Nat
deleted theorem Int.coe_nat_div
deleted theorem Int.coe_nat_ediv
deleted theorem Int.coe_nat_inj'
deleted theorem Int.coe_nat_mod
deleted theorem Int.coe_nat_nonneg
deleted theorem Int.coe_pred_of_pos
added theorem Int.natCast_div
added theorem Int.natCast_ediv
added theorem Int.natCast_inj
added theorem Int.natCast_mod
added theorem Int.natCast_nonneg
added theorem Int.natCast_succ
deleted theorem Int.nat_succ_eq_int_succ
deleted theorem Int.ofNat_eq_cast
added theorem Int.ofNat_eq_natCast
deleted theorem Int.sign_coe_add_one
deleted theorem Int.succ_neg_nat_succ
deleted theorem Int.toNat_coe_nat
deleted theorem Int.toNat_coe_nat_add_one
added theorem Int.toNat_natCast
deleted theorem Int.abs_coe_nat
added theorem Int.abs_natCast
deleted theorem Int.coe_natAbs
deleted theorem Int.coe_nat_eq_zero
deleted theorem Int.coe_nat_ne_zero
deleted theorem Int.coe_nat_nonpos_iff
added theorem Int.natCast_eq_zero
added theorem Int.natCast_natAbs
added theorem Int.natCast_ne_zero
added theorem Int.natCast_nonpos_iff