Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

riccardobrasca
Copy link
Member

@riccardobrasca riccardobrasca commented Nov 27, 2023

The assumption hn in finEquivZpowers_symm_apply always holds.


Open in Gitpod

@riccardobrasca riccardobrasca added awaiting-review The author would like community review of the PR t-algebra Algebra (groups, rings, fields etc) labels Nov 27, 2023
Copy link
Collaborator

@YaelDillies YaelDillies left a 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⟩
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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?

Copy link
Member Author

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.

Mathlib/GroupTheory/OrderOfElement.lean Outdated Show resolved Hide resolved
riccardobrasca and others added 2 commits November 27, 2023 16:32
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@YaelDillies
Copy link
Collaborator

maintainer merge

Copy link

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@kmill
Copy link
Contributor

kmill commented Nov 27, 2023

bors r+

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Nov 27, 2023
mathlib-bors bot pushed a commit that referenced this pull request Nov 27, 2023
@mathlib-bors
Copy link

mathlib-bors bot commented Nov 27, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: remove an assumption [Merged by Bors] - feat: remove an assumption Nov 27, 2023
@mathlib-bors mathlib-bors bot closed this Nov 27, 2023
@mathlib-bors mathlib-bors bot deleted the RB/Zpowers branch November 27, 2023 17:05
awueth pushed a commit that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants