Readd stuff about the yoneda embedding

This commit is contained in:
Frederik Hanghøj Iversen 2018-02-23 11:23:21 +01:00
parent 954a89f8d1
commit de1d19c442

View file

@ -72,33 +72,13 @@ module _ { : Level} { : Category } (unprovable : IsCategory (RawCat
[ (λ _ x [ .𝟙 x ]) identityTrans (prshf c) ]
eqTrans = funExt λ x funExt λ x .ident .proj₂
eqNat : (λ i Natural (prshf c) (prshf c) (eqTrans i))
[(λ _ funExt (λ _ .assoc)) identityNatural (prshf c)]
eqNat = λ i {A} {B} f
let
open Category 𝓢
lemm : (𝓢 [ eqTrans i B func→ (prshf c) f ])
(𝓢 [ func→ (prshf c) f eqTrans i A ])
lemm = {!!}
lem : (λ _ 𝓢 [ Functor.func* (prshf c) A , func* (prshf c) B ])
[ 𝓢 [ eqTrans i B func→ (prshf c) f ]
𝓢 [ func→ (prshf c) f eqTrans i A ] ]
lem
= arrowIsSet _ _ lemm _ i
-- (Sets [ eqTrans i B ∘ prshf c .func→ f ])
-- (Sets [ prshf c .func→ f ∘ eqTrans i A ])
-- lemm
-- _ i
in
lem
-- eqNat = λ {A} {B} i [B,A] i' [A,c] →
-- let
-- k : [ {!!} , {!!} ]
-- k = [A,c]
-- in {! [ ? ∘ ? ]!}
:ident: : (:func→: (.𝟙 {c})) (Category.𝟙 Fun {A = prshf c})
:ident: = Σ≡ eqTrans eqNat
open import Cubical.NType.Properties
open import Cat.Categories.Fun
:ident: : :func→: (.𝟙 {c}) Category.𝟙 Fun {A = prshf c}
:ident: = lemSig (naturalIsProp {F = prshf c} {prshf c}) _ _ eq
where
eq : (λ C x [ .𝟙 x ]) identityTrans (prshf c)
eq = funExt λ A funExt λ B proj₂ .ident
yoneda : Functor (Fun { = Opposite } {𝔻 = 𝓢})
yoneda = record