The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.CategoryTheory.Elements

160 declarations and 28 deprecated aliases. Mathlib docs · Source

The category of elements

This file defines the category of elements, also known as (a special case of) the Grothendieck construction.

Given a functor F : C ⥤ Type*, an object of F.Elements is a pair (X : C, x : F.obj X). A morphism (X, x) ⟶ (Y, y) is a morphism f : X ⟶ Y in C such that F.map f takes x to y.

Implementation notes

This construction is equivalent to a special case of a comma construction, so this is mostly just a more convenient API. We prove the equivalence in CategoryTheory.Functor.Elements.structuredArrowEquivalence.

References

Tags

category of elements, Grothendieck construction, comma category

theorem CategoryTheory.Functor.Elements.mk.inj E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {F : CategoryTheory.Functor C (Type w)} {obj : C}
  {val : F.obj obj} {obj_1 : C} {val_1 : F.obj obj_1},
  { obj := obj, val := val } = { obj := obj_1, val := val_1 } → obj = obj_1 ∧ val ≍ val_1

def CategoryTheory.Functor.Elements.ctorIdx E1 #

{C : Type u} → {inst : CategoryTheory.Category.{v, u} C} → {F : CategoryTheory.Functor C (Type w)} → F.Elements → ℕ

theorem CategoryTheory.NatTrans.congrMapElements.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} {φ φ' : F ⟶ G}
  (h : φ = φ'), CategoryTheory.NatTrans.congrMapElements h = CategoryTheory.NatTrans.congrMapElements h

theorem CategoryTheory.Functor.Elements.Hom.mk.injEq E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  (hom : x.obj ⟶ y.obj)
  (map_val :
    autoParam ((CategoryTheory.ConcreteCategory.hom (F.map hom)) x.val = y.val)
      CategoryTheory.Functor.Elements.Hom.map_val._autoParam)
  (hom_1 : x.obj ⟶ y.obj)
  (map_val_1 :
    autoParam ((CategoryTheory.ConcreteCategory.hom (F.map hom_1)) x.val = y.val)
      CategoryTheory.Functor.Elements.Hom.map_val._autoParam),
  ({ hom := hom, map_val := map_val } = { hom := hom_1, map_val := map_val_1 }) = (hom = hom_1)

theorem CategoryTheory.Functor.Elements.homMk.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  (f f_1 : x.obj ⟶ y.obj) (e_f : f = f_1) (hf : (CategoryTheory.ConcreteCategory.hom (F.map f)) x.val = y.val),
  CategoryTheory.Functor.Elements.homMk f hf = CategoryTheory.Functor.Elements.homMk f_1 ⋯

def CategoryTheory.Functor.Elements.Hom.ctorIdx E1 #

{C : Type u} →
  {inst : CategoryTheory.Category.{v, u} C} → {F : CategoryTheory.Functor C (Type w)} → {x y : F.Elements} → x.Hom y → ℕ

theorem CategoryTheory.Functor.Elements.Hom.mk.inj E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  {hom : x.obj ⟶ y.obj}
  {map_val :
    autoParam ((CategoryTheory.ConcreteCategory.hom (F.map hom)) x.val = y.val)
      CategoryTheory.Functor.Elements.Hom.map_val._autoParam}
  {hom_1 : x.obj ⟶ y.obj}
  {map_val_1 :
    autoParam ((CategoryTheory.ConcreteCategory.hom (F.map hom_1)) x.val = y.val)
      CategoryTheory.Functor.Elements.Hom.map_val._autoParam},
  { hom := hom, map_val := map_val } = { hom := hom_1, map_val := map_val_1 } → hom = hom_1

theorem CategoryTheory.Functor.Elements.Hom.mk.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  (hom hom_1 : x.obj ⟶ y.obj) (e_hom : hom = hom_1)
  (map_val : (CategoryTheory.ConcreteCategory.hom (F.map hom)) x.val = y.val),
  { hom := hom, map_val := map_val } = { hom := hom_1, map_val := ⋯ }

theorem CategoryTheory.Functor.Elements.isoMk.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  (e e_1 : x.obj ≅ y.obj) (e_e : e = e_1) (he : (CategoryTheory.ConcreteCategory.hom (F.map e.hom)) x.val = y.val),
  CategoryTheory.Functor.Elements.isoMk e he = CategoryTheory.Functor.Elements.isoMk e_1 ⋯

theorem CategoryTheory.Functor.Elements.mk.injEq E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {obj : C}
  (val : F.obj obj) (obj_1 : C) (val_1 : F.obj obj_1),
  ({ obj := obj, val := val } = { obj := obj_1, val := val_1 }) = (obj = obj_1 ∧ val ≍ val_1)

structure CategoryTheory.Functor.Elements E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor C (Type w) → Type (max u w)

The type of objects for the category of elements of a functor F : C ⥤ Type is a pair (X : C, x : F.obj X).

ctor CategoryTheory.Functor.Elements.mk E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type w)} → {obj : C} → F.obj obj → F.Elements

abbrev CategoryTheory.Functor.Elements.obj E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → {F : CategoryTheory.Functor C (Type w)} → F.Elements → C

the underlying object of an element of a functor to types

abbrev CategoryTheory.Functor.Elements.val E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type w)} → (self : F.Elements) → F.obj self.obj

the value of the element

abbrev CategoryTheory.Functor.elementsMk E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → (F : CategoryTheory.Functor C (Type w)) → (X : C) → F.obj X → F.Elements

Constructor for the type F.Elements when F is a functor to types.

theorem CategoryTheory.Functor.Elements.ext E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} (x y : F.Elements)
  (h₁ : x.obj = y.obj), (CategoryTheory.ConcreteCategory.hom (F.map (CategoryTheory.eqToHom h₁))) x.val = y.val → x = y

structure CategoryTheory.Functor.Elements.Hom E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → {F : CategoryTheory.Functor C (Type w)} → F.Elements → F.Elements → Type v

A morphism x ⟶ y in the category F.Elements of elements of a functor F : C ⥤ Type w consists of a morphism hom : x.obj ⟶ y.obj such that F.map hom sends x.val to y.val.

theorem CategoryTheory.Functor.Elements.Hom.ext E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  {x_1 y_1 : x.Hom y}, x_1.hom = y_1.hom → x_1 = y_1

theorem CategoryTheory.Functor.Elements.Hom.ext_iff E0 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  {x_1 y_1 : x.Hom y}, x_1 = y_1 ↔ x_1.hom = y_1.hom

ctor CategoryTheory.Functor.Elements.Hom.mk E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type w)} →
      {x y : F.Elements} →
        (hom : x.obj ⟶ y.obj) →
          autoParam ((CategoryTheory.ConcreteCategory.hom (F.map hom)) x.val = y.val)
              CategoryTheory.Functor.Elements.Hom.map_val._autoParam →
            x.Hom y

abbrev CategoryTheory.Functor.Elements.Hom.hom E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type w)} → {x y : F.Elements} → x.Hom y → (x.obj ⟶ y.obj)

the underlying morphism of objects

theorem CategoryTheory.Functor.Elements.Hom.map_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  (self : x.Hom y), (CategoryTheory.ConcreteCategory.hom (F.map self.hom)) x.val = y.val

instance CategoryTheory.Functor.Elements.instCategory E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type w)} → CategoryTheory.Category.{v, max u w} F.Elements

The category structure on F.Elements, for F : C ⥤ Type. A morphism (X, x) ⟶ (Y, y) is a morphism f : X ⟶ Y in C, so F.map f takes x to y.

theorem CategoryTheory.Functor.Elements.comp_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {X Y Z : F.Elements}
  (f : X.Hom Y) (g : Y.Hom Z),
  (CategoryTheory.CategoryStruct.comp f g).hom = CategoryTheory.CategoryStruct.comp f.hom g.hom

theorem CategoryTheory.Functor.Elements.id_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} (x : F.Elements),
  (CategoryTheory.CategoryStruct.id x).hom = CategoryTheory.CategoryStruct.id x.obj

def CategoryTheory.Functor.Elements.π E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor C (Type w)) → CategoryTheory.Functor F.Elements C

The functor out of the category of elements which forgets the element.

theorem CategoryTheory.Functor.Elements.π_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)) {X Y : F.Elements}
  (f : X ⟶ Y), (CategoryTheory.Functor.Elements.π F).map f = f.hom

theorem CategoryTheory.Functor.Elements.π_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)) (X : F.Elements),
  (CategoryTheory.Functor.Elements.π F).obj X = X.obj

theorem CategoryTheory.Functor.Elements.eqToHom_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  (h : x = y), (CategoryTheory.eqToHom h).hom = CategoryTheory.eqToHom ⋯

def CategoryTheory.NatTrans.mapElements E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F G : CategoryTheory.Functor C (Type w)} → (F ⟶ G) → CategoryTheory.Functor F.Elements G.Elements

Natural transformations are mapped to functors between categories of elements.

theorem CategoryTheory.NatTrans.mapElements_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (φ : F ⟶ G)
  {e₁ e₂ : F.Elements} (f : e₁ ⟶ e₂), ((CategoryTheory.NatTrans.mapElements φ).map f).hom = f.hom

theorem CategoryTheory.NatTrans.mapElements_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (φ : F ⟶ G)
  (e : F.Elements), ((CategoryTheory.NatTrans.mapElements φ).obj e).obj = e.obj

theorem CategoryTheory.NatTrans.mapElements_obj_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (φ : F ⟶ G)
  (e : F.Elements),
  ((CategoryTheory.NatTrans.mapElements φ).obj e).val = (CategoryTheory.ConcreteCategory.hom (φ.app e.obj)) e.val

theorem CategoryTheory.NatTrans.injective_mapElements_obj E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)},
  Function.Injective fun φ ↦ (CategoryTheory.NatTrans.mapElements φ).obj

def CategoryTheory.NatTrans.mapElementsCompπIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F G : CategoryTheory.Functor C (Type w)} →
      (φ : F ⟶ G) →
        (CategoryTheory.NatTrans.mapElements φ).comp (CategoryTheory.Functor.Elements.π G) ≅
          CategoryTheory.Functor.Elements.π F

If φ : F ⟶ G is a natural transformation between functors to types, this is the canonical isomorphism φ.mapElements ⋙ Functor.Elements.π G ≅ Functor.Elements.π F.

theorem CategoryTheory.NatTrans.mapElementsCompπIso_hom_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (φ : F ⟶ G)
  (X : F.Elements), (CategoryTheory.NatTrans.mapElementsCompπIso φ).hom.app X = CategoryTheory.CategoryStruct.id X.obj

theorem CategoryTheory.NatTrans.mapElementsCompπIso_inv_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (φ : F ⟶ G)
  (X : F.Elements), (CategoryTheory.NatTrans.mapElementsCompπIso φ).inv.app X = CategoryTheory.CategoryStruct.id X.obj

theorem CategoryTheory.NatTrans.mapElements_comp_π E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (φ : F ⟶ G),
  (CategoryTheory.NatTrans.mapElements φ).comp (CategoryTheory.Functor.Elements.π G) =
    CategoryTheory.Functor.Elements.π F

theorem CategoryTheory.NatTrans.mapElements_comp_obj E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G H : CategoryTheory.Functor C (Type w)} (φ : F ⟶ G)
  (ψ : G ⟶ H) (e : F.Elements),
  (CategoryTheory.NatTrans.mapElements (CategoryTheory.CategoryStruct.comp φ ψ)).obj e =
    (CategoryTheory.NatTrans.mapElements ψ).obj ((CategoryTheory.NatTrans.mapElements φ).obj e)

def CategoryTheory.Functor.elementsFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.Functor (CategoryTheory.Functor C (Type w)) CategoryTheory.Cat

The functor mapping functors C ⥤ Type w to their category of elements

theorem CategoryTheory.Functor.elementsFunctor_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Functor C (Type w)} (n : X ⟶ Y),
  CategoryTheory.Functor.elementsFunctor.map n = (CategoryTheory.NatTrans.mapElements n).toCatHom

theorem CategoryTheory.Functor.elementsFunctor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)),
  CategoryTheory.Functor.elementsFunctor.obj F = ↧F.Elements

abbrev CategoryTheory.Functor.Elements.homMk E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type w)} →
      {x y : F.Elements} →
        (f : x.obj ⟶ y.obj) →
          autoParam ((CategoryTheory.ConcreteCategory.hom (F.map f)) x.val = y.val)
              CategoryTheory.Functor.Elements.homMk._auto_1 →
            (x ⟶ y)

Constructor for morphisms in the category of elements of a functor to types.

theorem CategoryTheory.Functor.Elements.hom_ext_iff E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  {f g : x ⟶ y}, f = g ↔ f.hom = g.hom

theorem CategoryTheory.Functor.Elements.hom_ext E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  {f g : x ⟶ y}, f.hom = g.hom → f = g

def CategoryTheory.Functor.Elements.isoMk E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type w)} →
      {x y : F.Elements} →
        (e : x.obj ≅ y.obj) →
          autoParam ((CategoryTheory.ConcreteCategory.hom (F.map e.hom)) x.val = y.val)
              CategoryTheory.Functor.Elements.isoMk._auto_1 →
            (x ≅ y)

Constructor for isomorphisms in the category of elements of a functor to types.

theorem CategoryTheory.Functor.Elements.isoMk_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  (e : x.obj ≅ y.obj)
  (he :
    autoParam ((CategoryTheory.ConcreteCategory.hom (F.map e.hom)) x.val = y.val)
      CategoryTheory.Functor.Elements.isoMk._auto_1),
  (CategoryTheory.Functor.Elements.isoMk e he).hom = CategoryTheory.Functor.Elements.homMk e.hom he

theorem CategoryTheory.Functor.Elements.isoMk_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)} {x y : F.Elements}
  (e : x.obj ≅ y.obj)
  (he :
    autoParam ((CategoryTheory.ConcreteCategory.hom (F.map e.hom)) x.val = y.val)
      CategoryTheory.Functor.Elements.isoMk._auto_1),
  (CategoryTheory.Functor.Elements.isoMk e he).inv = CategoryTheory.Functor.Elements.homMk e.inv ⋯

instance CategoryTheory.Functor.Elements.instLocallySmall E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)}
  [CategoryTheory.LocallySmall.{w, v, u} C], CategoryTheory.LocallySmall.{w, v, max u w} F.Elements

instance CategoryTheory.Functor.Elements.groupoid E0 #

{G : Type u} →
  [inst : CategoryTheory.Groupoid G] → (F : CategoryTheory.Functor G (Type w)) → CategoryTheory.Groupoid F.Elements

instance CategoryTheory.Functor.Elements.instFaithfulπ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)},
  (CategoryTheory.Functor.Elements.π F).Faithful

instance CategoryTheory.Functor.Elements.instReflectsIsomorphismsπ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F : CategoryTheory.Functor C (Type w)},
  (CategoryTheory.Functor.Elements.π F).ReflectsIsomorphisms

def CategoryTheory.Functor.Elements.toStructuredArrow E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor C (Type w)) →
      CategoryTheory.Functor F.Elements (CategoryTheory.StructuredArrow PUnit.{w + 1} F)

The forward direction of the equivalence F.Elements ≅ (*, F).

theorem CategoryTheory.Functor.Elements.toStructuredArrow_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)) (e : F.Elements),
  (CategoryTheory.Functor.Elements.toStructuredArrow F).obj e =
    CategoryTheory.StructuredArrow.mk (TypeCat.ofHom fun x ↦ e.val)

theorem CategoryTheory.Functor.Elements.toStructuredArrow_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)) {X Y : F.Elements}
  (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.toStructuredArrow F).map f = CategoryTheory.StructuredArrow.homMk f.hom ⋯

def CategoryTheory.Functor.Elements.fromStructuredArrow E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor C (Type w)) →
      CategoryTheory.Functor (CategoryTheory.StructuredArrow PUnit.{w + 1} F) F.Elements

The reverse direction of the equivalence F.Elements ≅ (*, F).

theorem CategoryTheory.Functor.Elements.fromStructuredArrow_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w))
  {X Y : CategoryTheory.StructuredArrow PUnit.{w + 1} F} (f : X ⟶ Y),
  ((CategoryTheory.Functor.Elements.fromStructuredArrow F).map f).hom = CategoryTheory.StructuredArrow.Hom.right f

theorem CategoryTheory.Functor.Elements.fromStructuredArrow_map E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w))
  {X Y : CategoryTheory.StructuredArrow PUnit.{w + 1} F} (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.fromStructuredArrow F).map f =
    { hom := CategoryTheory.StructuredArrow.Hom.right f, map_val := ⋯ }

theorem CategoryTheory.Functor.Elements.fromStructuredArrow_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w))
  (X : CategoryTheory.StructuredArrow PUnit.{w + 1} F),
  (CategoryTheory.Functor.Elements.fromStructuredArrow F).obj X =
    F.elementsMk X.right ((CategoryTheory.ConcreteCategory.hom X.hom) PUnit.unit)

def CategoryTheory.Functor.Elements.structuredArrowEquivalence E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor C (Type w)) → F.Elements ≌ CategoryTheory.StructuredArrow PUnit.{w + 1} F

The equivalence between the category of elements F.Elements and the comma category (*, F).

theorem CategoryTheory.Functor.Elements.structuredArrowEquivalence_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)),
  (CategoryTheory.Functor.Elements.structuredArrowEquivalence F).unitIso =
    CategoryTheory.Iso.refl (CategoryTheory.Functor.id F.Elements)

theorem CategoryTheory.Functor.Elements.structuredArrowEquivalence_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)),
  (CategoryTheory.Functor.Elements.structuredArrowEquivalence F).counitIso =
    CategoryTheory.Iso.refl
      ((CategoryTheory.Functor.Elements.fromStructuredArrow F).comp
        (CategoryTheory.Functor.Elements.toStructuredArrow F))

theorem CategoryTheory.Functor.Elements.structuredArrowEquivalence_functor E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)),
  (CategoryTheory.Functor.Elements.structuredArrowEquivalence F).functor =
    CategoryTheory.Functor.Elements.toStructuredArrow F

theorem CategoryTheory.Functor.Elements.structuredArrowEquivalence_inverse E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)),
  (CategoryTheory.Functor.Elements.structuredArrowEquivalence F).inverse =
    CategoryTheory.Functor.Elements.fromStructuredArrow F

def CategoryTheory.Functor.Elements.toCostructuredArrow E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor Cᵒᵖ (Type v)) →
      CategoryTheory.Functor F.Elementsᵒᵖ (CategoryTheory.CostructuredArrow CategoryTheory.yoneda F)

The forward direction of the equivalence F.Elementsᵒᵖ ≅ (yoneda, F), given by CategoryTheory.yonedaEquiv.

theorem CategoryTheory.Functor.Elements.toCostructuredArrow_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)) {X Y : F.Elementsᵒᵖ}
  (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.toCostructuredArrow F).map f =
    CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯

theorem CategoryTheory.Functor.Elements.toCostructuredArrow_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)) (X : F.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.toCostructuredArrow F).obj X =
    CategoryTheory.CostructuredArrow.mk (CategoryTheory.yonedaEquiv.symm (Opposite.unop X).val)

def CategoryTheory.Functor.Elements.fromCostructuredArrow E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor Cᵒᵖ (Type v)) →
      CategoryTheory.Functor (CategoryTheory.CostructuredArrow CategoryTheory.yoneda F)ᵒᵖ F.Elements

The reverse direction of the equivalence F.Elementsᵒᵖ ≅ (yoneda, F), given by CategoryTheory.yonedaEquiv.

theorem CategoryTheory.Functor.Elements.fromCostructuredArrow_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v))
  {X Y : (CategoryTheory.CostructuredArrow CategoryTheory.yoneda F)ᵒᵖ} (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.fromCostructuredArrow F).map f =
    CategoryTheory.Functor.Elements.homMk (CategoryTheory.CostructuredArrow.Hom.left f.unop).op ⋯

theorem CategoryTheory.Functor.Elements.fromCostructuredArrow_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v))
  (X : (CategoryTheory.CostructuredArrow CategoryTheory.yoneda F)ᵒᵖ),
  (CategoryTheory.Functor.Elements.fromCostructuredArrow F).obj X =
    F.elementsMk (Opposite.op (Opposite.unop X).left) (CategoryTheory.yonedaEquiv (Opposite.unop X).hom)

theorem CategoryTheory.Functor.Elements.fromCostructuredArrow_obj_mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)) {X : C}
  (f : CategoryTheory.yoneda.obj X ⟶ F),
  (CategoryTheory.Functor.Elements.fromCostructuredArrow F).obj (Opposite.op (CategoryTheory.CostructuredArrow.mk f)) =
    F.elementsMk (Opposite.op X) (CategoryTheory.yonedaEquiv f)

def CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor Cᵒᵖ (Type v)) → F.Elementsᵒᵖ ≌ CategoryTheory.CostructuredArrow CategoryTheory.yoneda F

The equivalence F.Elementsᵒᵖ ≅ (yoneda, F) given by Yoneda's lemma.

theorem CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)),
  (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence F).unitIso =
    CategoryTheory.NatIso.ofComponents
      (fun e ↦
        (CategoryTheory.Functor.Elements.isoMk
            (CategoryTheory.Iso.refl
              ((CategoryTheory.Functor.Elements.fromCostructuredArrow F).obj
                  (Opposite.op ((CategoryTheory.Functor.Elements.toCostructuredArrow F).obj e))).obj)
            ⋯).op)
      ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)),
  (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence F).counitIso =
    CategoryTheory.NatIso.ofComponents
      (fun f ↦
        CategoryTheory.CostructuredArrow.isoMk
          (CategoryTheory.Iso.refl
            (((CategoryTheory.Functor.Elements.fromCostructuredArrow F).rightOp.comp
                    (CategoryTheory.Functor.Elements.toCostructuredArrow F)).obj
                f).left)
          ⋯)
      ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence_inverse E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)),
  (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence F).inverse =
    (CategoryTheory.Functor.Elements.fromCostructuredArrow F).rightOp

theorem CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence_functor E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)),
  (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence F).functor =
    CategoryTheory.Functor.Elements.toCostructuredArrow F

def CategoryTheory.Functor.Elements.mapElementsOpCompToCostructuredArrow E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F₁ F₂ : CategoryTheory.Functor Cᵒᵖ (Type v)} →
      (α : F₁ ⟶ F₂) →
        (CategoryTheory.NatTrans.mapElements α).op.comp (CategoryTheory.Functor.Elements.toCostructuredArrow F₂) ≅
          (CategoryTheory.Functor.Elements.toCostructuredArrow F₁).comp (CategoryTheory.CostructuredArrow.map α)

The functor toCostructuredArrow F : F.Elementsᵒᵖ ⥤ CostructuredArrow yoneda F for F : Cᵒᵖ ⥤ Type v is "natural" in F.

theorem CategoryTheory.Functor.Elements.costructuredArrow_yoneda_equivalence_naturality E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F₁ F₂ : CategoryTheory.Functor Cᵒᵖ (Type v)} (α : F₁ ⟶ F₂),
  (CategoryTheory.NatTrans.mapElements α).op.comp (CategoryTheory.Functor.Elements.toCostructuredArrow F₂) =
    (CategoryTheory.Functor.Elements.toCostructuredArrow F₁).comp (CategoryTheory.CostructuredArrow.map α)

The equivalence (-.Elements)ᵒᵖ ≅ (yoneda, -) is actually a natural isomorphism of functors.

def CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceFunctorProj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor Cᵒᵖ (Type v)) →
      (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence F).functor.comp
          (CategoryTheory.CostructuredArrow.proj CategoryTheory.yoneda F) ≅
        (CategoryTheory.Functor.Elements.π F).leftOp

The equivalence F.elementsᵒᵖ ≌ (yoneda, F) is compatible with the forgetful functors.

theorem CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceFunctorProj_inv_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)) (X : F.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceFunctorProj F).inv.app X =
    CategoryTheory.CategoryStruct.id (Opposite.unop (Opposite.unop X).1)

theorem CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceFunctorProj_hom_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v)) (X : F.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceFunctorProj F).hom.app X =
    CategoryTheory.CategoryStruct.id (Opposite.unop (Opposite.unop X).1)

def CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceInverseπ E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor Cᵒᵖ (Type v)) →
      (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence F).inverse.comp
          (CategoryTheory.Functor.Elements.π F).leftOp ≅
        CategoryTheory.CostructuredArrow.proj CategoryTheory.yoneda F

The equivalence F.elementsᵒᵖ ≌ (yoneda, F) is compatible with the forgetful functors.

theorem CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceInverseπ_hom_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v))
  (X : CategoryTheory.CostructuredArrow CategoryTheory.yoneda F),
  (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceInverseπ F).hom.app X =
    CategoryTheory.CategoryStruct.id X.left

theorem CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceInverseπ_inv_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type v))
  (X : CategoryTheory.CostructuredArrow CategoryTheory.yoneda F),
  (CategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceInverseπ F).inv.app X =
    CategoryTheory.CategoryStruct.id X.left

def CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v))) →
      F.Elementsᵒᵖ ≌ CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{w, v, u} F

The opposite of the category of elements of a presheaf of types is equivalent to a category of costructured arrows for the Yoneda embedding functor.

theorem CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence_functor_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v)))
  {X Y : F.Elementsᵒᵖ} (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence F).functor.map f =
    CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v))),
  (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence F).unitIso =
    CategoryTheory.NatIso.ofComponents
      (fun x ↦
        (CategoryTheory.Functor.Elements.isoMk
            (CategoryTheory.Iso.refl
              (F.elementsMk
                  (Opposite.op
                    ({
                            obj := fun x ↦
                              CategoryTheory.CostructuredArrow.mk
                                (CategoryTheory.uliftYonedaEquiv.symm (Opposite.unop x).val),
                            map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯, map_id := ⋯,
                            map_comp := ⋯ }.obj
                        x).left)
                  (CategoryTheory.uliftYonedaEquiv
                    ({
                            obj := fun x ↦
                              CategoryTheory.CostructuredArrow.mk
                                (CategoryTheory.uliftYonedaEquiv.symm (Opposite.unop x).val),
                            map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯, map_id := ⋯,
                            map_comp := ⋯ }.obj
                        x).hom)).obj)
            ⋯).op)
      ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence_inverse_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v)))
  {X Y : CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{w, v, u} F} (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence F).inverse.map f =
    (CategoryTheory.Functor.Elements.homMk (CategoryTheory.CostructuredArrow.Hom.left f).op ⋯).op

theorem CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v))),
  (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence F).counitIso =
    CategoryTheory.NatIso.ofComponents
      (fun x ↦
        CategoryTheory.CostructuredArrow.isoMk
          (CategoryTheory.Iso.refl
            (({ obj := fun x ↦ Opposite.op (F.elementsMk (Opposite.op x.left) (CategoryTheory.uliftYonedaEquiv x.hom)),
                        map := fun {X Y} f ↦
                          (CategoryTheory.Functor.Elements.homMk (CategoryTheory.CostructuredArrow.Hom.left f).op ⋯).op,
                        map_id := ⋯, map_comp := ⋯ }.comp
                    {
                      obj := fun x ↦
                        CategoryTheory.CostructuredArrow.mk
                          (CategoryTheory.uliftYonedaEquiv.symm (Opposite.unop x).val),
                      map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯, map_id := ⋯,
                      map_comp := ⋯ }).obj
                x).left)
          ⋯)
      ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence_functor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v)))
  (x : F.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence F).functor.obj x =
    CategoryTheory.CostructuredArrow.mk (CategoryTheory.uliftYonedaEquiv.symm (Opposite.unop x).val)

theorem CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence_inverse_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v)))
  (x : CategoryTheory.CostructuredArrow CategoryTheory.uliftYoneda.{w, v, u} F),
  (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence F).inverse.obj x =
    Opposite.op (F.elementsMk (Opposite.op x.left) (CategoryTheory.uliftYonedaEquiv x.hom))

def CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalenceFunctorCompProjIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v))) →
      (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence F).functor.comp
          (CategoryTheory.CostructuredArrow.proj CategoryTheory.uliftYoneda.{w, v, u} F) ≅
        (CategoryTheory.Functor.Elements.π F).leftOp

The functor of the equivalence costructuredArrowULiftYonedaEquivalence F followed by the projection CostructuredArrow uliftYoneda.{w} F ⥤ C identifies to (π F).leftOp.

theorem CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalenceFunctorCompProjIso_inv_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v)))
  (X : F.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalenceFunctorCompProjIso F).inv.app X =
    CategoryTheory.CategoryStruct.id (Opposite.unop (Opposite.unop X).1)

theorem CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalenceFunctorCompProjIso_hom_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor Cᵒᵖ (Type (max w v)))
  (X : F.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalenceFunctorCompProjIso F).hom.app X =
    CategoryTheory.CategoryStruct.id (Opposite.unop (Opposite.unop X).1)

def CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (F : CategoryTheory.Functor Cᵒᵖ (Type w)) →
        F.Elementsᵒᵖ ≌ CategoryTheory.CostructuredArrow CategoryTheory.shrinkYoneda.{w, v, u} F

Given F : Cᵒᵖ ⥤ Type w where C is a locally w-small category, this is the equivalence between the opposite of the category of elements of F and CostructuredArrow shrinkYoneda.{w} F.

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence_inverse_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor Cᵒᵖ (Type w))
  {X Y : CategoryTheory.CostructuredArrow CategoryTheory.shrinkYoneda.{w, v, u} F} (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence F).inverse.map f =
    (CategoryTheory.Functor.Elements.homMk (CategoryTheory.CostructuredArrow.Hom.left f).op ⋯).op

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence_functor_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor Cᵒᵖ (Type w)) {X Y : F.Elementsᵒᵖ} (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence F).functor.map f =
    CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor Cᵒᵖ (Type w)),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence F).counitIso =
    CategoryTheory.NatIso.ofComponents
      (fun x ↦
        CategoryTheory.CostructuredArrow.isoMk
          (CategoryTheory.Iso.refl
            (({ obj := fun x ↦ Opposite.op (F.elementsMk (Opposite.op x.left) (CategoryTheory.shrinkYonedaEquiv x.hom)),
                        map := fun {X Y} f ↦
                          (CategoryTheory.Functor.Elements.homMk (CategoryTheory.CostructuredArrow.Hom.left f).op ⋯).op,
                        map_id := ⋯, map_comp := ⋯ }.comp
                    {
                      obj := fun x ↦
                        CategoryTheory.CostructuredArrow.mk
                          (CategoryTheory.shrinkYonedaEquiv.symm (Opposite.unop x).val),
                      map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯, map_id := ⋯,
                      map_comp := ⋯ }).obj
                x).left)
          ⋯)
      ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence_inverse_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor Cᵒᵖ (Type w))
  (x : CategoryTheory.CostructuredArrow CategoryTheory.shrinkYoneda.{w, v, u} F),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence F).inverse.obj x =
    Opposite.op (F.elementsMk (Opposite.op x.left) (CategoryTheory.shrinkYonedaEquiv x.hom))

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor Cᵒᵖ (Type w)),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence F).unitIso =
    CategoryTheory.NatIso.ofComponents
      (fun x ↦
        (CategoryTheory.Functor.Elements.isoMk
            (CategoryTheory.Iso.refl
              (F.elementsMk
                  (Opposite.op
                    ({
                            obj := fun x ↦
                              CategoryTheory.CostructuredArrow.mk
                                (CategoryTheory.shrinkYonedaEquiv.symm (Opposite.unop x).val),
                            map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯, map_id := ⋯,
                            map_comp := ⋯ }.obj
                        x).left)
                  (CategoryTheory.shrinkYonedaEquiv
                    ({
                            obj := fun x ↦
                              CategoryTheory.CostructuredArrow.mk
                                (CategoryTheory.shrinkYonedaEquiv.symm (Opposite.unop x).val),
                            map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.unop ⋯, map_id := ⋯,
                            map_comp := ⋯ }.obj
                        x).hom)).obj)
            ⋯).op)
      ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence_functor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor Cᵒᵖ (Type w)) (x : F.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence F).functor.obj x =
    CategoryTheory.CostructuredArrow.mk (CategoryTheory.shrinkYonedaEquiv.symm (Opposite.unop x).val)

def CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalenceFunctorCompProjIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (F : CategoryTheory.Functor Cᵒᵖ (Type w)) →
        (CategoryTheory.Functor.Elements.costructuredArrowShrinkYonedaEquivalence F).functor.comp
            (CategoryTheory.CostructuredArrow.proj CategoryTheory.shrinkYoneda.{w, v, u} F) ≅
          (CategoryTheory.Functor.Elements.π F).leftOp

The functor of the equivalence costructuredArrowShrinkYonedaEquivalence F followed by the projection CostructuredArrow shrinkYoneda.{w} F ⥤ C identifies to (π F).leftOp.

def CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (F : CategoryTheory.Functor C (Type w)) →
        F.Elementsᵒᵖ ≌ CategoryTheory.CostructuredArrow CategoryTheory.shrinkCoyoneda.{w, v, u} F

