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/ordered_monoid): add_eq_bot_iff #8474

Closed
wants to merge 2 commits into from

Conversation

pechersky
Copy link
Collaborator

@pechersky pechersky commented Jul 30, 2021

bot addition is saturating on the bottom. On the way, typeclass arguments
were relaxed to just [add_semigroup α], and helper simp lemmas
added for bot.

The iff lemma added (add_eq_bot) is not exactly according to the naming convention, but matches the top lemma and related ones in the naming style, so the style is kept consistent.

There is an API proof available, but the defeq proof (using the top equivalent) was used based on suggestions.


Open in Gitpod

bot addition is saturating on the bottom. On the way, typeclass arguments
were relaxed to just `[add_monoid α]`, and helper simp lemmas
added for `bot`.
@pechersky pechersky added the awaiting-review The author would like community review of the PR label Jul 30, 2021
@eric-wieser
Copy link
Member

Should this be called add_eq_bot to match with_top.add_eq_top?

@pechersky
Copy link
Collaborator Author

Should this be called add_eq_bot to match with_top.add_eq_top?

I think the naming convention is that add_eq_top should rather be called add_eq_top_iff.

@fpvandoorn fpvandoorn added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Aug 2, 2021
@pechersky pechersky added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Aug 2, 2021
@fpvandoorn
Copy link
Member

bors d+

@bors
Copy link

bors bot commented Aug 2, 2021

✌️ pechersky 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 2, 2021
@pechersky
Copy link
Collaborator Author

bors r+

bors bot pushed a commit that referenced this pull request Aug 2, 2021
bot addition is saturating on the bottom. On the way, typeclass arguments
were relaxed to just `[add_semigroup α]`, and helper simp lemmas
added for `bot`.

The iff lemma added (`add_eq_bot`) is not exactly according to the naming convention, but matches the top lemma and related ones in the naming style, so the style is kept consistent.

There is an API proof available, but the defeq proof (using the top equivalent) was used based on suggestions.
@bors
Copy link

bors bot commented Aug 2, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/ordered_monoid): add_eq_bot_iff [Merged by Bors] - feat(algebra/ordered_monoid): add_eq_bot_iff Aug 2, 2021
@bors bors bot closed this Aug 2, 2021
@bors bors bot deleted the pechersky/add-eq-bot-iff branch August 2, 2021 14:22
Vierkantor pushed a commit that referenced this pull request Aug 2, 2021
bot addition is saturating on the bottom. On the way, typeclass arguments
were relaxed to just `[add_semigroup α]`, and helper simp lemmas
added for `bot`.

The iff lemma added (`add_eq_bot`) is not exactly according to the naming convention, but matches the top lemma and related ones in the naming style, so the style is kept consistent.

There is an API proof available, but the defeq proof (using the top equivalent) was used based on suggestions.
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants