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(Analysis/Normed/Group): make instance helpers reducible #10726

Closed
wants to merge 8 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Feb 19, 2024

Zulip thread

This slightly simplifies two downstream proofs, as a bonus.


Open in Gitpod

@mattrobball
Copy link
Collaborator

Thanks. Once it is green, please send it off.

bors delegate+

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Feb 19, 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.

@eric-wieser
Copy link
Member Author

!bench

@j-loreaux
Copy link
Collaborator

I'm confused. I think all of these are marked @[to_additive (attr := reducible)]. Is there a reason that doesn't work and we should prefer abbrev?

@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit 4bee8c1.
There were no significant changes against commit 65037e3.

@mattrobball
Copy link
Collaborator

I missed that some of them had reducible also. We should check that indeed these are indeed reducible as are the additive versions.

@mattrobball
Copy link
Collaborator

This doesn't solve the example from Zulip right? Either way, it is a principled change given the caveats in my previous comment.

@mattrobball
Copy link
Collaborator

Uh oh. Making a separate AddGroupNorm.toNormedAddCommGroup, tagging it with reducible, and deleting the to_additive on GroupNorm.toNormedCommGroup fixes the original example.

@mattrobball
Copy link
Collaborator

Oh ok. to_additive and abbrev don't get along. Using to_additive (attr := reducible) is ok also.

@mattrobball
Copy link
Collaborator

@eric-wieser can you change from abbrev to to_additive (attr := reducible) in the appropriate places. Ping me if you want me to look again or merge if you feel confident.

@mattrobball
Copy link
Collaborator

!bench

@mattrobball
Copy link
Collaborator

@j-loreaux and @alreadydone since you both have carefully looked over this once, would mind doing so again? I want to be sure I didn't miss any def's constructing instances and that I didn't do something silly.

If you know what the best way to fix the broken simp proof in Cauchy integrals too, that would be great!

@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit 07bf220.
There were no significant changes against commit 65037e3.

@eric-wieser
Copy link
Member Author

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Feb 23, 2024
mathlib-bors bot pushed a commit that referenced this pull request Feb 23, 2024
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Feb 23, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix(Analysis/Normed/Group): make instance helpers reducible [Merged by Bors] - fix(Analysis/Normed/Group): make instance helpers reducible Feb 23, 2024
@mathlib-bors mathlib-bors bot closed this Feb 23, 2024
@mathlib-bors mathlib-bors bot deleted the eric-wieser-patch-1 branch February 23, 2024 01:41
thorimur pushed a commit that referenced this pull request Feb 24, 2024
thorimur pushed a commit that referenced this pull request Feb 26, 2024
riccardobrasca pushed a commit that referenced this pull request Mar 1, 2024
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
Louddy pushed a commit that referenced this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants