C AHIERS DE
TOPOLOGIE ET GÉOMÉTRIE DIFFÉRENTIELLE CATÉGORIQUES
J OHN L. M ACDONALD
A RT S TONE
The natural number bialgebra
Cahiers de topologie et géométrie différentielle catégoriques, tome 30, n
o4 (1989), p. 349-363
<http://www.numdam.org/item?id=CTGDC_1989__30_4_349_0>
© Andrée C. Ehresmann et les auteurs, 1989, tous droits réservés.
L’accès aux archives de la revue « Cahiers de topologie et géométrie différentielle catégoriques » implique l’accord avec les conditions générales d’utilisation (http://www.numdam.org/conditions). Toute utilisation commerciale ou impression systématique est constitutive d’une infraction pénale. Toute copie ou impression de ce fichier doit contenir la présente mention de copyright.
Article numérisé dans le cadre du programme
THE NATURAL NUMBER BIALGEBRA
by John
L. MACDONALD and Art STONECAHIERS DE TOPOLOGIE ET GÉOMÉTRIE DIFFÉRENTIELLE
CATÉGORIQUES
VOL. XXX-4 (1989)
ReSUMe.
Dans cetarticle,
on montre que les definitions famili6res de Peano de 1’addition et de lamultiplication
enterme de
1’operation
successeur,plut6t
consideree commeco-op6ration, s’expliquent
mieux commeexemple
d’une loidistributive de
bialgebre.
Cetexemple
de Peano est un casparticulier
d’une situation souvent rencontr6e en program- mationinformatique
ou les donn6espeuvent
etrepens6es
comme faisant intervenir des
co-op6rations
de meme que desop6rations.
Cesco-op6rations
retiennent de1’espace (pour
lam6moire,
dans 1’ordinateur) alors que lesop6ra-
tions lib6rent de
1’espace.
ABSTRACT.
Where an
Eilenberg-Moore algebra
is apair (X,a)
with a:XT-X
(satisfying axioms),
abialgebra
is atriple (X,a,c)
forwhich the
pentagon
commutes, that
is,
.cT.XX.aG = .a . c. Here T is the endofunctor of amonad,
G is the endofunctor of aco-monad,
and X is abialgebra
distributive law as defined in the third section (cf.Beck
131,
Van Osdol [11]), The mainpoint
of this paper is that the familiar Peano definitions of addition andmultiplication
interms of the successor
(co-)operation
canperhaps
best be un-derstood as
defining
an instance of amorphism
.XB such asappears in (0.1).
Further,
this Peanoeyample
is an instance ofsomething
we see often incomputer programming
where data structures can bethought
of asinvolving co-operations
as wellas
operations.
Peano’s successoroperation, being
a unary opera- tion, can bethought
of as either anoperation
or aco-operation.
But we can
give
a clearerinterpretation
of the definitions of addition andmultiplication regarding
it as aco-operation.
Ingeneral,
theco-operations
ofprogramming
data structures create space (markstorage
space, or set itaside,
in themachine),
while
operations
release or free space.The first section introduces some
background
material oncategories
ofadjunctions. Adj (Cat)
is introduced as thecategory
whoseobjects
areadjunctions
in Cat and whosemorphisms
arepairs commuting
withright adjoints.
The definitions of allo na-tural transformation and modification are recalled and
Adj(X)
isdescribed as the
2-category
whoseobjects
are strict 2-functorsAdj-X,
whose 1-cells are allo natural transformations and who-se 2-cells are modifications for X a
2-category
andAdj
the"free
1-adjunction".
We show howAdj(X), although
describeddifferently
fromAdi(Cat),
differsonly slightly
when X =Cat.This is because we can show that
Adj(Cat)
has for 1-cells thosepairs
of functorscommuting
withright adjoints
up to "coherent"isomorphism
rather thanpairs strictly commuting
as in&(Cat) .
Variousgeneralizations
arepossible
at thispoint, namely,
wecould use para instead of allo to
give
1-cellscommuting (up
toisomorphism)
with leftadjoints
or we could start from "free"structures other than
Adj
butgiven by objects,
1-cells and 2-cellssubject
to certainequations.
The second section on distributive squares and n-cubes
gives
Beck’sdescription
of a distributive square as a commutati-ve
adjoint
square in which a certain induced map is an isomor-phism.
Theobjects
ofAdj (Adj (X))
are then shown to besimply
the distributive squares in X for X = Cat. The
2-category
struc-ture of
Adj (Adj (X))
carries with it a "built in" definition ofmorphisms
(and 2-cells) between distributive squares. The same remarks hold forwhose
objects
are defined to be the distributive n-cubes in X.This section also refers to the distributive laws
generated by
adistributive square, one
type
at each vertex.The third section on
bialgebras
and the natural numbers describes abialgebra
distributive law B : GT-TG associated witha monad
(T,n,u)
and a comonad(G,s,8)
on X in X. This law can be used to build a distributive square on X in which themissing
vertex (the
"ghost category")
is that of thecategory
ofbialge-
bras (cf.
13,111).
A fewgeneral propositions
aboutbialgebras
and a
description
ofaugmented bisimplicial objects
aregiven
beforelooking
at theexample
of the natural numberbialgebra
over
Set.,
in which the Xgiven
is derived from the Peanopostu-
lates.Finally
we have indicated how these ideas may beapplied
to
computer
science.We use the
following
notation. The verticalcomposite
of2-cells in a
2-category
is denoted 9 - -y and displayed
as inThe
composite
of 1-cells X and Y or the horizontalcomposite
of a 1-cell X and a 2-cell x are denotedby
thesymbols
X;Y orX;TT respectively
anddisplayed
asWe further indicate the context
by
thesymbol by letting.b
de-note a
morphism
in a1-category
and thecomposition
of suchmorphisms by
.a . c (or a.c).Setsl
is thecategory
ofpointed
sets(with
point =
1).1. CATEGORIES OF
ADJUNCTIONS.
Let
Adj(Cat)
be thefollowing 2-category.
It hasobjects
where
So
is anadjunction
in Cat with leftadjoint
FS and 1-cells(Qr
Pr)satisfying QT;UT = US;PT
and 2-cells(Qs,Ps)
satisfying Qs ; UT = US ; Ps.
Let S and T be strict 2-functors X-Y. We recall that an
allo natural transformation F:S = T
assigns
to each Y: X-Y in X adiagram
such that
YT:XT;YT =YS;YT
is a 2-cell and thefollowing
3axioms hold.
(1.5) Given
1x:X-
X it isrequired
that themorphism 1xT
bethe
identity
2-cel 1 Xr = XT.Secondly
for each 2-cellit is
required
thatbe a commutative
diagram
of 2-cells.(1.7) Given
in X it is
required
thatXF;YT.. XS;YF = [X;Y]I’.
Suppose
that adiagram
is
given
whereF
and G are strict and O and F are allo natural transformations. Then a modification s :O =T consists of 2-cellsin
A,
one for eachobject
X ofX,
such that for each 1-cell Y:X-Y of X the associated
diagram
(2, 0)-commutes
in A. This means that thediagram
of 2-cells commutes in A. In
equational
form we haveNow let
Adj
denote the "free1-adjunction" -
the 2-cate-gory
with
described in Schanuel-Street 1101 (cf. Auderset [1]) and denote
by Adj(X)
the2-category
of strict 2-functorsAdj -
X with allo natural (lax natural) transformations for 1-cells and modifica- tions for 2-cells.Let S and T be strict 2-functors
Adj-X pictured
in X and let r: S BT be an allo natural transformation. Then
using
(1.4) and (1.14) we can extract thepicture
From this
diagram
we extract akey part, namely
where
m(FT) : US; PT
==>QT; UT,
called the mate ofFr,
is thecomposite
In Beck’s
terminology ([3],
p.139),
FT and m(Fr) areadjoint morphisms.
PROPOSITION 1.18. The 2-cell m ( FT) of (1.16) is the inverse of ur.
PROOF. m(Ff) followed
by
ur may bepictured
Then
given
commutes
by
(1.6) where (FU)T = FT: UT..FS; ur (by
(1.7)). Thus(1.19) becomes
As in (1.19) UT followed
by
mtFr) may bepictured
which is,
using successively
that ur and7iT
can becomposed
ineither order and (1.7) :
which
equals
by
thecommutativity
ofThen we combine (1.24) and (1.25) to obtain
which
equals 1QT;UT.
In
particular
(1.16) becomeswhere o is the
isomorphism
ur whose inverse is m(FT).Thus the
description
above ofAdj (Cat)
turns out to be asimplified
version ofAdj(Cat)
in which theisomorphic
2-cellof (1.16) is the
identity,
as in (1.2).The functor
u: Adj(X)-X taking
eachadjunction
(1.1) toPS has a soft left
adjoint
Ftaking
PS to itsidentity adjunction (cf. 17,81).
_ _
2. DISTRIBUTIVE
SQUARES
AND n-CUBES.An
example
of a distributive squareappearing
in Beck(131,
p. 135) is
An
adjoint
square is adiagram
of 4
adjunctions
aspictured.
It is commutative if there are na-tural
isomorphisms
which are mates, that is, as in
(1.17),
u = m( f) is thecomposite
A distributive square is a commutative
adjoint
square such that the induced map e:UAF1-F2UB
is anisomorphism
where eis defined
by
PROPOSITION 2.6. The
objects
ofAdj(Adj(X))
are the distribu- tive squares inX , namely
where the o ’s at the lower left and upper
right
denote the iso-morphisms
u and f of (2.3) and the lowerright
that of (2.5).PROOF. An
object
ofAdj(Adj(X))
is anadjunction
where
are
adjunctions
in X andFo
=(F2,Ft)
andU[I
=(LI2, U1)
areAdj(X) morphisms.
Thus we have adiagram
of the form (2.7) in which the verticalpairs
areadjunctions
andU0 = (U2, U1)
andF0=
( F2’ Ft)
areAdj (X) morphisms.
Thisimplies
that there are iso-morphisms
determined as in (1.16). The usual
adjunction equations
hold forFo
=(F2’ Ft)
leftadjoint
toUo
=(U2, U1)
and theseyield equations showing F2
leftadjoint
toU2
andF,
toU1.
Thus we have anadjoint
square. It is commutative since u,being
anisomorphism
of
right adjoints,
has a mate f:FIFB-FAF2
which is also anisomorphism.
It is not hard to showusing
allo natural transfor-mation rules that the inverse of the
isomorphism g
is the sameas the
morphism
e defined from u and f in (2.5). ·In
general
a distributive squaregenerates
a different kind of distributive law at each vertex aspictured
in thediagram
An
object
of will be called adistributi’tle n-cube.
3. BIALGEBRAS AND THE NATURAL NUMBERS.
Where
(T,n,u)
is a monad and(G,s,8)
is a comonad on Xin
X,
abialgebra distrlbutivits-
of(T, 11, (1)
over(G,s,8)
is a natu- ral transformation B : GT =>TG for whichThese axioms (two
triangles
and twopentagons)
are ana-logues
of Beck’s (cf. [3] as well as VanOsdol [11]),The
"ghost category" problem
is one of thefollowing
ty- pe. Givenfill in the dotted arrows and describe
B
on the left hand side orA on the
right
so that theresulting
squares are distributive.There are
analogous problems
at the other two vertices as wellas
higher
orderanalogues
when there are three or more struc- tures at agiven
vertex. For adescription
of A see Beck [3].Where X is a
bialgebra distributivity
of(T,1),(l)
over(G,E ,d)
on a
category X ,
abialgebra
for X is atriple:
(3.3)
(XX,a,c)
in which(X,a)
is a(T,1),t!)-algebra
and(X, c)
is a(G,Ë,S)-coalgebra
and a’c = cT.XÀ.aG.Bi-homomorphisms
aremorphisms
which arealgebra
andcoalge-
bra
homomorphisms.
PROPOSITION 3.5 ( The
Bialgebras
of thePentagon).
If( X , a , c)
isa
bialgebra.
then so areThe
underlying objects
of thesebialgebras
are vertices in thepentagon
(3.4) for(X,a,c).
The elements of thesebiaigebras
may be called
Repeated application
of theBialgebras
of thePentagon
Proposition
3.5gives
us an infinitediagram,
anaugmented
bi-simplicial object.
In the
following paragraphs
we show how the Peano axioms for the naturalnumbers,
with addition andmultiplica-
tion,
give
us anexample
overSet,.
Let 0 and . s denote Peano’s zero and successor
operation.
The Peano axioms for addition and
multiplication
are such
that,
over 0 in Set or over {I} inSetl,
thebinary
ope- rationsproduce
no new terms. Peano’s set of elements is deter-mined
by
0 and . s alone.We will think of s as a
co-operation. (T,n,u)
will be the monad for thecategory CS,
of(pointed)
commutativesemi-rings
with zero.
Explicitly
this means thatCS,
hasbinary operations
+and * and constants 0 and i such that + is associative and commutative with
identity 0
and * is associative and distributive withrespect
to + and(G,s,8)
will be similar to theproduct
comonad of Lambek as described in151,
page 285 and in[6],
page 62.To define X we need recursive definitions of T and G. Let X be a
pointed
set. ThenXTf
isby
definition the setcontaining
X as a
subset,
with further elements(3.10) 0 (zero
element),
a + b and a*b for alla, b E XTf,
Let XT be the set of
equivalence
classes ofXTf
determinedby
the axioms of
CSI.
The definitionof 11 and V
(and the extensionof T to a functor) is
straightforward.
We defineXG f recursively by
(3.11) X is contained in
XGf
and a. s is inXG f
for alla E XG f.
Then XG is the set of
equivalence
classesrespecting
the opera- tion s determinedby
I rI.s. We let [a] denote theequivalence
class of a.
Let .XE: XG- X and Xd : XG- XGG be the
identity
on X,and
for
x E X,
where .ae denotes the successor(co-)operation
of XGG.Let XB: XGT-XTG be the map induced from
XB f: XGTf - XTG
where first we define
XXf
on XGby
[x]-XBf =
[[x]] for x in the subset X ofXG f
(3.13)
{
x is inXTf
as well) and[a.s]. XBf
=([a].XBf).s,
i f a is in
XGf
and [a] isin Dom ( . XBf) ,
then we extend the definition of
XXf
toXGTf by:
(3.14)
0.XBf = [[0]],
andby letting
a+b.s be inDom(.XBf)
ifa + b
is,
andand
by letting
a* b. s be inDom(. XB f)
if a *b is, andSpecific
instances of (3.4)involving
the natural numbers may bepictured
asfollows, noting
that thepointed
natural numbersN1
are
by
definitionequal
to PTG where P={I}.The
algebraic
structure a =PTÀ; P(lG
ofN1
embodies the defini- tion of + and *. Inparticular,
PTX is called the Peanoimple-
mentation.
The
coalgebraic
structure on thepointed
natural numbersN1
is thediagonal
mapN1- NI X N I
(modulo a.I=I=I.a). Sucha map is a
special
case of what inprogramming languages
iscalled
simple assignment.
Computer
scienceprovides
many moreexamples
ofbialge-
bras. For a machine with word size n the endofunctor G will
"multiply" by
apointed
set with 2n’ definedelements,
and it isappropriate
to call(G,s,8)
a spacedefining
comonad.Machines are
inherently bialgebraic -
since machine opera- tions arealways
defined in terms ofpredefined
space.Input -
which
occupies
new space - isco-algebraic,
andoutput -
which releases space - isalgebraic.
REFERENCES.
1. C. AUDERSET,
Adjonctions
et monades au niveau des2-catégo-
ries, Cahiers
Top.
et Géom. Diff. XV-1(1974),
3-20.2. M. BARR & J. BECK,
Homology
and standard constructions, Lecture Notes in Math.80, Springer (1969),
245-335.3. J. BECK, Distributive
laws,
Lecture Notes in Math.80, Sprin-
ger
(1969),
119-140.4. J. W. GRAY, Formal
Category Theory
I:Adjointness
for 2-ca-tegories,
Lecture Notes in Math. 391,Springer
(1974).5. J. LAMBEK, Functional
completeness
of cartesiancategories,
Ann. of Math.
Logic
6(1974),
259-292.6. J. LAMBEK & P. SCOTT, Introduction to
higher
ordercatego-
ricallogic. Cambridge
Univ.Press,
1986.7. J. MACDONALD & A. STONE,
Augmented simplicial 2-objects
and
distributivities, Preprint
(1987).8. J. MACDONALD & A. STONE, Soft
adjunction
between 2-ca-tegories, J.
Pure &Appl. Algebra 60 (1989),
155-203.9. S. MACLANE,
Categories
for theworking mathematician, Springer
1971.10. S. SCHANUEL & R. STREET, The free
adjunction,
CahiersTop.
et Géom. Diff.
Catég.
XXVII-1(1986),
81-83.11. D. VAN OSDOL,
Bicohomology Theory,
Trans. A. M. S. 183(1973),
449-476.Department
of Mathematics TheUniversity
of British Columbia121-1984 Mathematics Road
VANCOUVER, B.C. CANADA V6T 1 Y4