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(data/dfinsupp): Relax requirements of semimodule conversion to add_comm_monoid #3490
Conversation
Isn't the problem here that Perhaps we should refactor that first before attempting this change. |
(To be honest, I'm disinclined to do this myself because I just want to rip out everything we have on direct sums and replace it with stuff using the category theory library, so we don't have to go around writing boilerplate about how the projection maps have |
Oh, I see, I'm slow, that's in #3487. Could you explain why that PR is blocked on this one? I would have guessed it was the other way round. |
It's blocked primarily because I don't want to bite off too much in a single PR, and this only had two downstream proofs that were affected. The other PR looked far harder to resolve, and conflicts with #3473 anyway. |
I guess I still don't understand why #3487 is blocked on this. Can't we start generalizing that file without touching anything here? |
(Sorry about the slow responses on these PRs. I'll try to check back sooner.) |
7d89257
to
5c74907
Compare
Blocked is a strong word. It seemed this was easier to get past the finish line, and the PRs were likely to conflict. |
I'm going to mark this back as
Once you've sorted out which approach is best, could you mark that one as |
… eric-wieser/relax-dfinsupp.to_semimodule
6d605f7
to
0ef30d2
Compare
My argument is that we have a pile of code that assumes
I don't see why the second option is a problem here. Can't we do this incrementally? (I've found myself needing this specific change again, and I don't want to have to revive the other other PRs about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generalizing to add_comm_monoid
is a good idea and few more underscores doesn't hurt the readability too much IMO, so I'm in favour of this PR.
Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
bors merge |
…dd_comm_monoid (#3490) The extra `_`s required to make this still build are unfortunate, but hopefully someone else can work out how to remove them in a later PR. Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Pull request successfully merged into master. Build succeeded: |
…dd_comm_monoid (leanprover-community#3490) The extra `_`s required to make this still build are unfortunate, but hopefully someone else can work out how to remove them in a later PR. Co-authored-by: Mario Carneiro <di.gama@gmail.com>
The extra
_
s required to make this still build are unfortunate, but hopefully someone else can work out how to remove them in a later PR.Continues the work in #2848, cc @sgouezel