[Merged by Bors] - chore: Move power lemmas earlier#12736
[Merged by Bors] - chore: Move power lemmas earlier#12736YaelDillies wants to merge 5 commits intomasterfrom
Conversation
Move a bunch of `pow` lemmas from `Algebra.Group.Commute.Defs` and `Algebra.GroupPower.Basic` to `Algebra.Group.Defs` and `Algebra.Group.Basic` with little to no changes to their proofs.
Vierkantor
left a comment
There was a problem hiding this comment.
So if I have it right, the split is essentially:
- lemmas about
powand monoid operations go toDefs - lemmas about
zpowor group operations go toBasic
? I suppose that is as good a criterion as any.
Again I'm not convinced that making a huge Group.Basic / Group.Defs file is the best way to go but I agree that moving the power lemmas upstream is a good idea. So I'm still willing to be convinced. Is the reason that you want to put these lemmas there because that ensures everyone imports them, or something else?
I don't really think that's true. If anything, the
Basically yes. More precisely, I want
To me, that's a second-order problem. Once we have put |
After #12736, `powMonoidHom` and `zpowGroupHom` can move to `Algebra.Group.Hom.Basic` at no cost. This PR moves them and deletes the now empty `Algebra.GroupPower.Hom`.
After #12736, all lemmas in `Algebra.GroupWithZero.Power` can move to the earlier files where they belong. The changes to their proofs are minimal. It's just a matter of using the new Lean 4 `Nat`- and `Int`-specific lemmas instead of the generic algebraic order ones.
Vierkantor
left a comment
There was a problem hiding this comment.
Alright. Your follow-up PRs have convinced me this is a good idea overall (although I hope that cleaning up Group.Defs and Group.Basic isn't an empty idea!)
bors r+
Move a bunch of `pow` lemmas from `Algebra.Group.Commute.Defs` and `Algebra.GroupPower.Basic` to `Algebra.Group.Defs` and `Algebra.Group.Basic` with little to no changes to their proofs.
|
Pull request successfully merged into master. Build succeeded: |
After #12736, all lemmas in `Algebra.GroupWithZero.Power` can move to the earlier files where they belong. The changes to their proofs are minimal. It's just a matter of using the new Lean 4 `Nat`- and `Int`-specific lemmas instead of the generic algebraic order ones.
After #12736, `powMonoidHom` and `zpowGroupHom` can move to `Algebra.Group.Hom.Basic` at no cost. This PR moves them and deletes the now empty `Algebra.GroupPower.Hom`.
Move a bunch of `pow` lemmas from `Algebra.Group.Commute.Defs` and `Algebra.GroupPower.Basic` to `Algebra.Group.Defs` and `Algebra.Group.Basic` with little to no changes to their proofs.
After #12736, all lemmas in `Algebra.GroupWithZero.Power` can move to the earlier files where they belong. The changes to their proofs are minimal. It's just a matter of using the new Lean 4 `Nat`- and `Int`-specific lemmas instead of the generic algebraic order ones.
After #12736, `powMonoidHom` and `zpowGroupHom` can move to `Algebra.Group.Hom.Basic` at no cost. This PR moves them and deletes the now empty `Algebra.GroupPower.Hom`.
Move a bunch of `pow` lemmas from `Algebra.Group.Commute.Defs` and `Algebra.GroupPower.Basic` to `Algebra.Group.Defs` and `Algebra.Group.Basic` with little to no changes to their proofs.
After #12736, all lemmas in `Algebra.GroupWithZero.Power` can move to the earlier files where they belong. The changes to their proofs are minimal. It's just a matter of using the new Lean 4 `Nat`- and `Int`-specific lemmas instead of the generic algebraic order ones.
After #12736, `powMonoidHom` and `zpowGroupHom` can move to `Algebra.Group.Hom.Basic` at no cost. This PR moves them and deletes the now empty `Algebra.GroupPower.Hom`.
Move a bunch of
powlemmas fromAlgebra.Group.Commute.DefsandAlgebra.GroupPower.BasictoAlgebra.Group.DefsandAlgebra.Group.Basicwith little to no changes to their proofs.I would like some opinions on what should go in
Algebra.Group.DefsvsAlgebra.Group.Basic.