-
Notifications
You must be signed in to change notification settings - Fork 234
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] - feat: remove an assumption #8646
Conversation
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.
Good point. I was mostly thinking about rewriting when I wrote that lemma, but we might as well remove the assumption.
@@ -730,7 +730,8 @@ lemma finEquivZpowers_apply (hx) {n : Fin (orderOf x)} : | |||
|
|||
-- This lemma has always been bad, but the linter only noticed after leaprover/lean4#2644. | |||
@[to_additive (attr := simp, nolint simpNF) finEquivZmultiples_symm_apply] | |||
lemma finEquivZpowers_symm_apply (x : G) (hx) (n : ℕ) {hn : ∃ m : ℤ, x ^ m = x ^ n} : | |||
lemma finEquivZpowers_symm_apply (x : G) (hx) (n : ℕ) : | |||
letI hn : ∃ m : ℤ, x ^ m = x ^ n := ⟨n, by simp⟩ |
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.
letI hn : ∃ m : ℤ, x ^ m = x ^ n := ⟨n, by simp⟩ | |
letI hn : ∃ m : ℤ, x ^ m = x ^ n := ⟨n, rfl⟩ |
Can you not even inline it at this point?
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.
rfl
doesn't work here, but inlining is a good idea.
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
maintainer merge |
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
bors r+ |
The assumption `hn` in [finEquivZpowers_symm_apply](https://leanprover-community.github.io/mathlib4_docs/Mathlib/GroupTheory/OrderOfElement.html#finEquivZpowers_symm_apply) always holds.
Pull request successfully merged into master. Build succeeded: |
The assumption `hn` in [finEquivZpowers_symm_apply](https://leanprover-community.github.io/mathlib4_docs/Mathlib/GroupTheory/OrderOfElement.html#finEquivZpowers_symm_apply) always holds.
The assumption
hn
in finEquivZpowers_symm_apply always holds.