Given F : C ⥤ Type w where C is a locally w-small category, this is the equivalence between the opposite of the category of elements of F and CostructuredArrow shrinkCoyoneda.{w} F.

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor C (Type w)),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence F).counitIso =
    CategoryTheory.NatIso.ofComponents
      (fun x ↦
        CategoryTheory.CostructuredArrow.isoMk
          (CategoryTheory.Iso.refl
            (({
                        obj := fun x ↦
                          Opposite.op (F.elementsMk (Opposite.unop x.left) (CategoryTheory.shrinkCoyonedaEquiv x.hom)),
                        map := fun {X Y} f ↦
                          (CategoryTheory.Functor.Elements.homMk (CategoryTheory.CostructuredArrow.Hom.left f).unop
                              ⋯).op,
                        map_id := ⋯, map_comp := ⋯ }.comp
                    {
                      obj := fun x ↦
                        CategoryTheory.CostructuredArrow.mk
                          (CategoryTheory.shrinkCoyonedaEquiv.symm (Opposite.unop x).val),
                      map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.op ⋯, map_id := ⋯,
                      map_comp := ⋯ }).obj
                x).left)
          ⋯)
      ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence_functor_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor C (Type w)) {X Y : F.Elementsᵒᵖ} (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence F).functor.map f =
    CategoryTheory.CostructuredArrow.homMk f.unop.hom.op ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence_inverse_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor C (Type w))
  {X Y : CategoryTheory.CostructuredArrow CategoryTheory.shrinkCoyoneda.{w, v, u} F} (f : X ⟶ Y),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence F).inverse.map f =
    (CategoryTheory.Functor.Elements.homMk (CategoryTheory.CostructuredArrow.Hom.left f).unop ⋯).op

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor C (Type w)),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence F).unitIso =
    CategoryTheory.NatIso.ofComponents
      (fun x ↦
        (CategoryTheory.Functor.Elements.isoMk
            (CategoryTheory.Iso.refl
              (F.elementsMk
                  (Opposite.unop
                    ({
                            obj := fun x ↦
                              CategoryTheory.CostructuredArrow.mk
                                (CategoryTheory.shrinkCoyonedaEquiv.symm (Opposite.unop x).val),
                            map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.op ⋯, map_id := ⋯,
                            map_comp := ⋯ }.obj
                        x).left)
                  (CategoryTheory.shrinkCoyonedaEquiv
                    ({
                            obj := fun x ↦
                              CategoryTheory.CostructuredArrow.mk
                                (CategoryTheory.shrinkCoyonedaEquiv.symm (Opposite.unop x).val),
                            map := fun {X Y} f ↦ CategoryTheory.CostructuredArrow.homMk f.unop.hom.op ⋯, map_id := ⋯,
                            map_comp := ⋯ }.obj
                        x).hom)).obj)
            ⋯).op)
      ⋯

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence_inverse_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor C (Type w))
  (x : CategoryTheory.CostructuredArrow CategoryTheory.shrinkCoyoneda.{w, v, u} F),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence F).inverse.obj x =
    Opposite.op (F.elementsMk (Opposite.unop x.left) (CategoryTheory.shrinkCoyonedaEquiv x.hom))

theorem CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence_functor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (F : CategoryTheory.Functor C (Type w)) (x : F.Elementsᵒᵖ),
  (CategoryTheory.Functor.Elements.costructuredArrowShrinkCoyonedaEquivalence F).functor.obj x =
    CategoryTheory.CostructuredArrow.mk (CategoryTheory.shrinkCoyonedaEquiv.symm (Opposite.unop x).val)

abbrev CategoryTheory.Functor.Elements.initialOfRepresentableBy E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor Cᵒᵖ (Type u_1)} → {X : C} → F.RepresentableBy X → F.Elements

The initial object in F.Elements if F is representable.

def CategoryTheory.Functor.Elements.isInitialOfRepresentableBy E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor Cᵒᵖ (Type u_1)} →
      {X : C} →
        (h : F.RepresentableBy X) →
          CategoryTheory.Limits.IsInitial (CategoryTheory.Functor.Elements.initialOfRepresentableBy h)

If F is represented by X, X with its universal element is the initial object of F.Elements.

abbrev CategoryTheory.Functor.Elements.initialOfCorepresentableBy E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type u_1)} → {X : C} → F.CorepresentableBy X → F.Elements

The initial object in F.Elements if F is corepresentable.

def CategoryTheory.Functor.Elements.isInitialOfCorepresentableBy E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F : CategoryTheory.Functor C (Type u_1)} →
      {X : C} →
        (h : F.CorepresentableBy X) →
          CategoryTheory.Limits.IsInitial (CategoryTheory.Functor.Elements.initialOfCorepresentableBy h)

If F is corepresented by X, X with its universal element is the initial object of F.Elements.

abbrev CategoryTheory.Functor.Elements.initialYonedaObj E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (A : C) → (CategoryTheory.yoneda.obj A).Elements

The initial object in the category of elements for a representable functor. In isInitialYonedaObj it is shown that this is initial.

def CategoryTheory.Functor.Elements.isInitialYonedaObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (A : C) → CategoryTheory.Limits.IsInitial (CategoryTheory.Functor.Elements.initialYonedaObj A)

Show that Elements.initialYonedaObj A is initial in the category of elements for the yoneda functor.

abbrev CategoryTheory.Functor.Elements.initialShrinkYonedaObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (A : C) → (CategoryTheory.shrinkYoneda.{w, v, u}.obj A).Elements

The initial object in the category of elements for a representable functor. In isInitialShrinkYonedaObj it is shown that this is initial.

def CategoryTheory.Functor.Elements.isInitialShrinkYonedaObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (A : C) → CategoryTheory.Limits.IsInitial (CategoryTheory.Functor.Elements.initialShrinkYonedaObj A)

Show that Elements.initialShrinkYonedaObj A is initial in the category of elements for the shrinkYoneda functor.

abbrev CategoryTheory.Functor.Elements.initialShrinkCoyonedaObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (A : Cᵒᵖ) → (CategoryTheory.shrinkCoyoneda.{w, v, u}.obj A).Elements

The initial object in the category of elements for a corepresentable functor. In isInitialShrinkCoyonedaObj it is shown that this is initial.

def CategoryTheory.Functor.Elements.isInitialShrinkCoyonedaObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] →
      (A : Cᵒᵖ) → CategoryTheory.Limits.IsInitial (CategoryTheory.Functor.Elements.initialShrinkCoyonedaObj A)

Show that Elements.initialShrinkCoyonedaObj A is initial in the category of elements for the shrinkCoyoneda functor.

def CategoryTheory.Functor.Elements.precomp E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u_1} →
      [inst_1 : CategoryTheory.Category.{u_2, u_1} D] →
        (F : CategoryTheory.Functor C D) →
          (G : CategoryTheory.Functor D (Type w)) → CategoryTheory.Functor (F.comp G).Elements G.Elements

The functor (F ⋙ G).Elements ⥤ G.Elements.

theorem CategoryTheory.Functor.Elements.precomp_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{u_2, u_1} D]
  (F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D (Type w)) (x : (F.comp G).Elements),
  ((CategoryTheory.Functor.Elements.precomp F G).obj x).obj = F.obj x.obj

theorem CategoryTheory.Functor.Elements.precomp_obj_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{u_2, u_1} D]
  (F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D (Type w)) (x : (F.comp G).Elements),
  ((CategoryTheory.Functor.Elements.precomp F G).obj x).val = x.val

theorem CategoryTheory.Functor.Elements.precomp_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{u_2, u_1} D]
  (F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D (Type w)) {X Y : (F.comp G).Elements} (f : X ⟶ Y),
  ((CategoryTheory.Functor.Elements.precomp F G).map f).hom = F.map f.hom

instance CategoryTheory.Functor.Elements.essentiallySmall E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w))
  [CategoryTheory.EssentiallySmall.{w, v, u} C], CategoryTheory.EssentiallySmall.{w, v, max u w} F.Elements

