Skip to content

Commit 8433b59

Browse files
committed
Stuff
1 parent 611381a commit 8433b59

File tree

1 file changed

+76
-9
lines changed

1 file changed

+76
-9
lines changed

category.typ

Lines changed: 76 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ $))
8484
同理,在数学中研究对象 $B$ 上的依值对象 $A_x$ 时,往往转而考虑全空间 $E$ 与映射 $p : E -> B$,间接研究依值对象。这种技术在代数几何中达到巅峰,以 Grothendieck 的#translate[相对视角][relative point of view] 为典型。例如希望表达每个 $A_x$ 都是紧空间,则说 $p$ 是紧合映射; 希望表达每个 $A_x$ 都是仿射空间,则说 $p$ 是仿射映射,等等。
8585
另一方面,展映射仍然是范畴中的箭头,因此如果通过刻画展映射间接描述依值类型,就可以用上范畴论中的许多工具。这又与 Bénabou 发展的纤维化范畴论不谋而合。
8686

87-
(...)
88-
89-
=== 外延类型论与局部积闭范畴
87+
本节中我们介绍从展映射视角定义的几种类型论模型的概念,并讨论它们之间的联系。从这个视角定义的模型与类型论的关联没有那么直接,但是能更好地与范畴论和同伦论中的概念联系起来。
9088

9189
考虑集合族 $A_x$ 与对应的展映射 $p : (Gamma, A) -> Gamma$。假如有映射 $sigma : Delta -> Gamma$,那么 $Delta$ 上对应的集合族是 $(A sigma)_x = A_(sigma(x))$,因此有
9290
#eq($ (Delta, A sigma) &= {(x, a) mid(|) x in Delta, a in A_(sigma(x))} \ &tilde.equiv {(x, y) mid(|) x in Delta, y in (Gamma, A), p(y) = sigma(x)} $)
@@ -99,16 +97,85 @@ $))
9997
$))
10098
那么,我们大致上就要要求展映射 $(Gamma, A) -> Gamma$ 可以沿着任何代换 $Delta -> Gamma$ 作拉回,并且得到的新映射 $(Delta, A sigma) -> Delta$ 仍然是展映射。
10199

102-
(...)
100+
对于 $Sigma$ 类型,我们同样先考虑集合范畴中的直观。假如有展映射 $(Gamma, A) -> Gamma$$(Gamma, A, B) -> (Gamma, A)$,分别表示两个集合族 $A_(x in Gamma)$$B_(x in (Gamma, A))$,那么如果想取 $Sigma$ 类型 $Sigma A B$,那么对应的映射应当恰好是复合映射 $(Gamma, A, B) -> Gamma$,如@fig:sigma-compcat 所示。这样看,$Sigma$ 类型在展映射的语言中就对应映射的复合。#footnote[
101+
读者或许注意到,按照这个论证,$Sigma$ 类型应该只要求某个同构于复合映射的映射是展映射,而不要求复合映射本身就是展映射。我们暂时遵循范畴论的观点,不区分同构的事物,即认为同构于展映射的映射也必须是展映射。
102+
]
103+
#numbered-figure(caption: [$Sigma$ 类型示意], canvas({
104+
import draw: *
105+
rect((-1,0), (1,1), stroke: 0.5pt)
106+
content((1.5,0.5), $Gamma$)
107+
content((-0.5,0.4), $attach(bullet, bl:x)$)
108+
content((0.5,0.5), $bullet_y$)
109+
rect((-2,1.7), (0,2.7), stroke: 0.5pt)
110+
line((-1,1.7), (-0.5,0.6), stroke:0.5pt)
111+
content((-1.4,2.3), $bullet$)
112+
content((-0.6,2.2), $bullet$)
113+
content((0.45,2.25), $bullet$)
114+
content((1,2.1), $bullet$)
115+
content((1.6,2.3), $bullet$)
116+
rect((0,1.7), (2,2.7), stroke: 0.5pt)
117+
line((1,1.7), (0.5,0.7), stroke:0.5pt)
118+
content((2.5,2.2), $A_y$)
119+
content((-2.5,2.2), $A_x$)
120+
rect((-2.5,3.5), (2.5, 4.7), stroke: 0.5pt)
121+
line((-1.5, 3.5), (-1.5, 4.7), stroke: 0.5pt)
122+
line((0.5, 3.5), (0.5, 4.7), stroke: 0.5pt)
123+
line((1.5, 3.5), (1.5, 4.7), stroke: 0.5pt)
124+
125+
line((-1.4,2.3), (-2,3.5), stroke:0.5pt)
126+
line((-0.6,2.2), (-1,3.5), stroke:0.5pt)
127+
line((0.45,2.25), (0,3.5), stroke:0.5pt)
128+
line((1,2.1), (1,3.5), stroke:0.5pt)
129+
line((1.6,2.3), (2,3.5), stroke:0.5pt)
130+
for i in range(5) {
131+
content((i - 2,4.1), $B_#(i+1)$)
132+
}
133+
134+
rect((-2.5,3.5), (-0.5, 4.7), stroke: red+2pt)
135+
content((-1.5, 5.1), text(fill: red.darken(50%), $(Sigma A B)_x$))
136+
})) <fig:sigma-compcat>
137+
138+
接下来,我们考察外延类型论中的相等类型。假设有类型 $A$,对应展映射 $frak(p) : (Gamma, A) -> Gamma$。相等类型依赖于两个变量 $(Gamma, x : A, y : A)$,因此这里第二个变量的类型实际上需要经过代换 $A frak(p)$ 表示它不使用第一个变量 $x : A$。前面提到代换在展映射的语言下是拉回,因此有
139+
#eq(diagram($
140+
(Gamma, A, A frak(p)) edge(->) edge("d", ->)
141+
pullback("dr")
142+
& (Gamma, A) edge("d", ->) \
143+
(Gamma, A) edge(->, frak(p)) & Gamma
144+
$))
145+
在集合语言中,这对应集合 ${(x, a_1, a_2) mid(|) a_1, a_2 in A_x}$
103146

