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] - fix(*): fix padding around notations #16333

Closed
wants to merge 2 commits into from
Closed

Conversation

digama0
Copy link
Member

@digama0 digama0 commented Aug 31, 2022

I noticed a bunch of issues around padding in mathport, so I went through and fixed all the padding issues I could find in mathlib.

@digama0 digama0 added the awaiting-review The author would like community review of the PR label Sep 1, 2022
@@ -63,7 +63,7 @@ open_locale classical big_operators
linear_ordered_semiring, ordered_comm_semiring, canonically_ordered_comm_semiring,
has_sub, has_ordered_sub, has_div, inhabited]]
def nnreal := {r : ℝ // 0 ≤ r}
localized "notation (name := nnreal) ` ℝ≥0 ` := nnreal" in nnreal
localized "notation (name := nnreal) `ℝ≥0` := nnreal" in nnreal
Copy link
Member

Choose a reason for hiding this comment

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

What does (name := nnreal) mean? It is used here but not in nnrat notation.

Copy link
Member

Choose a reason for hiding this comment

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

Otherwise LGTM. Thanks!
bors d+

Copy link
Member Author

Choose a reason for hiding this comment

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

Localized notations require names now, see #16252. It looks like nnrat got merged around the same time and missed the memo.

@bors
Copy link

bors bot commented Sep 1, 2022

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

@bryangingechen bryangingechen added awaiting-author A reviewer has asked the author a question or requested changes delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Sep 4, 2022
src/data/rat/nnrat.lean Outdated Show resolved Hide resolved
@digama0
Copy link
Member Author

digama0 commented Sep 8, 2022

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-author A reviewer has asked the author a question or requested changes labels Sep 8, 2022
bors bot pushed a commit that referenced this pull request Sep 8, 2022
I noticed a bunch of issues around padding in mathport, so I went through and fixed all the padding issues I could find in mathlib.

Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
@bors
Copy link

bors bot commented Sep 8, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title fix(*): fix padding around notations [Merged by Bors] - fix(*): fix padding around notations Sep 8, 2022
@bors bors bot closed this Sep 8, 2022
@bors bors bot deleted the padding branch September 8, 2022 13:16
bottine pushed a commit that referenced this pull request Sep 13, 2022
I noticed a bunch of issues around padding in mathport, so I went through and fixed all the padding issues I could find in mathlib.

Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
b-mehta pushed a commit that referenced this pull request Sep 21, 2022
I noticed a bunch of issues around padding in mathport, so I went through and fixed all the padding issues I could find in mathlib.

Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. 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