-
Notifications
You must be signed in to change notification settings - Fork 298
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/monoid_algebra): add missing has_coe_to_fun #4315
Conversation
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.
There is still a lot of lemma statements that break when removing the local attribute [reducible] monoid_algebra
. Not sure if that should be fixed.
I'd rather not fix that in this PR, but you're probably right that it likely leads to lots of unhelpful lemmas. |
I'm not certain that I'm really not sure --- but would it be better to introduce |
There are lemmas in this file like https://leanprover-community.github.io/mathlib_docs/find/monoid_algebra.mul_apply which are only useful if a For #4321, I want a |
53afbc0
to
9824b22
Compare
9824b22
to
c31795f
Compare
I've moved all the |
@eric-wieser Would that become much harder with For polynomial I definitely wouldn't want the What ever option we choose, it would be good to have simp-lemmas that state how |
No, what I'd probably do is add a If we don't want mathlib/src/algebra/monoid_algebra.lean Lines 76 to 81 in 946ab02
private lemma? It's not useable anywhere that doesn't have has_coe_to_fun , either via this PR or marking it as reducible.
|
Well, we either want My intuition says: have |
I have no intuition at all about |
You're absolutely right that My preference is definitely to introduce Do you want to have a go at introducing |
c31795f
to
9f22aa6
Compare
@eric-wieser @semorrison What shall we do here? |
I don't have any particular interest in developing As an argument for |
Alternatively, since my only motivation here is #4321, we could close this PR and merge the two line change here as part of that PR, to make the motivation clear from the commit log. |
@semorrison What do you think, shall we merge this for now (since |
bors merge |
Also does the same for the additive version `semimodule k (add_monoid_algebra k G)`.
Pull request successfully merged into master. Build succeeded: |
Also does the same for the additive version
semimodule k (add_monoid_algebra k G)
.has_coe_to_fun
discussed at https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Difficultly.20applying.20.60monoid_algebra.60/near/211594391