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.Comma.Over.OverClass

53 declarations. Mathlib docs · Source

Typeclasses for S-objects and S-morphisms

Warning: This is not usually how typeclasses should be used. This is only a sensible approach when the morphism is considered as a structure on X, typically in algebraic geometry.

This is analogous to how we view ringhoms as structures via the Algebra typeclass.

For other applications use unbundled arrows or CategoryTheory.Over.

Main definitions

  • CategoryTheory.OverClass: OverClass X S equips X with a morphism into S. X ↘ S : X ⟶ S is the structure morphism.
  • CategoryTheory.HomIsOver: HomIsOver f S asserts that f commutes with the structure morphisms.

def CategoryTheory.CanonicallyOverClass.ctorIdx E1 #

{C : Type u} →
  {inst : CategoryTheory.Category.{v, u} C} →
    {X : C} → {S : semiOutParam C} → CategoryTheory.CanonicallyOverClass X S → ℕ

def CategoryTheory.OverClass.ctorIdx E1 #

{C : Type u} → {inst : CategoryTheory.Category.{v, u} C} → {X S : C} → CategoryTheory.OverClass X S → ℕ

theorem CategoryTheory.OverClass.asOverHom.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] (f f_1 : X ⟶ Y) (e_f : f = f_1) [inst_3 : CategoryTheory.HomIsOver f S],
  CategoryTheory.OverClass.asOverHom S f = CategoryTheory.OverClass.asOverHom S f_1

class CategoryTheory.OverClass E3 #

{C : Type u} → [CategoryTheory.Category.{v, u} C] → C → C → Type v

OverClass X S is the typeclass containing the data of a structure morphism X ↘ S : X ⟶ S.

ctor CategoryTheory.OverClass.ofHom E0 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → {X S : C} → (X ⟶ S) → CategoryTheory.OverClass X S

abbrev CategoryTheory.OverClass.hom E1 #

{C : Type u} → {inst : CategoryTheory.Category.{v, u} C} → {X S : C} → [self : CategoryTheory.OverClass X S] → X ⟶ S

The structure morphism. Use X ↘ S instead.

def CategoryTheory.over E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (X S : C) → autoParam (CategoryTheory.OverClass X S) CategoryTheory.over._auto_1 → (X ⟶ S)

The structure morphism X ↘ S : X ⟶ S given OverClass X S. The instance argument is an optParam instead so that it appears in the discrimination tree.

def CategoryTheory.«term_↘_» E1 #

Lean.TrailingParserDescr

The structure morphism X ↘ S : X ⟶ S given OverClass X S.

def CategoryTheory.OverClass.Simps.over E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (X S : C) → [CategoryTheory.OverClass X S] → X ⟶ S

See Note [custom simps projection]

class CategoryTheory.CanonicallyOverClass E1 #

{C : Type u} → [CategoryTheory.Category.{v, u} C] → C → semiOutParam C → Type v

X.CanonicallyOverClass S is the typeclass containing the data of a structure morphism X ↘ S : X ⟶ S, and that S is (uniquely) inferable from the structure of X.

ctor CategoryTheory.CanonicallyOverClass.mk E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      {S : semiOutParam C} → [toOverClass : CategoryTheory.OverClass X S] → CategoryTheory.CanonicallyOverClass X S

instance CategoryTheory.CanonicallyOverClass.toOverClass E0 #

{C : Type u} →
  {inst : CategoryTheory.Category.{v, u} C} →
    {X : C} → {S : semiOutParam C} → [self : CategoryTheory.CanonicallyOverClass X S] → CategoryTheory.OverClass X S

def CategoryTheory.CanonicallyOverClass.Simps.over E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (X S : C) → [CategoryTheory.CanonicallyOverClass X S] → X ⟶ S

See Note [custom simps projection]

instance CategoryTheory.instOverClass E0 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → {X : C} → CategoryTheory.OverClass X X

theorem CategoryTheory.over_def E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C}, X ↘ X = CategoryTheory.CategoryStruct.id X

instance CategoryTheory.instIsIsoOverInferInstanceOverClass E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (S : C), CategoryTheory.IsIso (S ↘ S)

