履歴: プログラミング/圏論入門
各行は、その日時に書かれた内容です。追加・削除は、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/7/22 23:56:00) → 比較: プログラミング/圏論入門 (2026/7/25 14:20:23)
@@ -1,4 +1,4 @@
-#author("2026-07-22T14:55:59+00:00","default:administrator","administrator")
+#author("2026-07-25T05:20:23+00:00","","")
[[公開メモ]]
&katex();
@@ -10,7 +10,7 @@
https://ktgw0316.github.io/milewski-ctfp-markdown/
で、全然理解できなかったので、いろいろと調べながら分かった範囲をまとめようとしています~
-(上のリンク先、それだけで独学するにはあまり向いていないかも???)
+(上のリンク先、それだけで独学するにはあまり向いていないような・・・)
** 目次 [#bc12a31d]
@@ -1985,7 +1985,7 @@
$$
と略記する。これには射の変換が付随していることを忘れないようにしよう。
-** Hom 圏への関手 [#jd778776]
+** Hom 圏への反変関手 [#jd778776]
圏 $\mathcal C$ の Hom 関手の右側を $A\times B$ に固定(カリー化)した関手を考える。
$$
@@ -2011,10 +2011,86 @@
元々、前層という語は圏論とは関係なく位相空間において使われた言葉であった。この位相空間における前層の概念を、位相空間の上の開集合とその包含関係が作る圏を経由して、一般の圏にアナロジーとして取り込んだのが、圏論における前層とのことで、ここで前層という言葉が意味するところを考えても実りはないらしい。
+** 前層の圏 $\mathrm{PSh}(\mathcal C)$ [#m66ed97f]
+
+圏 $\mathcal C$ 上の前層 $\mathcal C\to\mathrm{Set}$ は、自然変換を射として圏をなす。
+
+この圏を $\mathrm{PSh}(\mathcal C)$ と表す。
+
** 表現可能前層 [#je018397]
-圏 $\mathcal C$ のある前層 $\mathcal F:\mathcal C^{\mathrm{op}}\to\mathrm{Set}$ が、圏 $\mathcal C$ の何らかの対象 $X$ に対する前層 $\mathrm{Hom}_{\mathcal C}(-,X)$ と自然同型であるとき、その前層は $X$ により表現される、という。
+圏 $\mathcal C$ のある前層 $\mathcal F:\mathcal C^{\mathrm{op}}\to\mathrm{Set}$ が、圏 $\mathcal C$ の何らかの対象 $X$ に対する前層 $\mathrm{Hom}_{\mathcal C}(-,X)$ と自然同型であるとき、その前層は $X$ により表現される、といい、このような $\mathcal F$ を表現可能前層と呼ぶ。
$$\mathcal F\cong\mathrm{Hom}_{\mathcal C}(-,X)$$
+
+*** 米田の埋め込み (Yoneda embedding) [#f9136996]
+
+上式の右辺、$X$ による表現前層は、$\mathrm{Hom}_{\mathcal C}(-',-)$ の右側に $X$ を埋め込んだ形、と見做して、米田の埋め込みと呼ばれ、
+
+ $\mathrm{Y}(X)$ あるいは $\bm \mathrm{y}(X)$
+
+と書かれる。
+
+これを関手として見る場合には、$\mathcal C$ から $\mathcal C$ の上の前層 $\mathrm{PSh}(\mathcal C)$ への関手であり、射の変換は自然変換への垂直合成となる。
+
+$$
+\mathrm{Y}: \mathrm{Ob}(\mathcal C)\to\mathrm{PSh}(\mathcal C)
+$$
+
+双対となる、左側に埋め込んだ形は余米田の埋め込みである。
+
+ $\mathrm{Y}^\mathrm{op}(X)$ あるいは $\bm \mathrm{y}^\mathrm{op}(X)$
+
+あるいは、
+
+ $\mathrm{Y}_\mathrm{co}(X)$ あるいは $\bm \mathrm{y}_\mathrm{co}(X)$
+
+余米田の埋め込みには統一的な書き方がないので、このどちらかで「余」の気持ちを表す。
+
+この定義は冒頭のリンク先の教科書と異なるのであるが、こちらの定義が一般的なので、こちらで進めることにする。
+
+*** 表現の一意性 [#zaf8201a]
+
+ある前層 $\mathcal F$ が $X,Y$ の両方で表現されるなら、
+$$
+\mathcal F\cong \mathrm{Hom}(−,X)\cong \mathrm{Hom}(−,Y)
+$$
+$X$ と $Y$ とは同型である。
+$$X\cong Y$$
+すなわちある前提 $\mathcal F$ の表現は(存在するなら)同型を除いて一意に決まることを証明しておく。
+
+証明:
+
+仮定より、可逆な自然変換
+$$\varphi:\mathrm{Hom}(−,X)\Rightarrow \mathrm{Hom}(−,Y)$$
+が存在する。
+
+$\varphi$ の自然性により、$f:Y\to X$ に対して、
+$$
+\begin{matrix}
+\mathrm{Hom}(X,X)&\xrightarrow{\varphi_X}&\mathrm{Hom}(X,Y)\\
+{}-\circ f\downarrow&&-\circ f\downarrow\\
+\mathrm{Hom}(Y,X)&\xrightarrow{\varphi_Y}&\mathrm{Hom}(Y,Y)\\
+\end{matrix}
+$$
+左上に $1_X$ を入れると、~
+$$
+\underbrace{\varphi_Y(f)}_{\text{左回り}}=
+\underbrace{\varphi_X(1_X)\circ f}_{\text{右回り}}
+$$
+同じ手順で逆向きに $g:X\to Y$ に対して、
+$$
+\varphi^{-1}_X(g)=\varphi^{-1}_Y(1_Y)\circ g
+$$
+$\varphi_X(1_X):X\to Y$ なので、これを $g$ に代入すると
+$$
+(\varphi^{-1}_X\circ\varphi_X)(1_X)=1_X=\varphi^{-1}_Y(1_Y)\circ \varphi_X(1_X)
+$$
+$\varphi^{-1}_Y(1_Y):Y\to X$ なので、これを $f$ に代入すると
+$$
+(\varphi_Y\circ\varphi^{-1}_Y)(1_Y)=1_Y=\varphi_X(1_X)\circ \varphi^{-1}_Y(1_Y)
+$$
+したがって、$\varphi^{-1}_Y(1_Y), \varphi_X(1_X)$ は $X,Y$ 間の同型射となる。
+
** 余前層 (copresheaf) [#q24601a7]
前層の双対として、反変ではなく共変な関手 $\mathcal C\to \mathrm{Set}$ は余前層と呼ばれる。
@@ -2059,92 +2135,102 @@
すなわち、$\alpha=\pi\circ h$ が得られる。
-ここで見たストーリーの骨子はすぐ後で米田の補題として現れる。
+ここまでに見たストーリーの骨子はすぐ後で米田の補題として現れる。
* 米田の補題 (Yoneda lemma) [#v17bd1c2]
-任意の(局所小な)圏 $\mathcal C$ の任意の前層 $\mathcal F:\mathcal C^{\mathrm{op}}\to\mathrm{Set}$ が、$X,Y\in\mathrm{Ob}(\mathcal C)$, $f:Y\to X$ に対して、
+米田の補題はしばしば、~
+任意の(局所小な)圏 $\mathcal C$ の任意の前層 $\mathcal F:\mathcal C^{\mathrm{op}}\to\mathrm{Set}$ が、$X\in\mathrm{Ob}(\mathcal C)$ として、
+$$\mathrm{Nat}(\mathrm{Hom}(-,X),\mathcal F)\cong \mathcal F(X)$$
+という形で表されるが、これはもう少し丁寧に書くと
+$$\mathrm{Nat}(\mathrm{Hom}(-',-),\mathcal F(-'))\cong \mathcal F(-)$$
+という意味である。つまり、左辺は
+$$X\mapsto\mathrm{Nat}(\mathrm{Hom}(-,X),\mathcal F)$$
+と定義される前層で、この前層が $\mathcal F$ と、関手として同型であると言っている。
+
+関手として同型であるというのは、間に可逆な自然変換が存在するということであるが、
+次節で述べるこの同型自然変換自体が大きな意味を持つため、冒頭のような形式的な式だけでなく、
+実際の同型自然変換自体の具体形をすぐに思い浮かべられるようになっておくとよい。
+
+左辺の関手はこれだけだと対象の変換しか定義していないが、その射に対する変換は、
+$X,Y\in\mathrm{Ob}(\mathcal C)$, $f:Y\to X$ に対して、
$$
\begin{aligned}
&X\mapsto\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)\\
&f\mapsto-\cdot f\hspace{5mm} : \mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)\to \mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,Y),\mathcal F)
\end{aligned}
$$
-と定義される前層 $\mathcal F'$ と自然同型になる、というのが米田の補題である。
-$$
-\mathcal F'\cong\mathcal F
-$$
+である。
-$-\cdot f : \mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)\to \mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,Y),\mathcal F)$ の具体的な成分表示を確認しておくと、$\alpha\in\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)$ の成分が $\alpha_i:\mathrm{Hom}_{\mathcal C}(i,X)\to\mathcal F(i)$ であるところ、$\mathrm{Hom}_{\mathcal C}(i,Y)\xrightarrow{f\circ-}\mathrm{Hom}_{\mathcal C}(i,X)\xrightarrow{\alpha_i}\mathcal F(i)$ であるから $\alpha_i\cdot f:\mathrm{Hom}_{\mathcal C}(i,Y)\to\mathcal F(i)$ となり、これを成分とする自然変換を $\alpha\cdot f$ と書き、$\alpha\mapsto\alpha\cdot f$ の変換を $-\cdot f$ と書いている。 白丸 $\circ$ ではなく黒丸 $\cdot$ で書いているのは、これが垂直変換に相当するためである。
+$-\cdot f : \mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)\to \mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,Y),\mathcal F)$ は自然変換に対して通常の射を垂直合成する形で書かれているため、その具体的な成分表示を確認しておこう。
-以下、右方向の自然変換を作り、その逆が存在することを確かめる。
+$\alpha\in\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)$ の成分を $\alpha_i:\mathrm{Hom}_{\mathcal C}(i,X)\to\mathcal F(i)$ とすれば、 $\alpha_i\cdot f:\mathrm{Hom}_{\mathcal C}(i,Y)\to\mathcal F(i)$ となる( $\mathrm{Hom}_{\mathcal C}(i,Y)\xrightarrow{-\circ f}\mathrm{Hom}_{\mathcal C}(i,X)\xrightarrow{\alpha_i}\mathcal F(i)$ )。 これを成分とする自然変換を $\alpha\cdot f$ と書き、$\alpha\mapsto\alpha\cdot f$ の変換を $-\cdot f$ と書いているのである。
-** 右方向の自然変換 $\Phi$ [#y9cfe28e]
+白丸 $\circ$ ではなく黒丸 $\cdot$ で書いているのは、これが垂直変換に相当するためである。
-まず、$\Phi:\mathcal F'\to\mathcal F$ が自然変換になることを期待して、その成分 $\Phi_X$ を以下のように定義する。$\alpha\in\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)$ の $X$ 成分は $\alpha_X:\mathrm{Hom}_{\mathcal C}(X,X)\to\mathcal F(X)$ であるから、$\Phi_X(\alpha)=\alpha_X(1_X)$ と定義すれば $\Phi_X:\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)\to\mathcal F(X)$ になる。
+** 補題の意味とその証明 [#q8acabbd]
-これが自然変換になることは、任意の $f:X'\to X$ に対して、
-$$
-\begin{matrix}
-\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)&\xrightarrow{\Phi_X}&\mathcal F(X)\\
--\cdot f\downarrow&&\mathcal F(f)\downarrow\hspace{12mm}\\
-\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X'),\mathcal F)&\xrightarrow{\Phi_{X'}}&\mathcal F(X')\\
-\end{matrix}
-$$
-左上に $\alpha$ を与えたとすると、
-右回り: $\mathcal F(f)\circ\Phi_X(\alpha)=(\mathcal F(f)\circ\alpha_X)(1_X)$
-左回り:$\Phi_{X'}(\alpha\cdot f)=(\alpha\cdot f)_{X'}(1_{X'})=(\alpha_{X'}\cdot f)(1_{X'})$
+実は自然変換を、その変換がちゃんと自然性を持つように構成しようとすると、非常に自由度が限られていて、どこか一点の変換先を決めるだけで全体が決まってしまうようなことが起きる、というのが米田の補題の肝の部分になる。
-ここで $\alpha$ が自然変換であることを使うと、上記の $f:X'\to X$ に対して
+$\alpha\in\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)$ という自然変換の自由度について考える。
+
+$\alpha$ の自然性を使うと、任意の $f:X'\to X$ に対して次の四辺形が書けて、
$$
\begin{matrix}
\mathrm{Hom}_{\mathcal C}(X,X)&\xrightarrow{\alpha_X}&\mathcal F(X)\\
--\circ f\downarrow&&\mathcal F(f)\downarrow\hspace{12mm}\\
+{}-\circ f\downarrow&&\mathcal F(f)\downarrow\hspace{12mm}\\
\mathrm{Hom}_{\mathcal C}(X',X)&\xrightarrow{\alpha_{X'}}&\mathcal F(X')\\
\end{matrix}
$$
-左上に $1_X$ を与えると、
-右回り $\mathcal F(f)\circ \alpha_X$
-左回り $\alpha_{X'}\circ f$
+左上に $1_X$ を与えると、右回り $\mathcal F(f)\circ \alpha_X(1_X)$、左回り $\alpha_{X'}(1_X\circ f)$ だから、
$$
-\therefore \mathcal F(f)\circ \alpha_X=\alpha_{X'}\circ f
+\alpha_{X'}(f)=\mathcal F(f)\big(\alpha_X(1_X)\big)
$$
-これを上の式に代入すれば $\Phi$ の自然性が示される。
+が得られる。
-** 左方向の変換 $\Psi$ [#v52ae226]
-
-次に、$\Psi:\mathcal F\to \mathcal F'$ が $\Phi$ の逆変換になることを期待して、その成分 $\Psi_X$ を以下のように定義する。$\pi\in\mathcal F(X)$ に対して $\Psi_X(\pi)=\theta\ \in\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)$ ただし、その $Y$ 成分 $\theta_Y:\mathrm{Hom}_{\mathcal C}(Y,X)\to\mathcal F(Y)$ は、任意の $f:Y\to X$ に対して、
+これは著しい結果と言える。というのも、始めに $\alpha$ の $X$ 成分 $\alpha_X$ が $1_X$ を移す先 $\alpha_X(1_X)=\pi \in \mathcal F(X)$ を固定したならば($\mathcal F$ は前層なので $\mathcal F(X)$ は集合、$\pi$ はその元である)、任意の $X'$ に対する $\alpha_{X'}$ が完全に決まってしまうのだ($X'=X$ のケースを含め、任意の $f:X'\to X$ を移す先が決まってしまう)。
$$
-\theta_Y(f):=\mathcal F(f)(\pi)\hspace{5mm}\in\mathcal F(Y)
+\alpha_{X'}(f)=\mathcal F(f)\big(\pi\big)
$$
-である。
+この、
+$$\pi \in \mathcal F(X)\hspace{5mm}\xleftrightarrow{\hspace{5mm}\alpha_X(1_X)\ =\ \pi\hspace{5mm}}\hspace{5mm}\alpha=\set{\alpha_{X'}}:\mathrm{Hom}_{\mathcal C}(X',X)\to\mathcal F(X')$$
+という一対一対応を関手の言葉ですっきり述べたのが米田の補題であると認識しよう。
-ここで得られる $\theta$ が自然変換となることは以下のように確かめられる。
-任意の $g:Y'\to Y$ に対して
+実際、ここまででほぼ証明も済んでいる。~
+$\alpha$ に自然性を要求したことにより
++ $\pi$ を選ぶと $\alpha_{X'}(f)=\mathcal F(f)\circ \pi$ により $\alpha$ が決まり
++ $\alpha$ を決めると $\pi=a_X(1_X)$ が決まる
+
+という全単射が得られた。~
+あとはこれが自然変換になっていることを示せばよい。
+
+成分が $\Phi_X: \alpha\mapsto \alpha_X(1_X)$ で与えられる変換 $\Phi$ の自然性を確認しよう。
+
+任意の $f:X'\to X$ に対して、
$$
\begin{matrix}
-\mathrm{Hom}_{\mathcal C}(Y,X)&\xrightarrow{\theta_Y}&\mathcal F(Y)\\
--\circ g\downarrow&&\mathcal F(g)\downarrow\hspace{12mm}\\
-\mathrm{Hom}_{\mathcal C}(Y',X)&\xrightarrow{\theta_{Y'}}&\mathcal F(Y')\\
+\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X),\mathcal F)&\xrightarrow{\Phi_X}&\mathcal F(X)\\
+{}-\cdot f\downarrow&&\mathcal F(f)\downarrow\hspace{12mm}\\
+\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,X'),\mathcal F)&\xrightarrow{\Phi_{X'}}&\mathcal F(X')\\
\end{matrix}
$$
-左上から、
-右回り: $\mathcal F(g)\cdot \theta_Y=\mathcal F(g)\cdot \mathcal F(-)(\pi)=\mathcal F(-\circ g)(\pi)$
-左回り: $\theta_{Y'}(-\circ g)=\mathcal F(-\circ g)(\pi)$
-となって、両者は等しい。
-($\mathcal F$ は反変であるため $\mathcal F(g)\cdot \mathcal F(-)=\mathcal F(-\circ g)$ であることに注意)
+左上に $\alpha$ を与えたとすると、~
+右回り: $\mathcal F(f)\circ\Phi_X(\alpha)=\mathcal F(f)\circ\alpha_X(1_X)$ ~
+左回り:$\Phi_{X'}(\alpha\cdot f)=(\alpha\cdot f)_{X'}(1_{X'})=\alpha_{X'}(f)$
-** $\Phi_X\circ\Psi_X=1$ [#z75baaf3]
+ここに上記の $\alpha$ の自然性を入れると両者は等しくなり $\Phi$ の自然性が示された。
-$\Phi_X(\alpha)=\alpha_X(1_X)$ であるから、$\theta_X(1_X)$ を評価すればいい。
-任意の $f:X\to X$ に対して、任意の関手は恒等射を恒等射に移すため、
-$\theta_X(1_X)=\mathcal F(1_X)(\pi)=\pi$ すなわち $(\Phi_X\circ\Psi_X)(\pi)=\pi$ が得られる。
+** 余米田の補題 (co-Yoneda lemma) [#b85fe27b]
-** $\Psi_X\circ\Phi_X=1$ [#g62c9ea7]
+米田の補題は前層 $\mathcal F:\mathcal C^{\mathrm{op}}\to\mathrm{Set}$ に関する次の定理だった。
+$$
+\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-',-),\mathcal F(-'))\cong\mathcal F(-)
+$$
-$\Phi_X(\alpha)=\alpha_X(1_X)$ より、
-$\theta_Y(f)=\mathcal F(f)(\alpha_X(1_X))=(\mathcal F(f)\circ\alpha_X)(1_X)$
+その双対が余米田の補題
+$$
+\mathrm{Nat}(\mathrm{Hom}_{\mathcal C}(-,-'),\mathcal F(-'))\cong\mathcal F(-)
+$$
+こちらは余前層 $\mathcal F:\mathcal C\to\mathrm{Set}$ についての定理になっている。
-$\alpha$ の自然性より、任意の $f:Y\to X$ に対して
-$\theta_Y(f)=\alpha_Y\circ(-\circ f)(1_x)=\alpha_Y(f)$
-すなわち $\theta=\alpha$ であるから $\Psi_X(\Phi_X(\alpha))=\alpha$ が得られる。
+(ここでの $-$ と $-'$ を使い分ける記法は標準的ではないので注意せよ。便利なので今後はやらせたいところだ。)