-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
117 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
{-# OPTIONS --without-K --safe #-} | ||
|
||
open import Categories.Category using (Category; module Definitions) | ||
|
||
-- Definition of the "Twisted" Functor between certain Functor Categories | ||
module Categories.Functor.Instance.Twisted {o ℓ e o′ ℓ′ e′} (C : Category o ℓ e) (D : Category o′ ℓ′ e′)where | ||
|
||
open import Level | ||
open import Data.Product using (_,_) | ||
|
||
open import Categories.Category using (Category; module Definitions) | ||
|
||
open import Categories.Category.Construction.TwistedArrow | ||
open import Categories.Category.Product renaming (Product to _×ᶜ_) | ||
open import Categories.Category.Construction.Functors | ||
open import Categories.Functor | ||
open import Categories.Functor.Bifunctor | ||
open import Categories.Category.Construction.Functors using (Functors; product) | ||
open import Categories.Category.Construction.TwistedArrow using (TwistedArrow; Morphism; Morphism⇒; Codomain) | ||
open import Categories.Category.Product using () renaming (Product to _×ᶜ_) | ||
open import Categories.Functor using (Functor; _∘F_) | ||
open import Categories.Functor.Bifunctor using (appʳ) | ||
open import Categories.Functor.Limits using (Continuous) | ||
open import Categories.NaturalTransformation using (NaturalTransformation; ntHelper) | ||
open import Categories.NaturalTransformation.NaturalIsomorphism using (_≃_; _ⓘʳ_) | ||
open import Categories.Functor.Limits using (Continuous) | ||
|
||
|
||
-- Definition of the "Twisted" Functor between certain Functor Categories | ||
module Categories.Functor.Instance.Twisted {o ℓ e o′ ℓ′ e′} (C : Category o ℓ e) (D : Category o′ ℓ′ e′)where | ||
|
||
private | ||
module C = Category C | ||
module D = Category D | ||
|
||
open Morphism | ||
open Morphism⇒ | ||
|
||
-- precomposition with the forgetful functor | ||
Twist : Functor (C.op ×ᶜ C) D → Functor (TwistedArrow C) D | ||
Twist F = F ∘F Forget C | ||
Twist F = F ∘F Codomain C | ||
|
||
Twist′ : Functor (C.op ×ᶜ C) D → Functor (Category.op (TwistedArrow C.op)) D | ||
Twist′ F = F ∘F (Functor.op (Forget C.op)) | ||
Twist′ F = F ∘F (Functor.op (Codomain C.op)) | ||
|
||
-- precomposition is functorial | ||
Twisted : Functor (Functors (C.op ×ᶜ C) D) (Functors (TwistedArrow C) D) | ||
Twisted = appʳ product (Forget C) | ||
Twisted = appʳ product (Codomain C) | ||
|
||
Twistⁿⁱ : ∀ {F G : Functor (C.op ×ᶜ C) D } → (F ≃ G) → Twist F ≃ Twist G | ||
Twistⁿⁱ α = α ⓘʳ Forget C | ||
Twistⁿⁱ α = α ⓘʳ Codomain C |
Oops, something went wrong.