/
Indexing.lagda.md
464 lines (415 loc) · 16.8 KB
/
Indexing.lagda.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
<!--
```agda
{-# OPTIONS --lossy-unification #-}
open import Cat.Bi.Instances.Discrete
open import Cat.Displayed.Cartesian
open import Cat.Instances.Discrete
open import Cat.Instances.Functor
open import Cat.Displayed.Fibre
open import Cat.Displayed.Base
open import Cat.Bi.Base
open import Cat.Prelude
import Cat.Displayed.Fibre.Reasoning
import Cat.Displayed.Reasoning
import Cat.Reasoning
import Cat.Morphism as Mor
open Pseudofunctor
open Lax-functor
open _=>_
```
-->
```agda
module Cat.Displayed.Cartesian.Indexing
{o ℓ o' ℓ'} {B : Precategory o ℓ}
(E : Displayed B o' ℓ')
(cartesian : Cartesian-fibration E)
where
```
<!--
```agda
open Cartesian-fibration cartesian
open Cat.Displayed.Reasoning E
open Cat.Reasoning B
open Cartesian-lift
open Displayed E
open is-cartesian
open Functor
private
module Fib = Cat.Displayed.Fibre.Reasoning E
_^*_ : ∀ {a b} (f : Hom a b) → Ob[ b ] → Ob[ a ]
f ^* x = has-lift.x' f x
```
-->
# Reindexing for cartesian fibrations {defines="base-change"}
A [[cartesian fibration]] can be thought of as a [[displayed category]]
$\cE$ whose [[fibre categories]] $\cE^*(b)$ depend
([[pseudo|pseudofunctor]])functorially
on the object $b : \cB$ from the base category. A canonical example is
the [[canonical self-indexing]]: If $\cC$ is a
category with [[pullbacks]], then each $b \xto{f} a : \cC$ gives rise to
[[a functor|pullback functor]] $\cC/a \to \cC/b$, the _change of base_
along $f$.
```agda
module _ {𝒶 𝒷} (f : Hom 𝒶 𝒷) where
base-change : Functor (Fibre E 𝒷) (Fibre E 𝒶)
base-change .F₀ ob = has-lift f ob .x'
base-change .F₁ {x} {y} vert = rebase f vert
```
<!--
```agda
base-change .F-id {x} =
sym $ has-lift.uniquep f x _ _ _ _ $
idr' _ ∙[] symP (idl' _)
base-change .F-∘ {x} {y} {z} f' g' =
sym $ has-lift.uniquep f z _ _ _ _ $
Fib.pulllf (has-lift.commutesp f z id-comm _)
∙[] pullr[] _ (has-lift.commutesp f y id-comm _)
∙[] pulll[] _ Fib.to-fibre
```
-->
Moreover, this assignment is _itself_ functorial in $f$: Along the
identity morphism, it's the same thing as not changing bases at all.
```agda
module _ {𝒶} where
private
module FC = Cat.Reasoning (Cat[ Fibre E 𝒶 , Fibre E 𝒶 ])
module Fa = Cat.Reasoning (Fibre E 𝒶)
base-change-id : base-change id FC.≅ Id
```
<details>
<summary> I'll warn you in advance that this proof is not for the faint
of heart. </summary>
```agda
base-change-id = to-natural-iso mi where
open make-natural-iso
mi : make-natural-iso (base-change id) Id
mi .eta x = has-lift.lifting id x
mi .inv x = has-lift.universalv id x id'
mi .eta∘inv x = cancel _ _ (has-lift.commutesv _ _ _)
mi .inv∘eta x = sym $ has-lift.uniquep₂ id x _ _ _ _ _
(idr' _)
(Fib.cancellf (has-lift.commutesv _ _ _))
mi .natural x y f =
sym $ from-pathp $ cast[] $
has-lift.commutesp id y id-comm _
∙[] Fib.to-fibre
```
</details>
And similarly, composing changes of base is the same thing as changing
base along a composite.
<!--
```agda
^*-id-to : ∀ {x} → Hom[ id {𝒶} ] (id ^* x) x
^*-id-to = has-lift.lifting id _
^*-id-from : ∀ {x} → Hom[ id {𝒶} ] x (id ^* x)
^*-id-from = has-lift.universalv id _ id'
^*-comp-from
: ∀ {a b c} {z} {f : Hom b c} {g : Hom a b}
→ Hom[ id ] (g ^* (f ^* z)) ((f ∘ g) ^* z)
^*-comp-from = has-lift.universalv _ _ (has-lift.lifting _ _ ∘' has-lift.lifting _ _)
^*-comp-to
: ∀ {a b c} {z} {f : Hom b c} {g : Hom a b}
→ Hom[ id ] ((f ∘ g) ^* z) (g ^* (f ^* z))
^*-comp-to = has-lift.universalv _ _ (has-lift.universal _ _ _ (has-lift.lifting _ _))
^*-comp
: ∀ {a b c} {z} {f : Hom b c} {g : Hom a b}
→ ((f ∘ g) ^* z) Fib.≅ (g ^* (f ^* z))
^*-comp = Fib.make-iso ^*-comp-to ^*-comp-from
(has-lift.uniquep₂ _ _ _ _ _ _ _
(Fib.pulllf (has-lift.commutesv _ _ _) ∙[]
has-lift.uniquep₂ _ _ _ (idr _) refl _ _
(pulll[] _ (has-lift.commutes _ _ _ _) ∙[]
has-lift.commutesv _ _ _) refl)
(idr' _))
(has-lift.uniquep₂ _ _ _ _ _ _ _
(Fib.pulllf (has-lift.commutesv _ _ _)
∙[] pullr[] _ (has-lift.commutesv _ _ _)
∙[] has-lift.commutes _ _ _ _)
(idr' _))
^*-comp-to-natural
: ∀ {a b c} {f : Hom b c} {g : Hom a b} {x y : Ob[ c ]} (f' : Hom[ id ] x y)
→ rebase g (rebase f f') Fib.∘ ^*-comp-to ≡ ^*-comp-to Fib.∘ rebase (f ∘ g) f'
^*-comp-to-natural {f = f} {g = g} f' =
ap hom[] $ cartesian→weak-monic E (has-lift.cartesian g _) _ _ $ cast[] $
pulll[] _ (has-lift.commutesp g _ id-comm _)
∙[] pullr[] _ (has-lift.commutesv g _ _)
∙[] has-lift.uniquep₂ _ _ _ id-comm-sym _ _ _
(pulll[] _ (has-lift.commutesp _ _ id-comm _)
∙[] pullr[] _ (has-lift.commutes _ _ _ _))
(pulll[] _ (has-lift.commutes _ _ _ _)
∙[] has-lift.commutesp _ _ id-comm _)
∙[] pushl[] _ (symP (has-lift.commutesv g _ _))
```
-->
```agda
module _ {𝒶} {𝒷} {𝒸} (f : Hom 𝒷 𝒸) (g : Hom 𝒶 𝒷) where
private
module FC = Cat.Reasoning (Cat[ Fibre E 𝒸 , Fibre E 𝒶 ])
module Fa = Cat.Reasoning (Fibre E 𝒶)
base-change-comp : base-change (f ∘ g) FC.≅ (base-change g F∘ base-change f)
```
<details>
<summary> This proof is a truly nightmarish application of universal
properties and I recommend that nobody look at it, ever. </summary>.
```agda
base-change-comp = to-natural-iso mi where
open make-natural-iso
mi : make-natural-iso (base-change (f ∘ g)) (base-change g F∘ base-change f)
mi .eta x = ^*-comp-to
mi .inv x = ^*-comp-from
mi .eta∘inv x = ^*-comp .Fib.invl
mi .inv∘eta x = ^*-comp .Fib.invr
mi .natural x y f' = ^*-comp-to-natural f'
```
</details>
In order to assemble this into a [[pseudofunctor]] out of $\cB\op$
(seen as a [[locally discrete bicategory]]) into $\Cat$, we start by
bundling up all the base changes into a functor between $\hom$ categories.
We also prove a lemma that will be useful later, relating base changes
along equal morphisms.
```agda
base-changes : ∀ {a b}
→ Functor (Locally-discrete (B ^op) .Prebicategory.Hom a b)
Cat[ Fibre E a , Fibre E b ]
base-changes = Disc-adjunct base-change
base-change-coherence
: ∀ {a b} {b' : Ob[ b ]} {f g : Hom a b} (p : f ≡ g)
→ has-lift.lifting g b' ∘' base-changes .F₁ p .η b'
≡[ idr _ ∙ sym p ] has-lift.lifting f b'
base-change-coherence {b' = b'} {f} = J
(λ g p → has-lift.lifting g b' ∘' base-changes .F₁ p .η b'
≡[ idr _ ∙ sym p ] has-lift.lifting f b')
(elimr' refl Regularity.reduce!)
```
We have enough data to start defining our pseudofunctor:
<!--
```agda
private
module FC {a} {b} = Cat.Reasoning (Cat[ Fibre E a , Fibre E b ])
```
-->
```agda
Fibres : Pseudofunctor (Locally-discrete (B ^op)) (Cat o' ℓ')
Fibres .lax .P₀ = Fibre E
Fibres .lax .P₁ = base-changes
Fibres .lax .compositor = Disc-natural₂
λ (f , g) → base-change-comp g f .Mor.from
Fibres .lax .unitor = base-change-id .Mor.from
Fibres .unitor-inv = FC.iso→invertible (base-change-id FC.Iso⁻¹)
Fibres .compositor-inv f g =
FC.iso→invertible (base-change-comp g f FC.Iso⁻¹)
```
It remains to verify that this data is *coherent*, which is so tedious
that it serves as a decent self-contained motivation for displayed
categories.
<details>
<summary>You've been warned.</summary>
We start with the `left-unit`{.Agda}. In the diagram below, we have
to show that the composite vertical morphism over $b$ is equal to
the identity over $b$. By the uniqueness property of cartesian lifts,
it suffices to show that the composites with the lift of $f$ are equal,
which is witnessed by the commutativity of the whole diagram.
~~~{.quiver}
\[\begin{tikzcd}
{f^*a'} \\
{\id^*f^*a'} & {f^*a'} \\
{(f \circ \id)^*a'} \\
{f^*a'} && {a'} \\
b && a
\arrow["f", from=5-1, to=5-3]
\arrow["{\rm{lift}(f)}"', from=4-1, to=4-3]
\arrow[maps to, from=4-3, to=5-3]
\arrow[maps to, from=4-1, to=5-1]
\arrow["{\lambda^*a'}"', color={rgb,255:red,214;green,92;blue,92}, from=3-1, to=4-1]
\arrow["{\rm{lift}(f \circ \id)}"{pos=0.4}, from=3-1, to=4-3]
\arrow["\gamma"', color={rgb,255:red,214;green,92;blue,92}, from=2-1, to=3-1]
\arrow["\upsilon"', color={rgb,255:red,214;green,92;blue,92}, from=1-1, to=2-1]
\arrow["{\rm{lift}(f)}", from=2-2, to=4-3]
\arrow["{\rm{lift}(\id)}"', from=2-1, to=2-2]
\arrow["\id", from=1-1, to=2-2]
\end{tikzcd}\]
~~~
The bottom triangle is our `base-change-coherence`{.Agda} lemma, the
middle square is by definition of the compositor and the top triangle
is by definition of the unitor.
```agda
Fibres .lax .left-unit f = ext λ a' →
has-lift.uniquep₂ f a' _ refl refl _ _
(Fib.pulllf (base-change-coherence (idr f))
∙[] Fib.pulllf (has-lift.commutesv (f ∘ id) a' _)
∙[] (refl⟩∘'⟨ Fib.eliml (base-change id .F-id))
∙[] pullr[] _ (has-lift.commutesv id _ id'))
refl
```
For the `right-unit`{.Agda}, we proceed similarly. The diagram below
shows that the composite on the left, composed with the lift of $f$,
is equal to the lift of $f$.
~~~{.quiver}
\[\begin{tikzcd}
{f^*a'} && {a'} \\
{f^*\id^*a'} && {\id^*a'} \\
{(\id \circ f)^*a'} \\
{f^*a'} && {a'} \\
b && a
\arrow["f", from=5-1, to=5-3]
\arrow["{\rm{lift}(f)}"', from=4-1, to=4-3]
\arrow[maps to, from=4-3, to=5-3]
\arrow[maps to, from=4-1, to=5-1]
\arrow["{\rho^*a'}"', color={rgb,255:red,214;green,92;blue,92}, from=3-1, to=4-1]
\arrow["{\rm{lift}(\id \circ f)}"{pos=0.2}, from=3-1, to=4-3]
\arrow["\gamma"', color={rgb,255:red,214;green,92;blue,92}, from=2-1, to=3-1]
\arrow["{f^*\upsilon}"', color={rgb,255:red,214;green,92;blue,92}, from=1-1, to=2-1]
\arrow["{\rm{lift}(\id)}"{description}, from=2-3, to=4-3]
\arrow["{\rm{lift}(f)}"', from=2-1, to=2-3]
\arrow["{\rm{lift}(f)}", from=1-1, to=1-3]
\arrow["\upsilon"', from=1-3, to=2-3]
\arrow["\id", curve={height=-30pt}, from=1-3, to=4-3]
\end{tikzcd}\]
~~~
The bottom triangle is `base-change-coherence`{.Agda}, the middle square
is by definition of the compositor, the outer triangle is by definition
of the unitor, and the top square is by definition of `rebase`{.Agda}
(the action of $f^*$ on morphisms).
```agda
Fibres .lax .right-unit f = ext λ a' →
has-lift.uniquep₂ f a' _ refl _ _ _
(Fib.pulllf (base-change-coherence (idl f))
∙[] Fib.pulllf (has-lift.commutesv (id ∘ f) a' _)
∙[] (refl⟩∘'⟨ Fib.idr _)
∙[] extendr[] id-comm (has-lift.commutesp f _ _ _)
∙[] (has-lift.commutesv id _ id' ⟩∘'⟨refl))
(idr' _ ∙[] symP (idl' _))
```
Last but definitely not least, the `hexagon`{.Agda} witnessing the
coherence of associativity follows again by uniqueness of cartesian
lifts, by the commutativity of the following diagram.
~~~{.quiver}
\[\begin{tikzcd}
{f^*g^*h^*a'} &&&&&& {f^*g^*h^*a'} \\
{f^*g^*h^*a'} & {g^*h^*a'} &&&& {g^*h^*a'} & {(gf)^*h^*a'} \\
{f^*(hg)^*a'} & {(hg)^*a'} & {h^*a'} && {h^*a'} && {(h(gf))^*a'} \\
{((hg)f)^*a'} &&& {a'} &&& {((hg)f)^*a'} \\
d & c & b & a & b & c & d
\arrow["f", from=5-1, to=5-2]
\arrow["g", from=5-2, to=5-3]
\arrow["h", from=5-3, to=5-4]
\arrow[maps to, from=4-4, to=5-4]
\arrow[maps to, from=4-1, to=5-1]
\arrow["{\rm{lift}((hg)f)}"', from=4-1, to=4-4]
\arrow[""{name=0, anchor=center, inner sep=0}, from=3-3, to=4-4]
\arrow["{\rm{lift}(g)}", from=2-2, to=3-3]
\arrow["{\rm{lift}(f)}", from=1-1, to=2-2]
\arrow["\gamma", color={rgb,255:red,214;green,92;blue,92}, from=2-7, to=3-7]
\arrow["\id"', color={rgb,255:red,92;green,92;blue,214}, from=1-1, to=2-1]
\arrow["{f^*\gamma}"', color={rgb,255:red,92;green,92;blue,214}, from=2-1, to=3-1]
\arrow["\gamma"', color={rgb,255:red,92;green,92;blue,214}, from=3-1, to=4-1]
\arrow["{\rm{lift}(hg)}"'{pos=0.1}, from=3-2, to=4-4]
\arrow["{\rm{lift}(f)}"', from=3-1, to=3-2]
\arrow["{\rm{lift}(f)}"', from=2-1, to=2-2]
\arrow["\gamma"', from=2-2, to=3-2]
\arrow["{\alpha^*a'}", color={rgb,255:red,214;green,92;blue,92}, from=3-7, to=4-7]
\arrow["\gamma", color={rgb,255:red,214;green,92;blue,92}, from=1-7, to=2-7]
\arrow["h"', from=5-5, to=5-4]
\arrow["g"', from=5-6, to=5-5]
\arrow["f"', from=5-7, to=5-6]
\arrow[maps to, from=4-7, to=5-7]
\arrow["{\rm{lift}((hg)f)}", from=4-7, to=4-4]
\arrow[""{name=1, anchor=center, inner sep=0}, from=3-5, to=4-4]
\arrow["{\rm{lift}(g)}"', from=2-6, to=3-5]
\arrow["{\rm{lift}(f)}"', from=1-7, to=2-6]
\arrow["{\rm{lift}(h(gf))}"{pos=0.2}, from=3-7, to=4-4]
\arrow["{\rm{lift}(gf)}"{pos=0.3}, from=2-7, to=3-5]
\arrow[Rightarrow, no head, from=1-1, to=1-7]
\arrow[Rightarrow, no head, from=2-2, to=2-6]
\arrow[Rightarrow, no head, from=3-3, to=3-5]
\arrow["{\rm{lift}(h)}"{description}, shift left=2, draw=none, from=0, to=1]
\end{tikzcd}\]
~~~
```agda
Fibres .lax .hexagon f g h = ext λ a' →
has-lift.uniquep₂ ((h ∘ g) ∘ f) a' _ refl _ _ _
(Fib.pulllf (base-change-coherence (assoc h g f))
∙[] Fib.pulllf (has-lift.commutesv (h ∘ (g ∘ f)) a' _)
∙[] (refl⟩∘'⟨ Fib.eliml (base-change (g ∘ f) .F-id))
∙[] extendr[] _ (has-lift.commutesv (g ∘ f) _ _))
(Fib.pulllf (has-lift.commutesv ((h ∘ g) ∘ f) a' _)
∙[] (refl⟩∘'⟨ Fib.idr _) ∙[] (refl⟩∘'⟨ Fib.idr _)
∙[] extendr[] id-comm (has-lift.commutesp f _ _ _)
∙[] (has-lift.commutesv (h ∘ g) a' _ ⟩∘'⟨refl))
```
</details>
<!--
```agda
-- Optimized natural iso, avoids a bunch of junk from composition.
opaque
base-change-square
: ∀ {Γ Δ Θ Ψ : Ob}
→ {σ : Hom Γ Δ} {δ : Hom Γ Θ} {γ : Hom Δ Ψ} {τ : Hom Θ Ψ}
→ γ ∘ σ ≡ τ ∘ δ
→ ∀ x' → Hom[ id ]
(base-change σ .F₀ (base-change γ .F₀ x'))
(base-change δ .F₀ (base-change τ .F₀ x'))
base-change-square {σ = σ} {δ = δ} {γ = γ} {τ = τ} p x' =
has-lift.universalv δ _ $
has-lift.universal' τ _ (sym p) $
has-lift.lifting γ x' ∘' has-lift.lifting σ _
base-change-square-lifting
: ∀ {Γ Δ Θ Ψ : Ob}
→ {σ : Hom Γ Δ} {δ : Hom Γ Θ} {γ : Hom Δ Ψ} {τ : Hom Θ Ψ}
→ (p : γ ∘ σ ≡ τ ∘ δ) (x' : Ob[ Ψ ])
→ has-lift.lifting τ x' ∘' has-lift.lifting δ (base-change τ .F₀ x') ∘' base-change-square p x'
≡[ ap (τ ∘_) (idr _) ∙ sym p ] has-lift.lifting γ x' ∘' has-lift.lifting σ _
base-change-square-lifting {σ = σ} {δ = δ} {γ = γ} {τ = τ} p x' =
cast[] $
apd (λ _ → has-lift.lifting τ x' ∘'_) (has-lift.commutesv _ _ _)
∙[] has-lift.commutesp τ x' (sym p) _
base-change-square-natural
: ∀ {Γ Δ Θ Ψ : Ob}
→ {σ : Hom Γ Δ} {δ : Hom Γ Θ} {γ : Hom Δ Ψ} {τ : Hom Θ Ψ}
→ (p : γ ∘ σ ≡ τ ∘ δ)
→ ∀ {x' y'} (f' : Hom[ id ] x' y')
→ base-change-square p y' ∘' base-change σ .F₁ (base-change γ .F₁ f')
≡ base-change δ .F₁ (base-change τ .F₁ f') ∘' base-change-square p x'
base-change-square-natural {σ = σ} {δ = δ} {γ = γ} {τ = τ} p f' =
has-lift.uniquep₂ δ _ _ _ _ _ _
(pulll[] _ (has-lift.commutesv δ _ _)
∙[] has-lift.uniquep₂ τ _ _ (idr _) _ _ _
(pulll[] _ (has-lift.commutesp τ _ (sym p) _)
∙[] pullr[] _ (has-lift.commutesp σ _ id-comm _)
∙[] extendl[] _ (has-lift.commutesp γ _ id-comm _))
(has-lift.commutesp τ _ (sym p ∙ sym (idl _ )) _))
(pulll[] _ (has-lift.commutesp δ _ id-comm _)
∙[] pullr[] _ (has-lift.commutesv δ _ _)
∙[] has-lift.uniquep τ _ _ (idl _) (sym p ∙ sym (idl _)) _
(pulll[] _ (has-lift.commutesp _ _ id-comm _ )
∙[] pullr[] _ (has-lift.commutesp _ _ (sym p) _)))
base-change-square-inv
: ∀ {Γ Δ Θ Ψ : Ob}
→ {σ : Hom Γ Δ} {δ : Hom Γ Θ} {γ : Hom Δ Ψ} {τ : Hom Θ Ψ}
→ (p : γ ∘ σ ≡ τ ∘ δ)
→ ∀ x' → base-change-square p x' ∘' base-change-square (sym p) x' ≡[ idl _ ] id'
base-change-square-inv {σ = σ} {δ = δ} {γ = γ} {τ = τ} p x' =
has-lift.uniquep₂ _ _ _ _ _ _ _
(pulll[] _ (has-lift.commutesv δ _ _)
∙[] has-lift.uniquep₂ τ _ _ (idr _) refl _ _
(pulll[] _ (has-lift.commutesp τ _ (sym p) _)
∙[] pullr[] _ (has-lift.commutesv σ _ _)
∙[] has-lift.commutesp γ _ p _)
refl)
(idr' _)
base-change-square-ni
: ∀ {Γ Δ Θ Ψ : Ob}
→ {σ : Hom Γ Δ} {δ : Hom Γ Θ} {γ : Hom Δ Ψ} {τ : Hom Θ Ψ}
→ γ ∘ σ ≡ τ ∘ δ
→ (base-change σ F∘ base-change γ) ≅ⁿ (base-change δ F∘ base-change τ)
base-change-square-ni {σ = σ} {δ = δ} {γ = γ} {τ = τ} p =
to-natural-iso ni where
open make-natural-iso
ni : make-natural-iso _ _
ni .eta = base-change-square p
ni .inv = base-change-square (sym p)
ni .eta∘inv x = from-pathp $ base-change-square-inv p x
ni .inv∘eta x = from-pathp $ base-change-square-inv (sym p) x
ni .natural x y f = sym $ Fib.over-fibre (base-change-square-natural p f)
```
-->