Skip to content

Define multicategories#1212

Closed
anshwad10 wants to merge 5 commits intoagda:masterfrom
anshwad10:multicategory
Closed

Define multicategories#1212
anshwad10 wants to merge 5 commits intoagda:masterfrom
anshwad10:multicategory

Conversation

@anshwad10
Copy link
Contributor

This is a generalization of a multicategory like https://gist.github.com/plt-amy/174cf949e4cad7a24c1c73d0cdc6c35b However, I didn't require isArity to be a proposition so that the finite ordinals also qualify as arities. This is a generalization of both non-symmetric and symmetric multicategories, and it also allows multicategories with infinite-arity morphisms. I am currently not sure of the relation to Tom Leinster's generalized multicategories.

anshwad10 added 5 commits May 28, 2025 17:26
This is a generalization of a multicategory like https://gist.github.com/plt-amy/174cf949e4cad7a24c1c73d0cdc6c35b
However, I didn't require isArity to be a proposition so that isFinOrd also qualifies as an arity.
@anshwad10
Copy link
Contributor Author

I'll add more when the next version of cubical is supported and the error is fixed

@anshwad10
Copy link
Contributor Author

I am currently not sure of the relation to Tom Leinster's generalized multicategories.

I think Tom Leinster's multicategories are actually more general than these: Given some S : ArityType there is a (wild) monad M on Type defined by M X = Σ[ I ∈ Arity ] ⟨ I ⟩ → X; isArity-⊤ provides the unit, isArity-Σ gives the join, and isArity-idl isArity-idr isArity-assoc give the monad laws. An S-multicategory in this sense is precisely a M-multicategory in their sense
So I'm going to try again with a more general definition parameterized by an arbritrary wild monad

@anshwad10 anshwad10 closed this Nov 15, 2025
@anshwad10
Copy link
Contributor Author

Interestingly, this seems to be a similar approach as https://github.com/hmoeneclaey/operads/blob/master/Operad.agda
Funny how both of them seemed to have come up with similar ideas independently

@anshwad10 anshwad10 deleted the multicategory branch November 15, 2025 09:48
@mortberg
Copy link
Collaborator

Interestingly, this seems to be a similar approach as https://github.com/hmoeneclaey/operads/blob/master/Operad.agda Funny how both of them seemed to have come up with similar ideas independently

Could you please add this reference in a comment in the code? That way it won't get lost

@anshwad10
Copy link
Contributor Author

Could you please add this reference in a comment in the code?

What code are you referring to? This pull request is closed, and though I intend to make another PR formalizing multicategories sometime in the future, I'm going to use a different approach (based on the wild monads #1265), so it won't really be relevent if i put it there

@mortberg
Copy link
Collaborator

mortberg commented Nov 19, 2025

Oh, I did not see that the PR was closed. I just thought that it would be better to have a pointer to https://github.com/hmoeneclaey/operads/blob/master/Operad.agda in the code instead of on Github as that will make it better documented in the code base for the future

anshwad10 added a commit to anshwad10/cubical that referenced this pull request Nov 24, 2025
The promised sequel to agda#1212
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