履歴: プログラミング/圏論入門
各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 73 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます
| 日時 | タイトル | 文字数 | 追加 | 削除 | 内容 | 差分 | 基準 |
|---|---|---|---|---|---|---|---|
| 2026/12/6 10:25:00 | プログラミング/圏論入門 最新版 | 124,596 | +1 | -1 | 表示 | 差分 | — |
| 2026/11/21 16:05:51 | プログラミング/圏論入門 | 124,600 | +2 | -3 | 表示 | 差分 | 選択 |
| 2026/11/15 12:38:08 | プログラミング/圏論入門 | 124,601 | +76 | -29 | 表示 | 差分 | 選択 |
| 2026/11/14 21:16:05 | プログラミング/圏論入門 | 123,185 | +62 | -31 | 表示 | 差分 | 選択 |
| 2026/11/14 13:10:31 | プログラミング/圏論入門 | 122,470 | +189 | -132 | 表示 | 差分 | 選択 |
| 2026/9/24 10:55:34 | プログラミング/圏論入門 | 119,835 | +3 | -3 | 表示 | 差分 | 選択 |
| 2026/9/10 15:42:28 | プログラミング/圏論入門 | 119,857 | +36 | -3 | 表示 | 差分 | 選択 |
| 2026/9/9 16:08:52 | プログラミング/圏論入門 | 119,032 | +153 | -249 | 表示 | 差分 | 選択 |
| 2026/8/28 22:32:51 | プログラミング/圏論入門 | 120,396 | +370 | -1 | 表示 | 差分 | 選択 |
| 2026/8/25 10:27:06 | プログラミング/圏論入門 | 110,927 | +8 | -6 | 表示 | 差分 | 選択 |
| 2026/8/24 21:57:25 | プログラミング/圏論入門 | 110,853 | +143 | -1 | 表示 | 差分 | 選択 |
| 2026/8/24 11:35:31 | プログラミング/圏論入門 | 107,041 | +117 | -8 | 表示 | 表示中 | 選択 |
| 2026/8/23 14:37:27 | プログラミング/圏論入門 | 104,574 | +3 | -5 | 表示 | 差分 | 選択 |
| 2026/8/22 13:05:37 | プログラミング/圏論入門 | 104,549 | +23 | -1 | 表示 | 差分 | 選択 |
| 2026/8/21 23:11:51 | プログラミング/圏論入門 | 104,057 | +5 | -3 | 表示 | 差分 | 選択 |
| 2026/8/21 23:04:03 | プログラミング/圏論入門 | 104,009 | +184 | -114 | 表示 | 差分 | 選択 |
| 2026/8/18 23:27:06 | プログラミング/圏論入門 | 101,970 | +8 | -3 | 表示 | 差分 | 選択 |
| 2026/8/18 9:57:04 | プログラミング/圏論入門 | 101,820 | +91 | -41 | 表示 | 差分 | 選択 |
| 2026/8/17 20:20:20 | プログラミング/圏論入門 | 100,180 | +20 | -11 | 表示 | 差分 | 選択 |
| 2026/8/17 1:35:31 | プログラミング/圏論入門 | 99,726 | +334 | -247 | 表示 | 差分 | 選択 |
| 2026/8/16 14:22:17 | プログラミング/圏論入門 | 98,070 | +252 | -12 | 表示 | 差分 | 選択 |
| 2026/8/16 2:25:21 | プログラミング/圏論入門 | 91,460 | +266 | -5 | 表示 | 差分 | 選択 |
| 2026/8/15 12:34:45 | プログラミング/圏論入門 | 84,832 | +8 | -1 | 表示 | 差分 | 基準 |
| 2026/8/15 1:19:09 | プログラミング/圏論入門 | 84,652 | +45 | -3 | 表示 | 差分 | 選択 |
| 2026/8/14 19:35:08 | プログラミング/圏論入門 | 82,876 | +75 | -51 | 表示 | 差分 | 選択 |
| 2026/8/12 23:52:33 | プログラミング/圏論入門 | 82,014 | +201 | -34 | 表示 | 差分 | 選択 |
| 2026/8/12 10:17:25 | プログラミング/圏論入門 | 78,619 | +20 | -5 | 表示 | 差分 | 選択 |
| 2026/8/11 8:23:14 | プログラミング/圏論入門 | 78,497 | +9 | -10 | 表示 | 差分 | 選択 |
| 2026/8/6 14:47:08 | プログラミング/圏論入門 | 78,547 | +17 | -1 | 表示 | 差分 | 選択 |
| 2026/8/6 1:10:44 | プログラミング/圏論入門 | 78,282 | +22 | -6 | 表示 | 差分 | 選択 |
| 2026/8/4 19:58:47 | プログラミング/圏論入門 | 77,750 | +21 | -7 | 表示 | 差分 | 選択 |
| 2026/8/4 14:52:58 | プログラミング/圏論入門 | 77,577 | +154 | -13 | 表示 | 差分 | 選択 |
| 2026/8/4 11:44:38 | プログラミング/圏論入門 | 75,700 | +29 | -13 | 表示 | 差分 | 選択 |
| 2026/8/4 1:06:55 | プログラミング/圏論入門 | 75,173 | +24 | -13 | 表示 | 差分 | 選択 |
| 2026/7/29 22:49:12 | プログラミング/圏論入門 | 74,839 | +15 | -8 | 表示 | 差分 | 選択 |
| 2026/7/25 14:20:23 | プログラミング/圏論入門 | 74,658 | +37 | -5 | 表示 | 差分 | 選択 |
| 2026/7/25 3:47:07 | プログラミング/圏論入門 | 73,842 | +22 | -7 | 表示 | 差分 | 選択 |
| 2026/7/25 2:40:24 | プログラミング/圏論入門 | 73,414 | +48 | -3 | 表示 | 差分 | 選択 |
| 2026/7/23 3:49:50 | プログラミング/圏論入門 | 72,356 | +42 | -48 | 表示 | 差分 | 選択 |
| 2026/7/22 23:56:00 | プログラミング/圏論入門 | 72,799 | +209 | -3 | 表示 | 差分 | 選択 |
| 2026/7/22 16:27:25 | プログラミング/圏論入門 | 64,731 | +81 | -42 | 表示 | 差分 | 選択 |
| 2026/7/22 10:02:50 | プログラミング/圏論入門 | 63,069 | +10 | -2 | 表示 | 差分 | 選択 |
| 2026/7/22 0:45:50 | プログラミング/圏論入門 | 62,800 | +17 | -5 | 表示 | 差分 | 選択 |
| 2026/7/21 14:53:39 | プログラミング/圏論入門 | 62,475 | +92 | -2 | 表示 | 差分 | 選択 |
| 2026/7/21 11:06:44 | プログラミング/圏論入門 | 59,254 | +119 | -4 | 表示 | 差分 | 選択 |
| 2026/7/21 0:50:53 | プログラミング/圏論入門 | 55,291 | +99 | -1 | 表示 | 差分 | 選択 |
| 2026/7/20 22:44:37 | プログラミング/圏論入門 | 50,988 | +20 | -2 | 表示 | 差分 | 選択 |
| 2026/7/20 16:34:20 | プログラミング/圏論入門 | 50,459 | +53 | -1 | 表示 | 差分 | 選択 |
| 2026/7/19 22:33:44 | プログラミング/圏論入門 | 47,752 | +3 | -3 | 表示 | 差分 | 選択 |
| 2026/7/19 16:51:31 | プログラミング/圏論入門 | 47,694 | +68 | -18 | 表示 | 差分 | 選択 |
| 2026/7/19 9:12:20 | プログラミング/圏論入門 | 44,453 | +43 | -1 | 表示 | 差分 | 選択 |
| 2026/7/18 23:55:08 | プログラミング/圏論入門 | 43,258 | +71 | -1 | 表示 | 差分 | 選択 |
| 2026/7/18 0:20:44 | プログラミング/圏論入門 | 40,851 | +4 | -4 | 表示 | 差分 | 選択 |
| 2026/7/17 22:55:07 | プログラミング/圏論入門 | 40,883 | +4 | -16 | 表示 | 差分 | 選択 |
| 2026/7/17 8:50:31 | プログラミング/圏論入門 | 41,234 | +9 | -6 | 表示 | 差分 | 選択 |
| 2026/7/14 17:56:39 | プログラミング/圏論入門 | 41,180 | +89 | -74 | 表示 | 差分 | 選択 |
| 2026/7/14 12:40:09 | プログラミング/圏論入門 | 40,589 | +66 | -35 | 表示 | 差分 | 選択 |
| 2026/7/14 0:06:11 | プログラミング/圏論入門 | 39,660 | +57 | -1 | 表示 | 差分 | 選択 |
| 2026/7/13 14:05:21 | プログラミング/圏論入門 | 38,100 | +9 | -2 | 表示 | 差分 | 選択 |
| 2026/7/12 19:50:25 | プログラミング/圏論入門 | 37,833 | +41 | -40 | 表示 | 差分 | 選択 |
| 2026/7/11 21:28:29 | プログラミング/圏論入門 | 37,740 | +53 | -15 | 表示 | 差分 | 選択 |
| 2026/7/11 9:10:13 | プログラミング/圏論入門 | 36,919 | +66 | -55 | 表示 | 差分 | 選択 |
| 2026/7/10 22:30:49 | プログラミング/圏論入門 | 36,454 | +89 | -12 | 表示 | 差分 | 選択 |
| 2026/7/10 19:50:54 | プログラミング/圏論入門 | 33,776 | +298 | -44 | 表示 | 差分 | 選択 |
| 2026/7/10 12:40:49 | プログラミング/圏論入門 | 27,561 | +177 | -73 | 表示 | 差分 | 選択 |
| 2026/7/9 23:58:56 | プログラミング/圏論入門 | 25,762 | +60 | -5 | 表示 | 差分 | 選択 |
| 2026/7/9 21:11:50 | プログラミング/圏論入門 | 24,438 | +55 | -16 | 表示 | 差分 | 選択 |
| 2026/7/9 7:39:19 | プログラミング/圏論入門 | 23,596 | +3 | -2 | 表示 | 差分 | 選択 |
| 2026/7/9 0:18:38 | プログラミング/圏論入門 | 23,597 | +92 | -1 | 表示 | 差分 | 選択 |
| 2026/7/8 15:41:14 | プログラミング/圏論入門 | 20,187 | +32 | -19 | 表示 | 差分 | 選択 |
| 2026/7/8 13:02:28 | プログラミング/圏論入門 | 19,915 | +239 | -65 | 表示 | 差分 | 選択 |
| 2026/7/8 0:05:09 | プログラミング/圏論入門 | 15,091 | +364 | -11 | 表示 | 差分 | 選択 |
| 2026/7/7 23:18:17 | プログラミング/圏論入門 | 1,024 | — | — | 表示 | — | 選択 |
基準: プログラミング/圏論入門 (2026/8/15 12:34:45) → 比較: プログラミング/圏論入門 (2026/8/24 11:35:31)
@@ -1,4 +1,4 @@
-#author("2026-08-15T03:34:45+00:00","","")
+#author("2026-08-24T02:35:31+00:00","","")
[[公開メモ]]
&katex();
@@ -1691,13 +1691,49 @@
$$\alpha_Y\circ \mathcal F(f)=\mathcal G(f)\circ \alpha_X$$
そのような $\alpha$ を $\mathcal F,\mathcal G$ の自然変換と呼ぶ。
-** 自然変換の演算規則 [#ja6715b7]
+** 自然変換の演算規則1 [#y07870b1]
$\alpha:\mathcal F\to\mathcal G$ の自然変換と $f:X\to Y$ に対して次式が成り立つ
$$\alpha_Y\circ \mathcal F(f)=\mathcal G(f)\circ \alpha_X$$
+これは関手適用と自然変換適用との交換規則を与える。
+$$\alpha_Y\big(\mathcal F(f)(x)\big)=\mathcal G(f)\big(\alpha_X(x)\big)$$
+$f$ 相当の演算を行ってから自然変換する形から $f$ を自然変換の外に出すときには、$f$ に自然変換を適用しておく必要がある、ということ。
+
この形は頻出するのでスルッと出てくるようにしておきたい。
+** 自然変換の演算規則2 [#ja6715b7]
+
+圏 $\mathcal C$ とその対象 $C$、自己関手 $\mathcal F:\mathcal C\to\mathcal C$ と''逆を持つ''自然変換 $\alpha:\mathcal I\to\mathcal F$ に対して
+$$
+\mathcal F(\alpha_C)=\alpha_{\mathcal F(C)}
+$$
+なぜなら $\alpha$ の自然性より
+$$
+\alpha_{\mathcal F(C)}\circ\alpha_C=\mathcal F(\alpha_C)\circ \alpha_C
+$$
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "F(C)"
+ usecase "F(C)" as FC2
+ usecase "F◦F(C)"
+}
+"C"-->"F(C)":" α_C"
+"C"->FC2: " α_C "
+FC2-->"F◦F(C)": " F(α_C)"
+"F(C)"->"F◦F(C)":α_F(C)
+FC2=="F(C)"
+);
+
+右から $\alpha_C^{-1}$ をかければ、
+$$
+\alpha_{\mathcal F(C)}=\mathcal F(\alpha_C)
+$$
+
+これは $\alpha$ が逆を持つときしか成り立たないことに注意せよ。
+
** 自然変換の例 [#t12e328e]
例として挙げられていたのが $\mathrm{safeHead}$ という関数。
@@ -2510,7 +2546,7 @@
このとき2つの圏 $\mathcal C,\mathcal D$ は同型であるといい、
$$\mathcal C\cong\mathcal D$$
-と書く。
+と書くのであった。
*** Hom 間の写像として見ると [#da91e954]
@@ -2523,6 +2559,24 @@
f=\mathcal L\circ\mathcal R(f)
$$
が成り立つ。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase (C')
+}
+rectangle "Category D" {
+ usecase "R(C)"
+ usecase "R(C')"
+}
+C-->(C'): " f=L◦R(f)"
+"R(C)"-->"R(C')": " R(f)"
+C.>"R(C)": R
+C<."R(C)": " L= R^-1 "
+"C'".>"R(C')": R
+"C'"<."R(C')": " L= R^-1 "
+);
+
** 圏の同値(equivalence) [#kf804a23]
上で関手が対象の同型関係を保つことを見た。
@@ -2558,8 +2612,8 @@
これらの合成が互いに恒等関手と自然同型である、と表せる。
-- $\mathcal L\circ \mathcal R\cong \mathcal I_C$
-- $\mathcal R\circ \mathcal L\cong \mathcal I_D$
+- $\mathcal L\circ \mathcal R\cong \mathcal I_\mathcal{C}$
+- $\mathcal R\circ \mathcal L\cong \mathcal I_\mathcal{D}$
圏の同型ではこれらは恒等関手と「等しい」ことが要求されたが、~
圏の同値では「自然同型」であればよい、という形で条件が緩くなったのである。
@@ -2571,46 +2625,455 @@
$\mathcal R, \mathcal L$ が同値関手であるとき、
-任意の $f\in\mathrm{Hom}(X,Y)$ と
-$\mathcal L\circ\mathcal R(f)\in\mathrm{Hom}( \mathcal L\circ\mathcal R(X), \mathcal L\circ\mathcal RY)$ とが自然同型射 $\varphi$ によって、
+任意の $f\in\mathrm{Hom}(C,C')$ と
+$\mathcal L\circ\mathcal R(f)\in\mathrm{Hom}( \mathcal L\circ\mathcal R(C), \mathcal L\circ\mathcal R(C')$ とが自然同型射 $\varphi$ によって、
¨(
-usecase "L◦R(X)"
-usecase "L◦R(Y)"
-(X)->"L◦R(X)":φ_X
-(Y)->"L◦R(Y)":φ_Y
-(X)-->Y: " f"
-"L◦R(X)"-->"L◦R(Y)": " L◦R(f)"
+rectangle "Category C" {
+ usecase (C)
+ usecase (C')
+ usecase "L◦R(C)"
+ usecase "L◦R(C')"
+}
+rectangle "Category D" {
+ usecase "R(C)"
+ usecase "R(C')"
+}
+C-->(C'): " f"
+"R(C)"-->"R(C')": " R(f)"
+C.>"R(C)": R
+"L◦R(C)"<."R(C)": " L "
+"C'".>"R(C')": R
+"L◦R(C')"<."R(C')": L
+"L◦R(C)"-->"L◦R(C')":" L◦R(f)"
+C->"L◦R(C)":" φ_C"
+C<-"L◦R(C)":" φ_C^-1"
+"C'"->"L◦R(C')":φ_C'
+"C'"<-"L◦R(C')":φ_C'^-1
);
-$$\varphi_Y\circ f=(\mathcal L\circ\mathcal R)(f)\circ\varphi_X$$
+$$\varphi_C'\circ f=(\mathcal L\circ\mathcal R)(f)\circ\varphi_C$$
すなわち、
-$$(\mathcal L\circ\mathcal R)(f)=\varphi_Y\circ f\circ\varphi_X^{-1}$$
+$$(\mathcal L\circ\mathcal R)(f)=\varphi_C'\circ f\circ\varphi_C^{-1}$$
により、全単射の意味で一対一に対応することになる。
-** 随伴(adjoint) [#n0ca8d93]
+同値関係において $\varphi=1$ と取れば同型であるから、同型は同値の特殊な形と見做せる。
+** 随伴(adjoint) [#w4f7cc2b]
+
+随伴の条件は同値よりもさらにゆるい関係になる。
+
+2つの圏 $\mathcal C,\mathcal D$ があり、その間の関手 $\mathcal R:\mathcal C\to\mathcal D,\ \mathcal L:\mathcal D\to\mathcal C$ があるとする。
+
+任意の $C\in\mathcal C, D\in\mathcal D$ に対して $\mathrm{Hom}(\mathcal L(D),C)$ と $\mathrm{Hom}(D,\mathcal R(C))$ との間に自然な全単射 $\varphi_{C,D},\varphi_{C,D}^{-1}$ が存在するとき、
+$$
+\mathrm{Hom}(\mathcal L(D),C)\cong\mathrm{Hom}(D,\mathcal R(C))\\
+$$
+$$
+\varphi_{C,D}:\mathrm{Hom}(\mathcal L(D),C)\to\mathrm{Hom}(D,\mathcal R(C))\\
+$$
+関手 $\mathcal L$ は関手 $\mathcal R$ に対する左随伴 (left adjoint) と呼ばれ、$\mathcal L\dashv\mathcal R$ と書かれる。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L(D)"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R(C)"
+}
+D-left.>"L(D)":" L "
+C.>"R(C)": " R "
+"L(D)"-->C:" f = φ^-1( φ(f) ) "
+D-->"R(C)":" φ(f)"
+);
+
+*** 同型自然変換としての定義から演算規則を得る [#w46c64be]
+
+それぞれの射に次の演算規則が成り立つことを以下で証明する。
+
+- $f:C\to C', h:\mathcal L(D)\to C$ に対して $\varphi_{C',D}(f\circ h)=\mathcal R(f)\circ \varphi_{C,D}(h)$
+- $g:D'\to D, h:\mathcal L(D)\to C$ に対して $\varphi_{C,D'}(h\circ\mathcal L(g))= \varphi_{C,D}(h)\circ g$~
+あるいは~
+$g:D'\to D, k:\mathcal D\to \mathcal R(C)$ に対して $\varphi_{C,D'}^{-1}(k\circ g)=\varphi_{C,D}^{-1}(k)\circ\mathcal L(g)$
+
+ここから証明:
+
+「自然な全単射」という言い回しは、次の関手間の同型自然変換 $\varphi_{-,D}$ の存在を主張するものである。
+$$
+\mathrm{Hom}(\mathcal L(D),-)\cong\mathrm{Hom}(D,\mathcal R(-))\\
+$$
+このとき、それぞれの関手の射 $f:C\to C'$ に対する変換は、
+$$f\circ - \hspace{10mm} \text{および} \hspace{10mm}\mathcal R(f)\circ -$$
+と定義される。すなわち、射に対する関手の変換としては $\varphi_{C',D}:(f\circ -)\mapsto(\mathcal R(f)\circ -)$ 。
+
+この変換の自然性から、任意の $h:\mathcal L(D)\to C$ に対して次の関係式が出る。
+$${\color{red}\varphi_{C',D}(f\circ h)}={\color{blue}\mathcal R(f)\circ \varphi_{C,D}(h)}$$
+
+図にするととても当たり前な関係と思えるはず:~
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L(D)"
+ usecase (C')
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R(C)"
+ usecase "R(C')"
+}
+D-left.>"L(D)":"L "
+C-right.>"R(C)": "R "
+"L(D)"-->C:" h"
+D-->"R(C)"#blue:" φ(h)"
+C-->(C'):" f"
+"R(C)"-->"R(C')"#blue:" R(f)"
+"C'".>"R(C')": "R "
+D-right--->"R(C')"#red:" φ(f◦h)"
+"L(D)"-left--->(C'):" f◦h"
+);
+
+また同時に、次の反変関手間の同型自然変換 $\varphi_{C,-}$ の存在も含意する。~
+(これが、$\phi$ が $C,D$ のように2つの添え字を持つ理由である)
+$$
+\mathrm{Hom}(\mathcal L(-),C)\cong\mathrm{Hom}(-,\mathcal R(C))\\
+$$
+それぞれの関手の射 $g:D'\to D$ に対する変換は、
+$$-\circ\mathcal L(g) \hspace{10mm} \text{および} \hspace{10mm}-\circ g$$
+である。つまり、射に対する関手の変換としては $\varphi_{C,D'}:(-\circ\mathcal L(g))\mapsto(-\circ g)$ 。
+
+この変換の自然性から、任意の $h:\mathcal L(D)\to C$ に対して次の関係式が出る。
+$$\varphi_{C,D'}(h\circ\mathcal L(g))= \varphi_{C,D}(h)\circ g$$
+あるいはこれを逆にして、任意の $\varphi_{C,D}(h)=k:\mathcal D\to \mathcal R(C)$ に対して、
+$${\color{red}\varphi_{C,D'}^{-1}(k\circ g)}={\color{blue}\varphi_{C,D}^{-1}(k)\circ\mathcal L(g)}$$
+
+これも当たり前な関係:~
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L(D)"
+ usecase "L(D')"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase (D')
+ usecase "R(C)"
+}
+D-left.>"L(D)":" L "
+C-right.>"R(C)": " R"
+"D'"-left.>"L(D')": "L"
+"L(D)"-->C#blue:" φ^-1(k)"
+D-->"R(C)":" k"
+"D'"-->D: " g"
+"L(D')"-->"L(D)"#blue: " L(g)"
+"L(D')"--->"C"#red: " φ^-1(k◦g)"
+"D'"-right--->"R(C)":" k◦g"
+);
+
+
+
+*** 単位(unit) $\eta:\mathcal I_{\mathcal D}\to\mathcal R\circ \mathcal L$ [#b74bae84]
+
+$\eta_D=\varphi_{\mathcal L(D),D}(1_{\mathcal L(D)})$ と定義すると、これは $\eta:\mathcal I_{\mathcal D}\to\mathcal R\circ \mathcal L$ の自然変換となる。この変換は随伴の「単位」と呼ばれる。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L(D)"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R(C)"
+}
+D-left.>"L(D)":" L "
+C.>"R(C)": " R "
+"L(D)"-->C:" f"
+D-->"R(C)":" φ(f)"
+); →
+¨(
+rectangle "Category C" {
+ usecase "L(D)"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R◦L(D)"
+}
+"L(D)"-right.>"R◦L(D)": " R "
+D-left.>"L(D)":" L"
+D-->"R◦L(D)":" η_D=φ(1_L(D))"
+"L(D)"-->"L(D)":1_L(D)
+);
+
+*** 余単位(co-unit) $\varepsilon:\mathcal L\circ \mathcal R\to\mathcal I_C$ [#w40b011f]
+
+$\varepsilon_C=\varphi_{C,\mathcal R(C)}^{-1}(1_{\mathcal R(C)})$ と定義すると、これは $\varepsilon:\mathcal L\circ \mathcal R\to\mathcal I_C$ の自然変換となる。この変換は随伴の「余単位」と呼ばれる。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L(D)"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R(C)"
+}
+D-left.>"L(D)":" L "
+C.>"R(C)": " R"
+"L(D)"-->C:" φ^-1(g)"
+D-->"R(C)":" g"
+); →
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L◦R(C)"
+}
+rectangle "Category D" {
+ usecase "R(C)"
+}
+"R(C)"-left.>"L◦R(C)":" L"
+C.>"R(C)": " R"
+"L◦R(C)"-->C:" ε_C = φ^-1(1_R(C)) "
+"R(C)"-->"R(C)":" 1_R(C)"
+);
+
+*** 三角恒等式 [#la1aa3f4]
+
+この $\eta,\varepsilon$ は以下の2つの三角恒等式を満たす。
+
+- $\varepsilon_{\mathcal L(D)}\circ\mathcal L(\eta_D)=1_{\mathcal L(D)}$
+- $\mathcal R(\varepsilon_{C})\circ\eta_{\mathcal R(C)}=1_{\mathcal R(C)}$
+
+証明は、それぞれの左辺に
+- $\eta_D=\varphi_{\mathcal L(D),D}(1_{\mathcal L(D)})$
+- $\varepsilon_C=\varphi_{C,\mathcal R(C)}^{-1}(1_{\mathcal R(C)})$
+
+を代入し、$\varphi,\varphi^{-1}$ の具体形を使えばよい。
+$$
+\begin{aligned}
+&\varphi_{\mathcal L(D),\mathcal R\circ\mathcal L(D)}^{-1}(1_{\mathcal R\circ\mathcal L(D)})\circ\mathcal L(\varphi_{\mathcal L(D),D}(1_{\mathcal L(D)}))\\
+=\,&\varphi_{\mathcal L(D),D}^{-1}\big(\varphi_{\mathcal L(D),D}(1_{\mathcal L(D)})\big)
+\hspace{10mm}\because \varphi_{C,D}^{-1}(h\circ g)=\varphi_{C,D'}^{-1}(h)\circ\mathcal L(g)\\
+=\,&1_{\mathcal L(D)}
+\end{aligned}
+$$
+$$
+\begin{aligned}
+&\mathcal R(\varphi_{C,\mathcal R(C)}^{-1}(1_{\mathcal R(C)}))\circ\varphi_{\mathcal L\circ\mathcal R(C),\mathcal R(C)}(1_{\mathcal L\circ\mathcal R(C)})\\
+=\,&\varphi_{C,\mathcal R(C)}\big(\varphi_{C,\mathcal R(C)}^{-1}(1_{\mathcal R(C)})\big)
+\hspace{10mm}\because\varphi_{C',D}(f\circ h)=\mathcal R(f)\circ \varphi_{C,D}(h)\\
+=\,&1_{\mathcal R(C)}
+\end{aligned}
+$$
+
+¨(
+rectangle "Category C" {
+ usecase "L(D)"
+ usecase "L◦R◦L(D)"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R◦L(D)"
+}
+"L(D)"-right.>"R◦L(D)": " R "
+D-left.>"L(D)":" L"
+D-->"R◦L(D)":" η_D"
+"L(D)"-->"L(D)":1_L(D)
+"L(D)"-->"L◦R◦L(D)":L(η_D)
+"L(D)"<--"L◦R◦L(D)":ε_L(D)
+"L◦R◦L(D)"<."R◦L(D)":L
+);
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L◦R(C)"
+}
+rectangle "Category D" {
+ usecase "R(C)"
+ usecase "R◦L◦R(C)"
+}
+"R(C)"-left.>"L◦R(C)":"L"
+C.>"R(C)": " R "
+"L◦R(C)"-->C:" ε_C "
+"R(C)"-->"R(C)":" 1_R(C)"
+"R(C)"-up->"R◦L◦R(C)":" η_R(C) "
+"L◦R(C)".>"R◦L◦R(C)":R
+"R(C)"<-up-"R◦L◦R(C)":" R(ε_C)"
+);
+
+*** 圏の同値は随伴を含意する [#af7f18b8]
+
+これを示すには図の黄色でマークした対象に注目して、$f:\mathcal L(D)\to C$ を $\varphi(f):D\to\mathcal R(C)$ に移す自然な全単射 $\varphi$ の存在を同値の2つの同型射
+- $\mathcal L\circ\mathcal R\overset{\sigma}{\cong}1$
+- $\mathcal R\circ\mathcal L\overset{\tau}{\cong}1$
+
+から示せばよい。
+
+¨(
+rectangle "Category D" {
+ usecase (D) #yellow
+ usecase "R(C)" #yellow
+ usecase "R◦L(D)"
+ usecase "R◦L◦R◦L(D)"
+}
+rectangle "Category C" {
+ usecase (C) #yellow
+ usecase "L(D)" #yellow
+ usecase "L◦R(C)"
+ usecase "L◦R◦L(D)"
+}
+usecase "L◦R◦L◦R◦L(D)" #white;line:white;text:white
+D-left-.>"L(D)": "L"
+"L(D)"-right-.>"R◦L(D)":"R"
+"R(C)"-left-.>"L◦R(C)":"L"
+C-right-.>"R(C)": "R"
+"L(D)"-->C:" f "
+"L(D)"-->C#red:" ψ(g)"
+D-->"R(C)"#yellowgreen:"φ(f)"
+D-->"R(C)"#red:"ψ^-1(f)"
+D-->"R(C)":" g"
+C-->"L◦R(C)":" σ_C"
+C<--"L◦R(C)"#blue:" σ_C^-1"
+"R◦L(D)"-->D:" τ_D^-1"
+"R◦L(D)"<--D#blue:" τ_D "
+"R◦L(D)"<--D #blue;line.dotted :" L^{-1}(σ_L(D))"
+"R◦L(D)"--->"R(C)"#blue:" R(f)"
+"L(D)"--->"L◦R(C)"#blue:"L(g) "
+"L◦R◦L(D)"-->"L(D)":σ_L(D)^-1
+"L◦R◦L(D)"<--"L(D)":σ_L(D)
+"L◦R◦L(D)"<."R◦L(D)":" L"
+"L◦R◦L(D)".>"R◦L◦R◦L(D)": R
+"R◦L◦R◦L(D)"<--"R◦L(D)"#blue:"R(σ_L(D))"
+"R◦L◦R◦L(D)"-->"R◦L(D)"#blue:"R◦L(τ_D)^-1"
+"L◦R◦L◦R◦L(D)"-->"L◦R◦L(D)"#white
+"L◦R◦L◦R◦L(D)"<-."R◦L◦R◦L(D)"#white
+);
+
+一見すると、
+- $\varphi(f)=\mathcal R(f)\circ \tau_D$
+- $\psi(g)=\sigma_C^{-1}\circ \mathcal L(g)$
+
+の2つが逆射になりそうに思えるが、実際に入れてみると
+$$
+\begin{aligned}
+\psi\circ\varphi(f)
+&=\sigma_C^{-1}\circ \mathcal L\big(\mathcal R(f)\circ \tau_D\big)\\
+&=\sigma_C^{-1}\circ (\mathcal L\circ\mathcal R)(f)\circ \mathcal L(\tau_D)\\
+&=f\circ\sigma_{\mathcal L(D)}^{-1}\circ \mathcal L(\tau_D)\\
+\end{aligned}
+$$
+および、
+$$
+\begin{aligned}
+\varphi\circ\psi(g)
+&=\mathcal R\big(\sigma_C^{-1}\circ \mathcal L(g)\big)\circ \tau_D\\
+&=\mathcal R(\sigma_C^{-1})\circ (\mathcal R\circ\mathcal L)(g)\circ \tau_D\\
+&=\mathcal R(\sigma_C^{-1})\circ \tau_{\mathcal R(C)} \circ g\\
+\end{aligned}
+$$
+となるところ、一般に $\sigma,\tau$ は独立に選べるから、
+$$
+\begin{aligned}
+\sigma_{\mathcal L(D)}^{-1}\circ \mathcal L(\tau_D)\ne1_{\mathcal L(D)}\\
+\mathcal R(\sigma_C^{-1})\circ \tau_{\mathcal R(C)}\ne1_{\mathcal R(C)}
+\end{aligned}
+$$
+である。すなわち $\varphi,\psi$ は逆にならない。
+
+そこで、以下を満たす $\tau^*$ を構成することを考えよう。
+$$
+\begin{aligned}
+\sigma_{\mathcal L(D)}^{-1}\circ \mathcal L(\tau_D^*)=1_{\mathcal L(D)}\\
+\mathcal R(\sigma_C^{-1})\circ \tau_{\mathcal R(C)}^*=1_{\mathcal R(C)}
+\end{aligned}
+$$
+これが作れれば $\tau_D$ の代わりに $\tau_D^*$ を使うことで $\psi(g)$ の逆射を構成できる。
+
+1つ目の条件式は、
+$$
+\tau_D^*=\mathcal L^{-1}(\sigma_{\mathcal L(D)})
+$$
+と置けば形式的には成立するのであるが、ここでは $\mathcal L$ は関手としては逆を持たないため注意が必要だ(逆を持つなら同値ではなく同型になる)。
+
+それでもここでは下図の示す通り、任意の $f:\mathcal L(D)\to \mathcal L(D')$ に対して $\mathcal L^{-1}$ を次のように構成可能である。
+$$
+\mathcal L^{-1}(f)=\tau_{D'}^{-1}\circ\mathcal R(f)\circ\tau_D
+$$
+¨(
+rectangle "Category C" {
+ usecase "L(D)"
+ usecase "L(D')"
+}
+rectangle "Category D" {
+ usecase "D"
+ usecase "D'"
+ usecase "R◦L(D)"
+ usecase "R◦L(D')"
+}
+"L(D)"<."D": " L "
+"L(D')"<."D'":" L "
+"D"-->"D'": " L^-1(f)"
+"L(D)"-->"L(D')": " f"
+"D"->"R◦L(D)":" τ_D"
+"D"<-"R◦L(D)":" τ_D^-1"
+"D'"->"R◦L(D')":τ_D'
+"D'"<-"R◦L(D')":τ_D'^-1
+"L(D)".>"R◦L(D)":R
+"L(D')".>"R◦L(D')":R
+"R◦L(D)"-->"R◦L(D')": " R(f)"
+);
+
+この $f$ に $\sigma_{\mathcal L(D)}:\mathcal L(D)\to\mathcal L\circ\mathcal R\circ\mathcal L(D)$ を入れれば、
+$$
+\tau_D^*=\mathcal L^{-1}(\sigma_{\mathcal L(D)})
+=\tau_{\mathcal R\circ\mathcal L(D)}^{-1}\circ\mathcal R(\sigma_{\mathcal L(D)})\circ\tau_D
+$$
+この $\tau^*$ に対して2つ目の条件式は、上で証明した [[自然変換の演算規則1>#y07870b1]] および [[2>#ja6715b7]] を使いつつ、
+$$
+\begin{aligned}
+\mathcal R(\sigma_C^{-1})\circ \tau_{\mathcal R(C)}^*
+&=\mathcal R(\sigma_C^{-1})\circ \tau_{\mathcal R\circ\mathcal L\circ\mathcal R(C)}^{-1}\circ\mathcal R(\sigma_{\mathcal L\circ\mathcal R(C)})\circ\tau_{\mathcal R(C)}\\
+&=\mathcal R(\sigma_C^{-1})\circ \tau_{\mathcal R\circ\mathcal L\circ\mathcal R(C)}^{-1}\circ(\mathcal R\circ\mathcal L\circ\mathcal R)(\sigma_{C})\circ\tau_{\mathcal R(C)}\\
+&=\mathcal R(\sigma_C^{-1})\circ \mathcal R(\sigma_{C})\circ\tau_{\mathcal R(C)}^{-1}\circ\tau_{\mathcal R(C)}\\
+&=1_{\mathcal R(C)}
+\end{aligned}
+$$
+としてなり立つ。
+
+以上より、$\mathcal L,\mathcal R$ が $\mathcal C,\mathcal D$ の同値関手であるとき、$\mathrm{Hom}(\mathcal L(D),C)$ と $\mathrm{Hom}(D,\mathcal R(C))$ との間に次の同型射が存在すること、すなわち同値が随伴を含意することが示された。
+- $\psi(g)=\sigma_C^{-1}\circ \mathcal L(g)$
+- $\psi^{-1}(f)=\mathcal R(f)\circ \tau_{\mathcal R\circ\mathcal L(D)}^{-1}\circ\mathcal R(\sigma_{\mathcal L(D)})\circ\tau_D$
+
+このとき、単位は $\sigma$、余単位は $\tau^*$ となる。
+
+** 随伴 再び [#n0ca8d93]
+
+随伴を、上記の三角恒等式を満たす単位と余単位の存在により定義することもでき、
+それは上の $\varphi$ の存在による定義と同値な定義となる。
+
自然同型は逆射を持つ自然変換により結ばれるということであった。
-だから、たとえば同値関係に現れた $\mathcal L\circ \mathcal R\cong \mathcal I_C$ は、
-- $\mathcal L\circ \mathcal R\to \mathcal I_C$
-- $\mathcal L\circ \mathcal R\leftarrow \mathcal I_C$
+だから、同値関係に現れた自然同型は、
+- $\mathcal L\circ \mathcal R\to \mathcal I_\mathcal{C}$
+- $\mathcal L\circ \mathcal R\leftarrow \mathcal I_\mathcal{C}$
+- $\mathcal R\circ \mathcal L\to\mathcal I_\mathcal{D}$
+- $\mathcal R\circ \mathcal L\leftarrow\mathcal I_\mathcal{D}$
-の2つの自然変換が存在して互いに逆であるという条件。
+の4つの自然変換が存在して互いに逆であるという条件。
-随伴はこの条件をさらに緩和して、
+こちらの定義では、随伴はこの条件をさらに緩和して、
-- $\eta:\mathcal I_D\to\mathcal R\circ \mathcal L$
-- $\varepsilon:\mathcal L\circ \mathcal R\to \mathcal I_C$
+- $\eta:\mathcal I_\mathcal{D}\to\mathcal R\circ \mathcal L$
+- $\varepsilon:\mathcal L\circ \mathcal R\to \mathcal I_\mathcal{C}$
の2つの一方向の自然変換が存在し、
-次の三角恒等式が成り立つことだけを要求する。
+次の三角恒等式が成り立つことだけを要求することになる。
-- $\varepsilon_{C}\circ\mathcal L(\eta_D)=1_C$
-- $\mathcal R(\varepsilon_{C})\circ\eta_{D'}=1_{D'}$
+- $\varepsilon_{\mathcal L(D)}\circ\mathcal L(\eta_D)=1_{\mathcal L(D)}$
+- $\mathcal R(\varepsilon_{C})\circ\eta_{\mathcal R(C)}=1_{\mathcal R(C)}$
これらも一方向だけなので、逆射であることを要求しているわけではないことに注意しよう。
@@ -2625,14 +3088,14 @@
usecase (C')
}
(D)-->(D') #blue :" η_D "
-(D)-left-->(C):" L"
-(C)-right-->(D'):" R "
+(D)-left-.>(C):" L"
+(C)-right-.>(D'):" R "
(C')-up->(C) #red :ε_C
(C)->(C') #blue :L(η_D)
-(D')->(C'): "L "
+(D').>(C'): "L "
C-up->C:1_C
(D')-->(D'):1_D'
-(C')-down-->(D''):" R"
+(C')-down-.>(D''):" R"
(D')-->(D'') #yellowgreen : " η_D' "
(D'')-up->(D') #red : " R(ε_C)"
);
@@ -2709,3 +3172,393 @@
);
のように書いたのがもう1つの三角恒等式。
+
+*** Hom 間の自然な同型写像 $\varphi$ を導く [#c4760d14]
+
+$\mathcal L\dashv\mathcal R$ すなわち
+- $\eta:\mathcal I_D\to\mathcal R\circ \mathcal L$
+- $\varepsilon:\mathcal L\circ \mathcal R\to \mathcal I_C$
+
+の2つの一方向の自然変換が存在し、次の三角恒等式が成り立つとする。
+- $\varepsilon_{C}\circ\mathcal L(\eta_D)=1_C$
+- $\mathcal R(\varepsilon_{C})\circ\eta_{D'}=1_{D'}$
+
+このとき任意の $\mathrm{Hom}(\mathcal L(D),C)$ と $\mathrm{Hom}(D,\mathcal R(C))$ との間に自然な全単射 $\varphi_{C,D},\varphi_{C,D}^{-1}$ の存在が導かれる。
+$$
+\mathrm{Hom}(\mathcal L(D),C)\cong\mathrm{Hom}(D,\mathcal R(C))\\
+$$
+$$
+\varphi_{C,D}:\mathrm{Hom}(\mathcal L(D),C)\to\mathrm{Hom}(D,\mathcal R(C))\\
+$$
+具体的には、
+$$
+\begin{aligned}
+&f:\mathcal L(D)\to C\\
+&g:D\to \mathcal R(C)
+\end{aligned}
+$$
+に対して、
+$$
+\begin{aligned}
+\varphi_{C,D}(f)&=\mathcal R(f)\circ \eta_D\\
+\varphi_{C,D}^{-1}(g)&=\varepsilon_C\circ\mathcal L(g)\\
+\end{aligned}
+$$
+と取ればいい。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L(D)"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R(C)"
+}
+"L(D)"--->C:" f "
+D-left.>"L(D)":L
+C.>"R(C)": " R"
+D--->"R(C)": " g"
+);
+*** 逆射になることを確認1 [#y47b560f]
+
+$$
+\begin{aligned}
+\varphi_{C,D}^{-1}\big(\varphi_{C,D}(f)\big)
+&=\varepsilon_C\circ\mathcal L\big(\mathcal R(f)\circ \eta_D\big)\\
+&={\color{blue}\varepsilon_C\circ(\mathcal L\circ\mathcal R)(f)}\circ \mathcal L(\eta_D)\ \ \ \because\text{関手 $\mathcal L$ は合成を保存}\\
+&={\color{red}f\circ\varepsilon_{\mathcal L(D)}}\circ \mathcal L(\eta_D)\ \ \ \because\text{$\varepsilon:\mathcal L\circ\mathcal R\to \mathcal I_{\mathcal C}$ の自然性}\\
+&=f\circ 1_{\mathcal L(D)}=f\ \ \ \because\text{三角恒等式}
+\end{aligned}
+$$
+
+$\varepsilon:\mathcal L\circ \mathcal R\to \mathcal I_C$ の $f:\mathcal L(D)\to C$ に関する自然性により下図の赤のパスと青のパスとが等しくなる。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L(D)"
+ usecase "L◦R(C)"
+ usecase "L◦R◦L(D)"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R◦L(D)"
+ usecase "R(C)"
+}
+"L(D)"--->C #red:" f "
+D-left.>"L(D)":L
+D-->"R◦L(D)":η_D
+"L(D)".>"R◦L(D)":R
+"R◦L(D)"-->"R(C)": R(f)
+C.>"R(C)": " R"
+C<-down-"L◦R(C)"#blue:ε_C
+"L◦R(C)"<."R(C)":L
+"R◦L(D)"-left--.>"L◦R◦L(D)":L
+"L(D)"-up->"L◦R◦L(D)":L(η_D)
+"L(D)"<--"L◦R◦L(D)" #red:ε_L(D)
+"L◦R◦L(D)"-->"L◦R(C)" #blue:L◦R(f)
+);
+
+*** 逆射になることを確認2 [#fa493701]
+
+逆については、
+$$
+\begin{aligned}
+\varphi_{C,D}\big(\varphi_{C,D}^{-1}(g)\big)
+&=\mathcal R\big(\varepsilon_C\circ\mathcal L(g)\big)\circ \eta_D\\
+&=\mathcal R(\varepsilon_C)\circ{\color{blue}(\mathcal R\circ\mathcal L)(g)\circ \eta_D}\ \ \ \because\text{関手 $\mathcal R$ は合成を保存}\\
+&=\mathcal R(\varepsilon_C)\circ {\color{red}\eta_{\mathcal R(C)}\circ g}\ \ \ \ \ \ \because\text{$\eta_D:\mathcal I_{\mathcal D}\to\mathcal R\circ\mathcal L$ の自然性}\\
+&=1_{\mathcal R(C)}\circ g=g\hspace{30mm}\because\text{三角恒等式}
+\end{aligned}
+$$
+
+$\eta:\mathcal I_D\to\mathcal R\circ \mathcal L$ の $g:D\to \mathcal R(C)$ に関する自然性により赤のパスと青のパスとが等しくなる。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase "L(D)"
+ usecase "L◦R(C)"
+}
+rectangle "Category D" {
+ usecase (D)
+ usecase "R◦L(D)"
+ usecase "R(C)"
+ usecase "R◦L◦R(C)"
+}
+D-left.>"L(D)":"L "
+D-->"R◦L(D)"#blue:"η_D"
+"L(D)".>"R◦L(D)": "R "
+C.>"R(C)": "R "
+D--->"R(C)"#red: " g"
+C<-down-"L◦R(C)":ε_C
+"L◦R(C)"<-left."R(C)": " L "
+"L(D)"--->"L◦R(C)": " L(g) "
+"R(C)"-->"R◦L◦R(C)"#red:η_R(C)
+"R(C)"<--"R◦L◦R(C)":R(ε_C)
+"L◦R(C)"-.>"R◦L◦R(C)": "R "
+"R◦L(D)"-->"R◦L◦R(C)"#blue:R◦L(g)
+);
+
+*** 自然性の意味 [#d0c0d8dd]
+
+自然な同型射とは「逆を持つ自然変換」のこと。~
+ではここでの自然変換はいかなる関手の間の変換であろうか?
+$$
+\mathrm{Hom}(\mathcal L(D),C)\cong\mathrm{Hom}(D,\mathcal R(C))\\
+$$
+$$
+\varphi_{C,D}:\mathrm{Hom}(\mathcal L(D),C)\to\mathrm{Hom}(D,\mathcal R(C))\\
+$$
+この形から気づくように、この自然変換は $C,D$ の2つの添え字がついている。
+
+これは次の2つの関手ペアの間の同型射である、というのが実情なのだ。
+$$
+\mathrm{Hom}(\mathcal L(D),-)\cong\mathrm{Hom}(D,\mathcal R(-))
+$$
+$$
+\mathrm{Hom}(\mathcal L(-),C)\cong\mathrm{Hom}(-,\mathcal R(C))\\
+$$
+*** 自然性の確認1 [#tbe6d1a3]
+
+2つの関手の定義を確認する。
+
+1つ目の関手の対象の変換は
+$$
+\begin{aligned}
+C&\mapsto \mathrm{Hom}(\mathcal L(D),C)\\
+C'&\mapsto \mathrm{Hom}(\mathcal L(D),C')\\
+\end{aligned}
+$$
+射 $f:C\to C'$ の変換は、
+$$
+f\mapsto f\circ -
+$$
+これは $g\in\mathrm{Hom}(\mathcal L(D),C)$ を $f\circ g\in\mathrm{Hom}(\mathcal L(D),C')$ に移す射になる。
+
+2つ目の関手の対象の変換は
+$$
+\begin{aligned}
+C&\mapsto\mathrm{Hom}(D,\mathcal R(C))\\
+C'&\mapsto\mathrm{Hom}(D,\mathcal R(C'))\\
+\end{aligned}
+$$
+射 $f:C\to C'$ の変換は、
+$$
+f\mapsto \mathcal{R}(f)\circ -
+$$
+これは $g\in\mathrm{Hom}(D,\mathcal R(C))$ を $\mathcal{R}(f)\circ g\in\mathrm{Hom}(D,\mathcal R(C'))$ に移す射になる。
+
+この2つの間の自然変換が $\varphi_{-,D}$ となる。
+$$
+\varphi_{-,D}:\mathrm{Hom}(\mathcal L(D),-)\to\mathrm{Hom}(D,\mathcal R(-))\\
+$$
+
+ここで示すべき自然性は次の四角形:
+$$
+\begin{matrix}
+\mathrm{Hom}(\mathcal L(D),C)&\xrightarrow{\varphi_{C,D}}&\mathrm{Hom}(D,\mathcal R(C))\\
+\downarrow f\circ-&&\downarrow \mathcal R(f)\circ-\\
+\mathrm{Hom}(\mathcal L(D),C')&\xrightarrow{\varphi_{C',D}}&\mathrm{Hom}(D,\mathcal R(C'))\\
+\end{matrix}
+$$
+$g:\mathcal{L}(D)\to C$ に対して、
+$$
+\mathcal R(f)\circ\varphi_{C,D}(g)=\varphi_{C',D}(f\circ g)
+$$
+ここに $\varphi_{C,D}=\mathcal R(-)\circ \eta_D$ を代入する。
+$$
+\mathcal R(f)\circ\mathcal R(g)\circ \eta_D=\mathcal R(f\circ g)\circ \eta_D
+$$
+これは関手 $\mathcal R$ が射 $f,g$ の合成を保存することから成立する。
+
+*** 自然性の確認2 [#pdeb9266]
+
+2つの関手の定義を確認する。これらは反変関手となる。
+
+1つ目の関手の対象の変換は
+$$
+\begin{aligned}
+D&\mapsto \mathrm{Hom}(\mathcal L(D),C)\\
+D'&\mapsto \mathrm{Hom}(\mathcal L(D'),C)\\
+\end{aligned}
+$$
+反変関手なので射 $f:D'\to D$ の変換を考える、
+$$
+f\mapsto -\circ \mathcal L(f)
+$$
+これは $g\in\mathrm{Hom}(\mathcal L(D),C)$ を $g\circ \mathcal L(f)\in\mathrm{Hom}(\mathcal L(D'),C)$ に移す射になる。
+
+2つ目の関手の対象の変換は
+$$
+\begin{aligned}
+D&\mapsto\mathrm{Hom}(D,\mathcal R(C))\\
+D'&\mapsto\mathrm{Hom}(D',\mathcal R(C))\\
+\end{aligned}
+$$
+反変関手なので射 $f:D'\to D$ の変換を考える、
+$$
+f\mapsto -\circ f
+$$
+これは $g\in\mathrm{Hom}(D,\mathcal R(C))$ を $f\circ g\in\mathrm{Hom}(D',\mathcal R(C))$ に移す射になる。
+
+この2つの間の自然変換が $\varphi_{-,D}$ となる。
+$$
+\varphi_{C,-}:\mathrm{Hom}(\mathcal L(-),C)\to\mathrm{Hom}(-,\mathcal R(C))
+$$
+
+ここで示すべき自然性は次の四角形:
+$$
+\begin{matrix}
+\mathrm{Hom}(\mathcal L(D),C)&\xrightarrow{\varphi_{C,D}}&\mathrm{Hom}(D,\mathcal R(C))\\
+\downarrow -\circ \mathcal L(f)&&\downarrow -\circ f\\
+\mathrm{Hom}(\mathcal L(D'),C)&\xrightarrow{\varphi_{C,D'}}&\mathrm{Hom}(D',\mathcal R(C))\\
+\end{matrix}
+$$
+$g:\mathcal{L}(D)\to C$ に対して、
+$$
+\varphi_{C,D}(g)\circ f=\varphi_{C',D}(g\circ \mathcal L(f))
+$$
+ここに $\varphi_{C,D}=\mathcal R(-)\circ \eta_D$ を代入する。
+$$
+\begin{aligned}
+\mathcal R(g)\circ \eta_D\circ f
+&=\mathcal R(g\circ \mathcal L(f))\circ \eta_{D'}\\
+&=\mathcal R(g)\circ (\mathcal R\circ \mathcal L)(f)\circ \eta_{D'}\\
+\end{aligned}
+$$
+これは $\eta:\mathcal I_D\to\mathcal R\circ \mathcal L$ の $f:D'\to D$ に対する自然性
+$$
+\eta_D\circ f=(\mathcal R\circ \mathcal L)(f)\circ \eta_{D'}
+$$
+より成立する。
+
+** 随伴による積の定義 [#s1e5d9e4]
+
+上では対象 $A,B$ の積およびその取り出し射 $A\times B,p,q$ を、
+任意の対象 $C$ と $f:C\to A,\ g:C\to B$ に対して、$p\circ h=f,\ q\circ h= g$ を満たす $h = \langle f,g\rangle_{p,q}: C\to A\times B$ が唯一存在する、と定義した。
+
+¨(
+(C)-->(A x B): " h"
+(A x B)-left->(A):p
+(A x B)-right->(B):q
+(C)-->(A):f
+(C)-->(B):g
+);
+
+圏 $\mathcal C$ が任意の対象 $A,B$ の間に積 $A\times B$ を持つとき、
+これを随伴により定義することが可能である。
+
+その定義では「任意の対象 $C$ に対する唯一の存在」を「自然な全単射性」が肩代わりすることになる。
+
+*** 関手 $\Delta$ [#ff5dc853]
+
+そのために圏 $\mathcal C$ から積圏 $\mathcal C\times\mathcal C$ への次の関手 $\Delta$ を定義する。
+
+関手 $\Delta$:
+- $\Delta(\mathcal C)=\langle\mathcal C,\mathcal C\rangle$
+- $\Delta(f)=\langle f,f\rangle$
+
+関手 $\Delta$ の右随伴 $\times$ が存在するとき、$\times(\langle\mathcal A,\mathcal B\rangle)=A\times B$ と定義する。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase AxB
+}
+rectangle "Category CxC" {
+ usecase "<C,C>"
+ usecase "<A,B>"
+}
+"<C,C>"<.C: " Δ "
+"<C,C>"-->"<A,B>":" <f,g>"
+C-->AxB: " m = φ(<f,g>)"
+"<A,B>".>AxB:" × "
+);
+
+これが上での積の定義と等しくなることを以下に示す。
+
+
+
+*** 随伴による積の取り出し射 $p,q$ [#j3845ba3]
+
+随伴により、圏 $\mathcal C$ の''任意の対象'' $A,B,C$ と''任意の射'' $f:C\to A,\ g:C\to B$ に対して、
+上のような図が書け、$\langle f,g\rangle$ を射 $\varphi(\langle f,g\rangle)=m$ に対応付ける自然な全単射 $\varphi_{\langle A, B\rangle,C}$ が存在することになる。
+
+¨(
+rectangle "Category C" {
+ usecase (C)
+ usecase AxB
+ usecase A
+ usecase B
+}
+rectangle "Category CxC" {
+ usecase "<C,C>"
+ usecase "<A,B>"
+ usecase "<AxB,AxB>"
+}
+"<C,C>"<.C: " Δ "
+"<C,C>"--->"<A,B>":"<f,g>"
+C--->AxB: " h = φ_<A,B>,C(<f,g>)"
+"<A,B>".>AxB:" × "
+AxB->AxB:1_AxB
+AxB-->A:p
+AxB-->B: " q "
+C-->A:" f "
+C-->B:" g"
+AxB-left.>"<AxB,AxB>":"Δ "
+"<AxB,AxB>"-->"<A,B>": "<p,q>=φ_<A,B>,AxB^-1(1_AxB)"
+"<C,C>"-->"<AxB,AxB>": Δ(h)=<h,h>
+);
+
+$$
+\varphi_{\langle A, B\rangle,C}: (\langle C, C\rangle\to\langle A, B\rangle)\to(C\to A\times B)
+$$
+に対して
+$$
+\varphi^{-1}_{\langle A, B\rangle,C}: (C\to A\times B)\to(\langle C, C\rangle\to\langle A, B\rangle)
+$$
+であることに注意しつつ、
+
+$C=A\times B$ と取って $1_{A\times B}:A\times B\to A\times B$ を $\varphi^{-1}_{\langle A, B\rangle,A\times B}$ により移せば、
+$$
+\varphi^{-1}_{\langle A, B\rangle,A\times B}: (A\times B\to A\times B)\to(\langle A\times B, A\times B\rangle\to\langle A, B\rangle)
+$$
+であるから $\varphi^{-1}_{\langle A, B\rangle,A\times B}(1_{A\times B})=\langle p,q\rangle$ と置く。
+
+すると、
+$$
+\begin{aligned}
+p: A\times B\to A\\
+q: A\times B\to B\\
+\end{aligned}
+$$
+が得られる。
+
+この $\langle p,q\rangle$ は $\Delta\dashv\times$ の余単位になっている。
+
+*** 積の公理を満たすことを確認 [#jd76f99f]
+
+$\Delta$ が右随伴 $\times$ を持つとき、
+任意の $A,B$ を固定すると $A\times B,p,q$ が一意に決まる。
+
+この $A\times B,p,q$ に対して、任意の $C,f,g$ から
+$$
+h=\varphi_{\langle A,B\rangle,C}(\langle f,g\rangle)
+$$
+が一意に存在して、
+$$
+\langle f,g\rangle=\langle p,q\rangle\circ\Delta(m)=\langle p,q\rangle\circ\langle h,h\rangle
+$$
+すなわち、
+$$
+\begin{aligned}
+f=p\circ h\\
+g=q\circ h
+\end{aligned}
+$$
+
+$m$ が一意に存在すること、が、逆射を持つ自然変換 $\varphi$ から導かれることをしっかり理解したい。
+
+そして、「$\Delta$ が右随伴 $\times$ を持つ」という条件が、圏 $\mathcal C$ の任意の対象 $A,B$ 間に積 $A\times B$ が定義されていることを要求することにも注意せよ。