[Merged by Bors] - chore(linear_algebra/dfinsupp): make lsum a linear_equiv#6185
[Merged by Bors] - chore(linear_algebra/dfinsupp): make lsum a linear_equiv#6185eric-wieser wants to merge 5 commits intomasterfrom
Conversation
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
| instance semimodule_of_linear_map [semiring S] [semimodule S N] [smul_comm_class R S N] : | ||
| by haveI : add_comm_monoid (Π₀ i, M i →ₗ[R] N) := | ||
| @dfinsupp.add_comm_monoid _ (λ i, M i →ₗ[R] N) _; | ||
| exactI semimodule S (Π₀ (i : ι), M i →ₗ[R] N) := | ||
| let unused := S in | ||
| @dfinsupp.semimodule _ (λ i, M i →ₗ[R] N) _ _ _ _ |
There was a problem hiding this comment.
| instance semimodule_of_linear_map [semiring S] [semimodule S N] [smul_comm_class R S N] : | |
| by haveI : add_comm_monoid (Π₀ i, M i →ₗ[R] N) := | |
| @dfinsupp.add_comm_monoid _ (λ i, M i →ₗ[R] N) _; | |
| exactI semimodule S (Π₀ (i : ι), M i →ₗ[R] N) := | |
| let unused := S in | |
| @dfinsupp.semimodule _ (λ i, M i →ₗ[R] N) _ _ _ _ | |
| instance semimodule_of_linear_map [semiring S] [semimodule S N] [smul_comm_class R S N] : | |
| @semimodule S (Π₀ (i : ι), M i →ₗ[R] N) _ (@dfinsupp.add_comm_monoid _ (λ i, M i →ₗ[R] N) _) := | |
| @dfinsupp.semimodule _ (λ i, M i →ₗ[R] N) _ _ _ _ |
|
Besides the suggestion and perhaps toning down the comment (it's not quite as excruciating now, hopefully!), looks good to me. bors d+ |
|
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
|
Found a slightly tidier solution by adding a second manual instance. This refers to a library note added in #6183, so shouldn't be put on the queue until that library note name is confirmed. |
|
bors r+ |
|
👎 Rejected by label |
|
bors r+ |
|
🎉 Great news! Looks like all the dependencies have been resolved: 💡 To add or remove a dependency please update this issue/PR description. Brought to you by Dependent Issues (:robot: ). Happy coding! |
[Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Typeclass.20inference.20can't.20fill.20in.20parameters/near/226019081) with a summary of the problem which required the nasty `semimodule_of_linear_map` present here.
|
Pull request successfully merged into master. Build succeeded: |
[Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Typeclass.20inference.20can't.20fill.20in.20parameters/near/226019081) with a summary of the problem which required the nasty `semimodule_of_linear_map` present here.
Zulip thread with a summary of the problem which required the nasty
semimodule_of_linear_mappresent here.