-
Notifications
You must be signed in to change notification settings - Fork 67
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
[draft] Add definition of an adjunction in Bicategory #348
Open
Boarders
wants to merge
1
commit into
agda:master
Choose a base branch
from
Boarders:2-adjunctions
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.
Open
Changes from all commits
Commits
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 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,56 @@ | ||
{-# OPTIONS --without-K --safe #-} | ||
|
||
module Categories.Bicategory.Adjunction where | ||
|
||
open import Categories.Bicategory | ||
import Categories.Bicategory.Extras as Extras | ||
open import Categories.Category | ||
open import Level | ||
|
||
private | ||
variable | ||
o ℓ e t : Level | ||
|
||
module _ (𝒞 : Bicategory o ℓ e t) where | ||
open Bicategory 𝒞 | ||
|
||
record Adjunction (A B : Obj) : Set (o ⊔ ℓ ⊔ e ⊔ t) where | ||
private | ||
module C = Extras 𝒞 | ||
|
||
field | ||
L : A ⇒₁ B | ||
R : B ⇒₁ A | ||
|
||
field | ||
unit : id₁ ⇒₂ R ⊚₀ L | ||
counit : L ⊚₀ R ⇒₂ id₁ | ||
|
||
private | ||
{- | ||
L 1 → L (R L) → (L R) L | ||
↓ L 1 | ||
1 ∘ L ~ ↓ | ||
↓ L | ||
L | ||
-} | ||
l-triangle-l : L ⊚₀ id₁ ⇒₂ L | ||
l-triangle-l = C.unitorˡ.from ∘ᵥ (counit ⊚₁ id₂) ∘ᵥ C.associator.to ∘ᵥ (id₂ ⊚₁ unit) | ||
|
||
l-triangle-r : L ⊚₀ id₁ ⇒₂ L | ||
l-triangle-r = C.unitorʳ.from | ||
{- | ||
1 R → (R L) R → R (L R) | ||
↓ L 1 | ||
R ∘ id ~ ↓ | ||
↓ L | ||
R | ||
-} | ||
r-triangle-l : id₁ ⊚₀ R ⇒₂ R | ||
r-triangle-l = C.unitorʳ.from ∘ᵥ (id₂ ⊚₁ counit) ∘ᵥ C.associator.from ∘ᵥ (unit ⊚₁ id₂) | ||
|
||
r-triangle-r : id₁ ⊚₀ R ⇒₂ R | ||
r-triangle-r = C.unitorˡ.from | ||
field | ||
l-triangle : l-triangle-l C.≈ l-triangle-r | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps we should name these There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed! |
||
r-triangle : r-triangle-l C.≈ r-triangle-r |
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.
We should probably pull this module out of the record, and into the enclosing module.
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.
Yes. And may as well open it extracting the unitors and ≈.