scieee AI-readable full text Open interactive document viewer

On the trace of an endofunctor of a small category

Faro, Emilio

Abstract

The trace of a square matrix can be defined by a universal property which, appropriately generalized yields the concept of "trace of an endofunctor of a small category". We review the basic definitions of this general concept and give a new construction, the "pretrace category", which allows us to obtain the trace of an endofunctor of a small category as the set of connected components of its pretrace. We show that this pretrace construction determines a finite-product preserving endofunctor of the category of small categories, and we deduce from this that the trace inherits any finite-product algebraic structure that the original category may have. We apply our results to several examples from Representation Theory obtaining a new (indirect) proof of the fact that two finite dimensional linear representations of a finite group are isomorphic if and only if they have the same character.

Full text

ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY EMILIO FARO Abstract. The trace of a square matrix can be defined by a universal property which, appropriately generalized yields the concept of “trace of an endofunctor of a small category”. We review the basic definitions of this general concept and give a new construction, the “pretrace category”, which allows us to obtain the trace of an endofunctor of a small category as the set of connected components of its pretrace. We show that this pretrace construction determines a finiteproduct preserving endofunctor of the category of small categories, and we deduce from this that the trace inherits any finite-product algebraic structure that the original category may have. We apply our results to several examples from Representation Theory obtaining a new (indirect) proof of the fact that two finite dimensional linear representations of a finite group are isomorphic if and only if they have the same character. 1. The Pretrace of a small Category 1.1. Trace or “dimension” of a small category. The trace or “dimension” of a small category Cis defined as the coend of its hom functor C(−,−)Cop × C → Set: (1) Trc(C) = ZA C(A, A). Thus, Trc(C) is a set which comes equipped with a canonical map trA: C(A, A)→Trc(C) for each object Aof Cin such a way that all these maps are “compatible” in the sense that for every map f:B→Ain C, the following square is commutative: Date: November 5, 2008. 1 2 EMILIO FARO C(A, B) C(1A,f)  C(f,1B)//C(B, B) trB  C(A, A)trA //Trc(C) In other words: For every g:A→B, (2) trA(fg) = trB(gf), Furthermore these data are “universal” in an appropriate and obvious way. Definition (1) suggests that Trc(C) should be something like the set of all endomorphisms of Cmodulo an equivalence relation which identifies every pair of endomorphisms A  uand B  vfor which there is a pair of maps, f:AB:g, such that u=gf and v=fg. Unfortunately, this does not define in general an equivalence relation on the set of endomorphisms of C, although it does if Cis a groupoid: Proposition 1. If Cis a small groupoid, the binary relation defined on the endomorphisms of Cby u∼vif and only if there exist maps f:AB:g, such that u=gf and v=fg is an equivalence relation. Proof. Reflexivity, u∼u, is proved by the pair 1A:AB:u. Symmetry is formally evident. Finally, if u∼vis proved by the pair f:AB:g, and v∼w, is proved by the pair h:BC:k, then u∼wis proved by the pair hf :AC:gh−1=f−1k 1.2. The dual concept of trace is “center”. The dual concept of the trace of a small category Cis the center of C, which is defined as the end of its hom functor: (3) Cen(C) = ZA C(A, A). It is easy to prove that for any small category Cthe center of Cis the set of natural transformations from the identity functor of Cto itself.1In the case that Cis a monoid (a category with only one object) then Cen(C) is the set of elements (arrows) which commute with all the elements of C, that is, the usual notion of center. 1MacLane, Categories for the Working Mathematicien, ch.IX, 5. ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 3 1.3. Even if Cis not a groupoid, the binary relation of Proposition 1 is reflexive and symmetric. Therefore, it generates an equivalence relation which is the smallest equivalence relation containing it. This equivalence relation identifies two endomorphisms u,vif and only if there is a finite sequence (h1, k1),...,(hn, kn) of pairs of maps such that (4) k1h1=u, hnkn=v, and hi−1ki−1=kihi,for 2 ≤i≤n, or, equivalently, such that the following diagram is commutative: (5) A u  h1// k1 ·   h2// k2 ·   . . . ·hn−1// kn−1 ·   kn hn//B         v  Ah1 //·h2 //·. . . ·hn−1 //·hn //B Definition 1. An arrow r:A→Bin a category Cwill be called a trace arrow from uto vif there is a finite sequence (h1, k1),...,(hn, kn)of pairs of maps such that r=hn· · · h1and equations (4) are satisfied. Note that in this situation the composite s=k1· · · knis a trace arrow from vto u. Clearly, in any commutative diagram like (5) all vertical arrows are endomorphisms of Chaving the same trace. 1.4. The endomorphisms and trace arrows of a small category Care respectively the objects and arrows of a small category f Tr(C) which will be called the pretrace category of C. Clearly, “there is a trace arrow from uto v” is an equivalence relation on the set of endomorphisms of Cand (the elements of) the corresponding equivalence classes are (the objects of) the connected components of f Tr(C). We have: Proposition 2. If Cis a small category then the trace of Cis the set of connected components of the pretrace category f Tr(C): Trc(C) = π0f Tr(C). Proof. There are obvious maps τA:C(A, A)→π0f Tr(C)(taking an endo u of Ato the connected component of A  uin f Tr(C)) which are obviously “compatible”. This implies that there is a unique map h:Trc(C)→π0f Tr(C) such that for all A∈ C,htrA=τA. We just need to prove that this map has an inverse k:π0f Tr(C)→Trc(C). Define the map ˜ k: objf Tr(C)→Trc(C) on the set of objects of f Tr(C) by ˜ k(A  u) = trA(u). It is easy to see that ˜ kis constant on connected components and hence it determines a map k:π0f Tr(C)→Trc(C) which is easily seen to be inverse to h. 4 EMILIO FARO 1.5. Every arrow r:A  u→B  vin f Tr(C) should be regarded as a “reason” to identify the traces of uand v(or as a “proof” of trA(u) = trB(v)). The same must be said of any sequence (h1, k1),...,(hn, kn) verifying (4). Such a sequence of length nwill be called a n-step proof that uand vhave the same trace, or a proof of length nthat ris a trace arrow from uto v. Evidently, for any sequence (h1, k1),...,(hn, kn) of pairs of arrows of C verifying (4) each map hiand kiis a (one-step) trace arrow in C. 1.6. If there is no reason to identify the traces of two endomorphisms, their traces are different. For example, if Cis a commutative monoid (seen as a one-object category), any one-step proof of trA(u) = trB(v) will imply u=v (if u=kh and v=hk then, on account of the commutativity, u=v). This implies that no two different elements can have the same trace and therefore the trace of a commutative monoid is the set of its elements (arrows). It turns out that in this case of commutative monoids, the trace coincides with the center. Recall (Paragraph 1.2) that the center of a small category Cis the set of natural transformations from the identity functor of Cto itself: Cen(C) = Nat(1C,1C). Evidently this is a monoid and even a commutative monoid. If Cis already a commutative monoid then Cen(C) = C. Thus: Proposition 3. If Cis a commutative monoid, then Trc(C) = {elements (arrows) of C} =Cen(C). Furthermore: Proposition 4. If the small category Cis discrete, then f Tr(C)=Trc(C)=C. Proposition 5. If the small category Pis a poset, then f Tr(P) = Iso(P) and Trc(P) = {Classes of isomorphic objects}. (In a poset the only endomorphisms are the identities. Thus, all trace arrows are isomorphisms.) 1.7. The forgetful functor. Identities and compositions in f Tr(C) are those of C, so that we have an obvious forgetful functor (6) C:f Tr(C)−→ C given by C(A  u) = Aand CA  ur −→ B  v=r. 2. Trace via cyclic nerve We see in this section a second construction of the trace set of a small category based on the calculation of the cyclic nerve of the category. ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 5 2.1. The cyclic nerve of a category. If the simplicial category ∆is enlarged by adjoining in each dimension one extra degeneracy sn: [n]→[n+1] subject to the condition (d0sn)n= id, one obtains a category C∆whose presheaves are the cyclic sets and which plays in cyclic (co)homology the same role that ∆plays in regular (co)homology. As objects of C∆, the objects and arrows of ∆cannot be thought of as ordinals and order preserving maps. The intuition behind “the point” [0], “the arrow” [1], “the triangle” [2], etc. breaks down in C∆and has to be substituted by a different picture of the objects of C∆. In order to reflect this change of picture we shall denote the objects of ∆, when viewed as objects of C∆, as [n]c. To each category Cwe can associate a “cyclic nerve”, which is the cyclic set C∆op →Set defined by [n]c7→ Func([n]c,C). Nc:Cat →SetC∆op , Nc(C) = Func(−,C). 2.2. Trace and cyclic nerve. A functor [0]c→ C is the same as an endomorphism in C, therefore the 0-cells of the cyclic nerve are the endomorphisms of C, that is, the objects of the pretrace f Tr(C). A functor r: [1]c→ C is completely determined by a pair of arrows in C,f:AB:g, such that d0(r) = gf and d1(r) = fg; in other words, ris determined by a length 1 trace arrow in C, or simply by an arrow in f Tr(C). Thus, the 1-cells of the cyclic nerve are the the arrows of f Tr(C). We have: Proposition 6. The trace set of a small category Cis the set of connected components of its cyclic nerve of C:Trc(C) = π0Nc(C). 3. The Set-Trace of Finite Dimensional Vector Spaces 3.1. In this section we address the question of what is the trace set of the category of finite dimensional k-vector spaces for an arbitrary field k. Thus, our objective is to determine the coend: Trcsetk-Vectf.d.=ZV |hom(V, V )| where hom is the (enriched) hom functor of finite dimensional vector spaces, hom: k-Vectf.d.op ×k-Vectf.d. →k-Vect, and |−| means “underlying set”. In other words, we are asking the following question: Given two arbitrary rectangular matrices Aand Bwith the appropriate sizes so that the two products AB and BA exist, what do the two matrices AB and BA have in common? 6 EMILIO FARO 3.2. It is a known theorem in Linear Algebra that if Aand Bare arbitrary rectangular matrices of appropriate sizes, AB and BA have the same invariants. That is: for every non-negative integer p, the trace of the matrix of p-minors of AB is equal to the trace of the corresponding matrix of p-minors of BA. These invariants are (up to a factor of ±1) the coefficients of the corresponding characteristic polynomial. Proposition 7. Let Aand Bbe matrices of respective orders m×nand n×m. If m≥n, then the characteristic polynomials of AB and BA, pAB(λ) = det(AB −λI)and pBA(λ) = det(BA −λI), are related by: pAB(λ) = (−λ)m−npBA(λ) 3.3. It is tempting to conjecture that “all that the matrices AB and BA have in common is their reduced characteristic polynomial”, where by the “reduced polynomial of p(x)” is meant the monic polynomial obtained when dividing p(x) by the highest degree monomial dividing p(x). (In other words, the reduced polynomial of p(x) is p∗(x) = p(x)/axαwhere αis the multiplicity of zero as a root of p(x) (α= 0 if p(0) 6= 0) and ais the leading coefficient of p(x).) The following example shows that the said tempting conjecture is not true. Counterexample 1.Let Hand Kbe the matrices H= 101 111 000  , K =I2=1 0 0 1 . The characteristic polynomials of these are: pH(x)=(−x)(x−1)2;pK(x) = (x−1)2, which have the same reduced form. However, there are no matrices A,B such that H=AB and K=BA as this would imply H2=H, which is not true. In fact, it is not hard to prove that there exist no matrices H1, K1, . . . , Hm, Kmverifying K1H1=A, HmKm=B, and Hi−1Ki−1=KiHi,for 2 ≤i≤m , for this would imply that Hn+1 =Hnwhich is impossible: Hn=  101 n1n 000   Thus, although Hand Khave the same reduced characteristic polynomial, yet they do not have the same set trace. ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 7 As we will see, the problem with Hand Kis that they do not have the same reduced minimal polynomial, their minimal polynomials being mH(x) = x(x−1)2, mK(x) = x−1. 3.4. The question of what do two matrices AB and BA have in common was considered by Harley Flanders in a 1951 paper (see [2]) The following proposition is an immediate consequence of Theorem 2 in that paper: For any endomorphism f∈hom(V, V ) of a finite dimensional vector space, let mf(x), be its minimal polynomial, and let Kfbe the kernel of the endomorphism m∗ f(f), so that frestricts to an endomorphism f0:Kf→Kf. Proposition 8. Let f∈hom(V, V )and g∈hom(W, W)be endomorphisms of finite dimensional vector spaces. If there exist linear maps h, k such that f=kh and g=hk then m∗ f(x) = m∗ g(x)and there is an isomorphism ϕ: ker m∗ f(f)→ker m∗ g(g)such that (7) Kf f0  ϕ//Kg g0  Kfϕ//Kg Conversely, if there exists an isomorphism ϕverifying (7) then m∗ f(x) = m∗ g(x)and there exists a finite sequence (h1, k1),...,(hn, kn)of pairs of linear maps such that k1h1=f, hnkn=g, and hi−1ki−1=kihi,for 2≤i≤n. It follows from this that the Set-trace of a linear endomorphism fof a finite dimensional vector space is precisely the set of reduced invariant factors of f. This set is completely determined by the structure of the powers of those irreducible factors of the minimal polynomial m(x) of f which are not equal to x. The Set-trace of the category of finite dimensional k-vector spaces is a set TSthat encodes such structure for all possible endomorphisms. There are two equivalent ways of describing TS. The first one is as the set of finite chains p1(x)|p2(x)| · · · | pn(x) of normal polynomials (i.e. such that pi(0) = 1). Using this description we have: Theorem 9. The Set-trace of the category of finite dimensional k-vector spaces is the set TSof finite chains p1(x)|p2(x)| · · · | pn(x)of polynomials in k[x]such that pi(0) = 1. For a given endomorphism f:V→Vof a finite dimensional k-vector space, the trace function trset V: hom(V, V )→TScan be defined as trset V(f) = chain of normalized reduced invariant factors of f. 8 EMILIO FARO For example, let pf(x) be the reduced characteristic polynomial of f:V→V. If pf(x) has degree 1, then trset V(f) = pf(x)/pf(0). If pf(x) has degree 0, then trset V(f) = 1. Another description of TSis as the set of all possible shapes of normal forms of matrices. More specifically: Let Pdenote the set of all partitions of natural numbers and let Fdenote the set of all finite subsets of P. There is a function Σ: F → P assigning to each finite set of partitions σ={σ(1), . . . , σ(n)}the partition obtained by adding up all elements in each partition σ(j); that is: Σ(σ) = {Piσ(1) i,. . ., Piσ(n) i}. On the other hand, there is a function mult: k[x]→ P assigning to each polynomial p(x) the partition of the degree of p(x) consisting of the degrees of the irreducible factors of p(x) multiplied by their multiplicities. For example, if k=Rthen mult(x2+ 1)(x−1)3={2,3}. Obviously, if kis algebraically closed all irreducible factors of p(x) have degree 1 and multp(x)is just the set of multiplicities of the different roots of p(x). An element of TScan be described as a pair formed by a monic polynomial p(x) with nonzero independent term (a reduced characteristic polynomial of a linear endomorphism) and, for each irreducible factor pi(x) of p(x), a partition of the multiplicity niof pi(x) in p(x). Since among the constant multiples of p(x) there is exactly one with constant term equal to 1, if we denote k[x]∗={p(x)∈k[x]|p(0) = 1}, we can say that TSis the subset of k[x]∗×F formed by all those pairs hp, σisuch that mult(p) = Σ(σ) (8) TS=hp, σi ∈ k[x]∗× F | mult(p) = Σ(σ). Using this description of TSwe have: Theorem 10. The Set-trace of the category of finite dimensional k-vector spaces is the set TSdefined by (8). On a given endomorphism f:V→V whose reduced characteristic polynomial is p∗(x)and whose reduced minimal polynomial has a decomposition into irreducible factors as m∗(x) = m1(x)n1· · · mk(x)nk, the trace function trV: hom(V, V )→TSis defined by trV(f) = h¯p(x), σiwhere ¯p(x) = p∗(x)/p∗(0), and σis the set of partitions {r(1), . . . , r(k)}where for each i,r(i)={r(i) 1, . . . , r(i) ni}is the partition of d(i) ni= dimker(mi(f)ni)defined as r(i) j=d(i) j−d(i) j−1,(j= 1, . . . , ni), with d(i) j= dimker(mi(f)j)for j= 0, . . . , ni. For example, the identity map of an n-dimensional vector space has reduced characteristic polynomial (1 −x)nand minimal polynomial (x−1)1. Thus, the set trace of this identity is the pair h(1 −x)n,{n}i. ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 9 4. Properties of The Traces of Endomorphisms 4.1. One has to be careful when trying to apply the results of this section to the traces of matrices. In order to do that it is necessary to interpret “trace” of a matrix as Set-trace (see Section 3). We begin with a useful lemma: Lemma 11 (The Reduction Lemma).In any small category Cif ris a trace arrow of length nfrom uto v, then ris a trace arrow of length 1 from unto vn. Proof. Let’s begin with the case n= 2. If (h1, k1), (h2, k2) is a proof that ris a trace arrow from uto v(that is: r=h2h1,k1h1=u,h2k2=v, and h1k1=k2h2), then we can put s=k1k2and we have A u  h1// k1 · ||z z z z z z k2 h2//B || v  A u  h1// k1 · }}k2 h2//B || v  Ah1 //·h2 //B A u2  r// s B  v2  Ar//B rs = (h2h1)(k1k2) = h2k2h2k2=v2and sr(k1k2)(h2h1) = k1h1k1h1=u2. Essentially the same proof is valid for a trace arrow of arbitrary length n; we just need to paste ncopies of a diagram like (5). If (h1, k1),...,(hn, kn) is a n-step proof that tr(u) = tr(v) then putting r=hn· · · h1and s=k1· · · kn, we get rs = (hn· · · h1)(k1· · · kn) = (hn· · · h2)(k2h2)(k2· · · kn) = · · · = hn(knhn)· · · (knhn)kn=vnand similarly that sr = (k1· · · kn)(hn· · · h1) = un. This has the following immediate consequence: Proposition 12. In any small category Call trace arrows from one idempotent to another are of length 1. It follows that the identities of non-isomorphic objects have different traces. Proposition 13. In any small category Ca map is a trace arrow from one identity to another if and only if it is an isomorphism. Proof. Obviously isomorphisms are trace arrows between the corresponding identities. Conversely, by the previous lemma all trace arrows between identities are of length 1, hence isomorphisms.  As a consequence of this we have: 16 EMILIO FARO 7.5. If Cis a groupoid, then the set of connected components of Cis a retract of the set of traces of C:π0(C),→Trc(C), the retraction being the map induced by Con connected components. The idempotent endomap of the trace set Trc(C) determined by this section-retraction pair is the map assigning to each conjugacy class of Cthe corresponding conjugacy class of identities. If Cis a group, this idempotent is the constant “conjugacy class of the identity”. 7.6. According to Proposition 13, if Cis any small category, for an arrow r:A→Bin Cto be an arrow in f Tr(C) from 1Ato 1Bit is necessary and sufficient that it be an isomorphism: A 1A  r// r−1 B  1B  Ar//B This implies that there is a full and faithful functor, F, from the category of isomorphisms of C,Iso(C), to f Tr(C) defined on objects as F(A) = 1Aand on arrows as F(r) = r. Thus, the inclusion functor of Iso(C) into Cfactors through the forgetful functor C: f Tr(C) C  Iso(C) F;;  inc //C. Obviously, if Cis a groupoid then Fis a section of C. This functor Fis nothing but the composite of the functor iIso(C):Iso(C)→f TrIso(C)with the inclusion functor f Tr(inc): f TrIso(C)−→ f Tr(C) 7.7. If Σ: C → f Tr(C) is a functor given by Σ = (1C, µ) and r:A→Bis any arrow in C, then r(= Σ(r)) is a trace arrow from µAto µBand therefore trA(µA) = trB(µB). It follows that if Aand Bare in the same connected component of C, so that there is a path Ar1 −→ E1 r2 ←− E2→ · ·· ← B, then trA(µA) = trB(µB). Thus, any two components of µ, e.g. µAand µB, have the same trace if and only if Aand Bare in the same connected component of C. This implies that the function tr(µ): obj(C)→Trc(C) defined by tr(µ)(A) = trA(µA) is defined on the set of connected components of Cso that we have a map: tr(µ): π0(C)→Trc(C). ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 17 It is clear that this map is precisely the map obtained by applying π0to the functor Σ: C → f Tr(C): Proposition 30. Any functor Σ∈f Tr(C)Cinduces a map π0(Σ): π0(C)→ Trc(C). If Σ=(S, σ)and we put trΣ=π0(Σ) then this map is given by: trΣ([A]) = trS(A)(σA), where the square bracket means “connected component”. 8. Coalgebras for f Tr 8.1. A coalgebra for f Tr is a small category Ctogether with a structure functor Σ: C → f Tr(C) satisfying the identity and associative laws: C Σ  1C ## f Tr(C)C //C, C Σ  Σ//f Tr(C) δC  f Tr(C)f Tr(Σ) //f Trf Tr(C). As we saw before, Σ is essentially an object S  σ∈f TrCC. The identity law says that Sis the identity of C, so that we are left with σ, an endo natural transformation of the identity of C(that is, an element of the center of C). The associative law in this case follows from the identity law and therefore does not impose any further condition on σ. Proposition 31. Af Tr-coalgebra is a pair (C, µ)where Cis a small category and µis an element of the center of Csuch that every arrow r:A→Bin Cis a trace arrow from µAto µB. If (C, µ)and (D, ν)are f Tr-coalgebras, af Tr-coalgebra homomorphism from (C, µ)to (D, ν)is a functor F:C → D that preserves the chosen element in the center: F(µA) = νF A. In view of Proposition 13 we have: Proposition 32. A small category Cis a groupoid, if and only if (C,id1C) is a f Tr-coalgebra. Proof. The previous proposition implies that for a groupoid C, (C,id1C) is a f Tr-coalgebra. Conversely: if (C,id1C) is a f Tr-coalgebra then every arrow r:A→Bin Cis a trace arrow from 1Ato 1Band, by Proposition 13 this implies that ris an isomorphism. Thus Cis a groupoid.  Proposition 33. If Cis a groupoid, every element of the center of Cdetermines a f Tr-coalgebra structure on C(and vice-versa), so that the set of f Tr-coalgebra structures on Cis Cen(C). 18 EMILIO FARO 9. Algebraic Structures 9.1. In this section we are concerned with the question of what extra structure may the trace set of a category have (beyond being a set) on account of the special structure Cmay have. In other words, does some of the structure of Cget inherited by Trc(C)? We have an example of this in Proposition 3, which implies that if Cis a commutative monoid so is Trc(C). 9.2. Suppose Chas a monoidal structure. Does this induce some sort of algebraic structure on its trace, Trc(C)? In order to focus on this question let’s suppose that we have a binary operation defined on C, that is, a functor C × C ∗ −→ C. Under what conditions does this induce a functor Trc(C)×Trc(C)→Trc(C)? One obvious way in which this can occur is if ∗ induces a binary operation on f Tr(C). In that case we would automatically get an operation on Trc(C) because the connected component functor, π0, is product-preserving and therefore any bifunctor induces a bifunctor on connected components. So, the question is whether ∗induces a functor f Tr(C)×f Tr(C)˜ ∗ −−→ f Tr(C). 9.3. If one tries to define this by letting ∗act componentwise, one finds that there is no problem at the level of objects: A  u˜ ∗B  v= (A∗B)  u∗v; but if we try to do the same at the level of arrows then for any two given arrows r:A  u→A0  u0and s:B  v→B0  v0in f Tr(C) the question arises of whether the natural candidate, namely the map r∗s:A∗B→A0∗B0, is actually a map in f Tr(C) from (A∗B)  u∗vto (A0∗B0)  u0∗v0. The answer to this question is positive and the proof of it not very complicated. It is easy to see that r∗1Bis a map in f Tr(C) from (A∗B)  u∗v to (A0∗B)  u0∗v. Similarly 1A0∗sis a map in f Tr(C) from (A0∗B)  u0∗vto (A0∗B0)  u0∗v0. Therefore we do have a composite map from (A∗B)  u∗vto (A0∗B0)  u0∗v0. Functoriality of ∗implies the middle-two interchange law, from which it follows that this composite map is precisely r∗s: (1A0∗s)◦(r∗1B) = (1A0◦r)∗(s◦1B) = r∗s. 9.4. It is clear that the above reasoning goes through for any operation of any finite product theory and that the induced operations would satisfy the same axioms as long as they are equational axioms. We can therefore state: Conjecture 34. For any Lawvere theory T if Cis a small category with a structure of T-algebra in Cat, then Trc(C)is a T-algebra in Set. This immediately follows from the following: ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 19 Theorem 35. The trace functor Trc:Cat →Set preserves finite products. Proof. Since π0preserves finite products and Trc =π0◦f Tr (see Proposition 25), it is sufficient to prove that f Tr preserves finite products. It is a simple exercise to check that f Tr preserves the terminal category 1(see Proposition 4). It only remains to prove that f Tr preserves binary products, which amounts to prove that, for any small categories A,B, the canonical functor f Tr(A×B)−→ f Tr(A)×f Tr(B) has an inverse. Given an arrow (r, s) in f Tr(A)×f Tr(B) from A  u, B  v to C  p, D  q, we need to prove that (r, s) is an arrow in f Tr(A×B) from (A, B)  (u,v)to (C, D)  (p,q). By hypothesis ris an arrow in f Tr(A) and sis an arrow in f Tr(B). Let (r1, r0 1),...,(rn, r0 n) be a proof of the former and let (s1, s0 1),...,(sm, s0 m) be a proof of the latter. Doing a trick similar to the one used in Paragraph 9.3 we can obtain a commutative diagram in A×B: (A, B) (u,v)  (r1,1B)//· (r0 1,v) ~~ . . . · (rn,1B)//(C, B) (r0 n,v)  (p,v)  (1C,s1)//· (p,s0 1) ~~ . . . · (1C,sm)//(C, D) (p,s0 m) ~~ (p,q)  (A, B)(r1,1B) //·. . . · (rn,1B) //(C, B)(1C,s1) //·. . . · (1C,sm) //(C, D) where (1C, sm)◦ · · · ◦ (1C, s1)◦(rn,1B)◦ · · · ◦ (r1,1B) = (rn· · · r1, sm· · · s1) = (r, s) and therefore this proves that (r, s) is an arrow in f Tr(A×B).  Corollary 36. For any Lawvere theory T the trace functor Trc:Cat → Set induces a functor Trc(T):T-Alg(Cat)→T-Alg(Set)and we have a commutative square: T-Alg(Cat) forget.  Trc(T) //T-Alg(Set) forget.  Cat Trc //Set Corollary 37. If Cis a small monoidal category then Trc(C)is a monoid and so is TrcCDfor any small category D. 9.5. For any small category C, the functor category CCis an internal monoid in Cat. Therefore, we have: Proposition 38. For any small category C,Trc(CC)is a monoid. 20 EMILIO FARO 10. Trace Sets of General Endoprofunctors 10.1. The construction of the category f Tr(C) can be generalized for any endoprofunctor ϕ:Cop × C → Set to obtain a category f Tr(ϕ) such that Trc(ϕ) = π0f Tr(ϕ). The definition of f Tr(ϕ) is as follows: (1) The objects of f Tr(ϕ) are the pairs (A, u) where Ais an object of C and uis an element u: 1 →ϕ(A, A). (2) An arrow from (A, u) to (B, v) in f Tr(ϕ) is an arrow r:A→Bin C such that there is a finite chain Ah1//E1 h2//. . . hn−1//En−1 hn//B in Csuch that hn· · · h1=rand there is a cone in Set from 1 to the diagram (10) ϕ(A, A)ϕ(E1, A) h1∗ ooh1 ∗ //ϕ(E1, E1). . . h2∗ oohn ∗ //ϕ(B, B) (where for any arrow hin C,h∗=ϕ(h, 1) and h∗=ϕ(1, h)) such that the map in this cone from 1 to ϕ(A, A) is uand the map 1→ϕ(B, B) is v. (3) Identities and composition are those of C. With this definition it is immediate to show that: Proposition 39. Identities in Care arrows in f Tr(ϕ)and the composite in Cof two composable arrows in f Tr(ϕ)is an arrow in f Tr(ϕ). Hence the above definition gives us a category f Tr(ϕ). Theorem 40. For any endoprofunctor ϕ:Cop × C → Set the trace set of ϕis the set of connected components of the category f Tr(ϕ): Trc(ϕ) = π0f Tr(ϕ). Proof. This is essentially the same as the proof of Proposition 2.  Proposition 41. For any endoprofunctor ϕ:Cop × C → Set there is a forgetful functor ϕ:f Tr(ϕ)→ C. 10.2. If ϕis and endoprofunctor of a groupoid C, for any given arrow r: (A, u)→(B, v) in f Tr(ϕ) each of the maps in diagram (10) is a bijection because for any map hin C, (h−1)∗= (h∗)−1and (h−1)∗= (h∗)−1. It follows that the cone over (10) is unique if it exists and it exists if and only if v=h∗ n(hn∗)−1· · · h∗ 1(h1∗)−1u, that is, if and only if v=ϕ(r−1, r)(u). ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 21 Definition 2. If ϕis and endoprofunctor of a category C, we will say that an element u∈ϕ(A, A)is a ϕ-conjugate (or simply a conjugate if ϕis understood) of an element v∈ϕ(B, B), if an invertible map r:A→B exists in Csuch that ϕ(r−1, r)(u) = v. (Note that this particularizes to the usual concept when ϕis the hom-set functor of a groupoid.) Each map r:A→Bin Cinduces a map ϕ(r−1, r): ϕ(A, A)→ϕ(B, B) which will be called ϕ-conjugation by r. It is clear that for any isomorphism r,ϕ-conjugation by ris a bijective map whose inverse is ϕ-conjugation by r−1. A result similar to Proposition 22 holds: Proposition 42. If ϕis an endoprofunctor of a groupoid C, then: (1) An arrow r: (A, u)→(B, v)in f Tr(ϕ) is just an arrow r:A→B such that r∗(v) = r∗(u), that is, such that the following diagram is commutative: 1 v  u//ϕ(A, A) r∗=ϕ(1,r)  ϕ(B, B)r∗//ϕ(A, B) (2) f Tr(ϕ)is a groupoid. (3) Two elements u∈ϕ(A, A)and v∈ϕ(B, B)have the same trace if and only if they are ϕ-conjugate of each other: v=ϕ(h−1, h)(u). (4) The trace of ϕis the set of ϕ-conjugacy classes of C. 10.3. Can the construction of our old functor f Tr: Cat →Cat be extended to a functor such that to each endoprofunctor ϕ:Cop × C → Set it assigns the category f Tr(ϕ)? We need to clarify what the domain of such a functor would be. The objects of the domain should be all the endoprofunctors of categories, that is, pairs (C, ϕ). What would an arrow (C, ϕ)→(C0, ϕ0) be? 10.4. It is a known general fact that given profunctors ϕ:C → D and ψ:D → C, the following “generalized trace property” holds: TrcC(ψϕ) = TrcD(ϕψ). this establishes a suggestive analogy: TrcCis to the category of small categories and profunctors as trA(for Aan object in C) is to the category C. The analogy can be stretched: We have defined a category f Tr(C) whose objects are endomorphisms in C. We now want to define a category whose 22 EMILIO FARO objects are endomorphisms in the category of small categories and profunctors. The arrows in f Tr(C) are arrows in Cwith a special property... Could the appropriate arrows we are looking for be profunctors with a special property? In order to answer this question, let’s consider this other one: Given endoprofunctors ϕ:C → C and ψ:D → D, what condition must a functor F:C → D satisfy so that it induces a functor from f Tr(ϕ) to f Tr(ψ)? 10.5. Clearly, a functor F:C → D would induce an object function (A, u)7→ (F(A), u0) from obj(f Tr(ϕ)) to obj(f Tr(ψ)) if we had a map λA:ϕ(A, A)→ψF(A), F(A)so that we can put u0=λA(u). But this would not be sufficient for an arrows function. It would be necessary to have, for each pair (A, B) of objects of C, a map λA,B :ϕ(A, B)→ψF(A), F(B) which is natural in (A, B). In short: we need a natural transformation from ϕto ψ◦F×F. Cop × C F×F## ϕ// λ⇓ Set. Dop × D ψ :: It is clear that taking as objects the endoprofunctors of small categories and as arrows from (C, ϕ) to (D, ψ) the pairs (F, λ) where Fis a functor F:C → D and λis a natural transformation λ:ϕ→ψ◦(F×F) we get a category. We shall denote Tthe category so defined. Proposition 43. There is a functor f Tr0:T→Cat taking (C, ϕ)to f Tr(ϕ) and there is an inclusion Cat ,→Ttaking Cto (C,1C)such that the following diagram of functors is commutative: T f Tr0 Cat . inc ;; f Tr //Cat. 10.6. There is an obvious forgetful functor U:T−→ Cat and a natural transformation :f Tr0→Uwhose component at an object (C, ϕ) of Tis the forgetful functor ϕ:f Tr(ϕ)→ C of Proposition 41. Furthermore, the composite Cat~inc 00T U 44 f Tr0 ** ⇓Cat ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 23 is the counit of the comonad structure of f Tr seen in Proposition 26. 11. Set-Trace of Endofunctors 11.1. An intermediate situation between the case of the trace of (the identity functor of) a category and that of a general endoprofunctor is the case of the trace of an endofunctor of a small category. Given an endofunctor F:C → C of a small category Cthere are two ways to regard it as a profunctor, that is, it determines two endoprofunctors of C, namely: (11) ϕR(A, B) = C(A, F (B)) ,and ϕL(A, B) = C(F(A), B). Let us consider the first one. The general construction of the pretrace category f TrR(F) = f Tr(ϕR) is particularized in this case to the following construction: The objects of f TrR(F) are pairs (A, u) where Ais an object of Cand uis a map Au −→ F(A). A C-map r:A→Bis a (right) F-trace arrow from uto vif and only if there is a finite chain A=E0 h1//E1 h2//. . . hn−1//En−1 hn//En=B in Csuch that hn· · · h1=rand for each i= 1, . . . , n there is a map ki: Ei→F(Ei−1) verifying (12) k1h1=u, F(hn)kn=v, and hi−1ki−1=kihi,for 2 ≤i≤n, or, equivalently, such that the following diagram is commutative: A u  h1//E1 k1  h2//E2 k2  . . . En−2 hn−1//En−1 kn−1 }} hn//B kn ~~ v  F(A)F(h1) //F(E1)F(h2) //F(E2). . . F(En−2)F(hn−1) //F(En−1)F(hn) //F(B) 11.2. Any natural transformation µ:F→Gbetween two endofunctors of Cinduces a functor (13) ˜µ:f TrR(F)→f TrR(G) taking an object (A, u)∈f TrR(F) with u:A→F(A), to the object (A, µAu) of f TrR(G). It is a simple exercise to show that if r:A→Bis a (right) F- trace arrow from uto vthen ris also a (right) G-trace arrow from µAuto µBvso that ˜µis indeed a functor. 24 EMILIO FARO 11.3. If the endofunctor Fof Chas a comonad structure, let’s say with counit :F→1Cand comultiplication δ:F→F2, then every F-coalgebra determines an object in f TrR(F) and therefore it makes sense to ask what is the trace of an F-coalgebra. To investigate this question, let’s suppose that Aand Bare F-coalgebras with respective structure maps u,v, and that r:A→Bis a 1-step F-trace arrow from uto v, that is A u  r//B v  k zz F(A)F(r) //F(B). We see that ris a coalgebra morphism, but even more: composing kwith the counit at Awe get a map s=Ak:B→Awhich: (1) is inverse to r(sr =Akr =Au= 1Aand rs =rAk=BF(r)k= Bv= 1B); (2) It determines k(since us =krs =k); and (3) It is a coalgebra morphism (F(s)v=F(s)F(r)k=F(sr)k=k= us). The situation is similar to that of Proposition 13. In fact, a very similar proof gives us the following: Lemma 44. Let Fbe an endofunctor of a small category Cand µ:F→1C a natural transformation. If u:A→F(A)and v:B→F(B)are such that µAu= 1Aand µBv= 1Bthen any (right) F-trace arrow from uto vis an isomorphism from Ato B. Alternatively, this can be proved by applying the induced functor ˜µ(13) to the F-trace arrow to get a trace arrow in Cbetween two identities and then applying Proposition 13. It is now immediate to deduce from Lemma 44 that any two coalgebras with the same trace are isomorphic. A simple clculation shows that isomorphic coalgebras have the same trace (if r: (A, u)→(B, v) is an iso, u= (ur−1)rand F(r)(ur−1) = (F(r)u)r−1= (vr)r−1=v). Thus, we have: Proposition 45. Given a comonad hF, , δion a small category C, the following hold: (1) Every right trace arrow between F-coalgebras has length 1 and it is an isomorphism. (2) Two F-coalgebras have the same right F-trace if and only if they are isomorphic. ON THE TRACE OF AN ENDOFUNCTOR OF A SMALL CATEGORY 25 (3) The full subcategory of f TrR(F)determined by all the F-coalgebras is the groupoid Iso(F-CoAlg)of isomorphisms of F-coalgebras. By duality (and using the second induced profunctor in (11)) we also have: Proposition 46. Given a monad on a small category C, the following hold: (1) Every left trace arrow between F-algebras has length 1 and it is an isomorphism. (2) Two F-algebras have the same left F-trace if and only if they are isomorphic. (3) The full subcategory of f TrL(F)determined by all the F-algebras is the groupoid Iso(F-Alg)of isomorphisms of F-algebras. This result is in part a generalization of a known theorem in Representation Theory. 11.4. Observe that the multiplication/comultiplication played no role in Propositions 45 and 46. Hence they apply more generally than in the case of monads/comonads. In general, for any natural transformation µ: 1C→F we can define a category of “µ-retractions” whose objects are pairs (A, u) such that uµA= 1Aand arrows (A, u)→(B, v) are those Ar −→ Bsuch that ru =vF (r). Then, two µ-retractions are isomorphic if and only if they have the same left F-trace. 11.5. Suppose now that we have two functors F, U :C → C and that Fis left adjoint to U,FaU. Then it is clear that: TrcL(F) = ZA CF(A), A=ZA CA, U(A)=TrcR(U). In fact, in this situation there is an isomorphism of categories between the pretrace categories f TrL(F) and f TrR(U): Proposition 47. In the situation described above, let ϕAB :CF(A), B−→ CA, U(B)be tha canonical isomorphisms of the adjunction FaU. Then ϕinduces an isomorphism of categories, ˆϕ:f TrL(F)→f TrR(U) which takes each object (A, u)∈f TrL(F)to ˆϕ(A, u) = A, ϕAA(u)and each left trace arrow r: (A, u)→(B, v)to ˆϕ(r) = r. Proof. If (h1, k1),...,(hn, kn) is a proof that ris a left trace arrow from (A, u) to (B, v) then (h1, ϕ(k1)),...,(hn, ϕ(kn)) is a proof that ris a right trace arrow from (A, ϕAA(u)) to (B, ϕBB(v)). 