[Merged by Bors] - chore: Delete Algebra.GroupPower.Basic, Algebra.GroupWithZero.Bitwise#11855
[Merged by Bors] - chore: Delete Algebra.GroupPower.Basic, Algebra.GroupWithZero.Bitwise#11855YaelDillies wants to merge 35 commits intomasterfrom
Algebra.GroupPower.Basic, Algebra.GroupWithZero.Bitwise#11855Conversation
The entire `Algebra.GroupPower` folder is problematic in that it treats `pow` as an advanced subject while the rest of mathlib wants to treat it as a primitive. As such, its existence is an obstacle to developing the theory of `pow` transversally. This PR scatters the lemmas in `Algebra.GroupPower.Basic` to earlier files. See #9411 for previous work.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Ruben-VandeVelde
left a comment
There was a problem hiding this comment.
This is quite big. Would you consider at least splitting out the removals from the moved code?
| theorem Odd.neg_zpow (h : Odd n) (a : α) : (-a) ^ n = -a ^ n := by | ||
| obtain ⟨k, rfl⟩ := h.exists_bit1 | ||
| exact zpow_bit1_neg _ _ | ||
| have hn : n ≠ 0 := by rintro rfl; exact Int.odd_iff_not_even.1 h even_zero |
There was a problem hiding this comment.
This should exist as a lemma, IMO
| section | ||
| set_option linter.deprecated false | ||
| @[simp] | ||
| theorem I_zpow_bit0 (n : ℤ) : I ^ bit0 n = (-1 : ℂ) ^ n := by rw [zpow_bit0', I_mul_I] |
There was a problem hiding this comment.
I don't see the connection. I can't replace this lemma by an ofNat lemma since the statement depends on the parity.
Resplit `Algebra.BigOperators.List.Basic` and `Algebra.BigOperators.List.Lemmas` into two new files: * `Algebra.BigOperators.Group.List` for lemmas that require group-like structures (`Monoid`, `Group`, ...) * `Algebra.BigOperators.Ring.List` for lemmas that require ring-like structures (`MonoidWithZero`, `Ring`, ...) Add `assert_not_exists Ring` in the former. Once #11855 lands, it will be strenghtenable to `assert_not_exists MonoidWithZero`.
Resplit `Algebra.BigOperators.List.Basic` and `Algebra.BigOperators.List.Lemmas` into two new files: * `Algebra.BigOperators.Group.List` for lemmas that require group-like structures (`Monoid`, `Group`, ...) * `Algebra.BigOperators.Ring.List` for lemmas that require ring-like structures (`MonoidWithZero`, `Ring`, ...) Add `assert_not_exists Ring` in the former. Once #11855 lands, it will be strenghtenable to `assert_not_exists MonoidWithZero`.
|
You can run this locally as follows ## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>
## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit> |
Algebra.GroupPower.BasicAlgebra.GroupPower.Basic, Algebra.GroupWithZero.Bitwise
…ise` (#11855) The entire `Algebra.GroupPower` folder is problematic in that it treats `pow` as an advanced subject while the rest of mathlib wants to treat it as a primitive. As such, its existence is an obstacle to developing the theory of `pow` transversally. This PR scatters the lemmas in `Algebra.GroupPower.Basic` to earlier files and deletes it. Also delete `Algebra.GroupWithZero.Bitwise` whose lemmas are completely deprecated (and hard to rehome). See #9411 for previous work.
|
Pull request successfully merged into master. Build succeeded: |
Algebra.GroupPower.Basic, Algebra.GroupWithZero.BitwiseAlgebra.GroupPower.Basic, Algebra.GroupWithZero.Bitwise
…ise` (#11855) The entire `Algebra.GroupPower` folder is problematic in that it treats `pow` as an advanced subject while the rest of mathlib wants to treat it as a primitive. As such, its existence is an obstacle to developing the theory of `pow` transversally. This PR scatters the lemmas in `Algebra.GroupPower.Basic` to earlier files and deletes it. Also delete `Algebra.GroupWithZero.Bitwise` whose lemmas are completely deprecated (and hard to rehome). See #9411 for previous work.
…ise` (#11855) The entire `Algebra.GroupPower` folder is problematic in that it treats `pow` as an advanced subject while the rest of mathlib wants to treat it as a primitive. As such, its existence is an obstacle to developing the theory of `pow` transversally. This PR scatters the lemmas in `Algebra.GroupPower.Basic` to earlier files and deletes it. Also delete `Algebra.GroupWithZero.Bitwise` whose lemmas are completely deprecated (and hard to rehome). See #9411 for previous work.
All lemmas in this file belong earlier. This finally gets rid of the `Algebra.GroupPower` folder, notorious for having caused imports increases in the algebra library (see #11855 for full motivation).
The entire
Algebra.GroupPowerfolder is problematic in that it treatspowas an advanced subject while the rest of mathlib wants to treat it as a primitive. As such, its existence is an obstacle to developing the theory ofpowtransversally.This PR scatters the lemmas in
Algebra.GroupPower.Basicto earlier files and deletes it. Also deleteAlgebra.GroupWithZero.Bitwisewhose lemmas are completely deprecated (and hard to rehome).See #9411 for previous work.