-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Janitorial work on equivalences and embeddings (#1085)
Extracts changes made in #1078 to parts of the library outside of `modal-type-theory`.
- Loading branch information
1 parent
6c950eb
commit 33223e1
Showing
18 changed files
with
201 additions
and
133 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
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
50 changes: 50 additions & 0 deletions
50
src/foundation-core/postcomposition-dependent-functions.lagda.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Postcomposition of dependent functions | ||
|
||
```agda | ||
module foundation-core.postcomposition-dependent-functions where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import foundation.universe-levels | ||
|
||
open import foundation-core.function-types | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
Given a type `A` and a family of maps `f : {a : A} → X a → Y a`, the | ||
{{#concept "postcomposition function" Disambiguation="of dependent functions by a family of maps" Agda=postcomp-Π}} | ||
of dependent functions `(a : A) → X a` by the family of maps `f` | ||
|
||
```text | ||
postcomp-Π A f : ((a : A) → X a) → ((a : A) → Y a) | ||
``` | ||
|
||
is defined by `λ h x → f (h x)`. | ||
|
||
Note that, since the definition of the family of maps `f` depends on the base | ||
`A`, postcomposition of dependent functions does not generalize | ||
[postcomposition of functions](foundation-core.postcomposition-functions.md) in | ||
the same way that | ||
[precomposition of dependent functions](foundation-core.precomposition-dependent-functions.md) | ||
generalizes | ||
[precomposition of functions](foundation-core.precomposition-functions.md). If | ||
`A` can vary while keeping `f` fixed, we have necessarily reduced to the case of | ||
[postcomposition of functions](foundation-core.postcomposition-functions.md). | ||
|
||
## Definitions | ||
|
||
### Postcomposition of dependent functions | ||
|
||
```agda | ||
module _ | ||
{l1 l2 l3 : Level} (A : UU l1) {X : A → UU l2} {Y : A → UU l3} | ||
where | ||
|
||
postcomp-Π : ({a : A} → X a → Y a) → ((a : A) → X a) → ((a : A) → Y a) | ||
postcomp-Π f = f ∘_ | ||
``` |
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
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
Oops, something went wrong.