Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: questions

Topic: On the models of the product of two algebraic theories


view this post on Zulip Arturo De Faveri (Oct 13 2024 at 14:22):

Good morning to everyone,

this is something I've been thinking a lot recently, but I wasn't able to sort it out. My apologies if it's trivial or well-understood.

Let A,B\mathbf{A}, \mathbf{B} be (one-sorted, finitary) algebraic theories. Let MM be a model of A×B\mathbf{A} \times \mathbf{B}. Of course, by a model I mean a finite-products preserving functor A×BSet\mathbf{A} \times \mathbf{B} \to \mathbf{Set}. I want to prove that MM somehow decomposes into a model of A\mathbf{A} and a model of B\mathbf{B}. Natural candidates of these models are the left kan extensions along the projections.

First observe that one can prove (although the proof I found is not completely trivial) that the left kan extension of FMod(T)F \in \mathrm{Mod}(\mathbf{T}) along any functor K:TSK: \mathbf{T} \to \mathbf{S} preserves finite products, hence at least the left kan extension produces indeed a model of S\mathbf{S}.

Now, let pA:A×BAp_\mathbf{A}: \mathbf{A} \times \mathbf{B} \to \mathbf{A} and pB:A×BBp_\mathbf{B}: \mathbf{A} \times \mathbf{B} \to \mathbf{B} be the two projections. I claim that MLanpAMpA×LanpBMpBM \simeq \mathrm{Lan}_{p_\mathbf{A}} M \circ p_\mathbf{A} \times \mathrm{Lan}_{p_\mathbf{B}} M \circ p_\mathbf{B}. Note that the unit ηA:MLanpAMpA\eta_\mathbf{A}: M \Rightarrow \mathrm{Lan}_{p_\mathbf{A}} M \circ p_\mathbf{A} is "well-typed" to be the projection, and the same for B\mathbf{B}. Using the formalism of coend calculus one has:

M(1)nA(n,1)×B(n,1)×M(n)M(1) \simeq \int^n \mathbf{A}(n,1) \times \mathbf{B}(n,1) \times M(n)

where I used the way products are computed in the category of theories, and

LanpAM(pA(1))nA(n,1)×M(n)\mathrm{Lan}_{p_\mathbf{A}} M ( p_\mathbf{A}(1)) \simeq \int^n \mathbf{A}(n,1) \times M(n)

and the same for B\mathbf{B}.

But now I'm stuck and I don't know how to conclude, nor if this the best way to go about it.

Two days ago I found out that Lawvere wrote this in 1968 (Some algebraic problems in the context of functorial semantics of algebraic theories): "a bit of computation is needed to deduce from general principles that Mod(A×B)\mathrm{Mod}(\mathbf{A} \times \mathbf{B}) consists of algebras which canonically split as sets into a product X×YX \times Y, where XX carries the structure of A\mathbf{A}-algebra and YY carries the structure of B\mathbf{B}-algebra".
Which at least gives me hope that what I'm trying to do is not senseless.

Therefore my questions are:

  1. can my line of reasoning be fixed to get the desired conclusion?
  2. do yo have any idea about the "bit of computation" that Lawvere had in mind?

Thanks a lot.

view this post on Zulip John Baez (Oct 13 2024 at 14:41):

I have a very elementary question: by A×B\mathbf{A} \times \mathbf{B} do you mean the product in the category of 1-sorted algebraic theories, not the product in Cat\mathsf{Cat}?

If we think of A\mathbf{A} as a category with finite products it has one object for each natural number, say 1,x,x2,x3,1, x, x^2, x^3, \dots and similarly B\mathbf{B} has objects 1,y,y2,y3,1, y, y^2, y^3, \dots so the product in Cat\mathsf{Cat} is naturally a 2-sorted algebraic theory with objects xm×ynx^m \times y^n. But we can extract from that a 1-sorted algebraic theory with only the 'diagonal' objects xm×ymx^m \times y^m. Is that what you mean by A×B\mathbf{A} \times \mathbf{B}?

view this post on Zulip Arturo De Faveri (Oct 13 2024 at 14:46):

