nLab
Day convolution

Contents

Idea

Just as we can convolve functions f:M where M is a group, or more generally a monoid, we can convolve functors f:MSet where M is a monoidal category. So, for any monoidal category M, the functor category Set M becomes a monoidal category in its own right. The tensor product in Set M is called Day convolution, named after Brian Day?.

We can generalize this idea by replacing Set with a more general cocomplete symmetric monoidal category V. The technical condition is that the tensor product uv must preserve colimits in the separate arguments u and v; that is, that the functors u and v must preserve colimits. This occurs when for instance V is symmetric monoidal closed (so that these functors are left adjoints).

Definition

For (C,) a monoidal category and F,G:C opSet two presheaves on C, their Day convolution product FG is the presheaf given by the coend

FG:= c,dCF(c)×G(d)×Hom C(,cd).F \star G := \int^{c,d \in C} F(c) \times G(d) \times Hom_C(-, c \otimes d) \,.

Properties

Let j:CPSh(C) be the Yoneda embedding.

Lemma

With IC the tensor unit of C, the presheaf j(I) is a unit for the Day convolution product.

Proof

Using the co-Yoneda lemma on the two coends we have

Fj(I) c,dCF(c)×Hom C(d,I)×Hom C(,cd) cCF(c)×Hom C(,cI) cCF(c)×Hom C(,c) F().\begin{aligned} F \star j(I) & \simeq \int^{c,d \in C} F(c) \times Hom_C(d,I) \times Hom_C(-, c\otimes d) \\ & \simeq \int^{c \in C} F(c) \times Hom_C(-, c \otimes I) \\ & \simeq \int^{c \in C} F(c) \times Hom_C(-, c) \\ & \simeq F(-) \end{aligned} \,.
Proposition

For C a small monoidal category, regard the category of presheaves (PSh(C),,j(I)) as a monoidal category with tensor product the Day convolution product and unit the unit of C under the Yoneda embedding j:CPSh(C).

Then

  1. (PSh(C),,j(I)) is a closed monoidal category;

  2. the Yoneda embedding constitutes a strong monoidal functor (C,,I)(PSh(C),,j(I)).

Proof

In analogy to the cartesian closed monoidal structure on presheaves we see that if the internal hom in PSh(C) exists at all, (with [F,] right adjoint to ()F) then by the Yoneda lemma it has to be given by

[F,G](c) Hom C(j(c),[F,G]) Hom C(j(c)F,G).\begin{aligned} [F,G](c) & \simeq Hom_C(j(c), [F,G]) \\ &\simeq Hom_C(j(c)\star F, G) \end{aligned} \,.

Examples

Then the above convolution product is

FG:e cd=eF(c)×G(d).F \star G : e \mapsto \oplus_{c \cdot d = e} F(c) \times G(d) \,.

Notice that if we regard the presheaves F and G here, assuming they take values in finite sets, as categorifications of -valued functions F,G:C, where :Set is the cardinality operation on finite sets, then this reproduces precisely the ordinary convolution product of these -valued functions

FG:e c,dCF(c)×G(d)×δ(e,cd) = cd=eF(c)F(d)\begin{aligned} |F \star G| : e &\mapsto \sum_{c,d \in C} |F(c)| \times |G(d)| \times \delta(e, c \otimes d) & = \sum_{c \cdot d = e} |F(c)| \cdot |F(d)| \end{aligned}

This uses in particular that for every object cC the functor

Hom C(c,)=δ cHom_C(c,-) = \delta_c

is in this sense the Kronecker delta-function on the set C supported at cC. Precisely because by assumption C has only identity morphisms.

Hom C(c,d)={* ifc=d ifcdHom_C(c,d) = \left\{ \array{ * & if c = d \\ \emptyset & if c \neq d } \right.

Blog resources

Discussion

Eric says: When I see “convolution”, I think “Fourier transform”. Is Day convolution somehow related to a categorified version of Fourier transforms?

Todd says: Yes, something like that. I talk a little about this in the article on operads, in the detailed theoretical section.

The usual Fourier transform (for periodic functions) passes between Fourier coefficients a n and functions na nz n on S 1. One way of categorifying this is to pass from the category of functors a:Set (considered as a monoidal category with respect to Day convolution) to their so-called “analytic functors” â:SetSet, mapping a set x to â(x)= na nx n. The “categorified Fourier transform” aâ takes Day convolution products to (pointwise) cartesian products.

If the “Fourier transform” is properly formulated (using enriched tensor products), then the same holds for any monoidal category in place of the discrete monoidal category .

AnonymousCoward says: The passage to analytic functors seems more like a z-transform or Laplace transform. In the particular case of species, it is the Laplace transform formula that applies to the analytic functor of a derivative of a species, not the Fourier transform one involving multiplication by the imaginary unit.

The use of hom above is reminiscent of the Dirac delta. Is there a connection?

John Baez says: It’s true that the passage from a sequence a n to a power series na nz n is precisely the z-transform. If we set z=exp(iθ), we get the Fourier transform — but as you note this makes use of the imaginary unit i, which plays no evident role in Day convolution. So, the analogies Todd is discussing become most precise if we work with the z-transform. But the Fourier transform is closely related.

On the other hand, I’ve discovered that many ‘pure mathematicians’ don’t know about the z-transform — at least, not under that name. I think it’s ‘engineers’ who talk most about the z-transform. So, if you’re trying to explain Day convolution to pure mathematicians, it’s pedagogically best to start talking about the Fourier transform, and then later mention the z-transform.

In general hom is a categorified version of an inner product. I’m too lazy to figure out how this is related to the Dirac delta, but I would not be surprised if there were a connection.

Urs: maybe all that “anonymous coward” is looking for is this statement:

if C is a discrete category (i.e. just a set regarded as a category with only identity morphisms) then a functor CoSet is like a mathbZ-valued function on the set C and then for every object c in C the functor Hom C(c,)=δ c is the Kronecker delta on C at c, in that

Hom C(c,d)={* ifc=d ifcdHom_C(c,d) = \left\{ \array{ * & if c = d \\ \emptyset & if c \neq d } \right.

I have added this remark now explicitly to the entry above.