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] - chore: avoid some unused variables #11594

Closed
wants to merge 2 commits into from

Conversation

Ruben-VandeVelde
Copy link
Collaborator

These will be caught by the linter in a future lean version.


Open in Gitpod

@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review The author would like community review of the PR awaiting-CI labels Mar 22, 2024
Copy link
Collaborator

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

LGTM. Just one nit, which is not important.

simp_rw [SubmonoidClass.coe_pow, Units.val_pow_eq_pow_val, OneMemClass.coe_one,
Units.val_one, h]
· exact h
refine hzero.resolve_left fun h => ha ?_
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use "\maps" instead of "=>" while you're at it?

Copy link
Contributor

Choose a reason for hiding this comment

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

(Not official or anything, but my preference is against "while you're at it" suggestions. They really do, in my opinion, add friction to getting stuff done.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I understand this point!
My point was this is a new proof written - so reviewing doesn't become any harder this way. Authoring it does; thanks for pointing this out.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let me add: I can make sure to, in the future,

  • make such comments directly as suggestions (minimizing the overhead for authors and reviewers)
  • limit these comments to new proofs, or PRs cleaning up miscellaneous things, where such a change is in scope.

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

bors d+

@mathlib-bors
Copy link

mathlib-bors bot commented Mar 23, 2024

✌️ Ruben-VandeVelde can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Mar 23, 2024
@semorrison
Copy link
Contributor

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Mar 23, 2024
mathlib-bors bot pushed a commit that referenced this pull request Mar 23, 2024
These will be caught by the linter in a future lean version.
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 23, 2024

Build failed:

@grunweg
Copy link
Collaborator

grunweg commented Mar 23, 2024

I think #11609 fixes the build error here. Feel free to cherry-pick.

@semorrison
Copy link
Contributor

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Mar 23, 2024
These will be caught by the linter in a future lean version.
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 23, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: avoid some unused variables [Merged by Bors] - chore: avoid some unused variables Mar 23, 2024
@mathlib-bors mathlib-bors bot closed this Mar 23, 2024
@mathlib-bors mathlib-bors bot deleted the unused-vars branch March 23, 2024 22:37
utensil pushed a commit that referenced this pull request Mar 26, 2024
These will be caught by the linter in a future lean version.
Louddy pushed a commit that referenced this pull request Apr 15, 2024
These will be caught by the linter in a future lean version.
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
These will be caught by the linter in a future lean version.
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
These will be caught by the linter in a future lean version.
callesonne pushed a commit that referenced this pull request Apr 22, 2024
These will be caught by the linter in a future lean version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants