-
Notifications
You must be signed in to change notification settings - Fork 76
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
Let being an isomorphism be a property #1071
Draft
EgbertRijke
wants to merge
2
commits into
UniMath:master
Choose a base branch
from
EgbertRijke:iso
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
1,046 changes: 1,046 additions & 0 deletions
1,046
src/category-theory/invertible-morphisms-in-precategories.lagda.md
Large diffs are not rendered by default.
Oops, something went wrong.
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,67 @@ | ||
# Retractions in categories | ||
|
||
```agda | ||
module category-theory.retractions-in-categories where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import category-theory.categories | ||
open import category-theory.retractions-in-precategories | ||
|
||
open import foundation.dependent-pair-types | ||
open import foundation.identity-types | ||
open import foundation.universe-levels | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
Consider a morphism `f : A → B` in a [category](category-theory.categories.md) `𝒞`. A {{#concept "retraction" Disambiguation="morphism in a category" Agda=retraction-hom-Category}} of `f` consists of a morphism `g : B → A` equipped with an [identification](foundation-core.identifications.md) | ||
|
||
```text | ||
g ∘ f = id. | ||
``` | ||
|
||
## Definitions | ||
|
||
### The predicate on morphisms in a category of being a retraction | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (𝒞 : Category l1 l2) | ||
{A B : obj-Category 𝒞} (f : hom-Category 𝒞 A B) | ||
where | ||
|
||
is-retraction-hom-Category : hom-Category 𝒞 B A → UU l2 | ||
is-retraction-hom-Category = | ||
is-retraction-hom-Precategory (precategory-Category 𝒞) f | ||
``` | ||
|
||
### Retractions of a morphism in a category | ||
|
||
```agda | ||
module _ | ||
{l1 l2 : Level} (𝒞 : Category l1 l2) | ||
{A B : obj-Category 𝒞} (f : hom-Category 𝒞 A B) | ||
where | ||
|
||
retraction-hom-Category : UU l2 | ||
retraction-hom-Category = | ||
retraction-hom-Precategory (precategory-Category 𝒞) f | ||
|
||
module _ | ||
(r : retraction-hom-Category) | ||
where | ||
|
||
hom-retraction-hom-Category : hom-Category 𝒞 B A | ||
hom-retraction-hom-Category = | ||
hom-retraction-hom-Precategory (precategory-Category 𝒞) f r | ||
|
||
is-retraction-retraction-hom-Category : | ||
is-retraction-hom-Category 𝒞 f hom-retraction-hom-Category | ||
is-retraction-retraction-hom-Category = | ||
is-retraction-retraction-hom-Precategory (precategory-Category 𝒞) f r | ||
``` |
78 changes: 78 additions & 0 deletions
78
src/category-theory/retractions-in-large-categories.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,78 @@ | ||
# Retractions in large categories | ||
|
||
```agda | ||
module category-theory.retractions-in-large-categories where | ||
``` | ||
|
||
<details><summary>Imports</summary> | ||
|
||
```agda | ||
open import category-theory.large-categories | ||
open import category-theory.retractions-in-large-precategories | ||
|
||
open import foundation.dependent-pair-types | ||
open import foundation.identity-types | ||
open import foundation.universe-levels | ||
``` | ||
|
||
</details> | ||
|
||
## Idea | ||
|
||
Consider a morphism `f : A → B` in a [large category](category-theory.large-categories.md) `𝒞`. A {{#concept "retraction" Disambiguation="morphism in a large category" Agda=retraction-hom-Large-Category}} of `f` consists of a morphism `g : B → A` equipped with an [identification](foundation-core.identifications.md) | ||
|
||
```text | ||
g ∘ f = id. | ||
``` | ||
|
||
## Definitions | ||
|
||
### The predicate on morphisms in a large category of being a retraction | ||
|
||
```agda | ||
module _ | ||
{α : Level → Level} {β : Level → Level → Level} (𝒞 : Large-Category α β) | ||
{l1 l2 : Level} {A : obj-Large-Category 𝒞 l1} | ||
{B : obj-Large-Category 𝒞 l2} (f : hom-Large-Category 𝒞 A B) | ||
where | ||
|
||
is-retraction-hom-Large-Category : | ||
hom-Large-Category 𝒞 B A → UU (β l1 l1) | ||
is-retraction-hom-Large-Category = | ||
is-retraction-hom-Large-Precategory (large-precategory-Large-Category 𝒞) f | ||
``` | ||
|
||
### Retractions of a morphism in a large category | ||
|
||
```agda | ||
module _ | ||
{α : Level → Level} {β : Level → Level → Level} (𝒞 : Large-Category α β) | ||
{l1 l2 : Level} {A : obj-Large-Category 𝒞 l1} | ||
{B : obj-Large-Category 𝒞 l2} (f : hom-Large-Category 𝒞 A B) | ||
where | ||
|
||
retraction-hom-Large-Category : UU (β l1 l1 ⊔ β l2 l1) | ||
retraction-hom-Large-Category = | ||
retraction-hom-Large-Precategory (large-precategory-Large-Category 𝒞) f | ||
|
||
module _ | ||
(r : retraction-hom-Large-Category) | ||
where | ||
|
||
hom-retraction-hom-Large-Category : hom-Large-Category 𝒞 B A | ||
hom-retraction-hom-Large-Category = | ||
hom-retraction-hom-Large-Precategory | ||
( large-precategory-Large-Category 𝒞) | ||
( f) | ||
( r) | ||
|
||
is-retraction-retraction-hom-Large-Category : | ||
is-retraction-hom-Large-Category 𝒞 f | ||
( hom-retraction-hom-Large-Category) | ||
is-retraction-retraction-hom-Large-Category = | ||
is-retraction-retraction-hom-Large-Precategory | ||
( large-precategory-Large-Category 𝒞) | ||
( f) | ||
( r) | ||
``` | ||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering that morphism types in a category are sets, I'd propose we rather use the following definition
for isomorphisms, as this type has a strictly involutive inverse operator. In fact, it would be even better to use the pairing trick that Anders showed us (I'm sorry, this means backtracking on my initiative to use the strictly involutive identity type in set-level category theory), as that definition is predicative, something that might be important for large categories. The only caveat being that it only works for set-level things.