-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposition.tex
More file actions
607 lines (573 loc) · 28.3 KB
/
composition.tex
File metadata and controls
607 lines (573 loc) · 28.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
% -*- root: thesis.tex -*-
\chapter{COMPOSITION OF $\mathbb{L}$-COALGEBRAS}\label{Ch:Composition}
In an algebraic weak factorization system, the categories $\LCoalg$ and $\RAlg$ respectively play the roles of the left and right classes of morphisms of the weak factorization system. In an ordinary weak factorization system, these two classes of morphisms are closed under composition. In~\cite{garner:soa}, this is strengthened to a composition functor
\[
\LCoalg \prodb_C \LCoalg \to \LCoalg
\]
and in~\cite{riehl:nwfs-model}, it is shown that colax morphisms of awfs preserve this composition. Similarly, there is a composition functor on $\RAlg$ which is preserved by lax morphisms of awfs.
In this chapter, we will generalize these results to the setting of bimonads in $\FF(\Sq(\twocat{D}))$. In fact we will prove the following more general theorem, from which the desired results will follow as corollaries using \cref{Prop:LaxFuncMonad}.
\begin{theorem}\label{Thm:CoalgLaxFunctor}
Let $\twocat{D}$ be a 2-category with arrow objects and with EM-objects for comonads.
There is a lax double functor
\[
\Coalg\colon \DComon(\FF(\Sq(\twocat{D}))) \to \Span(\twocat{D}_0)_{/(-)^2}
\]
where $\twocat{D}_0$ is the ordinary category underlying the (strict) 2-category $\twocat{D}$, which is the identity on the vertical categories, and which takes a comonad $(E,\eta,\epsilon,\delta)$ in $\FF(\Sq(\twocat{D}))$ to the span
\[
\begin{tikzcd}[column sep=large]
C & \LCoalg \lar[swap]{\dom U} \rar{\cod U} & C.
\end{tikzcd}
\]
\end{theorem}
In~\cite{garner:soa} it is further shown that given a functorial factorization with only the comonad half of the awfs structure, a composition functor on $\LCoalg$ uniquely determines the monad half of the structure. The paper~\cite{riehl:nwfs-model} makes much use of this fact, and also extends it to morphisms of awfs. In our framework, these results will follow from \cref{Prop:FullFaithfulMonads} and the theorem:
\begin{theorem}\label{Thm:CoalgFullFaithful}
The lax double functor $Coalg$ is fully-faithful.
\end{theorem}
First we should explain the notation $\Span(\twocat{D}_0)_{/(-)^2}$. There is a natural family of monads in $\Span(\twocat{D}_0)$, given for each object $C$ by the span
\[
\begin{tikzcd}
C & C^2 \lar[swap]{\dom} \rar{\cod} & C
\end{tikzcd}
\]
with multiplication given by the composition of the internal category structure of $C^2$ given in \cref{Prop:ArrowSimplex}. That this is a natural family means that for any morphism $f\colon C\to D$ in $\twocat{D}_0$ there is a morphism of spans
\[
\begin{tikzcd}
C \dar[swap]{f} & C^2 \lar[swap]{\dom} \rar{\cod} \dar{f^2} & C \dar{f} \\
D & D^2 \lar[swap]{\dom} \rar{\cod} & D.
\end{tikzcd}
\]
That this morphism of spans commutes with the multiplications follows easily from the universal property of arrow objects.
The double category $\Span(\twocat{D}_0)_{/(-)^2}$ has the same vertical category as $\Span(\twocat{D}_0)$---namely $\twocat{D}_0$---with horizontal 1-cells $C\to C$ given by spans $S$ equipped with a (globular) morphism $S\Rightarrow C^2$, i.e. a commuting diagram
\[
\begin{tikzcd}[row sep=tiny,column sep=small]
{} & S \dlar[swap]{u} \drar{v} \ar{dd}{p} & \\
C && C \\
& C^2 \ular{\dom} \urar[swap]{\cod}
\end{tikzcd}
\]
and with 2-cells given by 2-cells in $\Span(\twocat{D}_0)$ which commute with these structure maps, i.e. by pairs $(f,\theta)$ such that
\[
\begin{tikzcd}
C \dar[swap]{f} & S \lar[swap]{u} \rar{v} \dar{\theta} & C \dar{f} \\
D & S' \lar[swap]{u'} \rar{v'} \dar{p'} & D \\[0em]
& D^2 \ular{\dom} \urar[swap]{\cod} &
\end{tikzcd}
=
\begin{tikzcd}
{} & S \dlar[swap]{u} \drar{v} \dar{p} & \\[0em]
C \dar[swap]{f} & C^2 \lar{\dom} \rar[swap]{\cod} \dar{f^2} & C \dar{f} \\
D & D^2 \lar{\dom} \rar[swap]{\cod} & D.
\end{tikzcd}
\]
The composition of two horizontal 1-cells in $\Span(\twocat{D}_0)_{/(-)^2}$
\[
\begin{tikzcd}[row sep=tiny,column sep=small]
{} & S_1 \dlar[swap]{u_1} \drar{v_1} \ar{dd}{p_1} && S_2 \dlar[swap]{u_2} \drar{v_2} \ar{dd}{p_2} \\
C && C && C \\
& C^2 \ular{\dom} \urar[swap][sloped,pos=0]{\cod} && C^2 \ular[sloped,pos=0]{\dom} \urar[swap]{\cod}
\end{tikzcd}
\]
is given by their horizontal composition in $\Span(\twocat{D}_0)$, and the structure map to $C^2$ is given by the horizontal composition of the $p_1$ and $p_2$ composed with the multiplication of $C^2$, i.e.
\[
\begin{tikzcd}
S_1 \prod_C S_2 \rar{(p_1,p_2)} & C^2\prod_C C^2 = C^3 \rar{c} & C.^2
\end{tikzcd}
\]
The identity for the horizontal composition is
\[
\begin{tikzcd}[row sep=tiny,column sep=small]
{} & C \dlar[swap]{\id} \drar{\id} \ar{dd}{i} & \\
C && C, \\
& C^2 \ular{\dom} \urar[swap]{\cod}
\end{tikzcd}
\]
where $i\colon C\to C^2$ is the identity of the internal category structure on $C^2$ from \cref{Prop:ArrowSimplex}.
We will now prove a couple of simple lemmas to establish the existence of certain 2-cells in $\twocat{D}$ using the arrow object universal property. First, notice that any comonad $(E,\eta,\epsilon,\delta)$ in $\FF(\Sq(\twocat{D}))$ gives rise to the horizontal 1-cell in $\Span(\twocat{D}_0)_{/(-)^2}$
\[
\begin{tikzcd}[row sep=tiny,column sep=small]
{} & \LCoalg \dlar[swap]{\dom U} \drar{\cod U} \ar{dd}{U} & \\
C && C. \\
& C^2 \ular{\dom} \urar[swap]{\cod}
\end{tikzcd}
\]
For each of the following lemmas, let $(E_1,\eta_1,\epsilon_1,\delta_1)$ and $(E_2,\eta_2,\epsilon_2,\delta_2)$ be two comonads in $\FF(\Sq(\twocat{D}))$, both on the same object $C$, and let $X_{1,2}$ be the pullback
\[
\begin{tikzcd}[row sep=small]
{} & X_{1,2} \dlar[swap]{P_1} \drar{P_2}
& \\
\LCoalg[1] \drar[sloped,pos=.8,swap]{\cod U_1}
&& \LCoalg[2] \dlar[sloped,pos=.8]{\dom U_2} \\
& C &
\end{tikzcd}
\]
with structure map $U_{1,2}\colon X\to C^2$ given by the composition
\[
\begin{tikzcd}
X_{1,2} \rar{(U_1,U_2)} & C^3 \rar{c} & C.^2
\end{tikzcd}
\]
Recall from \cref{Prop:ArrowSimplex} that $c$ by definition satisfies $\dom c=\dom P_1$, $\cod c=\cod P_2$, $\kappa c=\kappa P_2\circ\kappa P_1$.
We also record for later reference:
\begin{gather}
\dom U_{1,2} = \dom c(U_1,U_2) = \dom P_1(U_1,U_2) = \dom U_1P_1
\label{Eq:domU12} \\
\cod U_{1,2} = \cod c(U_1,U_2) = \cod P_2(U_1,U_2) = \cod U_2P_2
\label{Eq:codU12} \\
\kappa U_{1,2} = \kappa c(U_1,U_2) = (\kappa P_2\circ\kappa P_1)(U_1,U_2) = \kappa U_2P_2\circ\kappa U_1P_1
\label{Eq:kappaU12}
\end{gather}
% let $m$ be the 2-cell
% \[
% \begin{tikzcd}[bend angle=20,row sep=small]
% {} & C^2 \drar[bend left][sloped,domA,pos=.2,inner sep=1pt]{\dom} \drar[bend right][swap,sloped,codA,inner sep=1pt]{\cod} & \\
% X \urar{UP_1} \drar[swap]{UP_2} && C \\
% & C^2 \urar[bend left][sloped,domB,inner sep=1pt]{\dom} \urar[bend right][swap,sloped,codB,pos=.2,inner sep=1pt]{\cod} &
% \twocellA{\kappa}
% \twocellB{\kappa}
% \end{tikzcd}
% \]
% and let $\vec{m}\colon X\to C^2$ be the corresponding 1-cell with $\kappa\vec{m}=m$.
\begin{lemma}\label{Lem:Zeta}
There is a 2-cell
\[
\begin{tikzcd}[row sep=-.5em]
{} & |[alias=domA]| \LCoalg[1] \drar[bend left=15][]{U_1} & \\
X_{1,2} \urar[bend left=15][]{P_1} \ar[bend right=20]{rr}[swap,codA]{U_{1,2}} && C^2
\twocellA{\zeta}
\end{tikzcd}
\]
such that $\dom\zeta=\id$ and
\[
\begin{tikzcd}[row sep=-.5em,baseline=(B.base)]
{} & |[alias=domA]| \LCoalg[1] \drar[bend left=15][]{U_1} && \\
|[alias=B]| X_{1,2} \urar[bend left=15][]{P_1} \ar[bend right=20]{rr}[swap,codA]{U_{1,2}}
&& C^2 \rar{\cod}
& C
\twocellA{\zeta}
\end{tikzcd}
=
\begin{tikzcd}[bend angle=20,row sep=small,baseline=(B.base)]
{} & C^2 \drar[sloped,pos=.2]{\cod} & \\
|[alias=B]| X_{1,2} \urar{UP_1} \drar[swap]{UP_2} && C \\
& C^2 \urar[bend left][sloped,domA,pos=.6,inner sep=1pt]{\dom}
\urar[bend right][swap,sloped,codA,pos=.2,inner sep=1pt]{\cod} &
\twocellA{\kappa}
\end{tikzcd}
\]
\end{lemma}
\begin{proof}
Equation~\eqref{Eq:ArrowObject2} becomes
\[
\begin{tikzcd}[bend angle=30]
X_{1,2} \rar{U_{1,2}} & C^2 \rar[bend left][domA]{\dom} \rar[bend right][codA,swap]{\cod} & C
\twocellA{\kappa}
\end{tikzcd}
=
\begin{tikzcd}[bend angle=20,row sep=small,baseline=(B.base)]
{} & C^2 \drar[bend left][sloped,domA,pos=.2,inner sep=1pt]{\dom} \drar[bend right][swap,sloped,codA,inner sep=1pt]{\cod} & \\
|[alias=B]| X_{1,2} \urar{UP_1} \drar[swap]{UP_2} && C \\
& C^2 \urar[bend left][sloped,domB,inner sep=1pt]{\dom} \urar[bend right][swap,sloped,codB,pos=.2,inner sep=1pt]{\cod} &
\twocellA{\kappa}
\twocellB{\kappa}
\end{tikzcd}
\]
which is just equation~\eqref{Eq:kappaU12}
\end{proof}
\begin{lemma}\label{Lem:Nu}
There is a 2-cell
\[
\begin{tikzcd}[row sep=0ex, column sep=4ex, bend angle=15]
{} & |[alias=domA]| \LCoalg[2] \drar[bend left][]{U_2} & \\
X_{1,2} \urar[bend left][]{P_2} \drar[bend right][swap]{U_{1,2}} && C^2 \\
& |[alias=codA]| C^2 \urar[bend right][swap]{R_1}
\twocellA{\nu}
\end{tikzcd}
\]
such that $\cod\nu=\id$ and
\[
\begin{tikzcd}[row sep=0ex, column sep=2ex, bend angle=15, baseline=(B.base)]
{} & |[alias=domA]| \LCoalg[2] \drar[bend left][]{U_2} &&[2.5ex] \\
|[alias=B]| X_{1,2} \urar[bend left][]{P_2} \drar[bend right][swap]{U_{1,2}} && C^2 \rar{\dom} & C \\
& |[alias=codA]| C^2 \urar[bend right][swap]{R_1} &&
\twocellA{\nu}
\end{tikzcd}
=
\begin{tikzcd}[row sep=tiny, column sep=4ex, bend angle=25, baseline=(B.base)]
{} & \LCoalg[2] \rar{U_2}
& C^2 \drar[bend left]{\dom} & \\
|[alias=B]| X_{1,2} \urar[bend left]{P_2} \rar{P_1} \ar[bend right]{drr}[swap,codA]{U_{1,2}}
& |[alias=domA]| \LCoalg[1] \rar{U_1} \drar[swap]{U_1}
& |[alias=domB]| C^2 \rar{\cod}
& C \\
&& |[alias=codB]| C^2 \urar[bend right][swap]{E_1} &
\twocellA{\zeta}
\twocellB{\alpha_1}
\end{tikzcd}
\]
\end{lemma}
\begin{proof}
We just need to verify equation~\eqref{Eq:ArrowObject2}:
\begin{multline*}
\begin{tikzcd}[row sep=tiny, column sep=4ex, bend angle=25, baseline=(B.base), ampersand replacement=\&]
{} \& \LCoalg[2] \rar{U_2}
\& C^2 \drar[bend left]{\dom} \& \\
|[alias=B]| X_{1,2} \urar[bend left]{P_2} \rar{P_1} \ar[bend right]{drr}[swap,codA]{U_{1,2}}
\& |[alias=domA]| \LCoalg[1] \rar{U_1} \drar[swap]{U_1}
\& |[alias=domB]| C^2 \rar{\cod}
\& C \\
\&\& |[alias=codB]| C^2 \urar[][domC,inner sep=0pt]{E_1} \urar[bend right=50][swap,codC]{\cod} \&
\twocellA{\zeta}
\twocellB{\alpha_1}
\twocellC{\epsilon_1}
\end{tikzcd}
\\
=
\begin{tikzcd}[row sep=tiny, column sep=4ex, bend angle=25, baseline=(B.base), ampersand replacement=\&]
{} \& \LCoalg[2] \rar{U_2}
\& C^2 \drar[bend left]{\dom} \& \\
|[alias=B]| X_{1,2} \urar[bend left]{P_2} \rar{P_1} \ar[bend right=60]{rr}[swap,codA]{U_{1,2}}
\& |[alias=domA]| \LCoalg[1] \rar{U_1}
\& |[alias=domB]| C^2 \rar{\cod}
\& C \\
\twocellA{\zeta}
\end{tikzcd}
\\
=
\begin{tikzcd}[column sep=4ex, bend angle=25, baseline=(B.base), ampersand replacement=\&]
X_{1,2} \rar{P_2}
\& \LCoalg[1] \rar{U_1}
\& C^2 \rar[bend left][domA]{\dom} \rar[bend right][swap,codA]{\cod}
\& C
\twocellA{\kappa}
\end{tikzcd}
\end{multline*}
where the first equation follows from~\eqref{Eq:LCoalg2}, and the second by reducing $\cod\zeta$ using \cref{Lem:Zeta}.
\end{proof}
\begin{proof}[Proof of \Cref{Thm:CoalgLaxFunctor}]
For notational convenience, let $G=\Coalg$ be the lax double functor we need to establish. Both the double categories $\DComon(\FF(\Sq(\cat{D})))$ and $\Span(\twocat{D}_0)_{/(-)^2}$ have $\twocat{D}_0$ as vertical category, and $G_0$ (the component of $G$ on vertical categories) is simply the identity. From the statement of the theorem, $G$ takes an object in $\DComon(\FF(\Sq(\cat{D})))$ to the span and structure map
\[
\begin{tikzcd}[row sep=tiny,column sep=small]
{} & \LCoalg \dlar[swap]{\dom U} \drar{\cod U} \ar{dd}{U} & \\
C && C. \\
& C^2 \ular{\dom} \urar[swap]{\cod}
\end{tikzcd}
\]
To define the behavior of G on 2-cells, consider a 2-cell in $\DComon(\FF(\Sq(\cat{D})))$:
\[
\begin{tikzcd}[column sep=4em]
C \rar[tick][domA]{(E_1,\eta_1,\epsilon_1,\delta_1)} \dar[swap]{F} & C \dar{F} \\
D \rar[tick][codA,swap]{(E_2,\eta_2,\epsilon_2,\delta_2)} & D.
\twocellA{\phi}
\end{tikzcd}
\]
By \cref{Cor:RLMon}, $\phi$ induces a colax morphism of comonads from $L_1$ to $L_2$, hence by \cref{Prop:EMObject} there is an induced morphism $\tilde{\phi}$ between the EM-objects such that $U_2\tilde{\phi}=F^2U_1$. We can then define $G\phi$ to be the morphism of spans
\[
\begin{tikzcd}
C \dar[swap]{F}
& C^2 \lar[swap]{\dom} \dar{F^2}
& \LCoalg[1] \lar[swap]{U_1} \dar{\tilde{\phi}} \rar{U_1}
& C^2 \rar{\cod} \dar{F^2}
& C \dar{F} \\
D & D^2 \lar{\dom}
& \LCoalg[2] \lar{U_2} \rar[swap]{U_2}
& D^2 \rar[swap]{\cod}
& D.
\end{tikzcd}
\]
That $\tilde{\phi}$ commutes with the structure maps is simply the commutativity of the square $U_2\tilde{\phi}=F^2U_1$.
Next we must define the coherence data $G_I$ and $G_{\otimes}$. We will define $G_I$ to be the morphims of spans
\[
\begin{tikzcd}[row sep=small,column sep=small]
{} & C \dlar[swap]{\id} \drar{\id} \ar{dd}{G_I} & \\
C && C \\
& \LCoalg[I] \ular{\dom U} \urar[swap]{\cod U}
\end{tikzcd}
\]
defined via \cref{Lem:FFLCoalgUniversalProperty} by the equations $UG_I=i\colon C\to C^2$ and $\alpha_I G_I$ is the identity on $\dom i=\cod i$. The conditions of the lemma are trivially satisfied.
We will similarly use \cref{Lem:FFLCoalgUniversalProperty} to define $G_{\otimes}$. Let $X_{1,2}$, $U_{1,2}$, $\zeta$, and $\nu$ be as defined earlier in the section. $G_{\otimes}$ is a morphism of spans
\[
\begin{tikzcd}[row sep=small,column sep=small]
{} & X_{1,2} \dlar[swap]{\dom U_1P_1} \drar{\cod U_2P_2} \ar{dd}{G_{\otimes}} & \\
C && C. \\
& \LCoalg[1\otimes2] \ular{\dom U_{1\otimes 2}} \urar[swap]{\cod U_{1\otimes 2}}
\end{tikzcd}
\]
We will define $G_{\otimes}$ to be the 1-cell such that $U_{1\otimes 2}G_{\otimes}=U_{1,2}$ and
\[
\begin{tikzcd}[row sep=0ex, column sep=4ex, bend angle=15, baseline=(B.base)]
{} && |[alias=domA]| C^2 \drar[bend left][]{\cod} & \\
|[alias=B]| X_{1,2} \rar{G_{\otimes}}
& \LCoalg[1\otimes2] \urar[bend left][]{U_{1\otimes2}} \drar[bend right][swap]{U_{1\otimes2}}
&& C \\
&& |[alias=codA]| C^2 \urar[bend right][swap]{E_{1\otimes2}}
\twocellA{\alpha_{1\otimes2}}
\end{tikzcd}
=
\begin{tikzcd}[bend angle=25, row sep=0ex, column sep=3ex]
& |[alias=domA]| \LCoalg[2] \rar{U_2} \ar{ddr}[description]{U_2}
& |[alias=domB]| C^2 \drar[bend left][]{\cod} & \\
X \urar[bend left][]{P_2} \drar[bend right][swap]{U_{1,2}}
&&& C \\
& |[alias=codA]| C^2 \rar[swap]{R_1}
& |[alias=codB]| C^2 \urar[bend right][swap]{E_2} &
\twocellA{\nu}
\twocellB{\alpha_2}
\end{tikzcd}
\]
In other words, in the notation of \cref{Lem:FFLCoalgUniversalProperty} let $F=U_{1,2}$ and $\beta=E_2\nu\circ\alpha_2P_2$, and define $G_{\otimes}=\hat{F}$.
We now need to check equations 1-3 of \cref{Lem:FFLCoalgUniversalProperty} to verify that $G_{\otimes}$ is well defined. We will check these equationally to save space, but the reader may want to draw out the diagrams for themselves to follow along. For the first equation:
\begin{alignat*}{2}
\hspace{1em}&\hspace{-1em} E_2\nu \circ \alpha_2P_2 \circ \kappa U_{1,2} && \\
&= E_2\nu \circ \alpha_2P_2 \circ \kappa U_2P_2 \circ \kappa U_1P_1
&& \text{Eq. \eqref{Eq:kappaU12}} \\
&= E_2\nu \circ (\alpha_2\circ\kappa U_2)P_2 \circ \kappa U_1P_1 && \\
&= E_2\nu \circ \eta_2U_2P_2 \circ \kappa U_1P_1
&& \text{Eq. \eqref{Eq:LCoalg1}} \\
&= \eta_2R_1U_{1,2} \circ \dom\nu \circ \kappa U_1P_1
&& \text{Interchange} \\
&= \eta_2R_1U_{1,2} \circ E_1\zeta \circ \alpha_1P_1 \circ \kappa U_1P_1
&\qquad& \text{Def of $\nu$} \\
&= \eta_2R_1U_{1,2} \circ E_1\zeta \circ (\alpha_1\circ\kappa U_1)P_1 && \\
&= \eta_2R_1U_{1,2} \circ E_1\zeta \circ \eta_1U_1P_1
&&\text{Eq. \eqref{Eq:LCoalg1}} \\
&= \eta_{1\otimes 2}U_{1,2} \circ \dom\zeta
&&\text{Interchange; Def of $\eta_{1\otimes 2}$} \\
&= \eta_{1\otimes 2}U_{1,2}
&&\dom\zeta=\id
\end{alignat*}
and the second:
\begin{alignat*}{2}
\hspace{1em}&\hspace{-1em} \epsilon_{1\otimes 2}U_{1,2} \circ E_2\nu \circ \alpha_2P_2 && \\
&= \epsilon_2R_1U_{1,2} \circ E_2\nu \circ \alpha_2P_2
&& \text{Def of $\epsilon_{1\otimes2}$} \\
&= \cod\nu \circ (\epsilon_2U_2\circ\alpha_2)P_2
&\qquad& \text{Interchange} \\
&= \id_{\cod U_{1,2}}.
&&\text{Eq. \eqref{Eq:LCoalg2}; $\cod\nu=\id$}
\end{alignat*}
The third equation is a bit trickier to prove. We will need to prove two intermediate equations first, using the arrow object universal property.
\begin{lemma*}
\begin{equation}\label{Eq:CompLem1}
i^LU_{1,2} \circ L_1\zeta \circ \vec{\alpha}_1P_1 = \vec{\beta}\circ\zeta
\end{equation}
\end{lemma*}
\begin{proof}
We must show the 2-cells become equal upon composition with $\dom$ and $\cod$:
\[
\dom(i^LU_{1,2} \circ L_1\zeta \circ \vec{\alpha}_1P_1) = \id_{\dom U_{1,2}} = \dom(\vec{\beta}\circ\zeta)
\]
and
\begin{alignat*}{2}
\hspace{1em}&\hspace{-1em} \cod(i^L U_{1,2} \circ L_1\zeta \circ \vec{\alpha}_1P_1) && \\
&= \cod i^LU_{1,2} \circ E_1\zeta \circ \cod\vec{\alpha}_1P_1 &\qquad& \\
&= \eta_2R_1U_{1,2} \circ E_1\zeta \circ \alpha_1P_1
&& \text{Def of $i^L$, $\vec{\alpha}$} \\
&= \eta_2R_1U_{1,2} \circ \dom\nu
&& \text{Def of $\nu$} \\
&= E_2\nu \circ \eta_2U_2P_2
&& \text{Interchange} \\
&= E_2\nu \circ (\alpha_2 \circ \kappa U_2)P_2
&& \text{Eq. \eqref{Eq:LCoalg1}} \\
&= (E_2\nu \circ \alpha_2P_2) \circ \kappa U_2P_2 && \\
&= \cod\vec{\beta} \circ \cod\zeta
&& \text{Def of $\vec{\beta}$, $\zeta$} \\
&= \cod(\vec{\beta}\circ\zeta). &&
\end{alignat*}
\end{proof}
\begin{lemma*}
\begin{equation}\label{Eq:CompLem2}
R_1\vec{\beta} \circ \nu = wU_{1,2} \circ L_2\delta_1^RU_{1,2} \circ L_2\nu \circ \vec{\alpha}_2P_2
\end{equation}
\end{lemma*}
\begin{proof}
Again we must prove equality after composing with $\dom$ and $\cod$:
\begin{alignat*}{2}
\hspace{1em}&\hspace{-1em} \dom(R_1\vec{\beta} \circ \nu) && \\
&= E_1\vec{\beta} \circ \dom\nu && \\
&= E_1\vec{\beta} \circ E_1\zeta \circ \alpha_1P_1
&& \text{Def of $\nu$} \\
&= E_1(\vec{\beta}\circ\zeta) \circ \alpha_1P_1 && \\
&= E_1(i^LU_{1,2} \circ L_1\zeta \circ \vec{\alpha}_1P_1) \circ \alpha_1P_1
&& \text{Eq. \eqref{Eq:CompLem1}} \\
&= E_1i^LU_{1,2} \circ E_1L_1\zeta \circ (E_1\vec{\alpha}_1\circ\alpha_1)P_1 && \\
&= E_1i^LU_{1,2} \circ E_1L_1\zeta \circ (\delta_1U_1\circ\alpha_1)P_1
&& \text{Eq. \eqref{Eq:LCoalg3}} \\
&= E_1i^LU_{1,2} \circ \delta_1U_{1,2} \circ E_1\zeta \circ \alpha_1P_1
&& \text{Interchange} \\
&= \dom wU_{1,2} \circ \dom\delta_1^RU_{1,2} \circ \dom\nu \circ \dom\vec{\alpha}_2P_2
&\qquad& \text{Defs of $w$, $\delta^R$, $\nu$, $\vec{\alpha}$} \\
&= \dom (wU_{1,2} \circ L_2\delta_1^RU_{1,2} \circ L_2\nu \circ \vec{\alpha}_2P_2)
\end{alignat*}
and
\begin{alignat*}{2}
\hspace{1em}&\hspace{-1em} \cod(R_1\vec{\beta} \circ \nu) && \\
&= \cod\vec{\beta} \circ \cod\nu && \\
&= E_2\nu \circ \alpha_2P_2
&& \text{Defs of $\vec{\beta}$, $\nu$} \\
&= E_2(p^R\circ\delta_1^R)U_{1,2} \circ E_2\nu \circ \alpha_2P_2
&& p^R\circ\delta^R = \id \\
&= E_2p^RU_{1,2} \circ E_2\delta_1^RU_{1,2} \circ E_2\nu \circ \alpha_2P_2 && \\
&= \cod wU_{1,2} \circ \cod L_2\delta_1^RU_{1,2} \circ \cod L_2\nu \circ \cod\vec{\alpha}_2P_2
&\qquad& \text{Defs of $w$, $L$, $\vec{\alpha}$} \\
&= \cod(wU_{1,2} \circ L_2\delta_1^RU_{1,2} \circ L_2\nu \circ \vec{\alpha}_2P_2)
\end{alignat*}
\end{proof}
Now we are prepared to prove the third equation of \cref{Lem:FFLCoalgUniversalProperty} validating our definition of $G_{\otimes}$:
\begin{alignat*}{2}
\hspace{1em}&\hspace{-1em} \delta_{1\otimes2}U_{1,2} \circ E_2\nu \circ \alpha_2P_2 && \\
&= (E_2w \circ \delta_2R_{1\odot1} \circ E_2\delta_1^R)U_{1,2} \circ E_2\nu \circ \alpha_2P_2
&& \text{Def of $\delta_{1\otimes2}$} \\
&= E_2(wU_{1,2} \circ L_2\delta_1^RU_{1,2} \circ L_2\nu) \circ (\delta_2U_2 \circ \alpha_2)P_2
&& \text{Interchange} \\
&= E_2(wU_{1,2} \circ L_2\delta_1^RU_{1,2} \circ L_2\nu) \circ (E_2\vec{\alpha}_2 \circ \alpha_2)P_2
&\qquad& \text{Eq. \eqref{Eq:LCoalg3}} \\
&= E_2(wU_{1,2} \circ L_2\delta_1^RU_{1,2} \circ L_2\nu \circ \vec{\alpha}_2P_2) \circ \alpha_2P_2 && \\
&= E_2(R_1\vec{\beta}\circ\nu) \circ \alpha_2P_2
&& \text{Eq. \eqref{Eq:CompLem2}} \\
&= E_{1\otimes 2}\vec{\beta} \circ E_2\nu \circ \alpha_2P_2
&& \text{Def of $E_{1\otimes2}$}
\end{alignat*}
The verification that the definitions of $G_I$ and $G_{\otimes}$ form natural families, and of the coherence axioms for a lax double functor, is tedious, but follows from what we have presented here without requiring any new ideas or ingenuity.
\end{proof}
\begin{corollary}\label{Cor:CoalgComp}
For any awfs $(E,\eta,\mu,\epsilon,\delta)$ on an object $C$ in $\twocat{D}$, the multiplication $\mu$ induces a composition functor on $\LCoalg$, and the functor between EM-objects induced by any colax morphism of awfs preserves this composition.
\end{corollary}
\begin{proof}
Any awfs $(E,\eta,\mu,\epsilon,\delta)$ has an underlying object in $\DComon(\FF(\Sq(\twocat{D})))$, by simply forgetting $\mu$. The lax double-functor $\mathrm{Coalg}$ takes this to a span
\[
\begin{tikzcd}[column sep=large]
C & \LCoalg \lar[swap]{\dom U} \rar{\cod U} & C.
\end{tikzcd}
\]
The multiplication $\mu$ provides this object in $\DComon(\FF(\Sq(\twocat{D})))$ with a monad structure, and lax double-functors preserve monads, so $\mu$ induces a monad structure on this span. A multiplication on this span is a morphism $\pi$:
\[
\begin{tikzcd}[row sep=small,sloped,pos=.1]
{} & X \dlar[swap]{\dom UP_1} \drar{\cod UP_2} \ar{dd}[sloped=false,pos=.5]{\pi} & \\
C && C \\
& \LCoalg \ular{\dom U} \urar[swap]{\cod U}
\end{tikzcd}
\]
where $X$ is the pullback in the composite span
\[
\begin{tikzcd}[row sep=small]
{} && X \dlar[swap]{P_1} \drar{P_2} && \\
& \LCoalg \dlar[swap,sloped,pos=.1]{\dom U} \drar[sloped,pos=.1]{\cod U}
&& \LCoalg \dlar[swap,sloped,pos=.1]{\dom U} \drar[sloped,pos=.1]{\cod U} & \\
C && C && C.
\end{tikzcd}
\]
The morphism $\pi$ is the composition structure that we want. If $\twocat{D}=\mathrm{Cat}$ is the 2-category of small categories, then an object $(f,g)$ in $X$ is a pair of morphisms in $C$ equipped with coalgebra structures, such that $\cod f = \dom g$, and $\pi(f,g)$ is a morphism equipped with a coalgebra structure, with $\dom \pi(f,g)=\dom f$ and $\cod \pi(f,g)=\cod g$.
Of course, what we really want is that the morphism underlying the coalgebra $\pi(f,g)$ is the composition $g\circ f$. But this is simply the fact that $\pi$ defines a 2-cell in $\Span(\twocat{D}_0)_{/(-)^2}$, hence commutes with the structure maps to $C^2$. Recall that the structure map for the horizontal composite $X$ is defined using $c\colon C^3\to C^2$, hence $U\pi(f,g)=c(Uf,Ug)$.
\end{proof}
Now we will continue on to the proof of \cref{Thm:CoalgFullFaithful}. The proof is surprisingly difficult and tedious---we will outline the main steps but leave many of the routine verifications to the reader.
\begin{proof}[Proof of \Cref{Thm:CoalgFullFaithful}]
The bijectivity of $\Coalg$ acting on 2-cells with domain $I$ is simple to check, since $I$ is initial in $\DComon(\FF(\Sq(\twocat{D})))$, and from \cref{Lem:FFLCoalgUniversalProperty} it is easy to see that there is a unique morphism $!\colon C\to\LCoalg$ satisfying $U!=i$, with $\alpha!=\eta i$.
Now let $(E_i,\eta_i,\epsilon_i,\delta_i)$, $i\in\{1,2,3\}$, be three comonads in $\FF(\Sq(\twocat{D}))$, with $E_1,E_2\colon C^2\to C$ and $E_3\colon D^2\to D$, and let $F\colon C\to D$ be a morphism. Given a morphism $X_{1,2}\to\LCoalg[3]$ such that $U_3\theta=F^2U_{1,2}$, we need to prove the unique existence of a 2-cell
\[
\begin{tikzcd}[column sep=4em]
C \rar[tick]{(E_1,\eta_1,\epsilon_1,\delta_1)} \dar[swap]{F}
& |[alias=domA]| C \rar[tick]{(E_2,\eta_2,\epsilon_2,\delta_2)}
& C \dar{F} \\
D \ar[tick]{rr}[swap,codA]{(E_3,\eta_3,\epsilon_3,\delta_3)}
&& D
\twocellA{\phi}
\end{tikzcd}
\]
such that $\tilde{\phi}G_{\otimes}=\theta$.
Outline of proof:
\begin{compactitem}
\item Define a morphism $\check{L}_{1\otimes2}\colon C^2\to X_{1,2}$ such that
\[
P_1\check{L}_{1\otimes2}=\hat{L}_1 \qquad\text{and}\qquad P_2\check{L}_{1\otimes2}=\hat{L}_2R_1.
\]
Show that $U_{1,2}\check{L}_{1\otimes2}=L_{1\otimes 2}$.
\item Define a 2-cell
\[
\psi\colon U_3\theta\check{L}_{1\otimes2}\Rightarrow F^2
\]
by $\psi=F^2\vec{\epsilon}_{1\otimes2}$, noting that $U_3\theta\check{L}_{1\otimes2}=F^2L_{1\otimes2}$.
\item Let the 2-cell $\psi'=\hat{L}_3\psi\circ\hat{\alpha}_3\theta\check{L}_{1\otimes2}$,
\[
\begin{tikzcd}
C^2 \rar{\check{L}_{1\otimes2}} \dar[equal]
& |[alias=domA]| X_{1,2} \rar{\theta}
& \LCoalg[3] \\
C^2 \ar{rr}[swap,codA]{F^2}
&& D^2 \uar[swap]{\hat{L}_3}
\twocellA{\psi'}
\end{tikzcd}
\]
be the mate of $\psi$ under the adjunction $U_3\dashv\hat{L}_3$.
\item Define the desired 2-cell $\phi$ to be the codomain component of $\psi'$:
\[
\phi=\cod U_3\psi'=E_3\psi\circ\alpha_3\theta\check{L}_{1\otimes2}\colon FE_2R_1\to E_3F^2
\]
\item First we must verify that $\phi$ defines a valid 2-cell in $\FF(\Sq(\twocat{D}))$ by checking equations~\eqref{Eq:FF2CellA} and~\eqref{Eq:FF2CellB}. Equation~\eqref{Eq:FF2CellA} is simple to show directly, while~\eqref{Eq:FF2CellB} follows from the well definedness of $U_3\psi'$. In fact, we have
\[
\phi^L=U_3\psi'\colon F^2L_{1\otimes2}\Rightarrow L_3F^2
\]
\item Next we must verify that $\phi$ defines a valid 2-cell in $\DComon(\FF(\Sq(\twocat{D})))$, which means showing that it commutes with the comultipication 2-cells:
\[
\begin{tikzcd}
C^2 \rar{R_1} \dar[equal]
& |[alias=domA]| C^2 \rar{E_2}
& C \dar[equal] \\
C^2 \rar[][domB]{L_{1\otimes2}} \dar[swap]{F^2}
& |[alias=codA]| C^2 \rar[][domC]{E_2R_1} \dar{F^2}
& C \dar{F} \\
D^2 \rar[][swap,codB]{L_3}
& D^2 \rar[][codC,swap]{E_3}
& D
\twocellA{\delta_{1\otimes2}}
\twocellB{\phi^L}
\twocellC{\phi}
\end{tikzcd}
=
\begin{tikzcd}
C^2 \rar{R_1} \dar[swap]{F^2}
& |[alias=domA]| C^2 \rar{E_2}
& C \dar{F} \\
D^2 \ar{rr}[codA,domB]{E_3} \dar[equal]
&& D \dar[equal] \\
D \rar[swap]{L_3}
& |[alias=codB]| D^2 \rar[swap]{E_3}
& D.
\twocellA{\phi}
\twocellB{\delta_3}
\end{tikzcd}
\]
To do this, first verify the existence of a 2-cell $\check{\delta}_{1\otimes2}\colon\check{L}_{1\otimes2}\Rightarrow\check{L}_{1\otimes2}L_{1\otimes2}$ satisfying
\begin{equation}\label{Eq:PhiComult}
P_1\check{\delta}_{1\otimes2} = \hat{L}_1i^L\circ\hat{\delta}_1 \quad\text{and}\quad
P_2\check{\delta}_{1\otimes2} = \hat{L}_2w\circ\hat{L}_2L_2\delta_1^R\circ\hat{\delta}_2R_1
\end{equation}
where $\hat{\delta}_i$ is the unique 2-cell with $U_i\hat{\delta}_i=\vec{\delta}_i$. Show that $U_{1,2}\check{\delta}_{1\otimes2}=\vec{\delta}_{1\otimes2}$.
Define
\[
\tau_1=\hat{L}_3\phi^L\circ\psi'L_{1\otimes2}\circ\theta\check{\delta}_{1\otimes2}
\quad\text{and}\quad
\tau_2=\hat{\delta}_3F^2\circ\psi'
\]
and check that $\cod U_3\tau_1=E_3\phi^L\circ \phi L_{1\otimes2}\circ F\delta_{1\otimes2}$ and $\cod U_3\tau_2=\delta_3 F^2\circ\phi$. Hence to prove~\eqref{Eq:PhiComult} it suffices to show $\tau_1=\tau_2$. To do this, show that the mates of each are equal to $\phi^L$.
\item We have defined a 2-cell $\phi$ in $\DComon(\FF(\Sq(\twocat{D})))$, now we need to show that the lax functor $\Coalg$ takes this $\phi$ to the 2-cell $\theta$ we began with, i.e. that $\theta=\tilde{\phi}G_{\otimes}$. It is easy to see that
\[
U_3\tilde{\phi}G_{\otimes}=F^2U_{1\otimes2}G_{\otimes}=F^2U_{1,2}=U_3\theta,
\]
so it only remains to show that $\alpha_3\tilde{\phi}G_{\otimes}=\alpha_3\theta$.
Begin by verifying the existence of a 2-cell $\rho\colon\id_{X_{1,2}}\Rightarrow\check{L}_{1\otimes2}U_{1,2}$ such that
\[
P_1\rho=\hat{L}_1\zeta\circ\hat{\alpha}_1P_1 \quad\text{and}\quad
P_2\rho=\hat{L}_2\nu\circ\hat{\alpha}_2P_2,
\]
and show that $U_{1,2}\rho=\vec{\alpha}_{1\otimes2}G_\otimes$.
Finally, show that
\[
\psi U_{1,2} \circ F^2\vec{\alpha}_{1\otimes2}G_{\otimes} = \id_{F^2U_{1,2}},
\]
and use this to show that $\vec{\alpha}_3\tilde{\phi}G_{\otimes}=\vec{\alpha}_3\theta$. Thus we have shown the existance of the 2-cell $\phi$ such that $\tilde{\phi}G_{\otimes}=\theta$, and the uniqueness follows by a very similar computation.
\end{compactitem}
\end{proof}
Combining this with \cref{Prop:LaxFuncMonad} immediately implies:
\begin{corollary}
Suppose $(E,\eta,\epsilon,\delta)$ is a comonad in $\FF(\Sq(\twocat{D}))$. A composition on $\LCoalg$ is equivalent to completing $E$ to an awfs.
\end{corollary}