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.Bicategory.Opposites

51 declarations. Mathlib docs · Source

Opposite bicategories

We construct the 1-cell opposite of a bicategory B, called Bᵒᵖ. It is defined as follows

  • The objects of Bᵒᵖ correspond to objects of B.
  • The morphisms X ⟶ Y in Bᵒᵖ are the morphisms Y ⟶ X in B.
  • The 2-morphisms f ⟶ g in Bᵒᵖ are the 2-morphisms f ⟶ g in B. In other words, the directions of the 2-morphisms are preserved.

Remarks

There are multiple notions of opposite categories for bicategories.

  • There is 1-cell dual Bᵒᵖ as defined above.
  • There is the 2-cell dual, Cᶜᵒ where only the 2-morphisms are reversed
  • There is the bi-dual Cᶜᵒᵒᵖ where the directions of both the 1-morphisms and the 2-morphisms are reversed.

TODO

  • Define the 2-cell dual Cᶜᵒ.
  • Provide various lemmas for going between LocallyDiscrete Cᵒᵖ and (LocallyDiscrete C)ᵒᵖ.

Note: Cᶜᵒᵒᵖ is WIP by Christian Merten.

theorem Bicategory.Opposite.Hom2.op2'.injEq E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} {f g : a ⟶ b} (unop2 unop2_1 : f.unop ⟶ g.unop),
  ({ unop2 := unop2 } = { unop2 := unop2_1 }) = (unop2 = unop2_1)

def Bicategory.Opposite.Hom2.ctorIdx E1 #

{B : Type u} → {inst : CategoryTheory.Bicategory B} → {a b : Bᵒᵖ} → {f g : a ⟶ b} → Bicategory.Opposite.Hom2 f g → ℕ

theorem Bicategory.Opposite.Hom2.op2'.inj E1 #

∀ {B : Type u} {inst : CategoryTheory.Bicategory B} {a b : Bᵒᵖ} {f g : a ⟶ b} {unop2 unop2_1 : f.unop ⟶ g.unop},
  { unop2 := unop2 } = { unop2 := unop2_1 } → unop2 = unop2_1

structure Bicategory.Opposite.Hom2 E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → {a b : Bᵒᵖ} → (a ⟶ b) → (a ⟶ b) → Type w

Type synonym for 2-morphisms in the opposite bicategory.

ctor Bicategory.Opposite.Hom2.op2' E0 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] → {a b : Bᵒᵖ} → {f g : a ⟶ b} → (f.unop ⟶ g.unop) → Bicategory.Opposite.Hom2 f g

abbrev Bicategory.Opposite.Hom2.unop2 E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] → {a b : Bᵒᵖ} → {f g : a ⟶ b} → Bicategory.Opposite.Hom2 f g → (f.unop ⟶ g.unop)

Bᵒᵖ preserves the direction of all 2-morphisms in B

theorem Bicategory.Opposite.homCategory_comp_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (a b : Bᵒᵖ) {X Y Z : a ⟶ b} (η : Bicategory.Opposite.Hom2 X Y)
  (θ : Bicategory.Opposite.Hom2 Y Z),
  (CategoryTheory.CategoryStruct.comp η θ).unop2 = CategoryTheory.CategoryStruct.comp η.unop2 θ.unop2

instance Bicategory.Opposite.homCategory E0 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → (a b : Bᵒᵖ) → CategoryTheory.Category.{w, v} (a ⟶ b)

theorem Bicategory.Opposite.homCategory_id_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (a b : Bᵒᵖ) (f : a ⟶ b),
  (CategoryTheory.CategoryStruct.id f).unop2 = CategoryTheory.CategoryStruct.id f.unop

def Bicategory.Opposite.op2 E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → {a b : B} → {f g : a ⟶ b} → (f ⟶ g) → (f.op ⟶ g.op)

Synonym for constructor of Hom2 where the 1-morphisms f and g lie in B and not Bᵒᵖ.

