Skip to content

Commit bab00aa

Browse files
author
marcbezem
committed
simplified lem:sum-of-fibers
1 parent ddc2f46 commit bab00aa

File tree

1 file changed

+17
-28
lines changed

1 file changed

+17
-28
lines changed

intro-uf.tex

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4206,37 +4206,26 @@ \section{Type families and maps}
42064206
\end{proof}
42074207

42084208
\begin{lemma}\label{lem:sum-of-fibers}
4209-
Let $A,B:\UU$ and $f:B\to A$.
4210-
Then $e: B \to \sum_{a:A} f^{-1}(a)$ defined by
4211-
$e(b)\defeq (f(b),b,\refl{f(b)})$ is an equivalence.
4209+
Let $A,B:\UU$ and $f:A\to B$.
4210+
Then $e: \bigl(\sum_{b:B} f^{-1}(b)\bigr)\to A$ defined by
4211+
$e(b,a,p)\defeq a$ is an equivalence.
42124212
\end{lemma}
42134213
\begin{proof}
4214-
Define $e^{-1}: \sum_{a:A} f^{-1}(a) \to B$ by $e^{-1}(a,b,p)\defeq b$,
4215-
where $p: a\eqto f(b)$.
4216-
Then $e^{-1}(e(b))\jdeq b$ for all $b:B$.
4217-
Let $a:A$, $b:B$ and $p: a\eqto f(b) $.
4218-
Then $e(e^{-1}(a,b,p))\jdeq (f(b),b,\refl{f(b)})$.
4219-
We have to identify $(a,b,p)$ with $(f(b),b,\refl{f(b)})$.
4220-
We use $p$ as identification of the first components
4221-
\marginnote{
4222-
$\begin{tikzcd}[column sep=small,ampersand replacement=\&]
4223-
a\ar[r,eqr,"p"] \ar[d,eql,"p"'] \& f(b) \\
4224-
f(b)\ar[ur,eql,"\refl{f(b)}"']
4225-
\end{tikzcd}$}
4226-
(the horizontal identification $p$ in the diagram in the margin),
4227-
and $\refl{b}$ as identification of the second components
4228-
(whose type is constant). For the third component
4229-
we use transport in the type family $(\_ \eqto f(b))$
4230-
and \cref{xca:trp-in-a/x=b/x}\ref{trp-in-x=a}. Visualized
4231-
in the diagram in the margin, we transport
4232-
the horizontal identification $p$ along the vertical one, also $p$.
4233-
The result of this transport can be identified with $p\cdot\inv p$
4234-
and hence with $\refl{f(b)}$, the diagonal identification in the diagram.
4235-
Now apply \cref{lem:weq-iso}.
4214+
The function $e$ is the composite of three equivalences
4215+
\[
4216+
\Bigl(\sum_{b:B} \sum_{a:A} (b\eqto f(a))\Bigr) \equivto
4217+
\Bigl(\sum_{a:A} \sum_{b:B} (b\eqto f(a))\Bigr) \equivto
4218+
\Bigl(\sum_{a:A} \true\Bigr) \equivto A,
4219+
\]
4220+
where the first one interchanges the first two arguments,
4221+
the second one contracts away the inner sumtype
4222+
(using \cref{lem:thepathspaceiscontractible}), and the third one
4223+
is $\fst$ (using \cref{xca:XequivXtimes1}).
42364224
\end{proof}
42374225

4238-
If $f$ above is an injection, then $\sum_{a:A} f^{-1}(a)$ is a subtype of $A$,
4239-
and $B$ is a $n$-type if $A$ is a $n$-type by \cref{cor:subtype-same-level}.
4226+
If $f$ in \cref{lem:sum-of-fibers} is an injection,
4227+
then $\sum_{b:B} f^{-1}(b)$ is a subtype of $B$, and hence
4228+
$A$ is a $n$-type if $B$ is a $n$-type by \cref{cor:subtype-same-level}.
42404229

42414230
\begin{lemma}\label{lem:typefamiliesandfibrations}
42424231
Let $A:\UU$ be a type.\footnote{%
@@ -4247,7 +4236,7 @@ \section{Type families and maps}
42474236
\preim ~:~ \sum_{B:\UU}(B\to A) \quad\to\quad (A\to\UU)
42484237
\]
42494238
given by $\preim(B,f)(a)\defeq f^{-1}(a)$ is an equivalence.
4250-
An inverse equivalence is given by sending $C:A\to\UU$ to
4239+
The inverse equivalence is given by sending $C:A\to\UU$ to
42514240
$(\sum_{a:A}C(a), \fst)$.
42524241
\end{lemma}
42534242

0 commit comments

Comments
 (0)