-
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.
In this PR we construct the symmetric core of a type valued relation and show that it is the right adjoint of the restriction functor from symmetric relations to relations. Everything we do in this PR is fully coherent and untruncated. --------- Co-authored-by: Fredrik Bakke <[email protected]>
- Loading branch information
1 parent
50fdf54
commit adf864e
Showing
22 changed files
with
394 additions
and
81 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
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
139 changes: 139 additions & 0 deletions
139
src/foundation/symmetric-cores-binary-relations.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,139 @@ | ||
# Symmetric cores of binary relations | ||
|
||
```agda | ||
{-# OPTIONS --allow-unsolved-metas #-} | ||
|
||
module foundation.symmetric-cores-binary-relations where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import foundation.action-on-identifications-functions | ||
open import foundation.binary-relations | ||
open import foundation.dependent-pair-types | ||
open import foundation.equivalences | ||
open import foundation.function-extensionality | ||
open import foundation.function-types | ||
open import foundation.functoriality-dependent-function-types | ||
open import foundation.functoriality-function-types | ||
open import foundation.homotopies | ||
open import foundation.identity-types | ||
open import foundation.mere-equivalences | ||
open import foundation.symmetric-binary-relations | ||
open import foundation.transport-along-identifications | ||
open import foundation.type-arithmetic-dependent-function-types | ||
open import foundation.universal-property-dependent-pair-types | ||
open import foundation.universal-property-identity-systems | ||
open import foundation.universe-levels | ||
open import foundation.unordered-pairs | ||
|
||
open import univalent-combinatorics.2-element-types | ||
open import univalent-combinatorics.standard-finite-types | ||
open import univalent-combinatorics.universal-property-standard-finite-types | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
The **symmetric core** of a [binary relation](foundation.binary-relations.md) | ||
`R : A → A → 𝒰` on a type `A` is a | ||
[symmetric binary relation](foundation.symmetric-binary-relations.md) `core R` | ||
equipped with a counit | ||
|
||
```text | ||
(x y : A) → core R {x , y} → R x y | ||
``` | ||
|
||
that satisfies the universal property of the symmetric core, i.e., it satisfies | ||
the property that for any symmetric relation `S : unordered-pair A → 𝒰`, the | ||
precomposition function | ||
|
||
```text | ||
hom-Symmetric-Relation S (core R) → hom-Relation (rel S) R | ||
``` | ||
|
||
is an [equivalence](foundation-core.equivalences.md). The symmetric core of a | ||
binary relation `R` is defined as the relation | ||
|
||
```text | ||
core R (I,a) := (i : I) → R (a i) (a -i) | ||
``` | ||
|
||
where `-i` is the element of the | ||
[2-element type](univalent-combinatorics.2-element-types.md) obtained by | ||
applying the swap [involution](foundation.involutions.md) to `i`. With this | ||
definition it is easy to see that the universal property of the adjunction | ||
should hold, since we have | ||
|
||
```text | ||
((I,a) → S (I,a) → core R (I,a)) ≃ ((x y : A) → S {x,y} → R x y). | ||
``` | ||
|
||
## Definitions | ||
|
||
### The symmetric core of a binary relation | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} {A : UU l1} (R : Relation l2 A) | ||
where | ||
|
||
symmetric-core-Relation : Symmetric-Relation l2 A | ||
symmetric-core-Relation p = | ||
(i : type-unordered-pair p) → | ||
R (element-unordered-pair p i) (other-element-unordered-pair p i) | ||
|
||
counit-symmetric-core-Relation : | ||
{x y : A} → | ||
relation-Symmetric-Relation symmetric-core-Relation x y → R x y | ||
counit-symmetric-core-Relation {x} {y} r = | ||
tr | ||
( R x) | ||
( compute-other-element-standard-unordered-pair x y (zero-Fin 1)) | ||
( r (zero-Fin 1)) | ||
``` | ||
|
||
## Properties | ||
|
||
### The universal property of the symmetric core of a binary relation | ||
|
||
```agda | ||
module _ | ||
{l1 l2 l3 : Level} {A : UU l1} (R : Relation l2 A) | ||
(S : Symmetric-Relation l3 A) | ||
where | ||
|
||
map-universal-property-symmetric-core-Relation : | ||
hom-Symmetric-Relation S (symmetric-core-Relation R) → | ||
hom-Relation (relation-Symmetric-Relation S) R | ||
map-universal-property-symmetric-core-Relation f x y s = | ||
counit-symmetric-core-Relation R (f (standard-unordered-pair x y) s) | ||
|
||
equiv-universal-property-symmetric-core-Relation : | ||
hom-Symmetric-Relation S (symmetric-core-Relation R) ≃ | ||
hom-Relation (relation-Symmetric-Relation S) R | ||
equiv-universal-property-symmetric-core-Relation = | ||
( equiv-Π-equiv-family | ||
( λ x → | ||
equiv-Π-equiv-family | ||
( λ y → | ||
equiv-postcomp | ||
( S (standard-unordered-pair x y)) | ||
( equiv-tr | ||
( R _) | ||
( compute-other-element-standard-unordered-pair x y | ||
( zero-Fin 1)))))) ∘e | ||
( equiv-dependent-universal-property-pointed-unordered-pairs | ||
( λ p i → | ||
S p → | ||
R (element-unordered-pair p i) (other-element-unordered-pair p i))) ∘e | ||
( equiv-Π-equiv-family (λ p → equiv-swap-Π)) | ||
|
||
universal-property-symmetric-core-Relation : | ||
is-equiv map-universal-property-symmetric-core-Relation | ||
universal-property-symmetric-core-Relation = | ||
is-equiv-map-equiv | ||
( equiv-universal-property-symmetric-core-Relation) | ||
``` |
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.