-
Notifications
You must be signed in to change notification settings - Fork 295
[Merged by Bors] - feat(algebra/module/graded_module): define graded module #14582
Conversation
It might make sense to handle #14583 first, so that we can avoid having extra scalar rings here. |
…ect sum This is a constructive version of `direct_sum.is_internal`, and generalizes the existing `graded_algebra`.
…tion' into jjaassoonn/graded_module
…tion' into jjaassoonn/graded_module
…tion' into jjaassoonn/graded_module
@eric-wieser, this PR has been forgotten by me and you. Could you please have a look again please. Thanks. |
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 looks fine to me! I've left some minor comments.
src/algebra/direct_sum/ring.lean
Outdated
/-- A graded version of `semiring.to_module`. -/ | ||
instance gsemiring.to_gmodule (A : ι → Type*) | ||
[add_monoid ι] [Π (i : ι), add_comm_monoid (A i)] [gsemiring A] : | ||
graded_monoid.gmodule A A := | ||
{ smul_add := λ _ _, gsemiring.mul_add, | ||
smul_zero := λ i j, gsemiring.mul_zero, | ||
add_smul := λ i j, gsemiring.add_mul, | ||
zero_smul := λ i j, gsemiring.zero_mul, | ||
..graded_monoid.gmonoid.to_gmul_action A } |
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.
I fixed this error here by moving this declaration to the graded_module file. If everyone is happy we can merge my branch then send this PR to bors.
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.
Also see the latest commit that addressed @kbuzzard's comments.
Hmm, this merge didn't go well ... Shouldn't have squash-merged ... should be fine now. |
11ade35
to
b1843bb
Compare
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.
Thanks 🎉
bors merge
By imitating the current `graded_algebra`, this pr builds `graded_module` over some `graded algebra` Co-authored-by: Eric Wieser @eric-wieser - [x] depends on: #14626 - [x] depends on: #15654 Co-authored-by: Eric Wieser <[email protected]>
Pull request successfully merged into master. Build succeeded: |
By imitating the current
graded_algebra
, this pr buildsgraded_module
over somegraded algebra
Co-authored-by: Eric Wieser @eric-wieser
direct_sum.decomposition
class #15654