Exactly!

view this post on Zulip John Baez (Oct 13 2024 at 14:49):

Okay, so you're saying A×B\mathbf{A} \times \mathbf{B} is indeed the product in the category (or 2-category) of 1-sorted algebraic theories, and the projections pA:A×BAp_\mathbf{A} : \mathbf{A} \times \mathbf{B} \to \mathbf{A}, pA:A×BBp_\mathbf{A} : \mathbf{A} \times \mathbf{B} \to \mathbf{B} have to be understood as morphisms in that category, not Cat\mathsf{Cat}. Personally I would start by making sure I really understood these projections quite well. Maybe you already do.

view this post on Zulip Arturo De Faveri (Oct 13 2024 at 15:20):

Yes, A×B \mathbf{A} \times \mathbf{B} is the product in the category of theories. A theory A\mathbf{A} has a denumerable set of objects {1,x,x2,}\{1, x, x^2, \ldots\} – which for brevity I will denote by {0,1,2,}\{0, 1, 2, \ldots\} since it's not at all important the 'name' of the generating object xx – and some unspecified morphisms n1n \to 1 (of course there are the nn projections but possibly more) which we may call the nn-ary terms of the theory.

If B\mathbf{B} is another theory then the morphisms n1n \to 1 in A×B\mathbf{A} \times \mathbf{B} are pairs of nn-ary terms (s,t)(s,t) of A\mathbf{A} and B\mathbf{B} respectively. The projection pA:A×BAp_\mathbf{A}: \mathbf{A} \times \mathbf{B} \to \mathbf{A} acts on the objects stupidly (as every morphism of theories does, sending kk to kk for every kk) and maps the morphism (s,t)(s,t) to ss.

By the way, do not confuse the product with the "tensor product" of two theories. A model of the tensor AB\mathbf{A} \otimes \mathbf{B} is indeed a set in which somehow the A\mathbf{A}-structure and the B\mathbf{B}-structure coexist.

view this post on Zulip John Baez (Oct 13 2024 at 15:30):

Right, I've thought more about the tensor product.

Thanks for the clarification about A×B\mathbf{A} \times \mathbf{B}.

view this post on Zulip Chaitanya Leena Subramaniam (Oct 16 2024 at 01:39):

Arturo De Faveri said:

  1. do yo have any idea about the "bit of computation" that Lawvere had in mind?

I'm not sure what computation Lawvere had in mind, but here's one way of looking at it:

A single-sorted algebraic theory is given by an identity-on-objects and finite-product-preserving ("fpp") functor FinopA\mathrm{Fin}^{op}\to A, where Fin\mathrm{Fin} is (a skeleton of) the category of finite sets. A morphism of single-sorted algebraic theories is a commutative triangle.
Then the product (in the category of single-sorted algebraic theories) of two single-sorted algebraic theories (FinopA)(\mathrm{Fin}^{op}\to A) and (FinopB)(\mathrm{Fin}^{op}\to B) is the algebraic theory FinopAB\mathrm{Fin}^{op}\to A\boxtimes B obtained by the (identity-on-obects, fully faithful) factorisation of the fpp functor Finop(A×B)\mathrm{Fin}^{op}\to (A\times B) (where A×BA\times B is the ordinary product of categories).

Since (as you noted) the left Kan extension of a fpp functor to Set\mathrm{Set} is also fpp, we get a coreflective subcategory
[AB,Set]fpp[A×B,Set]fpp[A\boxtimes B,\mathrm{Set}]_{\mathrm{fpp}} \hookrightarrow [A\times B,\mathrm{Set}]_{\mathrm{fpp}}.

The unit of this adjunction is the natural isomorphism you're looking for :)

Remark: The 2-category of finite-product categories and fpp functors has finite biproducts (in a 2-categorical sense)—so we have a canonical equivalence
[A×B,Set]fpp[A,Set]fpp×[B,Set]fpp[A\times B,\mathrm{Set}]_{\mathrm{fpp}} \simeq [A,\mathrm{Set}]_{\mathrm{fpp}}\times[B,\mathrm{Set}]_{\mathrm{fpp}}.