instance CategoryTheory.CanonicallyOverClass.instOverClass E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      (S : C) →
        [CategoryTheory.CanonicallyOverClass X Y] → [CategoryTheory.OverClass Y S] → CategoryTheory.OverClass X S

theorem CategoryTheory.CanonicallyOverClass.over_def E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C)
  [inst_1 : CategoryTheory.CanonicallyOverClass X Y] [inst_2 : CategoryTheory.OverClass Y S],
  X ↘ S = CategoryTheory.CategoryStruct.comp (X ↘ Y) (Y ↘ S)

class CategoryTheory.HomIsOver E3 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} → (X ⟶ Y) → (S : C) → [CategoryTheory.OverClass X S] → [CategoryTheory.OverClass Y S] → Prop

Given OverClass X S and OverClass Y S and f : X ⟶ Y, HomIsOver f S is the typeclass asserting f commutes with the structure morphisms.

ctor CategoryTheory.HomIsOver.mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f : X ⟶ Y} {S : C}
  [inst_1 : CategoryTheory.OverClass X S] [inst_2 : CategoryTheory.OverClass Y S],
  autoParam (CategoryTheory.CategoryStruct.comp f (Y ↘ S) = X ↘ S) CategoryTheory.HomIsOver.comp_over._autoParam →
    CategoryTheory.HomIsOver f S

theorem CategoryTheory.HomIsOver.comp_over E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {X Y : C} {f : X ⟶ Y} {S : C}
  {inst_1 : CategoryTheory.OverClass X S} {inst_2 : CategoryTheory.OverClass Y S} [self : CategoryTheory.HomIsOver f S],
  CategoryTheory.CategoryStruct.comp f (Y ↘ S) = X ↘ S

theorem CategoryTheory.comp_over_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y) (S : C)
  [inst_1 : CategoryTheory.OverClass X S] [inst_2 : CategoryTheory.OverClass Y S] [CategoryTheory.HomIsOver f S] {Z : C}
  (h : S ⟶ Z),
  CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp (Y ↘ S) h) =
    CategoryTheory.CategoryStruct.comp (X ↘ S) h

theorem CategoryTheory.comp_over E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y) (S : C)
  [inst_1 : CategoryTheory.OverClass X S] [inst_2 : CategoryTheory.OverClass Y S] [CategoryTheory.HomIsOver f S],
  CategoryTheory.CategoryStruct.comp f (Y ↘ S) = X ↘ S

instance CategoryTheory.instHomIsOverId E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (S : C) [inst_1 : CategoryTheory.OverClass X S],
  CategoryTheory.HomIsOver (CategoryTheory.CategoryStruct.id X) S

instance CategoryTheory.instHomIsOverComp E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] [inst_3 : CategoryTheory.OverClass Z S] (f : X ⟶ Y) (g : Y ⟶ Z)
  [CategoryTheory.HomIsOver f S] [CategoryTheory.HomIsOver g S],
  CategoryTheory.HomIsOver (CategoryTheory.CategoryStruct.comp f g) S

abbrev CategoryTheory.IsOverTower E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (X Y S : C) →
      [CategoryTheory.OverClass X S] → [CategoryTheory.OverClass Y S] → [CategoryTheory.OverClass X Y] → Prop

IsOverTower X Y S is the typeclass asserting that the structure morphisms X ↘ Y, Y ↘ S, and X ↘ S commute.

instance CategoryTheory.instIsOverTower E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (S : C) [inst_1 : CategoryTheory.OverClass X S],
  CategoryTheory.IsOverTower X X S

instance CategoryTheory.instIsOverTower_1 E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (S : C) [inst_1 : CategoryTheory.OverClass X S],
  CategoryTheory.IsOverTower X S S

instance CategoryTheory.instIsOverTower_2 E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C)
  [inst_1 : CategoryTheory.CanonicallyOverClass X Y] [inst_2 : CategoryTheory.OverClass Y S],
  CategoryTheory.IsOverTower X Y S

theorem CategoryTheory.homIsOver_of_isOverTower E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y) (S S' : C)
  [inst_1 : CategoryTheory.OverClass X S] [inst_2 : CategoryTheory.OverClass X S']
  [inst_3 : CategoryTheory.OverClass Y S] [inst_4 : CategoryTheory.OverClass Y S']
  [inst_5 : CategoryTheory.OverClass S S'] [CategoryTheory.IsOverTower X S S'] [CategoryTheory.IsOverTower Y S S']
  [CategoryTheory.HomIsOver f S], CategoryTheory.HomIsOver f S'

instance CategoryTheory.instHomIsOverOfIsOverTower E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y) (S S' : C)
  [inst_1 : CategoryTheory.CanonicallyOverClass X S] [inst_2 : CategoryTheory.OverClass X S']
  [inst_3 : CategoryTheory.OverClass Y S] [inst_4 : CategoryTheory.OverClass Y S']
  [inst_5 : CategoryTheory.OverClass S S'] [CategoryTheory.IsOverTower X S S'] [CategoryTheory.IsOverTower Y S S']
  [CategoryTheory.HomIsOver f S], CategoryTheory.HomIsOver f S'

instance CategoryTheory.instHomIsOverOfIsOverTower_1 E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y) (S S' : C)
  [inst_1 : CategoryTheory.OverClass X S] [inst_2 : CategoryTheory.OverClass X S']
  [inst_3 : CategoryTheory.CanonicallyOverClass Y S] [inst_4 : CategoryTheory.OverClass Y S']
  [inst_5 : CategoryTheory.OverClass S S'] [CategoryTheory.IsOverTower X S S'] [CategoryTheory.IsOverTower Y S S']
  [CategoryTheory.HomIsOver f S], CategoryTheory.HomIsOver f S'

def CategoryTheory.OverClass.asOver E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → (X S : C) → [CategoryTheory.OverClass X S] → CategoryTheory.Over S

Bundle X with an OverClass X S instance into Over S.

theorem CategoryTheory.OverClass.asOver_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X S : C) [inst_1 : CategoryTheory.OverClass X S],
  (CategoryTheory.OverClass.asOver X S).left = X

theorem CategoryTheory.OverClass.asOver_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X S : C) [inst_1 : CategoryTheory.OverClass X S],
  (CategoryTheory.OverClass.asOver X S).hom = X ↘ S

def CategoryTheory.OverClass.asOverHom E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      (S : C) →
        [inst_1 : CategoryTheory.OverClass X S] →
          [inst_2 : CategoryTheory.OverClass Y S] →
            (f : X ⟶ Y) →
              [CategoryTheory.HomIsOver f S] → CategoryTheory.OverClass.asOver X S ⟶ CategoryTheory.OverClass.asOver Y S

Bundle a morphism f : X ⟶ Y with HomIsOver f S into a morphism in Over S.

theorem CategoryTheory.OverClass.asOverHom_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] (f : X ⟶ Y) [inst_3 : CategoryTheory.HomIsOver f S],
  (CategoryTheory.OverClass.asOverHom S f).left = f

theorem CategoryTheory.OverClass.fromOver_over E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {S : C} (X : CategoryTheory.Over S), X.left ↘ S = X.hom

instance CategoryTheory.OverClass.fromOver E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → {S : C} → (X : CategoryTheory.Over S) → CategoryTheory.OverClass X.left S

instance CategoryTheory.instHomIsOverLeft E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {S : C} {X Y : CategoryTheory.Over S} (f : X ⟶ Y),
  CategoryTheory.HomIsOver (CategoryTheory.Over.Hom.left f) S

instance CategoryTheory.OverClass.instIsIsoOverAsOverHom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] (f : X ⟶ Y) [CategoryTheory.IsIso f] [inst_4 : CategoryTheory.HomIsOver f S],
  CategoryTheory.IsIso (CategoryTheory.OverClass.asOverHom S f)

instance CategoryTheory.OverClass.instHomIsOverInvOfHom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] {e : X ≅ Y} [CategoryTheory.HomIsOver e.hom S],
  CategoryTheory.HomIsOver e.inv S

instance CategoryTheory.OverClass.instHomIsOverHomOfInv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] {e : X ≅ Y} [CategoryTheory.HomIsOver e.inv S],
  CategoryTheory.HomIsOver e.hom S

instance CategoryTheory.OverClass.instHomIsOverHomAsIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] {f : X ⟶ Y} [inst_3 : CategoryTheory.IsIso f] [CategoryTheory.HomIsOver f S],
  CategoryTheory.HomIsOver (CategoryTheory.asIso f).hom S

instance CategoryTheory.OverClass.instHomIsOverInvAsIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] {f : X ⟶ Y} [inst_3 : CategoryTheory.IsIso f] [CategoryTheory.HomIsOver f S],
  CategoryTheory.HomIsOver (CategoryTheory.asIso f).inv S

instance CategoryTheory.OverClass.instHomIsOverInv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] {f : X ⟶ Y} [inst_3 : CategoryTheory.IsIso f] [CategoryTheory.HomIsOver f S],
  CategoryTheory.HomIsOver (CategoryTheory.inv f) S

theorem CategoryTheory.OverClass.asOverHom_id E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (S : C) [inst_1 : CategoryTheory.OverClass X S],
  CategoryTheory.OverClass.asOverHom S (CategoryTheory.CategoryStruct.id X) =
    CategoryTheory.CategoryStruct.id (CategoryTheory.OverClass.asOver X S)

theorem CategoryTheory.OverClass.asOverHom_comp_assoc E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] [inst_3 : CategoryTheory.OverClass Z S] (f : X ⟶ Y) (g : Y ⟶ Z)
  [inst_4 : CategoryTheory.HomIsOver f S] [inst_5 : CategoryTheory.HomIsOver g S] {Z_1 : CategoryTheory.Over S}
  (h : CategoryTheory.OverClass.asOver Z S ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.OverClass.asOverHom S (CategoryTheory.CategoryStruct.comp f g)) h =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.OverClass.asOverHom S f)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.OverClass.asOverHom S g) h)

theorem CategoryTheory.OverClass.asOverHom_comp E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] [inst_3 : CategoryTheory.OverClass Z S] (f : X ⟶ Y) (g : Y ⟶ Z)
  [inst_4 : CategoryTheory.HomIsOver f S] [inst_5 : CategoryTheory.HomIsOver g S],
  CategoryTheory.OverClass.asOverHom S (CategoryTheory.CategoryStruct.comp f g) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.OverClass.asOverHom S f) (CategoryTheory.OverClass.asOverHom S g)

theorem CategoryTheory.OverClass.asOverHom_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] (f : X ⟶ Y) [inst_3 : CategoryTheory.IsIso f]
  [inst_4 : CategoryTheory.HomIsOver f S],
  CategoryTheory.OverClass.asOverHom S (CategoryTheory.inv f) =
    CategoryTheory.inv (CategoryTheory.OverClass.asOverHom S f)

def CategoryTheory.Iso.asOver E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y : C} →
      (S : C) →
        [inst_1 : CategoryTheory.OverClass X S] →
          [inst_2 : CategoryTheory.OverClass Y S] →
            (e : X ≅ Y) →
              [CategoryTheory.HomIsOver e.hom S] →
                CategoryTheory.OverClass.asOver X S ≅ CategoryTheory.OverClass.asOver Y S

Reinterpret an isomorphism over an object S into an isomorphism in the category over S.

theorem CategoryTheory.Iso.asOver_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] (e : X ≅ Y) [inst_3 : CategoryTheory.HomIsOver e.hom S],
  (CategoryTheory.Iso.asOver S e).hom = CategoryTheory.OverClass.asOverHom S e.hom

theorem CategoryTheory.Iso.asOver_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (S : C) [inst_1 : CategoryTheory.OverClass X S]
  [inst_2 : CategoryTheory.OverClass Y S] (e : X ≅ Y) [inst_3 : CategoryTheory.HomIsOver e.hom S],
  (CategoryTheory.Iso.asOver S e).inv = CategoryTheory.OverClass.asOverHom S e.inv