Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2021-02-17 23:53 bc1c4f24

View on Github →

feat(data/zmod/basic): add simp lemmas about coercions, tidy lemma names (#6280) Split from #5797. This takes the new proofs without introducing the objectionable names. This also renames a bunch of lemmas from zmod.cast_* to zmod.nat_cast_* and zmod.int_cast_*, in order to distinguish lemmas about zmod.cast from lemmas about nat.cast and int.cast applied with a zmod argument. As an example, zmod.cast_val has been renamed to zmod.nat_cast_zmod_val, as the lemma statement is defeq to (nat.cast : ℕ → zmod n) (zmod.val x) = x, and zmod.nat_cast_val is already taken by nat.cast (zmod.val x) = (x : R). The full list of renames:

  • zmod.cast_valzmod.nat_cast_zmod_val
  • zmod.cast_selfzmod.nat_cast_self
  • zmod.cast_self'zmod.nat_cast_self'
  • zmod.cast_mod_natzmod.nat_cast_mod
  • zmod.cast_mod_intzmod.int_cast_mod
  • zmod.val_cast_natzmod.val_nat_cast
  • zmod.coe_to_natzmod.nat_cast_to_nat
  • zmod.cast_unit_of_coprimecoe_unit_of_coprime
  • zmod.cast_nat_abs_val_min_abszmod.nat_cast_nat_abs_val_min_abs

Estimated changes

added theorem zmod.cast_id'
deleted theorem zmod.cast_mod_int
deleted theorem zmod.cast_mod_nat
deleted theorem zmod.cast_self'
deleted theorem zmod.cast_self
deleted theorem zmod.cast_unit_of_coprime
deleted theorem zmod.cast_val
deleted theorem zmod.coe_to_nat
added theorem zmod.int_cast_cast
added theorem zmod.int_cast_mod
modified theorem zmod.int_cast_surjective
added theorem zmod.nat_cast_comp_val
added theorem zmod.nat_cast_mod
added theorem zmod.nat_cast_self'
added theorem zmod.nat_cast_self
deleted theorem zmod.nat_cast_surjective
added theorem zmod.nat_cast_to_nat
modified theorem zmod.nat_cast_val
added theorem zmod.nat_cast_zmod_val
added theorem zmod.ring_hom_map_cast
deleted theorem zmod.val_cast_nat
added theorem zmod.val_nat_cast