def CategoryTheory.NatTrans.mapElementsOpCompToCostructuredArrowIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F₁ F₂ : CategoryTheory.Functor Cᵒᵖ (Type v)} →
      (α : F₁ ⟶ F₂) →
        (CategoryTheory.NatTrans.mapElements α).op.comp (CategoryTheory.Functor.Elements.toCostructuredArrow F₂) ≅
          (CategoryTheory.Functor.Elements.toCostructuredArrow F₁).comp (CategoryTheory.CostructuredArrow.map α)

The functor Functor.Elements.toCostructuredArrow is compatible with NatTrans.mapElements.

theorem CategoryTheory.NatTrans.mapElementsOpCompToCostructuredArrowIso_hom_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F₁ F₂ : CategoryTheory.Functor Cᵒᵖ (Type v)} (α : F₁ ⟶ F₂)
  (X : F₁.Elementsᵒᵖ),
  (CategoryTheory.NatTrans.mapElementsOpCompToCostructuredArrowIso α).hom.app X =
    (CategoryTheory.CostructuredArrow.isoMk (CategoryTheory.Iso.refl (Opposite.unop (Opposite.unop X).obj)) ⋯).hom

theorem CategoryTheory.NatTrans.mapElementsOpCompToCostructuredArrowIso_inv_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F₁ F₂ : CategoryTheory.Functor Cᵒᵖ (Type v)} (α : F₁ ⟶ F₂)
  (X : F₁.Elementsᵒᵖ),
  (CategoryTheory.NatTrans.mapElementsOpCompToCostructuredArrowIso α).inv.app X =
    (CategoryTheory.CostructuredArrow.isoMk (CategoryTheory.Iso.refl (Opposite.unop (Opposite.unop X).obj)) ⋯).inv

theorem CategoryTheory.NatTrans.mapElements_op_comp_toCostructuredArrow E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F₁ F₂ : CategoryTheory.Functor Cᵒᵖ (Type v)} (α : F₁ ⟶ F₂),
  (CategoryTheory.NatTrans.mapElements α).op.comp (CategoryTheory.Functor.Elements.toCostructuredArrow F₂) =
    (CategoryTheory.Functor.Elements.toCostructuredArrow F₁).comp (CategoryTheory.CostructuredArrow.map α)

def CategoryTheory.Equivalence.congrElements E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u_1} →
      [inst_1 : CategoryTheory.Category.{v_1, u_1} D] →
        (e : C ≌ D) → (P : CategoryTheory.Functor D (Type w)) → P.Elements ≌ (e.functor.comp P).Elements

If e : C ≌ D is an equivalence of categories and P : D ⥤ Type w a functor to types, this is the equivalence between the category of elements of P and the category of elements of e.functor ⋙ P.

theorem CategoryTheory.Equivalence.congrElements_inverse_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) {X Y : (e.functor.comp P).Elements} (f : X ⟶ Y),
  ((e.congrElements P).inverse.map f).hom = e.functor.map f.hom

theorem CategoryTheory.Equivalence.congrElements_functor_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) (x : P.Elements),
  ((e.congrElements P).functor.obj x).obj = e.inverse.obj x.obj

theorem CategoryTheory.Equivalence.congrElements_counitIso_hom_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) (X : (e.functor.comp P).Elements),
  ((e.congrElements P).counitIso.hom.app X).hom = e.unitIso.inv.app X.obj

theorem CategoryTheory.Equivalence.congrElements_unitIso_inv_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) (X : P.Elements),
  ((e.congrElements P).unitIso.inv.app X).hom = e.counitIso.hom.app X.obj

theorem CategoryTheory.Equivalence.congrElements_unitIso_hom_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) (X : P.Elements),
  ((e.congrElements P).unitIso.hom.app X).hom = e.counitIso.inv.app X.obj

theorem CategoryTheory.Equivalence.congrElements_functor_obj_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) (x : P.Elements),
  ((e.congrElements P).functor.obj x).val =
    (CategoryTheory.ConcreteCategory.hom (P.map (e.counitIso.inv.app x.obj))) x.val

theorem CategoryTheory.Equivalence.congrElements_counitIso_inv_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) (X : (e.functor.comp P).Elements),
  ((e.congrElements P).counitIso.inv.app X).hom = e.unitIso.hom.app X.obj

theorem CategoryTheory.Equivalence.congrElements_inverse_obj_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) (x : (e.functor.comp P).Elements),
  ((e.congrElements P).inverse.obj x).val = x.val

theorem CategoryTheory.Equivalence.congrElements_functor_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) {X Y : P.Elements} (f : X ⟶ Y),
  ((e.congrElements P).functor.map f).hom = e.inverse.map f.hom

theorem CategoryTheory.Equivalence.congrElements_inverse_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (e : C ≌ D) (P : CategoryTheory.Functor D (Type w)) (x : (e.functor.comp P).Elements),
  ((e.congrElements P).inverse.obj x).obj = e.functor.obj x.obj

