-
Notifications
You must be signed in to change notification settings - Fork 85
Displayed Bicategories #549
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
Open
mmcqd
wants to merge
27
commits into
the1lab:main
Choose a base branch
from
mmcqd:matthew/bidisplayed
base: main
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 18 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e717a6f
displayed category of displayed functors, bidisplayed categories
mmcqd 6297628
naturality stuff
mmcqd a2ff307
switch to lagda files
mmcqd 3368bf8
some prose
mmcqd 9bb6048
more prose
mmcqd e26a01b
import sorting
mmcqd f9b9559
headers and whatnot
mmcqd 6f56a47
fix some typos
mmcqd e3876db
remove unused function
mmcqd 4ae2872
update headers
mmcqd 8f53262
nicer links
mmcqd dcdd065
remove old comment
mmcqd 471920e
phrasing
mmcqd 7af6d94
fix another header
mmcqd d50d122
Merge branch 'main' into matthew/bidisplayed
mmcqd 2ff7276
fixup
mmcqd 8338505
fixup
mmcqd ed1b1d8
remove extra hlevel instance
mmcqd ca95414
use a real citation
mmcqd 481a21a
formatting
mmcqd 0b00a24
extra line
mmcqd 30a4e65
remove old link
mmcqd d597177
less annotation
mmcqd 29eb560
Merge branch 'main' into matthew/bidisplayed
mmcqd 27067cb
add new fields to Disp[_,_]
mmcqd 78a998f
fixup
mmcqd ec1daed
Merge branch 'main' into matthew/bidisplayed
plt-amy 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| <!-- | ||
| ```agda | ||
| open import Cat.Displayed.Instances.DisplayedFunctor | ||
| open import Cat.Functor.Naturality | ||
| open import Cat.Displayed.Functor | ||
| open import Cat.Displayed.Base | ||
| open import Cat.Morphism | ||
| open import Cat.Prelude | ||
|
|
||
| import Cat.Displayed.Reasoning as DR | ||
| import Cat.Displayed.Morphism as DM | ||
| ``` | ||
| --> | ||
| ```agda | ||
| module Cat.Displayed.Functor.Naturality where | ||
| ``` | ||
| # Natural isomorhisms of displayed functors | ||
|
|
||
| We define displayed versions of our functor naturality tech. | ||
|
|
||
| <!-- | ||
| ```agda | ||
| module _ | ||
| {ob ℓb oc ℓc od ℓd oe ℓe} | ||
| {B : Precategory ob ℓb} {C : Precategory oc ℓc} | ||
| {D : Displayed B od ℓd} {E : Displayed C oe ℓe} | ||
| where | ||
| private | ||
| module B = Precategory B | ||
| module C = Precategory C | ||
| module DE where | ||
| open DR Disp[ D , E ] public | ||
| open DM Disp[ D , E ] public | ||
| module D = DR D public | ||
| module E = DR E public | ||
|
|
||
| open Functor | ||
| open _=>_ | ||
| open Displayed-functor | ||
| open _=[_]=>_ | ||
| ``` | ||
| --> | ||
| ```agda | ||
|
|
||
| _≅[_]ⁿ_ : {F G : Functor B C} → Displayed-functor F D E → F ≅ⁿ G → Displayed-functor G D E → Type _ | ||
| F ≅[ i ]ⁿ G = F DE.≅[ i ] G | ||
|
|
||
|
|
||
| is-natural-transformation' | ||
| : {F G : Functor B C} (F' : Displayed-functor F D E) (G' : Displayed-functor G D E) | ||
| → (α : F => G) | ||
| → (η' : ∀ {x} (x' : D.Ob[ x ]) → E.Hom[ α .η x ] (F' .F₀' x') (G' .F₀' x')) | ||
| → Type _ | ||
| is-natural-transformation' F' G' α η' = | ||
| ∀ {x y f} (x' : D.Ob[ x ]) (y' : D.Ob[ y ]) (f' : D.Hom[ f ] x' y') | ||
| → η' y' E.∘' F' .F₁' f' E.≡[ α .is-natural x y f ] G' .F₁' f' E.∘' η' x' | ||
|
|
||
| inverse-is-natural' | ||
| : ∀ {F G : Functor B C} (iso : F ≅ⁿ G) {F' : Displayed-functor F D E} {G' : Displayed-functor G D E} | ||
| → (α' : F' =[ iso .to ]=> G') | ||
| → (β' : ∀ {x} (x' : D.Ob[ x ]) → E.Hom[ iso .from .η x ] (G' .F₀' x') (F' .F₀' x')) | ||
| → (∀ {x} (x' : D.Ob[ x ]) → α' .η' x' E.∘' β' x' E.≡[ iso .invl ηₚ x ] E.id') | ||
| → (∀ {x} (x' : D.Ob[ x ]) → β' x' E.∘' α' .η' x' E.≡[ iso .invr ηₚ x ] E.id') | ||
| → is-natural-transformation' G' F' (iso .from) β' | ||
| inverse-is-natural' i {F'} {G'} α' β' invl' invr' x' y' f' = E.cast[] $ | ||
| β' y' E.∘' G' .F₁' f' E.≡[]⟨ E.refl⟩∘'⟨ E.intror[] _ (invl' x') ⟩ | ||
| β' y' E.∘' G' .F₁' f' E.∘' α' .η' x' E.∘' β' x' E.≡[]⟨ E.refl⟩∘'⟨ E.extendl[] _ (symP (α' .is-natural' _ _ _)) ⟩ | ||
| β' y' E.∘' α' .η' y' E.∘' F' .F₁' f' E.∘' β' x' E.≡[]⟨ E.cancell[] _ (invr' _) ⟩ | ||
| F' .F₁' f' E.∘' β' x' ∎ | ||
|
|
||
|
|
||
| record make-natural-iso[_] {F G : Functor B C} (iso : F ≅ⁿ G) (F' : Displayed-functor F D E) (G' : Displayed-functor G D E) : Type (ob ⊔ ℓb ⊔ od ⊔ ℓd ⊔ ℓe) where | ||
| no-eta-equality | ||
| field | ||
| eta' : ∀ {x} (x' : D.Ob[ x ]) → E.Hom[ iso .to .η x ] (F' .F₀' x') (G' .F₀' x') | ||
| inv' : ∀ {x} (x' : D.Ob[ x ]) → E.Hom[ iso .from .η x ] (G' .F₀' x') (F' .F₀' x') | ||
| eta∘inv' : ∀ {x} (x' : D.Ob[ x ]) → eta' x' E.∘' inv' x' E.≡[ (λ i → iso .invl i .η x) ] E.id' | ||
| inv∘eta' : ∀ {x} (x' : D.Ob[ x ]) → inv' x' E.∘' eta' x' E.≡[ (λ i → iso .invr i .η x) ] E.id' | ||
| natural' : ∀ {x y} x' y' {f : B.Hom x y} (f' : D.Hom[ f ] x' y') | ||
| → eta' y' E.∘' F' .F₁' f' E.≡[ (λ i → iso .to .is-natural x y f i) ] G' .F₁' f' E.∘' eta' x' | ||
|
|
||
|
|
||
| open make-natural-iso[_] | ||
|
|
||
| to-natural-iso' : {F G : Functor B C} {iso : F ≅ⁿ G} {F' : Displayed-functor F D E} {G' : Displayed-functor G D E} | ||
| → make-natural-iso[ iso ] F' G' → F' ≅[ iso ]ⁿ G' | ||
| to-natural-iso' {iso = i} mk = | ||
| let to' = record { η' = mk .eta' ; is-natural' = λ {x} {y} {f} x' y' → mk .natural' x' y' } in | ||
| record | ||
| { to' = to' | ||
| ; from' = record { η' = mk .inv' ; is-natural' = inverse-is-natural' i to' (mk .inv') (mk .eta∘inv') (mk .inv∘eta') } | ||
| ; inverses' = record { invl' = Nat'-path (mk .eta∘inv') ; invr' = Nat'-path (mk .inv∘eta') } | ||
| } | ||
| ``` | ||
| <!-- | ||
| ```agda | ||
| {-# INLINE to-natural-iso' #-} | ||
| ``` | ||
| --> | ||
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.
Uh oh!
There was an error while loading. Please reload this page.