Side note regarding your calculation: Let MAM_A and MBM_B be the left Kan extensions of MM along the projections ABAA\boxtimes B\to A and ABBA\boxtimes B\to B respectively, and let MA×BM_{A\times B} be the left Kan extension along the inclusion ABA×BA\boxtimes B\hookrightarrow A\times B. Then we have MA(1)=MA×B(1,0)M_A(1) = M_{A\times B}(1,0) and MB(1)=MA×B(0,1)M_B(1)=M_{A\times B}(0,1).
Therefore MA(1)×MB(1)=MA×B(1,0)×MA×B(0,1)=MA×B(1,1)=M(1)M_A(1)\times M_B(1) = M_{A\times B}(1,0)\times M_{A\times B}(0,1)=M_{A\times B}(1,1) = M(1).

view this post on Zulip Vincent Moreau (Oct 16 2024 at 09:27):

Hi Chaitanya, nice explanation! This seems to suggest that even if one is only interested in single-sorted algebraic theories, the "unsorted" framework of all small cartesian categories -- which is where the Lan ⊣ precomposition adjunction is best formulated, is a nice place to work in before going back to the single-sorted case using the bo-ff factorization system. Is there a document where the properties of the 2-category of small cartesian categories are spelled out, like the fact that it has biproducts?

view this post on Zulip Vincent Moreau (Oct 16 2024 at 09:30):

By the way, is there a generalization of the tensor product of single-sorted algebraic theories to a tensor product of small cartesian categories, from which we could deduce the single-sorted tensor product by bo-ff factorization?

view this post on Zulip Chaitanya Leena Subramaniam (Oct 16 2024 at 16:01):

Vincent Moreau said:

Is there a document where the properties of the 2-category of small cartesian categories are spelled out, like the fact that it has biproducts?

I can't think of a document off the top of my head. But I would suspect that a statement like "Given a symmetric monoidal nn-category C\mathcal{C} (where nn\leq\infty), coproducts in the category CMon(C)\mathrm{CMon}(\mathcal{C}) of (fully) commutative monoids in C\mathcal{C} are given by the underlying tensor product in C\mathcal{C}" should be true (and should be provable from/has been proved somewhere in Lurie's Higher Algebra?)

So when C\mathcal{C} is a cartesian monoidal nn-category, coproducts of monoids are biproducts.

view this post on Zulip Mike Shulman (Oct 16 2024 at 16:03):

I feel like the case of cartesian 1-categories must exist in the non-\infty literature somewhere...

view this post on Zulip Vincent Moreau (Oct 16 2024 at 16:09):

At least in the case of n = 1, this is explained in section 6.5 of Categorical Semantics of Linear Logic, in the dual case of symmetric comonoids.

view this post on Zulip Chaitanya Leena Subramaniam (Oct 16 2024 at 16:13):

Vincent Moreau said:

By the way, is there a generalization of the tensor product of single-sorted algebraic theories to a tensor product of small cartesian categories, from which we could deduce the single-sorted tensor product by bo-ff factorization?

The tensor product of small finite-product categories is the one that makes the functor [,Set]fpp[-,\mathrm{Set}]_{\mathrm{fpp}} from small finite-product categories to locally (finitely) presentable categories a monoidal functor. It takes an SS-sorted theory and an SS'-sorted theory to an S×SS\times S'-sorted theory. (By the way, a similar fact is more generally true when SS is a category of sorts---shameless plug of my thesis :upside_down:)

The biproduct of small finite-product categories takes an SS-sorted theory and an SS'-sorted theory to an S+SS+ S'-sorted theory.

view this post on Zulip Vincent Moreau (Oct 16 2024 at 16:13):

What you are saying is that these biproducts have nothing to do whatsoever with the cartesian aspects of the categories at stake, but it all comes from the fact that cartesian categories form a full subcategory of monoidal categories in a cartesian 2-category, right?

view this post on Zulip Chaitanya Leena Subramaniam (Oct 16 2024 at 16:15):

If by "monoidal categories" (in a cartesian 2-category) you mean "commutative monoid", then yes.

