···8787 \end{construction}
88888989 \begin{lemma}[From edges to identifications via propositional fans]\label[lemma]{lem:edge-to-id}
9090- Suppose that each fan $\Fan{\gA}{x}$ of a reflexive graph $\gA$ is a proposition. Then each $\IdToEdge{\gA}[x,y]{-}$ has a retraction $\EdgeToId{\gA}[x,y]{-} \colon x\Edge{\gA}y\to \Id{\vrt{\gA}}{x}{y}$.
9090+ Suppose that each fan $\Fan{\gA}{x}$ of a reflexive graph $\gA$ is a proposition. Then each $\IdToEdge{\gA}[x,y]{-}$ has a quasi-inverse $\EdgeToId{\gA}[x,y]{-} \colon x\Edge{\gA}y\to \Id{\vrt{\gA}}{x}{y}$.
9191 \end{lemma}
9292 \begin{proof}
9393 Let $\Phi_x$ be the proof that a given fan $\Fan{\gA}{x}$ is a proposition. Rather than defining $\EdgeToId{\gA}[x,y]{-} : x\Edge{\gA}y\to \Id{\vrt{\gA}}{x}{y}$ directly, we construct a slightly more general function that anticipates the contractibility of $\Fan{\gA}{x}$.
···127127 }
128128 }
129129130130- Next we exhibit the witness of retraction.
130130+ Next we prove that $\EdgeToId{\gA}[x,y]{-}$ is a section of $\IdToEdge{\gA}[x,y]{-}$.
131131132132 \iblock{
133133 \mhang{
···178178 \Id{x\Edge{\gA}x}{
179179 \Rx{\gA}{x}
180180 }{\Rx{\gA}{x}}
181181+ }
182182+ \commentrow{by reflexivity}
183183+ }
184184+ }
185185+186186+ Finally, we prove that $\EdgeToId{\gA}[x,y]{-}$ is a retraction of $\IdToEdge{\gA}[x,y]{-}$.
187187+188188+ \iblock{
189189+ \mhang{
190190+ x,y:\vrt{\gA}; p : \Id{\vrt{\gA}}{x}{y}
191191+ \vdash \Id{\Id{\vrt{A}}{x}{y}}{\EdgeToId{\gA}[x,y]{\IdToEdge{\gA}[x,y]{p}}}{p}
192192+ }{
193193+ \commentrow{by identification induction}
194194+ \mrow{
195195+ x:\vrt{\gA} \vdash
196196+ \Id{\Id{\vrt{A}}{x}{x}}{\EdgeToId{\gA}[x,x]{\IdToEdge{\gA}[x,x]{\Refl}}}{\Refl}
197197+ }
198198+ \commentrow{by definition}
199199+ \mrow{
200200+ x:\vrt{\gA} \vdash
201201+ \Id{\Id{\vrt{A}}{x}{x}}{
202202+ \EdgeToIdGen{\gA}[x,x]{
203203+ \Rx{\gA}x
204204+ }{
205205+ \Phi_x\,(x,\Rx{\gA}x)\,(x,\Rx{\gA}x)
206206+ }
207207+ }{\Refl}
208208+ }
209209+ \commentrow{because $\Fan{\gA}{x}$ is a set}
210210+ \mrow{
211211+ x:\vrt{\gA} \vdash
212212+ \Id{\Id{\vrt{A}}{x}{x}}{
213213+ \EdgeToIdGen{\gA}[x,x]{
214214+ \Rx{\gA}x
215215+ }{
216216+ \Refl
217217+ }
218218+ }{\Refl}
219219+ }
220220+ \commentrow{by definition}
221221+ \mrow{
222222+ x:\vrt{\gA} \vdash
223223+ \Id{\Id{\vrt{A}}{x}{x}}{\Refl}{\Refl}
181224 }
182225 \commentrow{by reflexivity}
183226 \qedhere