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(tactic/reserved_notation): change precedence of sup and inf #10623

Closed
wants to merge 5 commits into from

Conversation

RemyDegenne
Copy link
Collaborator

@RemyDegenne RemyDegenne commented Dec 5, 2021

Put the precedence of and at 68 and 69 respectively, which is above + (65), and (67), and below * (70). This makes sure that inf and sup behave in the same way in expressions where arithmetic operations appear (which was not the case before).

Discussion: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/inf.20and.20sup.20don't.20bind.20similarly


Open in Gitpod

@RemyDegenne RemyDegenne added the awaiting-review The author would like community review of the PR label Dec 5, 2021
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

Was using 71 and 72 too much refactoring work? I think that might be a better choice.

RemyDegenne and others added 2 commits December 6, 2021 10:51
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@RemyDegenne
Copy link
Collaborator Author

Feel free to experiment with other values. I won't spend time on this. If you want to try 71 and 72 I can put this PR on hold until we decide what values we want.

@sgouezel
Copy link
Collaborator

Let's merge this for now. If someone wants to revisit this later, this will still be possible, but this is already a net improvement over what we have currently.
bors r+

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Dec 12, 2021
bors bot pushed a commit that referenced this pull request Dec 12, 2021
…0623)

Put the precedence of `⊔` and `⊓` at 68 and 69 respectively, which is above `+` (65), `∑` and `∏` (67), and below `*` (70). This makes sure that inf and sup behave in the same way in expressions where arithmetic operations appear (which was not the case before).

Discussion: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/inf.20and.20sup.20don't.20bind.20similarly



Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
@bors
Copy link

bors bot commented Dec 12, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(tactic/reserved_notation): change precedence of sup and inf [Merged by Bors] - chore(tactic/reserved_notation): change precedence of sup and inf Dec 12, 2021
@bors bors bot closed this Dec 12, 2021
@bors bors bot deleted the sup_bind_2 branch December 12, 2021 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants