forked from UniMath/agda-unimath
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A simple PR that moves "maps in subuniverses" to their own file and formalizes that they are closed under base change.
- Loading branch information
1 parent
3c03fcf
commit cd2c794
Showing
7 changed files
with
185 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Maps in global subuniverses | ||
|
||
```agda | ||
module foundation.maps-in-global-subuniverses where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import foundation.cartesian-morphisms-arrows | ||
open import foundation.dependent-pair-types | ||
open import foundation.fibers-of-maps | ||
open import foundation.functoriality-fibers-of-maps | ||
open import foundation.global-subuniverses | ||
open import foundation.unit-type | ||
open import foundation.universe-levels | ||
|
||
open import foundation-core.equivalences | ||
open import foundation-core.propositions | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
Given a [global subuniverse](foundation.global-subuniverses.md) `π«`, a map | ||
`f : A β B` is said to be a | ||
{{#concept "map in `π«`" Disambiguation="in a global subuniverse" Agda=is-in-global-subuniverse-map}}, | ||
or a **`π«`-map**, if its [fibers](foundation-core.fibers-of-maps.md) are in `π«`. | ||
|
||
## Definitions | ||
|
||
### The predicate on maps of being in a global subuniverse | ||
|
||
```agda | ||
module _ | ||
{Ξ± : Level β Level} (π« : global-subuniverse Ξ±) | ||
{l1 l2 : Level} {A : UU l1} {B : UU l2} (f : A β B) | ||
where | ||
|
||
is-in-global-subuniverse-map : UU (Ξ± (l1 β l2) β l2) | ||
is-in-global-subuniverse-map = | ||
(b : B) β is-in-global-subuniverse π« (fiber f b) | ||
|
||
is-prop-is-in-global-subuniverse-map : is-prop is-in-global-subuniverse-map | ||
is-prop-is-in-global-subuniverse-map = | ||
is-prop-Ξ (Ξ» b β is-prop-is-in-global-subuniverse π« (fiber f b)) | ||
|
||
is-in-global-subuniverse-map-Prop : Prop (Ξ± (l1 β l2) β l2) | ||
is-in-global-subuniverse-map-Prop = | ||
( is-in-global-subuniverse-map , is-prop-is-in-global-subuniverse-map) | ||
``` | ||
|
||
## Properties | ||
|
||
### A type is in `π«` if and only if its terminal projection is in `π«` | ||
|
||
```agda | ||
module _ | ||
{Ξ± : Level β Level} (π« : global-subuniverse Ξ±) | ||
{l1 : Level} {A : UU l1} | ||
where | ||
|
||
is-in-global-subuniverse-is-in-global-subuniverse-terminal-map : | ||
is-in-global-subuniverse-map π« (terminal-map A) β | ||
is-in-global-subuniverse π« A | ||
is-in-global-subuniverse-is-in-global-subuniverse-terminal-map H = | ||
is-closed-under-equiv-global-subuniverse π« l1 l1 | ||
( fiber (terminal-map A) star) | ||
( A) | ||
( equiv-fiber-terminal-map star) | ||
( H star) | ||
|
||
is-in-global-subuniverse-terminal-map-is-in-global-subuniverse : | ||
is-in-global-subuniverse π« A β | ||
is-in-global-subuniverse-map π« (terminal-map A) | ||
is-in-global-subuniverse-terminal-map-is-in-global-subuniverse H u = | ||
is-closed-under-equiv-global-subuniverse π« l1 l1 | ||
( A) | ||
( fiber (terminal-map A) u) | ||
( inv-equiv-fiber-terminal-map u) | ||
( H) | ||
``` | ||
|
||
### Closure under base change | ||
|
||
Maps in `π«` are closed under base change. | ||
|
||
```agda | ||
module _ | ||
{Ξ± : Level β Level} (π« : global-subuniverse Ξ±) | ||
{l1 l2 l3 l4 : Level} {A : UU l1} {B : UU l2} {C : UU l3} {D : UU l4} | ||
(f : A β B) (g : C β D) | ||
where | ||
|
||
is-in-global-subuniverse-map-base-change : | ||
is-in-global-subuniverse-map π« f β | ||
cartesian-hom-arrow g f β | ||
is-in-global-subuniverse-map π« g | ||
is-in-global-subuniverse-map-base-change F Ξ± d = | ||
is-closed-under-equiv-global-subuniverse π« (l1 β l2) (l3 β l4) | ||
( fiber f (map-codomain-cartesian-hom-arrow g f Ξ± d)) | ||
( fiber g d) | ||
( inv-equiv (equiv-fibers-cartesian-hom-arrow g f Ξ± d)) | ||
( F (map-codomain-cartesian-hom-arrow g f Ξ± d)) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Maps in subuniverses | ||
|
||
```agda | ||
module foundation.maps-in-subuniverses where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import foundation.subuniverses | ||
open import foundation.universe-levels | ||
|
||
open import foundation-core.fibers-of-maps | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
Given a [subuniverse](foundation.subuniverses.md) `π«`, a map `f : A β B` is said | ||
to be a | ||
{{#concept "map in `π«`" Disambiguation="in a subuniverse" Agda=is-in-subuniverse-map}}, | ||
or a **`π«`-map**, if its [fibers](foundation-core.fibers-of-maps.md) are in `π«`. | ||
|
||
## Definitions | ||
|
||
### The predicate on maps of being in a subuniverse | ||
|
||
```agda | ||
is-in-subuniverse-map : | ||
{l1 l2 l3 : Level} (P : subuniverse (l1 β l2) l3) {A : UU l1} {B : UU l2} β | ||
(A β B) β UU (l2 β l3) | ||
is-in-subuniverse-map P {A} {B} f = (b : B) β is-in-subuniverse P (fiber f b) | ||
``` | ||
|
||
## See also | ||
|
||
- [Maps in global subuniverses](foundation.maps-in-global-subuniverses.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters