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(algebra/floor): notation for nat_floor and nat_ceil #8526

Closed
wants to merge 2 commits into from

Conversation

sgouezel
Copy link
Collaborator

@sgouezel sgouezel commented Aug 3, 2021

We introduce the notations ⌊a⌋₊ for nat_floor a and ⌈a⌉₊ for nat_ceil a, mimicking the existing notations for floor and ceil (with the + corresponding to the recent notation for nnnorm).

@sgouezel sgouezel added the awaiting-review The author would like community review of the PR label Aug 3, 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.

LGTM

I think it might be a good idea to add a reference from the module docstring here to the nnnorm notation and vice versa just so the reader understands the precedent that's set.

bors d+

@bors
Copy link

bors bot commented Aug 3, 2021

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

@github-actions github-actions bot added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Aug 3, 2021
@@ -347,23 +351,25 @@ end
It is equal to `⌈q⌉` when `q ≥ 0`, and is `0` otherwise. -/
Copy link
Member

Choose a reason for hiding this comment

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

I think you should mention the new notation in this docstring.

@@ -271,72 +273,74 @@ variables {a : α} {n : ℕ}
It is equal to `⌊q⌋` when `q ≥ 0`, and is `0` otherwise. -/
Copy link
Member

Choose a reason for hiding this comment

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

Similarly with this one, `nat_floor x` (notation `⌊x⌋₊`) or similar would be good on the line above this one.

@sgouezel
Copy link
Collaborator Author

sgouezel commented Aug 3, 2021

bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Aug 3, 2021
bors bot pushed a commit that referenced this pull request Aug 3, 2021
We introduce the notations ` ⌊a⌋₊` for `nat_floor a` and `⌈a⌉₊` for `nat_ceil a`, mimicking the existing notations for `floor` and `ceil` (with the `+` corresponding to the recent notation for `nnnorm`).
@bors
Copy link

bors bot commented Aug 3, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/floor): notation for nat_floor and nat_ceil [Merged by Bors] - feat(algebra/floor): notation for nat_floor and nat_ceil Aug 3, 2021
@bors bors bot closed this Aug 3, 2021
@bors bors bot deleted the nat_ceil_notation branch August 3, 2021 16:52
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

2 participants