mathlib
mathlib copied to clipboard
feat(algebra/free_algebra): Define a grading
The grading takes the form free_algebra R X →ₐ[R] add_monoid_algebra (free_algebra R X) ℕ
It's likely that there are more generic lemmas about grading that can be shared with tensor_algebra and friends, but that's left to follow-up work
- [x] depends on #4315 (first commit)
- [x] depends on #4365
- [x] depends on #4603
- [x] depends on #4789
Is the base of this PR supposed to be the branch for #4315 or should it be master?
The base is set up this way just to make the diff look reasonable. I suppose at this point the base branch has only two lines difference from master, so I may as well switch it back.
Now without any real changes to add_monoid_algebra, since those were split to other PRs.