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] - refactor(data/option/defs): Swap arguments to option.elim #14681

Closed
wants to merge 4 commits into from

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Jun 11, 2022

Make option.elim a non-dependent version of option.rec rather than a non-dependent version of option.rec_on. Same for option.melim.

This replaces option.cons, and brings option.elim in line with nat.elim, sum.elim, and iff.elim.
It addresses the TODO comment added in 22c4291.


Zulip

Open in Gitpod

@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Jun 11, 2022
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Jun 11, 2022
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.

Can you change option.melim to match?

There wasn't any objection on Zulip, so

bors d+

@bors
Copy link

bors bot commented Jun 13, 2022

✌️ YaelDillies 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-bot-assistant leanprover-community-bot-assistant 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 Jun 13, 2022
@YaelDillies
Copy link
Collaborator Author

Did I not do that already?

@eric-wieser
Copy link
Member

Well your PR description doesn't mention it!

@YaelDillies
Copy link
Collaborator Author

Fair.

bors merge

bors bot pushed a commit that referenced this pull request Jun 13, 2022
Make `option.elim` a non-dependent version of `option.rec` rather than a non-dependent version of `option.rec_on`. Same for `option.melim`.

This replaces `option.cons`, and brings `option.elim` in line with `nat.elim`, `sum.elim`, and `iff.elim`.
It addresses the TODO comment added in 22c4291.
@bors
Copy link

bors bot commented Jun 14, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(data/option/defs): Swap arguments to option.elim [Merged by Bors] - refactor(data/option/defs): Swap arguments to option.elim Jun 14, 2022
@bors bors bot closed this Jun 14, 2022
@bors bors bot deleted the swap_option_elim branch June 14, 2022 01:31
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