104-
对于 $Sigma$ 类型,我们先考虑集合范畴中的直观。假如有映射 $Gamma -> Delta$$Theta -> Gamma$,分别表示两个集合族 $A_(x in Delta)$$B_(y in Gamma)$,那么 $Gamma tilde.equiv {(x, a) mid(|) x in Delta, a in A_x}$。这样,如果想取 $Sigma$ 类型 $Sigma A B$,那么对应的映射应当恰好是复合映射 $Theta -> Delta$,如@fig:sigma-compcat 所示。这样看,$Sigma$ 类型在展映射的语言中就对应映射的复合。
105-
#numbered-figure(caption: [(...)])[
106-
(...)
107-
] <fig:sigma-compcat>
147+
在集合模型中,外延相等类型 $"Id"(x, y)$ 对应集合族
148+
#eq($
149+
{star mid(|) x = y} =
150+
cases(
151+
{star} quad & x = y,
152+
varnothing & x != y
153+
)
154+
$)
155+
其中等号均为集合论意义的等号。换成展映射的语言,就是从 ${(x, a_1, a_2) mid(|) a_1 = a_2 in A_x}$${(x, a_1, a_2) mid(|) a_1, a_2 in A_x}$ 的含入映射。注意到前者实际上就同构于 $(Gamma, A)$。因此,外延相等类型对应要求 $(Gamma, A) -> (Gamma, A, A frak(p))$ 这个对角映射是展映射。
156+
157+
$(Gamma, A)$ 记作 $Delta$,则 $(Gamma, A, A frak(p))$ 是拉回 $Delta times_Gamma Delta$。在代数几何中,有许多条件是关于对角映射 $Delta -> Delta times_Gamma Delta$ 的,例如某映射拟分离当且仅当其对角映射拟紧,某映射分离当且仅当对角映射是闭嵌入,等等。这些条件可以看作是对某类型的相等类型作限制。
158+
159+
(every morphism is display)
160+
161+
#eq(diagram({
162+
node((1, 0), [$Delta$])
163+
node((1, -1), [$Delta times Gamma$])
164+
node((1, -2), [$Gamma$])
165+
pullback("dr")
166+
node((2, -1), [$Delta^3$])
167+
node((2, -2), [$Delta^2$])
168+
edge((1, -1), (1, 0), "->")
169+
edge((1, -2), (1, -1), "->")
170+
edgeL((2, -2), (2, -1), [$(id, delta)$], "->")
171+
edgeR((1, -1), (2, -1), [$(delta, f)$], "->")
172+
edge((1, -2), (2, -2), "->")
173+
}))
108174

109175
(introduce slice categories as going into a context)
110176

111-
- Extensional equality: pullback
177+
(pullback is adjoint to composition)
178+
112179
- $Pi$: right adjoint with (automatic) Frobenius condition
113180

114181
- Examples of comprehension categories with Pi and Sigma types

0 commit comments

Comments
 (0)