Some ideas for graded and monoidal categories, and categorical algebra #543
Replies: 1 comment
|
I would recommend starting with The addition of the various instances of adjunctions also seems like a good idea (but split in to many PRs). Matrix algebra should go to |
Uh oh!
There was an error while loading. Please reload this page.
In PRs #534 and #535, I contributed a monoidal category coherence solver based on MacLane's free-strict-monoidal-category construction and the scalars of monoidal categories (endomorphisms of
unit), which by the Eckmann-Hilton argument form a commutative monoid. I'm also working on a stack of PRs to construct the JSV trace of a compact closed category, and (as a stretch goal, via the theorem of Hajgató-Hasegawa 2013, construct the compact closed structure on traced *-Autonomous categories).I have some more ideas for contributions. Would there be interest in these? Please let me know.
Graded Categories
As I understand it, a Graded Category is a category with a functor to a monoid as a category. In a personal project, I presented this as a category with an action on a monoid:
Where I defined
_[_≈_]ᵐthe obvious way. I also showed this is equivalent to a functor fromcategorytoMonoidAsCategory _ G, and defined a GradedFunctor between G-graded categories as a functor that commutes with the grading. This is the same as saying the 2-category of G-graded categories is the coslice categoryCat / MonoidAsCategory(G), and for any category C and any monoid M you can form the cofree M-graded category as the product categoryC × MonoidAsCategory(M). Any functorF : C → Mis a grading on C, and this is the same byπʳasid {C} ※ F : C → C × MonoidAsCategory(M). (Of course, this extends to groups, and to discrete categories; I often use groupoids and categories constructed co-freely asSsome set and G some group or monoid, withs t : S,s ⇒ t = G.)Commutative Monoid ⇌ Monoidal Category Adjunction
Just as a monoid is a category on one object, a commutative monoid can be viewed as a monoidal category on one object, the unit. In fact, we already have one direction of this from #535 and the Eckmann-Hilton argument -- the endomorphism monoid of the unit of any monoidal category is a commutative monoid. The same Eckmann-Hilton argument can be applied in reverse, constructing a base category for a commutative monoid M as
MC = MonoidAsCategory M, then defining a monoidal structure onMCwith trivial tensor on the object and trivial unitors and associators and defining⊗₁ = ∘. In of itself, this (provisionally named)CommMonoidAsMonoidalCat.agdawould be a short file. But more interesting is the adjunction that arises between the category of commutative monoids (which I thought wasCM-CategoryinCategories.Category.CMonoidEnrichedbut actually something else) andMonoidalswith Monoidal functors. (I think Lax monoidal functors suffice but haven't actually proven this yet. Strong ones definitely do.) Any Monoidal Category determines the commutative monoid of its scalars, and any commutative monoid can be presented as a monoidal category on a single object. Strong monoidal functors preserve the unit up to coherent isomorphism, hence preserve scalar action in the delooping MC of M.Algebraic adjunctions
I've also constructed adjunctions for (commutative/not assumed commutative) Semirings ⇌ Rings, Monoids ⇌ Groups, and the commutative versions of these things to the general versions. It basically works out that, if there are additive idempotents in a semiring, its ringification is trivial, else you adjoin negatives, etc. Also the center of monoids, groups, rings; and even the group of units on a ring or monoid and the free ring (or R-algebra) on a monoid. I know this repo doesn't have as much heavy non-categorical algebra, even from the categorical perspective, but I could contribute some of this if desired.
Other
I've mentioned before, my favorite is the category of matrices over a (commutative) (semi-) ring, equivalent to the category of finitely-generated free (bi)(semi)modules on that (C)(S)Ring. I would have to contribute the matrix algebra here or to stdlib. The bimodule or even Hadamard (C)(S)Ring is just Algebra.Construct.Pointwise,
Fin n → Fin m → R. For matrix multiplication define e.g.and you get the (semi)ring structure for
SqMat n = Mat n nalmost for free. Then (especially with a non-trivial conjugation involution) on R, you get a dagger-compact-closed rig category of matrices which (when R is commutative) is self-enriched, and for any (semi-)ring homomorphismR → Syou get a strong monoidal functorMatCat R → MatCat Sentrywise, natural and integer MatCat initiality among (semi-)ring matrix categories, the general linear groupoid as the core ofMatCat R, the determinant (for commutative rings) as a natural transformation of (groups or monoids) ofMat n R → RorGL(n, R) → R×. Among other things, permutation matrices are possible over any semiring (in fact, they are the associators and rig distributors.)All reactions