theorem Bicategory.Opposite.unop2_op2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} {f g : a ⟶ b} (η : f ⟶ g),
  (Bicategory.Opposite.op2 η).unop2 = η

theorem Bicategory.Opposite.op2_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} {f g : a ⟶ b} (η : f ⟶ g),
  Bicategory.Opposite.op2 η.unop2 = η

theorem Bicategory.Opposite.op2_comp E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} {f g h : a ⟶ b} (η : f ⟶ g) (θ : g ⟶ h),
  Bicategory.Opposite.op2 (CategoryTheory.CategoryStruct.comp η θ) =
    CategoryTheory.CategoryStruct.comp (Bicategory.Opposite.op2 η) (Bicategory.Opposite.op2 θ)

theorem Bicategory.Opposite.op2_id E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b},
  Bicategory.Opposite.op2 (CategoryTheory.CategoryStruct.id f) = CategoryTheory.CategoryStruct.id f.op

theorem Bicategory.Opposite.unop2_comp E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} {f g h : a ⟶ b} (η : f ⟶ g) (θ : g ⟶ h),
  (CategoryTheory.CategoryStruct.comp η θ).unop2 = CategoryTheory.CategoryStruct.comp η.unop2 θ.unop2

theorem Bicategory.Opposite.unop2_id E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} {f : a ⟶ b},
  (CategoryTheory.CategoryStruct.id f).unop2 = CategoryTheory.CategoryStruct.id f.unop

theorem Bicategory.Opposite.unop2_id_bop E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b},
  (CategoryTheory.CategoryStruct.id f.op).unop2 = CategoryTheory.CategoryStruct.id f

theorem Bicategory.Opposite.op2_id_unbop E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} {f : a ⟶ b},
  Bicategory.Opposite.op2 (CategoryTheory.CategoryStruct.id f.unop) = CategoryTheory.CategoryStruct.id f

def Bicategory.Opposite.opFunctor E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] → (a b : B) → CategoryTheory.Functor (a ⟶ b) (Opposite.op b ⟶ Opposite.op a)

The natural functor from the hom-category a ⟶ b in B to its bicategorical opposite bop b ⟶ bop a.

theorem Bicategory.Opposite.opFunctor_obj E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (a b : B) (f : a ⟶ b),
  (Bicategory.Opposite.opFunctor a b).obj f = f.op

theorem Bicategory.Opposite.opFunctor_map E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (a b : B) {X Y : a ⟶ b} (η : X ⟶ Y),
  (Bicategory.Opposite.opFunctor a b).map η = Bicategory.Opposite.op2 η

def Bicategory.Opposite.unopFunctor E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    (a b : Bᵒᵖ) → CategoryTheory.Functor (a ⟶ b) (Opposite.unop b ⟶ Opposite.unop a)

The functor from the hom-category a ⟶ b in Bᵒᵖ to its bicategorical opposite unop b ⟶ unop a.

theorem Bicategory.Opposite.unopFunctor_map E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (a b : Bᵒᵖ) {X Y : a ⟶ b} (η : X ⟶ Y),
  (Bicategory.Opposite.unopFunctor a b).map η = η.unop2

theorem Bicategory.Opposite.unopFunctor_obj E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (a b : Bᵒᵖ) (f : a ⟶ b),
  (Bicategory.Opposite.unopFunctor a b).obj f = f.unop

abbrev CategoryTheory.Iso.op2 E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → {a b : B} → {f g : a ⟶ b} → (f ≅ g) → (f.op ≅ g.op)

A 2-isomorphism in B gives a 2-isomorphism in Bᵒᵖ

abbrev CategoryTheory.Iso.op2_unop E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → {a b : Bᵒᵖ} → {f g : a ⟶ b} → (f.unop ≅ g.unop) → (f ≅ g)

A 2-isomorphism in B gives a 2-isomorphism in Bᵒᵖ

abbrev CategoryTheory.Iso.unop2 E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → {a b : Bᵒᵖ} → {f g : a ⟶ b} → (f ≅ g) → (f.unop ≅ g.unop)

A 2-isomorphism in Bᵒᵖ gives a 2-isomorphism in B

abbrev CategoryTheory.Iso.unop2_op E1 #

{B : Type u} → [inst : CategoryTheory.Bicategory B] → {a b : B} → {f g : a ⟶ b} → (f.op ≅ g.op) → (f ≅ g)

A 2-isomorphism in Bᵒᵖ gives a 2-isomorphism in B

theorem CategoryTheory.Iso.unop2_op2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} {f g : a ⟶ b} (η : f ≅ g), η.unop2.op2 = η

instance Bicategory.Opposite.bicategory E0 #

{B : Type u} → [CategoryTheory.Bicategory B] → CategoryTheory.Bicategory Bᵒᵖ

The 1-cell dual bicategory Bᵒᵖ.

It is defined as follows.

  • The objects of Bᵒᵖ correspond to objects of B.
  • The morphisms X ⟶ Y in Bᵒᵖ are the morphisms Y ⟶ X in B.
  • The 2-morphisms f ⟶ g in Bᵒᵖ are the 2-morphisms f ⟶ g in B. In other words, the directions of the 2-morphisms are preserved.

theorem Bicategory.Opposite.bicategory_associator_hom_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : Bᵒᵖ} (f : a ⟶ b) (g : b ⟶ c) (h : c ⟶ d),
  (CategoryTheory.Bicategory.associator f g h).hom.unop2 =
    (CategoryTheory.Bicategory.associator h.unop g.unop f.unop).inv

theorem Bicategory.Opposite.bicategory_leftUnitor_hom_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} (f : a ⟶ b),
  (CategoryTheory.Bicategory.leftUnitor f).hom.unop2 = (CategoryTheory.Bicategory.rightUnitor f.unop).hom

theorem Bicategory.Opposite.bicategory_leftUnitor_inv_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} (f : a ⟶ b),
  (CategoryTheory.Bicategory.leftUnitor f).inv.unop2 = (CategoryTheory.Bicategory.rightUnitor f.unop).inv

theorem Bicategory.Opposite.bicategory_whiskerRight_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c : Bᵒᵖ} {f g : a ⟶ b} (η : f ⟶ g) (h : b ⟶ c),
  (CategoryTheory.Bicategory.whiskerRight η h).unop2 = CategoryTheory.Bicategory.whiskerLeft h.unop η.unop2

theorem Bicategory.Opposite.bicategory_homCategory_id_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (a b : Bᵒᵖ) (f : a ⟶ b),
  (CategoryTheory.CategoryStruct.id f).unop2 = CategoryTheory.CategoryStruct.id f.unop

theorem Bicategory.Opposite.bicategory_homCategory_comp_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (a b : Bᵒᵖ) {X Y Z : a ⟶ b} (η : Bicategory.Opposite.Hom2 X Y)
  (θ : Bicategory.Opposite.Hom2 Y Z),
  (CategoryTheory.CategoryStruct.comp η θ).unop2 = CategoryTheory.CategoryStruct.comp η.unop2 θ.unop2

theorem Bicategory.Opposite.bicategory_associator_inv_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : Bᵒᵖ} (f : a ⟶ b) (g : b ⟶ c) (h : c ⟶ d),
  (CategoryTheory.Bicategory.associator f g h).inv.unop2 =
    (CategoryTheory.Bicategory.associator h.unop g.unop f.unop).hom

theorem Bicategory.Opposite.bicategory_rightUnitor_hom_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} (f : a ⟶ b),
  (CategoryTheory.Bicategory.rightUnitor f).hom.unop2 = (CategoryTheory.Bicategory.leftUnitor f.unop).hom

theorem Bicategory.Opposite.bicategory_whiskerLeft_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c : Bᵒᵖ} (f : a ⟶ b) (g h : b ⟶ c) (η : g ⟶ h),
  (CategoryTheory.Bicategory.whiskerLeft f η).unop2 = CategoryTheory.Bicategory.whiskerRight η.unop2 f.unop

theorem Bicategory.Opposite.bicategory_rightUnitor_inv_unop2 E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : Bᵒᵖ} (f : a ⟶ b),
  (CategoryTheory.Bicategory.rightUnitor f).inv.unop2 = (CategoryTheory.Bicategory.leftUnitor f.unop).inv

theorem Bicategory.Opposite.op2_whiskerLeft E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c : B} {f : a ⟶ b} {g g' : b ⟶ c} (η : g ⟶ g'),
  Bicategory.Opposite.op2 (CategoryTheory.Bicategory.whiskerLeft f η) =
    CategoryTheory.Bicategory.whiskerRight (Bicategory.Opposite.op2 η) f.op

theorem Bicategory.Opposite.op2_whiskerRight E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c : B} {f f' : a ⟶ b} {g : b ⟶ c} (η : f ⟶ f'),
  Bicategory.Opposite.op2 (CategoryTheory.Bicategory.whiskerRight η g) =
    CategoryTheory.Bicategory.whiskerLeft g.op (Bicategory.Opposite.op2 η)

theorem Bicategory.Opposite.op2_associator E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} (f : a ⟶ b) (g : b ⟶ c) (h : c ⟶ d),
  (CategoryTheory.Bicategory.associator f g h).op2 = (CategoryTheory.Bicategory.associator h.op g.op f.op).symm

theorem Bicategory.Opposite.op2_associator_hom E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} (f : a ⟶ b) (g : b ⟶ c) (h : c ⟶ d),
  Bicategory.Opposite.op2 (CategoryTheory.Bicategory.associator f g h).hom =
    (CategoryTheory.Bicategory.associator h.op g.op f.op).symm.hom

theorem Bicategory.Opposite.op2_associator_inv E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} (f : a ⟶ b) (g : b ⟶ c) (h : c ⟶ d),
  Bicategory.Opposite.op2 (CategoryTheory.Bicategory.associator f g h).inv =
    (CategoryTheory.Bicategory.associator h.op g.op f.op).symm.inv

theorem Bicategory.Opposite.op2_leftUnitor E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} (f : a ⟶ b),
  (CategoryTheory.Bicategory.leftUnitor f).op2 = CategoryTheory.Bicategory.rightUnitor f.op

theorem Bicategory.Opposite.op2_leftUnitor_hom E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} (f : a ⟶ b),
  Bicategory.Opposite.op2 (CategoryTheory.Bicategory.leftUnitor f).hom =
    (CategoryTheory.Bicategory.rightUnitor f.op).hom

theorem Bicategory.Opposite.op2_leftUnitor_inv E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} (f : a ⟶ b),
  Bicategory.Opposite.op2 (CategoryTheory.Bicategory.leftUnitor f).inv =
    (CategoryTheory.Bicategory.rightUnitor f.op).inv

theorem Bicategory.Opposite.op2_rightUnitor E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} (f : a ⟶ b),
  (CategoryTheory.Bicategory.rightUnitor f).op2 = CategoryTheory.Bicategory.leftUnitor f.op

theorem Bicategory.Opposite.op2_rightUnitor_hom E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} (f : a ⟶ b),
  Bicategory.Opposite.op2 (CategoryTheory.Bicategory.rightUnitor f).hom =
    (CategoryTheory.Bicategory.leftUnitor f.op).hom

theorem Bicategory.Opposite.op2_rightUnitor_inv E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} (f : a ⟶ b),
  Bicategory.Opposite.op2 (CategoryTheory.Bicategory.rightUnitor f).inv =
    (CategoryTheory.Bicategory.leftUnitor f.op).inv