Skip to content
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

monoids and comonoids in a monoidal category #1953

Merged
merged 5 commits into from
May 14, 2024
Merged

Conversation

Alizter
Copy link
Collaborator

@Alizter Alizter commented May 7, 2024

Here is a definition of monoid and comonoid object in a monoidal category.

They live in a new file called Algebra/Categorical/MonoidObject.v. This should be a place for "categorical algebra" that is theory about algebraic objects defined using category theory.

In order to define a comonoid as a monoid in the opposite monoidal category we need to be able to take take the opposite monoidal category. This requires restructuring how we define things in Monoidal.v using natural transformations and equivalences where we can. The work in #1952 helped some properties hold more easily. The result is that the monoidal structure is inherited in the opposite category in a fairly straightforward way, modulo moving some inverted morphisms around.

As an "application" we show that x $-> y is a (commutative) monoid when y is a (commutative) monoid object in a cartesian category. (Equivalently, x can be a comonoid). This greatly simplifies the analogous proof in #1929 leaving us only to show that objects of additive categories are comonoids or monoids (whichever turns out to be eaiser).

I've taken the time to also simplify a few proofs in Products.v where new lemmas I've introduced can break up the work.

@Alizter Alizter requested a review from jdchristensen May 7, 2024 22:34
Signed-off-by: Ali Caglayan <[email protected]>
Copy link
Collaborator

@jdchristensen jdchristensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far I just looked at the WildCat part. I read the new file when I have more time.

theories/WildCat/Bifunctor.v Outdated Show resolved Hide resolved
theories/WildCat/Bifunctor.v Show resolved Hide resolved
Copy link
Collaborator

@jdchristensen jdchristensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

theories/Algebra/Categorical/MonoidObject.v Outdated Show resolved Hide resolved
@Alizter Alizter merged commit 75066fe into HoTT:master May 14, 2024
23 checks passed
@Alizter Alizter deleted the monoids branch May 14, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants