-
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] - chore(algebra/module/prod): add missing instances #6055
Conversation
This adds the following instances for `prod`: * `is_scalar_tower` * `smul_comm_class` * `mul_action` * `distrib_mul_action` It also renames the type variables to match the usual convention for modules
d4a54b8
to
d595e92
Compare
src/algebra/module/prod.lean
Outdated
[semimodule R M] [semimodule R N] [semimodule S M] [semimodule S N] | ||
[smul_comm_class R S M] [smul_comm_class R S N] : | ||
smul_comm_class R S (M × N) := | ||
{ smul_comm := λ r s x, mk.inj_iff.mpr ⟨smul_comm _ _ _, smul_comm _ _ _⟩ } |
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.
This instance doesn't need semimodule
s, only has_scalar
s. Otherwise LGTM
bors d+
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
This adds the following instances for `prod`: * `is_scalar_tower` * `smul_comm_class` * `mul_action` * `distrib_mul_action` It also renames the type variables to match the usual convention for modules
Pull request successfully merged into master. Build succeeded: |
This adds the following instances for `prod`: * `is_scalar_tower` * `smul_comm_class` * `mul_action` * `distrib_mul_action` It also renames the type variables to match the usual convention for modules
This adds the following instances for
prod
:is_scalar_tower
smul_comm_class
mul_action
distrib_mul_action
It also renames the type variables to match the usual convention for modules