view this post on Zulip Vincent Moreau (Oct 16 2024 at 16:17):

I see, yes I meant "a full subcategory of symmetric monoidal categories, which are commutative pseudomonoids in a cartesian 2-category".

view this post on Zulip Vincent Moreau (Oct 16 2024 at 16:24):

Chaitanya Leena Subramaniam said:

The tensor product of small finite-product categories is the one that makes the functor [,Set]fpp[-,\mathrm{Set}]_{\mathrm{fpp}} from small finite-product categories to locally (finitely) presentable categories a monoidal functor. It takes an SS-sorted theory and an SS'-sorted theory to an S×SS\times S'-sorted theory. (By the way, a similar fact is more generally true when SS is a category of sorts---shameless plug of my thesis :upside_down:)

Very simple question, but which monoidal structure do you consider on lfp categories for that matter?

view this post on Zulip Chaitanya Leena Subramaniam (Oct 16 2024 at 16:29):

The one that classifies bi-cocontinuous functors (i.e. the one inherited from cocomplete categories).

view this post on Zulip John Baez (Oct 16 2024 at 16:36):

Chaitanya Leena Subramaniam said:

Vincent Moreau said:

Is there a document where the properties of the 2-category of small cartesian categories are spelled out, like the fact that it has biproducts?

I can't think of a document off the top of my head. But I would suspect that a statement like "Given a symmetric monoidal nn-category C\mathcal{C} (where nn\leq\infty), coproducts in the category CMon(C)\mathrm{CMon}(\mathcal{C}) of (fully) commutative monoids in C\mathcal{C} are given by the underlying tensor product in C\mathcal{C}" should be true (and should be provable from/has been proved somewhere in Lurie's Higher Algebra?)

So when C\mathcal{C} is a cartesian monoidal nn-category, coproducts of monoids are biproducts.

By the way, for anyone seeking references for folklore facts, the case n=2n = 2, using plain old bicategory theory, can be found as Theorem 5.2 here:

He shows that given symmetric pseudomonoids M and M′ in a symmetric monoidal bicategory (C, ⊗, I), there is a natural way to make M ⊗ M′ into a symmetric pseudomonoid, which makes it into the bicategorical coproduct in the bicategory of symmetric pseudomonoids in (C, ⊗, I).

He doesn't just hand-wave the argument: he puts the proof in Appendix A, and he uses some string diagrams. But I'll admit I haven't carefully checked the proof because the result is so 'obvious'!

view this post on Zulip Mike Shulman (Oct 16 2024 at 16:41):

Thanks! Is that recorded on the nLab somewhere?

view this post on Zulip Mike Shulman (Oct 16 2024 at 16:43):

I guess for the cartesian case, one then needs to check that if MM and MM' are cartesian monoidal categories (or, more generally I guess, cartesian objects in a 2-category with finite products), then the "natural" symmetric pseudomonoid structure on M×MM\times M' is also cartesian.

view this post on Zulip John Baez (Oct 16 2024 at 16:52):

Mike Shulman said:

Thanks! Is that recorded on the nLab somewhere?

I don't know. I have a feeling that I dug up this paper when Joe Moeller, Todd Trimble and I needed this result. Where should this result go?

view this post on Zulip Chaitanya Leena Subramaniam (Oct 16 2024 at 17:03):

Mike Shulman said:

I guess for the cartesian case, one then needs to check that if MM and MM' are cartesian monoidal categories (or, more generally I guess, cartesian objects in a 2-category with finite products), then the "natural" symmetric pseudomonoid structure on M×MM\times M' is also cartesian.

This should follow from cartesian monoidal categories being a reflective subcategory of symmetric monoidal categories (at least in the case of the 2-category Cat).

view this post on Zulip Mike Shulman (Oct 16 2024 at 17:09):

Isn't that rather like crushing a gnat with a sledgehammer?

view this post on Zulip Chaitanya Leena Subramaniam (Oct 16 2024 at 17:13):

I wonder if the case of cartesian objects in a 2-category can be explained by "freely adjoining adjoints"