-
Notifications
You must be signed in to change notification settings - Fork 82
Beyond foundation #751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Beyond foundation #751
Changes from 10 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4f72ec1
pulling changes from beyond-finite-sets
EgbertRijke 8ea2c66
pulling changes from beyond-finite-sets
EgbertRijke 81d2e65
resolve merge conflicts
EgbertRijke 107e246
removing unnecessary --allow-unsolved-metas
EgbertRijke 0c9b2f5
Merge branch 'master' of github.com:UniMath/agda-unimath into beyond-…
EgbertRijke 122a754
factoring out symmetric cores
EgbertRijke 0f76f56
make pre-commit
EgbertRijke d4ea2d5
Merge branch 'master' of github.com:UniMath/agda-unimath into beyond-…
EgbertRijke e5c94ab
delete unfinished file
EgbertRijke 5a06302
make pre-commit
EgbertRijke 71a6052
Merge branch 'master' of github.com:UniMath/agda-unimath into beyond-…
EgbertRijke 5785f94
merge
EgbertRijke d66978a
make this PR compile
EgbertRijke 29dd81c
refactor
EgbertRijke 00a3df7
Merge branch 'master' of github.com:UniMath/agda-unimath into beyond-…
EgbertRijke 0bd0fee
renaming action-on-equivalences-families-over-subuniverses to action-…
EgbertRijke aa28e94
factor out stuff that influences the deloopings of the sign homomorphism
EgbertRijke 6e32609
equivalence-induction
EgbertRijke c2d91d4
more changes
EgbertRijke 20e0e81
move lemma
EgbertRijke 4b4f9ed
Merge branch 'master' of github.com:UniMath/agda-unimath into beyond-…
EgbertRijke 36750ce
Merge branch 'master' of github.com:UniMath/agda-unimath into beyond-…
EgbertRijke 61b7905
Merge branch 'master' of github.com:UniMath/agda-unimath into beyond-…
EgbertRijke dc9a2e2
remove some unused imports
EgbertRijke dfdd1af
uniqueness of action on equivalences of functions
EgbertRijke 4689d54
action on equivalences of functions out of subuniverses
EgbertRijke 63c807b
make uniqueness defintions abstract
EgbertRijke 4bf206b
capitalization
EgbertRijke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
169 changes: 169 additions & 0 deletions
169
src/foundation/action-on-equivalences-type-families.lagda.md
This file contains hidden or 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,169 @@ | ||
# Action on equivalences of type families | ||
|
||
```agda | ||
module foundation.action-on-equivalences-type-families where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import foundation.action-on-identifications-functions | ||
open import foundation.commuting-squares-of-maps | ||
open import foundation.dependent-pair-types | ||
open import foundation.equivalence-induction | ||
open import foundation.fibers-of-maps | ||
open import foundation.function-extensionality | ||
open import foundation.identity-types | ||
open import foundation.sets | ||
open import foundation.subuniverses | ||
open import foundation.transport | ||
open import foundation.univalence | ||
open import foundation.universe-levels | ||
|
||
open import foundation-core.contractible-types | ||
open import foundation-core.equality-dependent-pair-types | ||
open import foundation-core.equivalences | ||
open import foundation-core.injective-maps | ||
open import foundation-core.propositions | ||
open import foundation-core.subtypes | ||
``` | ||
|
||
</details> | ||
|
||
## Ideas | ||
|
||
Given a [subuniverse](foundation.subuniverses.md) `P`, any family of types `B` | ||
indexed by types of `P` has an **action on equivalences** | ||
|
||
```text | ||
(A ≃ B) → P A ≃ P B | ||
``` | ||
|
||
obtained by [equivalence induction](foundation.equivalence-induction.md). The | ||
acion on equivalences of a type family `B` on a subuniverse `P` of `𝒰` is such | ||
that `B id-equiv = id-equiv`, and fits in a | ||
[commuting square](foundation.commuting-squares-of-maps.md) | ||
EgbertRijke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```text | ||
ap B | ||
(X = Y) --------> (B X = B Y) | ||
| | | ||
equiv-eq | | equiv-eq | ||
V V | ||
(X ≃ Y) ---------> (B X ≃ B Y). | ||
B | ||
``` | ||
|
||
## Definitions | ||
|
||
### The action on equivalences of a family of types over a subuniverse | ||
|
||
```agda | ||
module _ | ||
{ l1 l2 l3 : Level} | ||
( P : subuniverse l1 l2) (B : type-subuniverse P → UU l3) | ||
where | ||
|
||
unique-action-on-equivalences-family-of-types-subuniverse : | ||
EgbertRijke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
(X : type-subuniverse P) → | ||
is-contr (fiber (ev-id-equiv-subuniverse P X {λ Y e → B X ≃ B Y}) id-equiv) | ||
unique-action-on-equivalences-family-of-types-subuniverse X = | ||
is-contr-map-ev-id-equiv-subuniverse P X (λ Y e → B X ≃ B Y) id-equiv | ||
|
||
action-on-equivalences-family-of-types-subuniverse : | ||
(X Y : type-subuniverse P) → pr1 X ≃ pr1 Y → B X ≃ B Y | ||
action-on-equivalences-family-of-types-subuniverse X = | ||
pr1 (center (unique-action-on-equivalences-family-of-types-subuniverse X)) | ||
|
||
compute-id-equiv-action-on-equivalences-family-of-types-subuniverse : | ||
(X : type-subuniverse P) → | ||
action-on-equivalences-family-of-types-subuniverse X X id-equiv = id-equiv | ||
compute-id-equiv-action-on-equivalences-family-of-types-subuniverse X = | ||
pr2 (center (unique-action-on-equivalences-family-of-types-subuniverse X)) | ||
``` | ||
|
||
### The action on equivalences of a family of types over a universe | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (B : UU l1 → UU l2) | ||
where | ||
|
||
unique-action-on-equivalences-family-of-types-universe : | ||
{X : UU l1} → | ||
is-contr (fiber (ev-id-equiv (λ Y e → B X ≃ B Y)) id-equiv) | ||
unique-action-on-equivalences-family-of-types-universe = | ||
is-contr-map-ev-id-equiv (λ Y e → B _ ≃ B Y) id-equiv | ||
|
||
action-on-equivalences-family-of-types-universe : | ||
{X Y : UU l1} → (X ≃ Y) → B X ≃ B Y | ||
action-on-equivalences-family-of-types-universe {X} {Y} = | ||
pr1 (center (unique-action-on-equivalences-family-of-types-universe {X})) Y | ||
|
||
compute-id-equiv-action-on-equivalences-family-of-types-universe : | ||
{X : UU l1} → | ||
action-on-equivalences-family-of-types-universe {X} {X} id-equiv = id-equiv | ||
compute-id-equiv-action-on-equivalences-family-of-types-universe {X} = | ||
pr2 (center (unique-action-on-equivalences-family-of-types-universe {X})) | ||
``` | ||
|
||
## Properties | ||
|
||
### The action on equivalences of a family of types over a subuniverse fits in a commuting square with `equiv-eq` | ||
|
||
We claim that the square | ||
|
||
```text | ||
ap B | ||
(X = Y) --------> (B X = B Y) | ||
| | | ||
equiv-eq | | equiv-eq | ||
V V | ||
(X ≃ Y) ---------> (B X ≃ B Y). | ||
B | ||
``` | ||
|
||
commutes for any two types `X Y : type-subuniverse P` and any family of types | ||
`B` over the subuniverse `P`. | ||
|
||
```agda | ||
coherence-square-action-on-equivalences-family-of-types-subuniverse : | ||
{l1 l2 l3 : Level} (P : subuniverse l1 l2) (B : type-subuniverse P → UU l3) → | ||
(X Y : type-subuniverse P) → | ||
coherence-square-maps | ||
( ap B {X} {Y}) | ||
( equiv-eq-subuniverse P X Y) | ||
( equiv-eq) | ||
( action-on-equivalences-family-of-types-subuniverse P B X Y) | ||
coherence-square-action-on-equivalences-family-of-types-subuniverse | ||
P B X .X refl = | ||
compute-id-equiv-action-on-equivalences-family-of-types-subuniverse P B X | ||
``` | ||
|
||
### The action on equivalences of a family of types over a universe fits in a commuting square with `equiv-eq` | ||
|
||
We claim that the square | ||
|
||
```text | ||
ap B | ||
(X = Y) --------> (B X = B Y) | ||
| | | ||
equiv-eq | | equiv-eq | ||
V V | ||
(X ≃ Y) ---------> (B X ≃ B Y). | ||
B | ||
``` | ||
|
||
commutes for any two types `X Y : 𝒰` and any type family `B` over `𝒰`. | ||
|
||
```agda | ||
coherence-square-action-on-equivalences-family-of-types-universe : | ||
{l1 l2 : Level} (B : UU l1 → UU l2) (X Y : UU l1) → | ||
coherence-square-maps | ||
( ap B {X} {Y}) | ||
( equiv-eq) | ||
( equiv-eq) | ||
( action-on-equivalences-family-of-types-universe B) | ||
coherence-square-action-on-equivalences-family-of-types-universe B X .X refl = | ||
compute-id-equiv-action-on-equivalences-family-of-types-universe B | ||
``` |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.