-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - chore: Generalise lemmas from finite groups to torsion elements #8342
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jcommelin
approved these changes
Nov 13, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🎉
bors merge
mathlib-bors bot
pushed a commit
that referenced
this pull request
Nov 13, 2023
Many lemmas in `GroupTheory.OrderOfElement` were stated for elements of finite groups even though they work more generally for torsion elements of possibly infinite groups. This PR generalises those lemmas (and leaves convenience lemmas stated for finite groups), and fixes a bunch of names to use dot notation. ## Renames * `Function.eq_of_lt_minimalPeriod_of_iterate_eq` → `Function.iterate_injOn_Iio_minimalPeriod` * `Function.eq_iff_lt_minimalPeriod_of_iterate_eq` → `Function.iterate_eq_iterate_iff_of_lt_minimalPeriod` * `isOfFinOrder_iff_coe` → `Submonoid.isOfFinOrder_coe` * `orderOf_pos'` → `IsOfFinOrder.orderOf_pos` * `pow_eq_mod_orderOf` → `pow_mod_orderOf` (and turned around) * `pow_injective_of_lt_orderOf` → `pow_injOn_Iio_orderOf` * `mem_powers_iff_mem_range_order_of'` → `IsOfFinOrder.mem_powers_iff_mem_range_orderOf` * `orderOf_pow''` → `IsOfFinOrder.orderOf_pow` * `orderOf_pow_coprime` → `Nat.Coprime.orderOf_pow` * `zpow_eq_mod_orderOf` → `zpow_mod_orderOf` (and turned around) * `exists_pow_eq_one` → `isOfFinOrder_of_finite` * `pow_apply_eq_pow_mod_orderOf_cycleOf_apply` → `pow_mod_orderOf_cycleOf_apply` ## New lemmas * `IsOfFinOrder.powers_eq_image_range_orderOf` * `IsOfFinOrder.natCard_powers_le_orderOf` * `IsOfFinOrder.finite_powers` * `finite_powers` * `infinite_powers` * `Nat.card_submonoidPowers` * `IsOfFinOrder.mem_powers_iff_mem_zpowers` * `IsOfFinOrder.powers_eq_zpowers` * `IsOfFinOrder.mem_zpowers_iff_mem_range_orderOf` * `IsOfFinOrder.exists_pow_eq_one` ## Other changes * Move `decidableMemPowers`/`fintypePowers` to `GroupTheory.Submonoid.Membership` and `decidableMemZpowers`/`fintypeZpowers` to `GroupTheory.Subgroup.ZPowers`. * `finEquivPowers`, `finEquivZpowers`, `powersEquivPowers` and `zpowersEquivZpowers` now assume `IsOfFinTorsion x` instead of `Finite G`. * `isOfFinOrder_iff_pow_eq_one` now takes one less explicit argument. * Delete `Equiv.Perm.IsCycle.exists_pow_eq_one` since it was saying that a permutation over a finite type is torsion, but this is trivial since the group of permutation is itself finite, so we can use `isOfFinOrder_of_finite` instead.
Pull request successfully merged into master. Build succeeded: |
alexkeizer
pushed a commit
that referenced
this pull request
Nov 17, 2023
Many lemmas in `GroupTheory.OrderOfElement` were stated for elements of finite groups even though they work more generally for torsion elements of possibly infinite groups. This PR generalises those lemmas (and leaves convenience lemmas stated for finite groups), and fixes a bunch of names to use dot notation. ## Renames * `Function.eq_of_lt_minimalPeriod_of_iterate_eq` → `Function.iterate_injOn_Iio_minimalPeriod` * `Function.eq_iff_lt_minimalPeriod_of_iterate_eq` → `Function.iterate_eq_iterate_iff_of_lt_minimalPeriod` * `isOfFinOrder_iff_coe` → `Submonoid.isOfFinOrder_coe` * `orderOf_pos'` → `IsOfFinOrder.orderOf_pos` * `pow_eq_mod_orderOf` → `pow_mod_orderOf` (and turned around) * `pow_injective_of_lt_orderOf` → `pow_injOn_Iio_orderOf` * `mem_powers_iff_mem_range_order_of'` → `IsOfFinOrder.mem_powers_iff_mem_range_orderOf` * `orderOf_pow''` → `IsOfFinOrder.orderOf_pow` * `orderOf_pow_coprime` → `Nat.Coprime.orderOf_pow` * `zpow_eq_mod_orderOf` → `zpow_mod_orderOf` (and turned around) * `exists_pow_eq_one` → `isOfFinOrder_of_finite` * `pow_apply_eq_pow_mod_orderOf_cycleOf_apply` → `pow_mod_orderOf_cycleOf_apply` ## New lemmas * `IsOfFinOrder.powers_eq_image_range_orderOf` * `IsOfFinOrder.natCard_powers_le_orderOf` * `IsOfFinOrder.finite_powers` * `finite_powers` * `infinite_powers` * `Nat.card_submonoidPowers` * `IsOfFinOrder.mem_powers_iff_mem_zpowers` * `IsOfFinOrder.powers_eq_zpowers` * `IsOfFinOrder.mem_zpowers_iff_mem_range_orderOf` * `IsOfFinOrder.exists_pow_eq_one` ## Other changes * Move `decidableMemPowers`/`fintypePowers` to `GroupTheory.Submonoid.Membership` and `decidableMemZpowers`/`fintypeZpowers` to `GroupTheory.Subgroup.ZPowers`. * `finEquivPowers`, `finEquivZpowers`, `powersEquivPowers` and `zpowersEquivZpowers` now assume `IsOfFinTorsion x` instead of `Finite G`. * `isOfFinOrder_iff_pow_eq_one` now takes one less explicit argument. * Delete `Equiv.Perm.IsCycle.exists_pow_eq_one` since it was saying that a permutation over a finite type is torsion, but this is trivial since the group of permutation is itself finite, so we can use `isOfFinOrder_of_finite` instead.
alexkeizer
pushed a commit
that referenced
this pull request
Nov 21, 2023
Many lemmas in `GroupTheory.OrderOfElement` were stated for elements of finite groups even though they work more generally for torsion elements of possibly infinite groups. This PR generalises those lemmas (and leaves convenience lemmas stated for finite groups), and fixes a bunch of names to use dot notation. ## Renames * `Function.eq_of_lt_minimalPeriod_of_iterate_eq` → `Function.iterate_injOn_Iio_minimalPeriod` * `Function.eq_iff_lt_minimalPeriod_of_iterate_eq` → `Function.iterate_eq_iterate_iff_of_lt_minimalPeriod` * `isOfFinOrder_iff_coe` → `Submonoid.isOfFinOrder_coe` * `orderOf_pos'` → `IsOfFinOrder.orderOf_pos` * `pow_eq_mod_orderOf` → `pow_mod_orderOf` (and turned around) * `pow_injective_of_lt_orderOf` → `pow_injOn_Iio_orderOf` * `mem_powers_iff_mem_range_order_of'` → `IsOfFinOrder.mem_powers_iff_mem_range_orderOf` * `orderOf_pow''` → `IsOfFinOrder.orderOf_pow` * `orderOf_pow_coprime` → `Nat.Coprime.orderOf_pow` * `zpow_eq_mod_orderOf` → `zpow_mod_orderOf` (and turned around) * `exists_pow_eq_one` → `isOfFinOrder_of_finite` * `pow_apply_eq_pow_mod_orderOf_cycleOf_apply` → `pow_mod_orderOf_cycleOf_apply` ## New lemmas * `IsOfFinOrder.powers_eq_image_range_orderOf` * `IsOfFinOrder.natCard_powers_le_orderOf` * `IsOfFinOrder.finite_powers` * `finite_powers` * `infinite_powers` * `Nat.card_submonoidPowers` * `IsOfFinOrder.mem_powers_iff_mem_zpowers` * `IsOfFinOrder.powers_eq_zpowers` * `IsOfFinOrder.mem_zpowers_iff_mem_range_orderOf` * `IsOfFinOrder.exists_pow_eq_one` ## Other changes * Move `decidableMemPowers`/`fintypePowers` to `GroupTheory.Submonoid.Membership` and `decidableMemZpowers`/`fintypeZpowers` to `GroupTheory.Subgroup.ZPowers`. * `finEquivPowers`, `finEquivZpowers`, `powersEquivPowers` and `zpowersEquivZpowers` now assume `IsOfFinTorsion x` instead of `Finite G`. * `isOfFinOrder_iff_pow_eq_one` now takes one less explicit argument. * Delete `Equiv.Perm.IsCycle.exists_pow_eq_one` since it was saying that a permutation over a finite type is torsion, but this is trivial since the group of permutation is itself finite, so we can use `isOfFinOrder_of_finite` instead.
grunweg
pushed a commit
that referenced
this pull request
Dec 15, 2023
Many lemmas in `GroupTheory.OrderOfElement` were stated for elements of finite groups even though they work more generally for torsion elements of possibly infinite groups. This PR generalises those lemmas (and leaves convenience lemmas stated for finite groups), and fixes a bunch of names to use dot notation. ## Renames * `Function.eq_of_lt_minimalPeriod_of_iterate_eq` → `Function.iterate_injOn_Iio_minimalPeriod` * `Function.eq_iff_lt_minimalPeriod_of_iterate_eq` → `Function.iterate_eq_iterate_iff_of_lt_minimalPeriod` * `isOfFinOrder_iff_coe` → `Submonoid.isOfFinOrder_coe` * `orderOf_pos'` → `IsOfFinOrder.orderOf_pos` * `pow_eq_mod_orderOf` → `pow_mod_orderOf` (and turned around) * `pow_injective_of_lt_orderOf` → `pow_injOn_Iio_orderOf` * `mem_powers_iff_mem_range_order_of'` → `IsOfFinOrder.mem_powers_iff_mem_range_orderOf` * `orderOf_pow''` → `IsOfFinOrder.orderOf_pow` * `orderOf_pow_coprime` → `Nat.Coprime.orderOf_pow` * `zpow_eq_mod_orderOf` → `zpow_mod_orderOf` (and turned around) * `exists_pow_eq_one` → `isOfFinOrder_of_finite` * `pow_apply_eq_pow_mod_orderOf_cycleOf_apply` → `pow_mod_orderOf_cycleOf_apply` ## New lemmas * `IsOfFinOrder.powers_eq_image_range_orderOf` * `IsOfFinOrder.natCard_powers_le_orderOf` * `IsOfFinOrder.finite_powers` * `finite_powers` * `infinite_powers` * `Nat.card_submonoidPowers` * `IsOfFinOrder.mem_powers_iff_mem_zpowers` * `IsOfFinOrder.powers_eq_zpowers` * `IsOfFinOrder.mem_zpowers_iff_mem_range_orderOf` * `IsOfFinOrder.exists_pow_eq_one` ## Other changes * Move `decidableMemPowers`/`fintypePowers` to `GroupTheory.Submonoid.Membership` and `decidableMemZpowers`/`fintypeZpowers` to `GroupTheory.Subgroup.ZPowers`. * `finEquivPowers`, `finEquivZpowers`, `powersEquivPowers` and `zpowersEquivZpowers` now assume `IsOfFinTorsion x` instead of `Finite G`. * `isOfFinOrder_iff_pow_eq_one` now takes one less explicit argument. * Delete `Equiv.Perm.IsCycle.exists_pow_eq_one` since it was saying that a permutation over a finite type is torsion, but this is trivial since the group of permutation is itself finite, so we can use `isOfFinOrder_of_finite` instead.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Many lemmas in
GroupTheory.OrderOfElement
were stated for elements of finite groups even though they work more generally for torsion elements of possibly infinite groups. This PR generalises those lemmas (and leaves convenience lemmas stated for finite groups), and fixes a bunch of names to use dot notation.Renames
Function.eq_of_lt_minimalPeriod_of_iterate_eq
→Function.iterate_injOn_Iio_minimalPeriod
Function.eq_iff_lt_minimalPeriod_of_iterate_eq
→Function.iterate_eq_iterate_iff_of_lt_minimalPeriod
isOfFinOrder_iff_coe
→Submonoid.isOfFinOrder_coe
orderOf_pos'
→IsOfFinOrder.orderOf_pos
pow_eq_mod_orderOf
→pow_mod_orderOf
(and turned around)pow_injective_of_lt_orderOf
→pow_injOn_Iio_orderOf
mem_powers_iff_mem_range_order_of'
→IsOfFinOrder.mem_powers_iff_mem_range_orderOf
orderOf_pow''
→IsOfFinOrder.orderOf_pow
orderOf_pow_coprime
→Nat.Coprime.orderOf_pow
zpow_eq_mod_orderOf
→zpow_mod_orderOf
(and turned around)exists_pow_eq_one
→isOfFinOrder_of_finite
pow_apply_eq_pow_mod_orderOf_cycleOf_apply
→pow_mod_orderOf_cycleOf_apply
New lemmas
IsOfFinOrder.powers_eq_image_range_orderOf
IsOfFinOrder.natCard_powers_le_orderOf
IsOfFinOrder.finite_powers
finite_powers
infinite_powers
Nat.card_submonoidPowers
IsOfFinOrder.mem_powers_iff_mem_zpowers
IsOfFinOrder.powers_eq_zpowers
IsOfFinOrder.mem_zpowers_iff_mem_range_orderOf
IsOfFinOrder.exists_pow_eq_one
Other changes
decidableMemPowers
/fintypePowers
toGroupTheory.Submonoid.Membership
anddecidableMemZpowers
/fintypeZpowers
toGroupTheory.Subgroup.ZPowers
.finEquivPowers
,finEquivZpowers
,powersEquivPowers
andzpowersEquivZpowers
now assumeIsOfFinTorsion x
instead ofFinite G
.isOfFinOrder_iff_pow_eq_one
now takes one less explicit argument.Equiv.Perm.IsCycle.exists_pow_eq_one
since it was saying that a permutation over a finite type is torsion, but this is trivial since the group of permutation is itself finite, so we can useisOfFinOrder_of_finite
instead.I need this for Kneser's theorem