Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2022-07-01 08:11 ce332c11

View on Github →

refactor(algebra/group_power): split ring lemmas into a separate file (#15032) This doesn't actually stop algebra.ring.basic being imported into group_power.basic yet, but it makes it easier to make that change in future. Two ~300 line files are also slightly easier to manage than one ~600 line file, and ring/add_group feels like a natural place to draw the line All lemmas have just been moved, and none have been renamed. Some lemmas have had their R variables renamed to M to better reflect that they apply to monoids with zero. By grouping together the monoid_with_zero lemmas from separate files, it become apparent that there's some overlap. This PR does not attempt to clean this up, in the interest of limiting the the scope of this change to just moves.

Estimated changes

deleted theorem add_sq'
deleted theorem add_sq
deleted theorem eq_or_eq_neg_of_sq_eq_sq
deleted theorem min_pow_dvd_add
deleted theorem neg_one_pow_eq_or
deleted theorem neg_one_sq
deleted theorem neg_pow
deleted theorem neg_pow_bit0
deleted theorem neg_pow_bit1
deleted theorem neg_sq
deleted theorem pow_dvd_pow_iff
deleted theorem pow_eq_zero
deleted theorem pow_eq_zero_iff'
deleted theorem pow_eq_zero_iff
deleted theorem pow_eq_zero_of_le
deleted theorem pow_ne_zero
deleted theorem pow_ne_zero_iff
deleted theorem sq_eq_one_iff
deleted theorem sq_eq_sq_iff_eq_or_eq_neg
deleted theorem sq_eq_zero_iff
deleted theorem sq_ne_one_iff
deleted theorem sq_sub_sq
deleted theorem sub_sq'
deleted theorem sub_sq
deleted theorem zero_pow
deleted theorem zero_pow_eq
added theorem add_sq'
added theorem add_sq
added theorem min_pow_dvd_add
added theorem ne_zero_pow
added theorem neg_one_pow_eq_or
added theorem neg_one_sq
added theorem neg_pow
added theorem neg_pow_bit0
added theorem neg_pow_bit1
added theorem neg_sq
added theorem pow_dvd_pow_iff
added theorem pow_eq_zero
added theorem pow_eq_zero_iff'
added theorem pow_eq_zero_iff
added theorem pow_eq_zero_of_le
added theorem pow_ne_zero
added theorem pow_ne_zero_iff
added theorem ring.inverse_pow
added theorem sq_eq_one_iff
added theorem sq_eq_zero_iff
added theorem sq_ne_one_iff
added theorem sq_sub_sq
added theorem sub_sq'
added theorem sub_sq
added theorem zero_pow'
added theorem zero_pow
added theorem zero_pow_eq
added theorem zero_pow_eq_zero
deleted theorem ne_zero_pow
deleted theorem ring.inverse_pow
deleted theorem zero_pow'
deleted theorem zero_pow_eq_zero