-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Yoneda embedding. Clean up code in BinProduct.
- Loading branch information
Showing
2 changed files
with
37 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{-# OPTIONS --safe #-} | ||
|
||
module Cubical.Categories.Functors.YonedaEmbedding where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Categories.Category | ||
open import Cubical.Categories.Functor.Base | ||
open import Cubical.Categories.Instances.Sets | ||
open import Cubical.Categories.Constructions.BinProduct | ||
open import Cubical.Categories.Presheaf | ||
open import Cubical.Categories.Functors.HomFunctor | ||
open import Cubical.Categories.Instances.Functors.Currying | ||
|
||
private | ||
variable | ||
ℓC ℓC' : Level | ||
|
||
module _ (C : Category ℓC ℓC') where | ||
|
||
YonedaEmbedding : Functor C (PresheafCategory C ℓC') | ||
YonedaEmbedding = λF (C ^op) (SET ℓC') C (funcComp (HomFunctor C) (×C-sym C (C ^op))) |