def CategoryTheory.NatTrans.congrMapElements E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F G : CategoryTheory.Functor C (Type w)} →
      {φ φ' : F ⟶ G} → φ = φ' → (CategoryTheory.NatTrans.mapElements φ ≅ CategoryTheory.NatTrans.mapElements φ')

Two equal natural transformations induce isomorphic functors on categories of elements.

theorem CategoryTheory.NatTrans.congrMapElements_inv_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} {φ φ' : F ⟶ G}
  (h : φ = φ') (X : F.Elements),
  ((CategoryTheory.NatTrans.congrMapElements h).inv.app X).hom = CategoryTheory.CategoryStruct.id X.obj

theorem CategoryTheory.NatTrans.congrMapElements_hom_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} {φ φ' : F ⟶ G}
  (h : φ = φ') (X : F.Elements),
  ((CategoryTheory.NatTrans.congrMapElements h).hom.app X).hom = CategoryTheory.CategoryStruct.id X.obj

def CategoryTheory.Functor.Elements.equivalenceOfIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F G : CategoryTheory.Functor C (Type w)} → (F ≅ G) → (F.Elements ≌ G.Elements)

Isomorphic functors have equivalent categories of elements.

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_functor_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  {e₁ e₂ : F.Elements} (f : e₁ ⟶ e₂), ((CategoryTheory.Functor.Elements.equivalenceOfIso e).functor.map f).hom = f.hom

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_inverse_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (e_1 : G.Elements), ((CategoryTheory.Functor.Elements.equivalenceOfIso e).inverse.obj e_1).obj = e_1.obj

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_unitIso_inv_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (X : F.Elements),
  ((CategoryTheory.Functor.Elements.equivalenceOfIso e).unitIso.inv.app X).hom = CategoryTheory.CategoryStruct.id X.obj

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_functor_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (e_1 : F.Elements), ((CategoryTheory.Functor.Elements.equivalenceOfIso e).functor.obj e_1).obj = e_1.obj

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_counitIso_inv_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (X : G.Elements),
  ((CategoryTheory.Functor.Elements.equivalenceOfIso e).counitIso.inv.app X).hom =
    CategoryTheory.CategoryStruct.id X.obj

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_unitIso_hom_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (X : F.Elements),
  ((CategoryTheory.Functor.Elements.equivalenceOfIso e).unitIso.hom.app X).hom = CategoryTheory.CategoryStruct.id X.obj

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_counitIso_hom_app_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (X : G.Elements),
  ((CategoryTheory.Functor.Elements.equivalenceOfIso e).counitIso.hom.app X).hom =
    CategoryTheory.CategoryStruct.id X.obj

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_functor_obj_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (e_1 : F.Elements),
  ((CategoryTheory.Functor.Elements.equivalenceOfIso e).functor.obj e_1).val =
    (CategoryTheory.ConcreteCategory.hom (e.hom.app e_1.obj)) e_1.val

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_inverse_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  {e₁ e₂ : G.Elements} (f : e₁ ⟶ e₂), ((CategoryTheory.Functor.Elements.equivalenceOfIso e).inverse.map f).hom = f.hom

theorem CategoryTheory.Functor.Elements.equivalenceOfIso_inverse_obj_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (e_1 : G.Elements),
  ((CategoryTheory.Functor.Elements.equivalenceOfIso e).inverse.obj e_1).val =
    (CategoryTheory.ConcreteCategory.hom (e.inv.app e_1.obj)) e_1.val

def CategoryTheory.Functor.Elements.isoCatOfIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {F G : CategoryTheory.Functor C (Type w)} → (F ≅ G) → CategoryTheory.IsoCat F.Elements G.Elements

Isomorphic functors have isomorphic categories of elements.

theorem CategoryTheory.Functor.Elements.isoCatOfIso_inverse_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (e_1 : G.Elements), ((CategoryTheory.Functor.Elements.isoCatOfIso e).inverse.obj e_1).obj = e_1.obj

theorem CategoryTheory.Functor.Elements.isoCatOfIso_functor_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  {e₁ e₂ : F.Elements} (f : e₁ ⟶ e₂), ((CategoryTheory.Functor.Elements.isoCatOfIso e).functor.map f).hom = f.hom

theorem CategoryTheory.Functor.Elements.isoCatOfIso_functor_obj_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (e_1 : F.Elements), ((CategoryTheory.Functor.Elements.isoCatOfIso e).functor.obj e_1).obj = e_1.obj

theorem CategoryTheory.Functor.Elements.isoCatOfIso_inverse_obj_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (e_1 : G.Elements),
  ((CategoryTheory.Functor.Elements.isoCatOfIso e).inverse.obj e_1).val =
    (CategoryTheory.ConcreteCategory.hom (e.inv.app e_1.obj)) e_1.val

theorem CategoryTheory.Functor.Elements.isoCatOfIso_functor_obj_val E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  (e_1 : F.Elements),
  ((CategoryTheory.Functor.Elements.isoCatOfIso e).functor.obj e_1).val =
    (CategoryTheory.ConcreteCategory.hom (e.hom.app e_1.obj)) e_1.val

theorem CategoryTheory.Functor.Elements.isoCatOfIso_inverse_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {F G : CategoryTheory.Functor C (Type w)} (e : F ≅ G)
  {e₁ e₂ : G.Elements} (f : e₁ ⟶ e₂), ((CategoryTheory.Functor.Elements.isoCatOfIso e).inverse.map f).hom = f.hom

Deprecated aliases

NameNew nameSince
CategoryTheory.CategoryOfElements.comp_valCategoryTheory.Functor.Elements.comp_hom2026-08-30
CategoryTheory.CategoryOfElements.costructuredArrowULiftYonedaEquivalenceCategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalence2026-08-30
CategoryTheory.CategoryOfElements.costructuredArrowULiftYonedaEquivalenceFunctorCompProjIsoCategoryTheory.Functor.Elements.costructuredArrowULiftYonedaEquivalenceFunctorCompProjIso2026-08-30
CategoryTheory.CategoryOfElements.costructuredArrowYonedaEquivalenceCategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalence2026-08-30
CategoryTheory.CategoryOfElements.costructuredArrowYonedaEquivalenceFunctorProjCategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceFunctorProj2026-08-30
CategoryTheory.CategoryOfElements.costructuredArrowYonedaEquivalenceInverseπCategoryTheory.Functor.Elements.costructuredArrowYonedaEquivalenceInverseπ2026-08-30
CategoryTheory.CategoryOfElements.costructuredArrow_yoneda_equivalence_naturalityCategoryTheory.NatTrans.mapElements_op_comp_toCostructuredArrow2026-08-30
CategoryTheory.CategoryOfElements.extCategoryTheory.Functor.Elements.hom_ext2026-08-30
CategoryTheory.CategoryOfElements.fromCostructuredArrowCategoryTheory.Functor.Elements.fromCostructuredArrow2026-08-30
CategoryTheory.CategoryOfElements.fromCostructuredArrow_obj_mkCategoryTheory.Functor.Elements.fromCostructuredArrow_obj_mk2026-08-30
CategoryTheory.CategoryOfElements.fromStructuredArrowCategoryTheory.Functor.Elements.fromStructuredArrow2026-08-30
CategoryTheory.CategoryOfElements.fromStructuredArrow_mapCategoryTheory.Functor.Elements.toStructuredArrow_map2026-08-30
CategoryTheory.CategoryOfElements.fromStructuredArrow_objCategoryTheory.Functor.Elements.toStructuredArrow_obj2026-08-30
CategoryTheory.CategoryOfElements.homMkCategoryTheory.Functor.Elements.homMk2026-08-30
CategoryTheory.CategoryOfElements.id_valCategoryTheory.Functor.Elements.id_hom2026-08-30
CategoryTheory.CategoryOfElements.isoMkCategoryTheory.Functor.Elements.isoMk2026-08-30
CategoryTheory.CategoryOfElements.mapCategoryTheory.NatTrans.mapElements2026-08-30
CategoryTheory.CategoryOfElements.map_sndCategoryTheory.Functor.Elements.Hom.map_val2026-08-30
CategoryTheory.CategoryOfElements.map_πCategoryTheory.NatTrans.mapElements_comp_π2026-08-30
CategoryTheory.CategoryOfElements.structuredArrowEquivalenceCategoryTheory.Functor.Elements.structuredArrowEquivalence2026-08-30
CategoryTheory.CategoryOfElements.toCostructuredArrowCategoryTheory.Functor.Elements.toCostructuredArrow2026-08-30
CategoryTheory.CategoryOfElements.toStructuredArrowCategoryTheory.Functor.Elements.toStructuredArrow2026-08-30
CategoryTheory.CategoryOfElements.to_comma_map_right2026-08-30
CategoryTheory.CategoryOfElements.πCategoryTheory.Functor.Elements.π2026-08-30
CategoryTheory.Functor.Elements.fstCategoryTheory.Functor.Elements.obj2026-08-30
CategoryTheory.Functor.Elements.isInitialCategoryTheory.Functor.Elements.isInitialYonedaObj2026-08-30
CategoryTheory.Functor.Elements.sndCategoryTheory.Functor.Elements.val2026-08-30
CategoryTheory.Functor.Elements.yonedaCategoryTheory.Functor.Elements.initialYonedaObj2026-08-30