Skip to content

[Merged by Bors] - chore: add induction_eliminator to With{Top,Bot,Zero,One}#13096

Closed
eric-wieser wants to merge 7 commits intomasterfrom
eric-wieser/induction_eliminator
Closed

[Merged by Bors] - chore: add induction_eliminator to With{Top,Bot,Zero,One}#13096
eric-wieser wants to merge 7 commits intomasterfrom
eric-wieser/induction_eliminator

Conversation

@eric-wieser
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser commented May 21, 2024

This is a smaller version of #12605.

This allows using to be dropped from induction.


Open in Gitpod

@eric-wieser eric-wieser added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels May 21, 2024
@eric-wieser eric-wieser changed the title chore: add induction_eliminator to WithTop and WithBot chore: add induction_eliminator to With{Top,Bot,Zero,One} May 21, 2024
@eric-wieser eric-wieser requested a review from urkud May 21, 2024 22:39
Copy link
Copy Markdown
Member

@kbuzzard kbuzzard left a comment

Choose a reason for hiding this comment

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

bors d+

-- know if it does or not, and I don't know how to check, so
-- I'll add it manually just to be sure.
attribute [elab_as_elim] WithZero.recZeroCoe
attribute [elab_as_elim, induction_eliminator] WithZero.recZeroCoe
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you now know for sure that induction_eliminator is not being added by to_additive? If so then you could add this information to the comment above.

Copy link
Copy Markdown
Member Author

@eric-wieser eric-wieser May 21, 2024

Choose a reason for hiding this comment

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

No, this whole comment and attribute line can be removed, I just didn't want to scope creep here

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 21, 2024

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

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels May 21, 2024
@kbuzzard
Copy link
Copy Markdown
Member

This looks like a great change to me!

@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label May 22, 2024
@urkud
Copy link
Copy Markdown
Member

urkud commented May 22, 2024

Does it work with cases?

@eric-wieser
Copy link
Copy Markdown
Member Author

More cleanup is needed to make cases_eliminator work, so I left that for a future PR.

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label May 22, 2024
mathlib-bors bot pushed a commit that referenced this pull request May 22, 2024
This is a smaller version of #12605.

This allows `using` to be dropped from `induction`.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 22, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: add induction_eliminator to With{Top,Bot,Zero,One} [Merged by Bors] - chore: add induction_eliminator to With{Top,Bot,Zero,One} May 22, 2024
@mathlib-bors mathlib-bors bot closed this May 22, 2024
@mathlib-bors mathlib-bors bot deleted the eric-wieser/induction_eliminator branch May 22, 2024 07:21
callesonne pushed a commit that referenced this pull request Jun 4, 2024
This is a smaller version of #12605.

This allows `using` to be dropped from `induction`.
js2357 pushed a commit that referenced this pull request Jun 18, 2024
This is a smaller version of #12605.

This allows `using` to be dropped from `induction`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants