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.Subobject.Basic

148 declarations. Mathlib docs · Source

Subobjects

We define Subobject X as the quotient (by isomorphisms) of MonoOver X := {f : Over X // Mono f.hom}.

Here MonoOver X is a thin category (a pair of objects has at most one morphism between them), so we can think of it as a preorder. However as it is not skeletal, it is not a partial order.

There is a coercion from Subobject X back to the ambient category C (using choice to pick a representative), and for P : Subobject X, P.arrow : (P : C) ⟶ X is the inclusion morphism.

We provide

  • def pullback [HasPullbacks C] (f : X ⟶ Y) : Subobject Y ⥤ Subobject X
  • def map (f : X ⟶ Y) [Mono f] : Subobject X ⥤ Subobject Y
  • def «exists_» [HasImages C] (f : X ⟶ Y) : Subobject X ⥤ Subobject Y

and prove their basic properties and relationships. These are all easy consequences of the earlier development of the corresponding functors for MonoOver.

The subobjects of X form a preorder making them into a category. We have X ≤ Y if and only if X.arrow factors through Y.arrow: see ofLE/ofLEMk/ofMkLE/ofMkLEMk and le_of_comm. Similarly, to show that two subobjects are equal, we can supply an isomorphism between the underlying objects that commutes with the arrows (eq_of_comm).

See also

  • CategoryTheory.Subobject.factorThru : an API describing factorization of morphisms through subobjects.
  • CategoryTheory.Subobject.lattice : the lattice structures on subobjects.

Notes

This development originally appeared in Bhavik Mehta's "Topos theory for Lean" repository, and was ported to mathlib by Kim Morrison.

Implementation notes

Currently we describe pullback, map, etc., as functors. It may be better to just say that they are monotone functions, and even avoid using categorical language entirely when describing Subobject X. (It's worth keeping this in mind in future use; it should be a relatively easy change here if it looks preferable.)

Relation to pseudoelements

There is a separate development of pseudoelements in CategoryTheory.Abelian.Pseudoelements, as a quotient (but not by isomorphism) of Over X.

When a morphism f has an image, the image represents the same pseudoelement. In a category with images Pseudoelements X could be constructed as a quotient of MonoOver X. In fact, in an abelian category (I'm not sure in what generality beyond that), Pseudoelements X agrees with Subobject X, but we haven't developed this in mathlib yet.

We now construct the subobject lattice for X : C, as the quotient by isomorphisms of MonoOver X.

Since MonoOver X is a thin category, we use ThinSkeleton to take the quotient.

Essentially all the structure defined above on MonoOver X descends to Subobject X, with morphisms becoming inequalities, and isomorphisms becoming equations.

theorem CategoryTheory.Subobject.ofMkLE.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (f f_1 : A ⟶ B) (e_f : f = f_1)
  [inst_1 : CategoryTheory.Mono f] (X : CategoryTheory.Subobject B) (h : CategoryTheory.Subobject.mk f ≤ X),
  CategoryTheory.Subobject.ofMkLE f X h = CategoryTheory.Subobject.ofMkLE f_1 X ⋯

theorem CategoryTheory.Subobject.map.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f f_1 : X ⟶ Y) (e_f : f = f_1)
  [inst_1 : CategoryTheory.Mono f], CategoryTheory.Subobject.map f = CategoryTheory.Subobject.map f_1

theorem CategoryTheory.Subobject.mk.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X A : C} (f f_1 : A ⟶ X) (e_f : f = f_1)
  [inst_1 : CategoryTheory.Mono f], CategoryTheory.Subobject.mk f = CategoryTheory.Subobject.mk f_1

theorem CategoryTheory.Subobject.exists.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f f_1 : X ⟶ Y), f = f_1 → CategoryTheory.Subobject.exists f = CategoryTheory.Subobject.exists f_1

theorem CategoryTheory.Subobject.ofMkLEMk.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f f_1 : A₁ ⟶ B) (e_f : f = f_1)
  (g g_1 : A₂ ⟶ B) (e_g : g = g_1) [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g]
  (h : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g),
  CategoryTheory.Subobject.ofMkLEMk f g h = CategoryTheory.Subobject.ofMkLEMk f_1 g_1 ⋯

theorem LE.le.hom.congr_simp E1 #

∀ {X : Type u_1} [inst : Preorder X] {x y : X} (h : x ≤ y), h.hom = h.hom

theorem CategoryTheory.Subobject.ofLEMk.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (X : CategoryTheory.Subobject B) (f f_1 : A ⟶ B)
  (e_f : f = f_1) [inst_1 : CategoryTheory.Mono f] (h : X ≤ CategoryTheory.Subobject.mk f),
  X.ofLEMk f h = X.ofLEMk f_1 ⋯

theorem CategoryTheory.Subobject.ofLE.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} (X Y : CategoryTheory.Subobject B) (h : X ≤ Y),
  X.ofLE Y h = X.ofLE Y h

theorem CategoryTheory.Subobject.isoOfMkEqMk.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f f_1 : A₁ ⟶ B) (e_f : f = f_1)
  (g g_1 : A₂ ⟶ B) (e_g : g = g_1) [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g]
  (h : CategoryTheory.Subobject.mk f = CategoryTheory.Subobject.mk g),
  CategoryTheory.Subobject.isoOfMkEqMk f g h = CategoryTheory.Subobject.isoOfMkEqMk f_1 g_1 ⋯

def CategoryTheory.Subobject E1 #

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

The category of subobjects of X : C, defined as isomorphism classes of monomorphisms into X.

instance CategoryTheory.instPartialOrderSubobject E0 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → (X : C) → PartialOrder (CategoryTheory.Subobject X)

theorem CategoryTheory.Subobject.skeletal E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (X : C),
  CategoryTheory.Skeletal (CategoryTheory.Subobject X)

def CategoryTheory.Subobject.mk E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X A : C} → (f : A ⟶ X) → [CategoryTheory.Mono f] → CategoryTheory.Subobject X

Convenience constructor for a subobject.

theorem CategoryTheory.Comma.ext E1 #

∀ {A : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} A} {B : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} B}
  {T : Type u₃} {inst_2 : CategoryTheory.Category.{v₃, u₃} T} {L : CategoryTheory.Functor A T}
  {R : CategoryTheory.Functor B T} {x y : CategoryTheory.Comma L R},
  x.left = y.left → x.right = y.right → x.hom ≍ y.hom → x = y

theorem CategoryTheory.Comma.ext_iff E0 #

∀ {A : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} A} {B : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} B}
  {T : Type u₃} {inst_2 : CategoryTheory.Category.{v₃, u₃} T} {L : CategoryTheory.Functor A T}
  {R : CategoryTheory.Functor B T} {x y : CategoryTheory.Comma L R},
  x = y ↔ x.left = y.left ∧ x.right = y.right ∧ x.hom ≍ y.hom

theorem CategoryTheory.Subobject.ind E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (p : CategoryTheory.Subobject X → Prop),
  (∀ ⦃A : C⦄ (f : A ⟶ X) [inst_1 : CategoryTheory.Mono f], p (CategoryTheory.Subobject.mk f)) →
    ∀ (P : CategoryTheory.Subobject X), p P

theorem CategoryTheory.Subobject.ind₂ E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C}
  (p : CategoryTheory.Subobject X → CategoryTheory.Subobject X → Prop),
  (∀ ⦃A B : C⦄ (f : A ⟶ X) (g : B ⟶ X) [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g],
      p (CategoryTheory.Subobject.mk f) (CategoryTheory.Subobject.mk g)) →
    ∀ (P Q : CategoryTheory.Subobject X), p P Q

def CategoryTheory.Subobject.lift E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {α : Sort u_1} →
      {X : C} →
        (F : ⦃A : C⦄ → (f : A ⟶ X) → [CategoryTheory.Mono f] → α) →
          (∀ ⦃A B : C⦄ (f : A ⟶ X) (g : B ⟶ X) [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g]
              (i : A ≅ B), CategoryTheory.CategoryStruct.comp i.hom g = f → F f = F g) →
            CategoryTheory.Subobject X → α

Declare a function on subobjects of X by specifying a function on monomorphisms with codomain X.

theorem CategoryTheory.Subobject.lift_mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {α : Sort u_1} {X : C}
  (F : ⦃A : C⦄ → (f : A ⟶ X) → [CategoryTheory.Mono f] → α)
  {h :
    ∀ ⦃A B : C⦄ (f : A ⟶ X) (g : B ⟶ X) [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g] (i : A ≅ B),
      CategoryTheory.CategoryStruct.comp i.hom g = f → F f = F g}
  {A : C} (f : A ⟶ X) [inst_1 : CategoryTheory.Mono f],
  CategoryTheory.Subobject.lift F h (CategoryTheory.Subobject.mk f) = F f

def CategoryTheory.Subobject.equivMonoOver E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] → (X : C) → CategoryTheory.Subobject X ≌ CategoryTheory.MonoOver X

The category of subobjects is equivalent to the MonoOver category. It is more convenient to use the former due to the partial order instance, but oftentimes it is easier to define structures on the latter.

def CategoryTheory.Subobject.representative E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} → CategoryTheory.Functor (CategoryTheory.Subobject X) (CategoryTheory.MonoOver X)

Use choice to pick a representative MonoOver X for each Subobject X.

instance CategoryTheory.Subobject.instIsEquivalenceMonoOverRepresentative E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C},
  CategoryTheory.Subobject.representative.IsEquivalence

def CategoryTheory.Subobject.representativeIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      (A : CategoryTheory.MonoOver X) →
        CategoryTheory.Subobject.representative.obj
            ((CategoryTheory.toThinSkeleton (CategoryTheory.MonoOver X)).obj A) ≅
          A

Starting with A : MonoOver X, we can take its equivalence class in Subobject X then pick an arbitrary representative using representative.obj. This is isomorphic (in MonoOver X) to the original A.

theorem CategoryTheory.Subobject.thinSkeleton_mk_representative_eq_self E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (A : CategoryTheory.Subobject X),
  CategoryTheory.ThinSkeleton.mk (CategoryTheory.Subobject.representative.obj A) = A

def CategoryTheory.Subobject.underlying E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] → {X : C} → CategoryTheory.Functor (CategoryTheory.Subobject X) C

Use choice to pick a representative underlying object in C for any Subobject X.

Prefer to use the coercion P : C rather than explicitly writing underlying.obj P.

instance CategoryTheory.Subobject.instCoeOut E0 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → {X : C} → CoeOut (CategoryTheory.Subobject X) C

def CategoryTheory.Subobject.underlyingIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      (f : X ⟶ Y) →
        [inst_1 : CategoryTheory.Mono f] → CategoryTheory.Subobject.underlying.obj (CategoryTheory.Subobject.mk f) ≅ X

If we construct a Subobject Y from an explicit f : X ⟶ Y with [Mono f], then pick an arbitrary choice of underlying object (Subobject.mk f : C) back in C, it is isomorphic (in C) to the original X.

def CategoryTheory.Subobject.arrow E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} → (Y : CategoryTheory.Subobject X) → CategoryTheory.Subobject.underlying.obj Y ⟶ X

The morphism in C from the arbitrarily chosen underlying object to the ambient object.

instance CategoryTheory.Subobject.arrow_mono E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (Y : CategoryTheory.Subobject X),
  CategoryTheory.Mono Y.arrow

theorem CategoryTheory.Subobject.arrow_congr E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A : C} (X Y : CategoryTheory.Subobject A) (h : X = Y),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯) Y.arrow = X.arrow

theorem CategoryTheory.Subobject.representative_coe E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (Y : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.representative.obj Y).obj.left = CategoryTheory.Subobject.underlying.obj Y

theorem CategoryTheory.Subobject.representative_arrow E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (Y : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.representative.obj Y).arrow = Y.arrow

theorem CategoryTheory.Subobject.underlying_arrow_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {Y Z : CategoryTheory.Subobject X} (f : Y ⟶ Z)
  {Z_1 : C} (h : X ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.underlying.map f)
      (CategoryTheory.CategoryStruct.comp Z.arrow h) =
    CategoryTheory.CategoryStruct.comp Y.arrow h

theorem CategoryTheory.Subobject.underlying_arrow E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {Y Z : CategoryTheory.Subobject X} (f : Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.underlying.map f) Z.arrow = Y.arrow

theorem CategoryTheory.Subobject.underlyingIso_arrow_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y) [inst_1 : CategoryTheory.Mono f]
  {Z : C} (h : Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.underlyingIso f).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.mk f).arrow h) =
    CategoryTheory.CategoryStruct.comp f h

theorem CategoryTheory.Subobject.underlyingIso_arrow E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y) [inst_1 : CategoryTheory.Mono f],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.underlyingIso f).inv
      (CategoryTheory.Subobject.mk f).arrow =
    f

theorem CategoryTheory.Subobject.underlyingIso_arrow_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y) [inst_1 : CategoryTheory.Mono f]
  {F : C → C → Type uF} {carrier : C → Type w} {instFunLike : (X Y : C) → FunLike (F X Y) (carrier X) (carrier Y)}
  [inst_2 : CategoryTheory.ConcreteCategory C F] (x : carrier X),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Subobject.mk f).arrow)
      ((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Subobject.underlyingIso f).inv) x) =
    (CategoryTheory.ConcreteCategory.hom f) x

theorem CategoryTheory.Subobject.underlyingIso_hom_comp_eq_mk_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y) [inst_1 : CategoryTheory.Mono f]
  {Z : C} (h : Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.underlyingIso f).hom
      (CategoryTheory.CategoryStruct.comp f h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.mk f).arrow h

theorem CategoryTheory.Subobject.underlyingIso_hom_comp_eq_mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y) [inst_1 : CategoryTheory.Mono f],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.underlyingIso f).hom f =
    (CategoryTheory.Subobject.mk f).arrow

theorem CategoryTheory.Subobject.mk_le_mk_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} {f₁ : A₁ ⟶ B} {f₂ : A₂ ⟶ B}
  [inst_1 : CategoryTheory.Mono f₁] [inst_2 : CategoryTheory.Mono f₂] (g : A₁ ⟶ A₂),
  CategoryTheory.CategoryStruct.comp g f₂ = f₁ → CategoryTheory.Subobject.mk f₁ ≤ CategoryTheory.Subobject.mk f₂

theorem CategoryTheory.Subobject.mk_arrow E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (P : CategoryTheory.Subobject X),
  CategoryTheory.Subobject.mk P.arrow = P

theorem CategoryTheory.Subobject.le_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} {X Y : CategoryTheory.Subobject B}
  (f : CategoryTheory.Subobject.underlying.obj X ⟶ CategoryTheory.Subobject.underlying.obj Y),
  CategoryTheory.CategoryStruct.comp f Y.arrow = X.arrow → X ≤ Y

theorem CategoryTheory.Subobject.le_mk_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} {X : CategoryTheory.Subobject B} {f : A ⟶ B}
  [inst_1 : CategoryTheory.Mono f] (g : CategoryTheory.Subobject.underlying.obj X ⟶ A),
  CategoryTheory.CategoryStruct.comp g f = X.arrow → X ≤ CategoryTheory.Subobject.mk f

theorem CategoryTheory.Subobject.mk_le_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} {X : CategoryTheory.Subobject B} {f : A ⟶ B}
  [inst_1 : CategoryTheory.Mono f] (g : A ⟶ CategoryTheory.Subobject.underlying.obj X),
  CategoryTheory.CategoryStruct.comp g X.arrow = f → CategoryTheory.Subobject.mk f ≤ X

theorem CategoryTheory.Subobject.mk_eq_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} {X : CategoryTheory.Subobject B} (f : A ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (i : A ≅ CategoryTheory.Subobject.underlying.obj X),
  CategoryTheory.CategoryStruct.comp i.hom X.arrow = f → CategoryTheory.Subobject.mk f = X

To show that two subobjects are equal, it suffices to exhibit an isomorphism commuting with the arrows.

theorem CategoryTheory.Subobject.mk_eq_mk_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f : A₁ ⟶ B) (g : A₂ ⟶ B)
  [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g] (i : A₁ ≅ A₂),
  CategoryTheory.CategoryStruct.comp i.hom g = f → CategoryTheory.Subobject.mk f = CategoryTheory.Subobject.mk g

To show that two subobjects are equal, it suffices to exhibit an isomorphism commuting with the arrows.

theorem CategoryTheory.Subobject.mk_surjective E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (S : CategoryTheory.Subobject X),
  ∃ A i, ∃ (x : CategoryTheory.Mono i), S = CategoryTheory.Subobject.mk i

def CategoryTheory.Subobject.ofLE E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {B : C} →
      (X Y : CategoryTheory.Subobject B) →
        X ≤ Y → (CategoryTheory.Subobject.underlying.obj X ⟶ CategoryTheory.Subobject.underlying.obj Y)

An inequality of subobjects is witnessed by some morphism between the corresponding objects.

theorem CategoryTheory.Subobject.ofLE_arrow E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} {X Y : CategoryTheory.Subobject B} (h : X ≤ Y),
  CategoryTheory.CategoryStruct.comp (X.ofLE Y h) Y.arrow = X.arrow

theorem CategoryTheory.Subobject.ofLE_arrow_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} {X Y : CategoryTheory.Subobject B} (h : X ≤ Y)
  {Z : C} (h_1 : B ⟶ Z),
  CategoryTheory.CategoryStruct.comp (X.ofLE Y h) (CategoryTheory.CategoryStruct.comp Y.arrow h_1) =
    CategoryTheory.CategoryStruct.comp X.arrow h_1

instance CategoryTheory.Subobject.instMonoOfLE E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} (X Y : CategoryTheory.Subobject B) (h : X ≤ Y),
  CategoryTheory.Mono (X.ofLE Y h)

theorem CategoryTheory.Subobject.ofLE_mk_le_mk_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} {f₁ : A₁ ⟶ B} {f₂ : A₂ ⟶ B}
  [inst_1 : CategoryTheory.Mono f₁] [inst_2 : CategoryTheory.Mono f₂] (g : A₁ ⟶ A₂)
  (w : CategoryTheory.CategoryStruct.comp g f₂ = f₁),
  (CategoryTheory.Subobject.mk f₁).ofLE (CategoryTheory.Subobject.mk f₂) ⋯ =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.underlyingIso f₁).hom
      (CategoryTheory.CategoryStruct.comp g (CategoryTheory.Subobject.underlyingIso f₂).inv)

def CategoryTheory.Subobject.ofLEMk E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {B A : C} →
      (X : CategoryTheory.Subobject B) →
        (f : A ⟶ B) →
          [inst_1 : CategoryTheory.Mono f] →
            X ≤ CategoryTheory.Subobject.mk f → (CategoryTheory.Subobject.underlying.obj X ⟶ A)

An inequality of subobjects is witnessed by some morphism between the corresponding objects.

instance CategoryTheory.Subobject.instMonoOfLEMk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (X : CategoryTheory.Subobject B) (f : A ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (h : X ≤ CategoryTheory.Subobject.mk f), CategoryTheory.Mono (X.ofLEMk f h)

theorem CategoryTheory.Subobject.ofLEMk_comp E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} {X : CategoryTheory.Subobject B} {f : A ⟶ B}
  [inst_1 : CategoryTheory.Mono f] (h : X ≤ CategoryTheory.Subobject.mk f),
  CategoryTheory.CategoryStruct.comp (X.ofLEMk f h) f = X.arrow

def CategoryTheory.Subobject.ofMkLE E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {B A : C} →
      (f : A ⟶ B) →
        [inst_1 : CategoryTheory.Mono f] →
          (X : CategoryTheory.Subobject B) →
            CategoryTheory.Subobject.mk f ≤ X → (A ⟶ CategoryTheory.Subobject.underlying.obj X)

An inequality of subobjects is witnessed by some morphism between the corresponding objects.

instance CategoryTheory.Subobject.instMonoOfMkLE E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (f : A ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (X : CategoryTheory.Subobject B) (h : CategoryTheory.Subobject.mk f ≤ X),
  CategoryTheory.Mono (CategoryTheory.Subobject.ofMkLE f X h)

theorem CategoryTheory.Subobject.ofMkLE_arrow E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} {f : A ⟶ B} [inst_1 : CategoryTheory.Mono f]
  {X : CategoryTheory.Subobject B} (h : CategoryTheory.Subobject.mk f ≤ X),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE f X h) X.arrow = f

def CategoryTheory.Subobject.ofMkLEMk E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {B A₁ A₂ : C} →
      (f : A₁ ⟶ B) →
        (g : A₂ ⟶ B) →
          [inst_1 : CategoryTheory.Mono f] →
            [inst_2 : CategoryTheory.Mono g] → CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g → (A₁ ⟶ A₂)

An inequality of subobjects is witnessed by some morphism between the corresponding objects.

instance CategoryTheory.Subobject.instMonoOfMkLEMk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f : A₁ ⟶ B) (g : A₂ ⟶ B)
  [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g]
  (h : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g),
  CategoryTheory.Mono (CategoryTheory.Subobject.ofMkLEMk f g h)

theorem CategoryTheory.Subobject.ofMkLEMk_comp E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} {f : A₁ ⟶ B} {g : A₂ ⟶ B}
  [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g]
  (h : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk f g h) g = f

theorem CategoryTheory.Subobject.ofLE_comp_ofLE_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} (X Y Z : CategoryTheory.Subobject B) (h₁ : X ≤ Y)
  (h₂ : Y ≤ Z) {Z_1 : C} (h : CategoryTheory.Subobject.underlying.obj Z ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (X.ofLE Y h₁) (CategoryTheory.CategoryStruct.comp (Y.ofLE Z h₂) h) =
    CategoryTheory.CategoryStruct.comp (X.ofLE Z ⋯) h

theorem CategoryTheory.Subobject.ofLE_comp_ofLE E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} (X Y Z : CategoryTheory.Subobject B) (h₁ : X ≤ Y)
  (h₂ : Y ≤ Z), CategoryTheory.CategoryStruct.comp (X.ofLE Y h₁) (Y.ofLE Z h₂) = X.ofLE Z ⋯

theorem CategoryTheory.Subobject.ofLE_comp_ofLEMk_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (X Y : CategoryTheory.Subobject B) (f : A ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (h₁ : X ≤ Y) (h₂ : Y ≤ CategoryTheory.Subobject.mk f) {Z : C} (h : A ⟶ Z),
  CategoryTheory.CategoryStruct.comp (X.ofLE Y h₁) (CategoryTheory.CategoryStruct.comp (Y.ofLEMk f h₂) h) =
    CategoryTheory.CategoryStruct.comp (X.ofLEMk f ⋯) h

theorem CategoryTheory.Subobject.ofLE_comp_ofLEMk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (X Y : CategoryTheory.Subobject B) (f : A ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (h₁ : X ≤ Y) (h₂ : Y ≤ CategoryTheory.Subobject.mk f),
  CategoryTheory.CategoryStruct.comp (X.ofLE Y h₁) (Y.ofLEMk f h₂) = X.ofLEMk f ⋯

theorem CategoryTheory.Subobject.ofLEMk_comp_ofMkLE E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (X : CategoryTheory.Subobject B) (f : A ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (Y : CategoryTheory.Subobject B) (h₁ : X ≤ CategoryTheory.Subobject.mk f)
  (h₂ : CategoryTheory.Subobject.mk f ≤ Y),
  CategoryTheory.CategoryStruct.comp (X.ofLEMk f h₁) (CategoryTheory.Subobject.ofMkLE f Y h₂) = X.ofLE Y ⋯

theorem CategoryTheory.Subobject.ofLEMk_comp_ofMkLE_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (X : CategoryTheory.Subobject B) (f : A ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (Y : CategoryTheory.Subobject B) (h₁ : X ≤ CategoryTheory.Subobject.mk f)
  (h₂ : CategoryTheory.Subobject.mk f ≤ Y) {Z : C} (h : CategoryTheory.Subobject.underlying.obj Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (X.ofLEMk f h₁)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE f Y h₂) h) =
    CategoryTheory.CategoryStruct.comp (X.ofLE Y ⋯) h

theorem CategoryTheory.Subobject.ofLEMk_comp_ofMkLEMk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (X : CategoryTheory.Subobject B) (f : A₁ ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (g : A₂ ⟶ B) [inst_2 : CategoryTheory.Mono g]
  (h₁ : X ≤ CategoryTheory.Subobject.mk f) (h₂ : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g),
  CategoryTheory.CategoryStruct.comp (X.ofLEMk f h₁) (CategoryTheory.Subobject.ofMkLEMk f g h₂) = X.ofLEMk g ⋯

theorem CategoryTheory.Subobject.ofLEMk_comp_ofMkLEMk_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (X : CategoryTheory.Subobject B) (f : A₁ ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (g : A₂ ⟶ B) [inst_2 : CategoryTheory.Mono g]
  (h₁ : X ≤ CategoryTheory.Subobject.mk f) (h₂ : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g) {Z : C}
  (h : A₂ ⟶ Z),
  CategoryTheory.CategoryStruct.comp (X.ofLEMk f h₁)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk f g h₂) h) =
    CategoryTheory.CategoryStruct.comp (X.ofLEMk g ⋯) h

theorem CategoryTheory.Subobject.ofMkLE_comp_ofLE E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ : C} (f : A₁ ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (X Y : CategoryTheory.Subobject B) (h₁ : CategoryTheory.Subobject.mk f ≤ X) (h₂ : X ≤ Y),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE f X h₁) (X.ofLE Y h₂) =
    CategoryTheory.Subobject.ofMkLE f Y ⋯

theorem CategoryTheory.Subobject.ofMkLE_comp_ofLE_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ : C} (f : A₁ ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (X Y : CategoryTheory.Subobject B) (h₁ : CategoryTheory.Subobject.mk f ≤ X) (h₂ : X ≤ Y) {Z : C}
  (h : CategoryTheory.Subobject.underlying.obj Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE f X h₁)
      (CategoryTheory.CategoryStruct.comp (X.ofLE Y h₂) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE f Y ⋯) h

theorem CategoryTheory.Subobject.ofMkLE_comp_ofLEMk_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f : A₁ ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (X : CategoryTheory.Subobject B) (g : A₂ ⟶ B) [inst_2 : CategoryTheory.Mono g]
  (h₁ : CategoryTheory.Subobject.mk f ≤ X) (h₂ : X ≤ CategoryTheory.Subobject.mk g) {Z : C} (h : A₂ ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE f X h₁)
      (CategoryTheory.CategoryStruct.comp (X.ofLEMk g h₂) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk f g ⋯) h

theorem CategoryTheory.Subobject.ofMkLE_comp_ofLEMk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f : A₁ ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (X : CategoryTheory.Subobject B) (g : A₂ ⟶ B) [inst_2 : CategoryTheory.Mono g]
  (h₁ : CategoryTheory.Subobject.mk f ≤ X) (h₂ : X ≤ CategoryTheory.Subobject.mk g),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE f X h₁) (X.ofLEMk g h₂) =
    CategoryTheory.Subobject.ofMkLEMk f g ⋯

theorem CategoryTheory.Subobject.ofMkLEMk_comp_ofMkLE E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f : A₁ ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (g : A₂ ⟶ B) [inst_2 : CategoryTheory.Mono g] (X : CategoryTheory.Subobject B)
  (h₁ : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g) (h₂ : CategoryTheory.Subobject.mk g ≤ X),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk f g h₁)
      (CategoryTheory.Subobject.ofMkLE g X h₂) =
    CategoryTheory.Subobject.ofMkLE f X ⋯

theorem CategoryTheory.Subobject.ofMkLEMk_comp_ofMkLE_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f : A₁ ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (g : A₂ ⟶ B) [inst_2 : CategoryTheory.Mono g] (X : CategoryTheory.Subobject B)
  (h₁ : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g) (h₂ : CategoryTheory.Subobject.mk g ≤ X) {Z : C}
  (h : CategoryTheory.Subobject.underlying.obj X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk f g h₁)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE g X h₂) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLE f X ⋯) h

theorem CategoryTheory.Subobject.ofMkLEMk_comp_ofMkLEMk_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ A₃ : C} (f : A₁ ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (g : A₂ ⟶ B) [inst_2 : CategoryTheory.Mono g] (h : A₃ ⟶ B)
  [inst_3 : CategoryTheory.Mono h] (h₁ : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g)
  (h₂ : CategoryTheory.Subobject.mk g ≤ CategoryTheory.Subobject.mk h) {Z : C} (h_1 : A₃ ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk f g h₁)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk g h h₂) h_1) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk f h ⋯) h_1

theorem CategoryTheory.Subobject.ofMkLEMk_comp_ofMkLEMk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ A₃ : C} (f : A₁ ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (g : A₂ ⟶ B) [inst_2 : CategoryTheory.Mono g] (h : A₃ ⟶ B)
  [inst_3 : CategoryTheory.Mono h] (h₁ : CategoryTheory.Subobject.mk f ≤ CategoryTheory.Subobject.mk g)
  (h₂ : CategoryTheory.Subobject.mk g ≤ CategoryTheory.Subobject.mk h),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Subobject.ofMkLEMk f g h₁)
      (CategoryTheory.Subobject.ofMkLEMk g h h₂) =
    CategoryTheory.Subobject.ofMkLEMk f h ⋯

theorem CategoryTheory.Subobject.ofLE_refl E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} (X : CategoryTheory.Subobject B),
  X.ofLE X ⋯ = CategoryTheory.CategoryStruct.id (CategoryTheory.Subobject.underlying.obj X)

theorem CategoryTheory.Subobject.ofMkLEMk_refl E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ : C} (f : A₁ ⟶ B) [inst_1 : CategoryTheory.Mono f],
  CategoryTheory.Subobject.ofMkLEMk f f ⋯ = CategoryTheory.CategoryStruct.id A₁

def CategoryTheory.Subobject.isoOfEq E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {B : C} →
      (X Y : CategoryTheory.Subobject B) →
        X = Y → (CategoryTheory.Subobject.underlying.obj X ≅ CategoryTheory.Subobject.underlying.obj Y)

An equality of subobjects gives an isomorphism of the corresponding objects. (One could use underlying.mapIso (eqToIso h) here, but this is more readable.)

theorem CategoryTheory.Subobject.isoOfEq_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} (X Y : CategoryTheory.Subobject B) (h : X = Y),
  (X.isoOfEq Y h).hom = X.ofLE Y ⋯

theorem CategoryTheory.Subobject.isoOfEq_inv E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B : C} (X Y : CategoryTheory.Subobject B) (h : X = Y),
  (X.isoOfEq Y h).inv = Y.ofLE X ⋯

def CategoryTheory.Subobject.isoOfEqMk E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {B A : C} →
      (X : CategoryTheory.Subobject B) →
        (f : A ⟶ B) →
          [inst_1 : CategoryTheory.Mono f] →
            X = CategoryTheory.Subobject.mk f → (CategoryTheory.Subobject.underlying.obj X ≅ A)

An equality of subobjects gives an isomorphism of the corresponding objects.

theorem CategoryTheory.Subobject.isoOfEqMk_inv E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (X : CategoryTheory.Subobject B) (f : A ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (h : X = CategoryTheory.Subobject.mk f),
  (X.isoOfEqMk f h).inv = CategoryTheory.Subobject.ofMkLE f X ⋯

theorem CategoryTheory.Subobject.isoOfEqMk_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (X : CategoryTheory.Subobject B) (f : A ⟶ B)
  [inst_1 : CategoryTheory.Mono f] (h : X = CategoryTheory.Subobject.mk f), (X.isoOfEqMk f h).hom = X.ofLEMk f ⋯

def CategoryTheory.Subobject.isoOfMkEq E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {B A : C} →
      (f : A ⟶ B) →
        [inst_1 : CategoryTheory.Mono f] →
          (X : CategoryTheory.Subobject B) →
            CategoryTheory.Subobject.mk f = X → (A ≅ CategoryTheory.Subobject.underlying.obj X)

An equality of subobjects gives an isomorphism of the corresponding objects.

theorem CategoryTheory.Subobject.isoOfMkEq_inv E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (f : A ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (X : CategoryTheory.Subobject B) (h : CategoryTheory.Subobject.mk f = X),
  (CategoryTheory.Subobject.isoOfMkEq f X h).inv = X.ofLEMk f ⋯

theorem CategoryTheory.Subobject.isoOfMkEq_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A : C} (f : A ⟶ B) [inst_1 : CategoryTheory.Mono f]
  (X : CategoryTheory.Subobject B) (h : CategoryTheory.Subobject.mk f = X),
  (CategoryTheory.Subobject.isoOfMkEq f X h).hom = CategoryTheory.Subobject.ofMkLE f X ⋯

def CategoryTheory.Subobject.isoOfMkEqMk E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {B A₁ A₂ : C} →
      (f : A₁ ⟶ B) →
        (g : A₂ ⟶ B) →
          [inst_1 : CategoryTheory.Mono f] →
            [inst_2 : CategoryTheory.Mono g] → CategoryTheory.Subobject.mk f = CategoryTheory.Subobject.mk g → (A₁ ≅ A₂)

An equality of subobjects gives an isomorphism of the corresponding objects.

theorem CategoryTheory.Subobject.isoOfMkEqMk_hom E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f : A₁ ⟶ B) (g : A₂ ⟶ B)
  [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g]
  (h : CategoryTheory.Subobject.mk f = CategoryTheory.Subobject.mk g),
  (CategoryTheory.Subobject.isoOfMkEqMk f g h).hom = CategoryTheory.Subobject.ofMkLEMk f g ⋯

theorem CategoryTheory.Subobject.isoOfMkEqMk_inv E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {B A₁ A₂ : C} (f : A₁ ⟶ B) (g : A₂ ⟶ B)
  [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g]
  (h : CategoryTheory.Subobject.mk f = CategoryTheory.Subobject.mk g),
  (CategoryTheory.Subobject.isoOfMkEqMk f g h).inv = CategoryTheory.Subobject.ofMkLEMk g f ⋯

theorem CategoryTheory.Subobject.mk_lt_mk_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X A₁ A₂ : C} {i₁ : A₁ ⟶ X} {i₂ : A₂ ⟶ X}
  [inst_1 : CategoryTheory.Mono i₁] [inst_2 : CategoryTheory.Mono i₂] (f : A₁ ⟶ A₂),
  CategoryTheory.CategoryStruct.comp f i₂ = i₁ →
    ¬CategoryTheory.IsIso f → CategoryTheory.Subobject.mk i₁ < CategoryTheory.Subobject.mk i₂

theorem CategoryTheory.Subobject.mk_lt_mk_iff_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X A₁ A₂ : C} {i₁ : A₁ ⟶ X} {i₂ : A₂ ⟶ X}
  [inst_1 : CategoryTheory.Mono i₁] [inst_2 : CategoryTheory.Mono i₂] (f : A₁ ⟶ A₂),
  CategoryTheory.CategoryStruct.comp f i₂ = i₁ →
    (CategoryTheory.Subobject.mk i₁ < CategoryTheory.Subobject.mk i₂ ↔ ¬CategoryTheory.IsIso f)

theorem CategoryTheory.MonoOver.subobjectMk_le_mk_of_hom E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {P Q : CategoryTheory.MonoOver X} (f : P ⟶ Q),
  CategoryTheory.Subobject.mk P.obj.hom ≤ CategoryTheory.Subobject.mk Q.obj.hom

theorem CategoryTheory.MonoOver.isIso_hom_left_iff_subobjectMk_eq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {P Q : CategoryTheory.MonoOver X} (f : P ⟶ Q),
  CategoryTheory.IsIso (CategoryTheory.Over.Hom.left f.hom) ↔
    CategoryTheory.Subobject.mk P.obj.hom = CategoryTheory.Subobject.mk Q.obj.hom

theorem CategoryTheory.MonoOver.isIso_iff_subobjectMk_eq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {P Q : CategoryTheory.MonoOver X} (f : P ⟶ Q),
  CategoryTheory.IsIso f ↔ CategoryTheory.Subobject.mk P.obj.hom = CategoryTheory.Subobject.mk Q.obj.hom

def CategoryTheory.Subobject.lower E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X : C} →
      {D : Type u₂} →
        [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
          {Y : D} →
            CategoryTheory.Functor (CategoryTheory.MonoOver X) (CategoryTheory.MonoOver Y) →
              CategoryTheory.Functor (CategoryTheory.Subobject X) (CategoryTheory.Subobject Y)

Any functor MonoOver X ⥤ MonoOver Y descends to a functor Subobject X ⥤ Subobject Y, because MonoOver Y is thin.

theorem CategoryTheory.Subobject.lower_iso E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C}
  (F₁ F₂ : CategoryTheory.Functor (CategoryTheory.MonoOver X) (CategoryTheory.MonoOver Y)) (h : F₁ ≅ F₂),
  CategoryTheory.Subobject.lower F₁ = CategoryTheory.Subobject.lower F₂

Isomorphic functors become equal when lowered to Subobject. (It's not as evil as usual to talk about equality between functors because the categories are thin and skeletal.)

def CategoryTheory.Subobject.lower₂ E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y Z : C} →
      CategoryTheory.Functor (CategoryTheory.MonoOver X)
          (CategoryTheory.Functor (CategoryTheory.MonoOver Y) (CategoryTheory.MonoOver Z)) →
        CategoryTheory.Functor (CategoryTheory.Subobject X)
          (CategoryTheory.Functor (CategoryTheory.Subobject Y) (CategoryTheory.Subobject Z))

A ternary version of Subobject.lower.

theorem CategoryTheory.Subobject.lower_comm E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C}
  (F : CategoryTheory.Functor (CategoryTheory.MonoOver Y) (CategoryTheory.MonoOver X)),
  (CategoryTheory.toThinSkeleton (CategoryTheory.MonoOver Y)).comp (CategoryTheory.Subobject.lower F) =
    F.comp (CategoryTheory.toThinSkeleton (CategoryTheory.MonoOver X))

def CategoryTheory.Subobject.lowerCompRepresentativeIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      (F : CategoryTheory.Functor (CategoryTheory.MonoOver Y) (CategoryTheory.MonoOver X)) →
        (CategoryTheory.Subobject.lower F).comp CategoryTheory.Subobject.representative ≅
          CategoryTheory.Subobject.representative.comp F

Applying lower F and then representative is isomorphic to first applying representative and then applying F.

def CategoryTheory.Subobject.lowerAdjunction E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {A : C} →
          {B : D} →
            {L : CategoryTheory.Functor (CategoryTheory.MonoOver A) (CategoryTheory.MonoOver B)} →
              {R : CategoryTheory.Functor (CategoryTheory.MonoOver B) (CategoryTheory.MonoOver A)} →
                (L ⊣ R) → (CategoryTheory.Subobject.lower L ⊣ CategoryTheory.Subobject.lower R)

An adjunction between MonoOver A and MonoOver B gives an adjunction between Subobject A and Subobject B.

def CategoryTheory.Subobject.lowerEquivalence E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {A : C} →
          {B : D} →
            (CategoryTheory.MonoOver A ≌ CategoryTheory.MonoOver B) →
              (CategoryTheory.Subobject A ≌ CategoryTheory.Subobject B)

An equivalence between MonoOver A and MonoOver B gives an equivalence between Subobject A and Subobject B.

theorem CategoryTheory.Subobject.lowerEquivalence_counitIso E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {A : C} {B : D} (e : CategoryTheory.MonoOver A ≌ CategoryTheory.MonoOver B),
  (CategoryTheory.Subobject.lowerEquivalence e).counitIso = CategoryTheory.eqToIso ⋯

theorem CategoryTheory.Subobject.lowerEquivalence_unitIso E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {A : C} {B : D} (e : CategoryTheory.MonoOver A ≌ CategoryTheory.MonoOver B),
  (CategoryTheory.Subobject.lowerEquivalence e).unitIso = CategoryTheory.eqToIso ⋯

theorem CategoryTheory.Subobject.lowerEquivalence_inverse E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {A : C} {B : D} (e : CategoryTheory.MonoOver A ≌ CategoryTheory.MonoOver B),
  (CategoryTheory.Subobject.lowerEquivalence e).inverse = CategoryTheory.Subobject.lower e.inverse

theorem CategoryTheory.Subobject.lowerEquivalence_functor E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {A : C} {B : D} (e : CategoryTheory.MonoOver A ≌ CategoryTheory.MonoOver B),
  (CategoryTheory.Subobject.lowerEquivalence e).functor = CategoryTheory.Subobject.lower e.functor

instance CategoryTheory.Subobject.hasLimitsOfShape E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} {J : Type u₃}
  [inst_1 : CategoryTheory.Category.{v₃, u₃} J] [CategoryTheory.Limits.HasLimitsOfShape J (CategoryTheory.Over X)],
  CategoryTheory.Limits.HasLimitsOfShape J (CategoryTheory.Subobject X)

instance CategoryTheory.Subobject.hasFiniteLimits E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C}
  [CategoryTheory.Limits.HasFiniteLimits (CategoryTheory.Over X)],
  CategoryTheory.Limits.HasFiniteLimits (CategoryTheory.Subobject X)

instance CategoryTheory.Subobject.hasLimitsOfSize E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C}
  [CategoryTheory.Limits.HasLimitsOfSize.{w, w', v₁, max u₁ v₁} (CategoryTheory.Over X)],
  CategoryTheory.Limits.HasLimitsOfSize.{w, w', max u₁ v₁, max u₁ v₁} (CategoryTheory.Subobject X)

instance CategoryTheory.Subobject.hasColimitsOfSize E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} [CategoryTheory.Limits.HasCoproducts.{w', v₁, u₁} C]
  [CategoryTheory.Limits.HasStrongEpiMonoFactorisations C],
  CategoryTheory.Limits.HasColimitsOfSize.{w, w', max u₁ v₁, max u₁ v₁} (CategoryTheory.Subobject X)

def CategoryTheory.Subobject.pullback E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      [CategoryTheory.Limits.HasPullbacks C] →
        (X ⟶ Y) → CategoryTheory.Functor (CategoryTheory.Subobject Y) (CategoryTheory.Subobject X)

When C has pullbacks, a morphism f : X ⟶ Y induces a functor Subobject Y ⥤ Subobject X, by pulling back a monomorphism along f.

theorem CategoryTheory.Subobject.pullback_id E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  (x : CategoryTheory.Subobject X), (CategoryTheory.Subobject.pullback (CategoryTheory.CategoryStruct.id X)).obj x = x

theorem CategoryTheory.Subobject.pullback_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  (f : X ⟶ Y) (g : Y ⟶ Z) (x : CategoryTheory.Subobject Z),
  (CategoryTheory.Subobject.pullback (CategoryTheory.CategoryStruct.comp f g)).obj x =
    (CategoryTheory.Subobject.pullback f).obj ((CategoryTheory.Subobject.pullback g).obj x)

theorem CategoryTheory.Subobject.pullback_obj_mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  {A B X Y : C} {f : Y ⟶ X} {i : A ⟶ X} [inst_2 : CategoryTheory.Mono i] {j : B ⟶ Y} [inst_3 : CategoryTheory.Mono j]
  {f' : B ⟶ A},
  CategoryTheory.IsPullback f' j i f →
    (CategoryTheory.Subobject.pullback f).obj (CategoryTheory.Subobject.mk i) = CategoryTheory.Subobject.mk j

theorem CategoryTheory.Subobject.pullback_obj E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Limits.HasPullbacks C] {X Y : C}
  (f : Y ⟶ X) (x : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.pullback f).obj x =
    CategoryTheory.Subobject.mk (CategoryTheory.Limits.pullback.snd x.arrow f)

instance CategoryTheory.Subobject.instFaithfulPullback E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  (f : X ⟶ Y), (CategoryTheory.Subobject.pullback f).Faithful

theorem CategoryTheory.Subobject.isPullback_aux E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  (f : X ⟶ Y) (y : CategoryTheory.Subobject Y),
  ∃ φ, CategoryTheory.IsPullback φ ((CategoryTheory.Subobject.pullback f).obj y).arrow y.arrow f

def CategoryTheory.Subobject.pullbackπ E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      [inst_1 : CategoryTheory.Limits.HasPullbacks C] →
        (f : X ⟶ Y) →
          (y : CategoryTheory.Subobject Y) →
            CategoryTheory.Subobject.underlying.obj ((CategoryTheory.Subobject.pullback f).obj y) ⟶
              CategoryTheory.Subobject.underlying.obj y

For any morphism f : X ⟶ Y and subobject y of Y, Subobject.pullbackπ f y is the first projection in the following pullback square:

(Subobject.pullback f).obj y ----pullbackπ f y---> (y : C)
         |                                            |
((Subobject.pullback f).obj y).arrow               y.arrow
         |                                            |
         v                                            v
         X ---------------------f-------------------> Y

For instance in the category of sets, Subobject.pullbackπ f y is the restriction of f to elements of X that are in the preimage of y ⊆ Y.

theorem CategoryTheory.Subobject.isPullback E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  (f : X ⟶ Y) (y : CategoryTheory.Subobject Y),
  CategoryTheory.IsPullback (CategoryTheory.Subobject.pullbackπ f y) ((CategoryTheory.Subobject.pullback f).obj y).arrow
    y.arrow f

This states that pullbackπ f y indeed forms a pullback square (see Subobject.pullbackπ).

theorem CategoryTheory.Subobject.le_pullback_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  (f : X ⟶ Y) {X' : CategoryTheory.Subobject X} {Y' : CategoryTheory.Subobject Y}
  (u : CategoryTheory.Subobject.underlying.obj X' ⟶ CategoryTheory.Subobject.underlying.obj Y'),
  CategoryTheory.CategoryStruct.comp u Y'.arrow = CategoryTheory.CategoryStruct.comp X'.arrow f →
    X' ≤ (CategoryTheory.Subobject.pullback f).obj Y'

def CategoryTheory.Subobject.map E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      (f : X ⟶ Y) →
        [CategoryTheory.Mono f] → CategoryTheory.Functor (CategoryTheory.Subobject X) (CategoryTheory.Subobject Y)

We can map subobjects of X to subobjects of Y by post-composition with a monomorphism f : X ⟶ Y.

theorem CategoryTheory.Subobject.map_mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {A X Y : C} (i : A ⟶ X) [inst_1 : CategoryTheory.Mono i]
  (f : X ⟶ Y) [inst_2 : CategoryTheory.Mono f],
  (CategoryTheory.Subobject.map f).obj (CategoryTheory.Subobject.mk i) =
    CategoryTheory.Subobject.mk (CategoryTheory.CategoryStruct.comp i f)

theorem CategoryTheory.Subobject.map_id E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C} (x : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.map (CategoryTheory.CategoryStruct.id X)).obj x = x

theorem CategoryTheory.Subobject.map_comp E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z)
  [inst_1 : CategoryTheory.Mono f] [inst_2 : CategoryTheory.Mono g] (x : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.map (CategoryTheory.CategoryStruct.comp f g)).obj x =
    (CategoryTheory.Subobject.map g).obj ((CategoryTheory.Subobject.map f).obj x)

theorem CategoryTheory.Subobject.map_obj_injective E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y) [inst_1 : CategoryTheory.Mono f],
  Function.Injective (CategoryTheory.Subobject.map f).obj

def CategoryTheory.Subobject.mapIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {A B : C} → (A ≅ B) → (CategoryTheory.Subobject A ≌ CategoryTheory.Subobject B)

Isomorphic objects have equivalent subobject lattices.

def CategoryTheory.Subobject.mapIsoToOrderIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} → (X ≅ Y) → CategoryTheory.Subobject X ≃o CategoryTheory.Subobject Y

In fact, there's a type level bijection between the subobjects of isomorphic objects, which preserves the order.

theorem CategoryTheory.Subobject.mapIsoToOrderIso_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (e : X ≅ Y) (a : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.mapIsoToOrderIso e) a = (CategoryTheory.Subobject.map e.hom).obj a

theorem CategoryTheory.Subobject.mapIsoToOrderIso_symm_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (e : X ≅ Y) (a : CategoryTheory.Subobject Y),
  (RelIso.symm (CategoryTheory.Subobject.mapIsoToOrderIso e)) a = (CategoryTheory.Subobject.map e.inv).obj a

def CategoryTheory.Subobject.mapPullbackAdj E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      [inst_1 : CategoryTheory.Limits.HasPullbacks C] →
        (f : X ⟶ Y) →
          [inst_2 : CategoryTheory.Mono f] → CategoryTheory.Subobject.map f ⊣ CategoryTheory.Subobject.pullback f

map f : Subobject X ⥤ Subobject Y is the left adjoint of pullback f : Subobject Y ⥤ Subobject X.

theorem CategoryTheory.Subobject.pullback_map_self E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  (f : X ⟶ Y) [inst_2 : CategoryTheory.Mono f] (g : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.pullback f).obj ((CategoryTheory.Subobject.map f).obj g) = g

theorem CategoryTheory.Subobject.map_pullback E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Limits.HasPullbacks C]
  {X Y Z W : C} {f : X ⟶ Y} {g : X ⟶ Z} {h : Y ⟶ W} {k : Z ⟶ W} [inst_2 : CategoryTheory.Mono h]
  [inst_3 : CategoryTheory.Mono g]
  (comm : CategoryTheory.CategoryStruct.comp f h = CategoryTheory.CategoryStruct.comp g k)
  (t : CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.PullbackCone.mk f g comm)) (p : CategoryTheory.Subobject Y),
  (CategoryTheory.Subobject.map g).obj ((CategoryTheory.Subobject.pullback f).obj p) =
    (CategoryTheory.Subobject.pullback k).obj ((CategoryTheory.Subobject.map h).obj p)

def CategoryTheory.Subobject.exists E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      [CategoryTheory.Limits.HasImages C] →
        (X ⟶ Y) → CategoryTheory.Functor (CategoryTheory.Subobject X) (CategoryTheory.Subobject Y)

The functor from subobjects of X to subobjects of Y given by sending the subobject S to its "image" under f, usually denoted $\exists_f$. For instance, when C is the category of types, viewing Subobject X as Set X this is just Set.image f.

This functor is left adjoint to the pullback f functor (shown in existsPullbackAdj) provided both are defined, and generalises the map f functor, again provided it is defined.

theorem CategoryTheory.Subobject.exists_iso_map E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) [inst_2 : CategoryTheory.Mono f], CategoryTheory.Subobject.exists f = CategoryTheory.Subobject.map f

When f : X ⟶ Y is a monomorphism, exists f agrees with map f.

theorem CategoryTheory.Subobject.exists_eq_mk_of_mono E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) [inst_2 : CategoryTheory.Mono f] (X' : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.exists f).obj X' =
    CategoryTheory.Subobject.mk (CategoryTheory.CategoryStruct.comp X'.arrow f)

theorem CategoryTheory.Subobject.exists_le_exists_iff_of_mono E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) [CategoryTheory.Mono f] (X₁ X₂ : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.exists f).obj X₁ ≤ (CategoryTheory.Subobject.exists f).obj X₂ ↔ X₁ ≤ X₂

def CategoryTheory.Subobject.existsPullbackAdj E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      [inst_1 : CategoryTheory.Limits.HasImages C] →
        (f : X ⟶ Y) →
          [inst_2 : CategoryTheory.Limits.HasPullbacks C] →
            CategoryTheory.Subobject.exists f ⊣ CategoryTheory.Subobject.pullback f

exists f : Subobject X ⥤ Subobject Y is left adjoint to pullback f : Subobject Y ⥤ Subobject X.

theorem CategoryTheory.Subobject.le_pullback_exists E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) [inst_2 : CategoryTheory.Limits.HasPullbacks C] (X' : CategoryTheory.Subobject X),
  X' ≤ (CategoryTheory.Subobject.pullback f).obj ((CategoryTheory.Subobject.exists f).obj X')

theorem CategoryTheory.Subobject.exists_pullback_le E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) [inst_2 : CategoryTheory.Limits.HasPullbacks C] (Y' : CategoryTheory.Subobject Y),
  (CategoryTheory.Subobject.exists f).obj ((CategoryTheory.Subobject.pullback f).obj Y') ≤ Y'

theorem CategoryTheory.Subobject.pullback_exists_eq_self_of_mono E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) [CategoryTheory.Mono f] [inst_3 : CategoryTheory.Limits.HasPullbacks C] (X' : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.pullback f).obj ((CategoryTheory.Subobject.exists f).obj X') = X'

theorem CategoryTheory.Subobject.exists_comp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) (g : Y ⟶ Z) (x : CategoryTheory.Subobject X) [CategoryTheory.Limits.HasPullbacks C],
  (CategoryTheory.Subobject.exists (CategoryTheory.CategoryStruct.comp f g)).obj x =
    (CategoryTheory.Subobject.exists g).obj ((CategoryTheory.Subobject.exists f).obj x)

def CategoryTheory.Subobject.existsCompRepresentativeIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      [inst_1 : CategoryTheory.Limits.HasImages C] →
        (f : X ⟶ Y) →
          (CategoryTheory.Subobject.exists f).comp CategoryTheory.Subobject.representative ≅
            CategoryTheory.Subobject.representative.comp (CategoryTheory.MonoOver.exists f)

Taking representatives and then MonoOver.exists is isomorphic to taking Subobject.exists and then taking representatives.

def CategoryTheory.Subobject.existsIsoImage E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      [inst_1 : CategoryTheory.Limits.HasImages C] →
        (f : X ⟶ Y) →
          (x : CategoryTheory.Subobject X) →
            CategoryTheory.Subobject.underlying.obj ((CategoryTheory.Subobject.exists f).obj x) ≅
              CategoryTheory.Limits.image (CategoryTheory.CategoryStruct.comp x.arrow f)

exists f applied to a subobject x is isomorphic to the image of x.arrow ≫ f.

def CategoryTheory.Subobject.imageFactorisation E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {X Y : C} →
      [CategoryTheory.Limits.HasImages C] →
        (f : X ⟶ Y) →
          (x : CategoryTheory.Subobject X) →
            CategoryTheory.Limits.ImageFactorisation (CategoryTheory.CategoryStruct.comp x.arrow f)

Given a subobject x, the ImageFactorisation of x.arrow ≫ f through (exists f).obj x.

theorem CategoryTheory.Subobject.imageFactorisation_F_m E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) (x : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.imageFactorisation f x).F.m = ((CategoryTheory.Subobject.exists f).obj x).arrow

theorem CategoryTheory.Subobject.imageFactorisation_F_I E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) (x : CategoryTheory.Subobject X),
  (CategoryTheory.Subobject.imageFactorisation f x).F.I =
    CategoryTheory.Subobject.underlying.obj ((CategoryTheory.Subobject.exists f).obj x)

theorem CategoryTheory.Subobject.exists_le_of_comm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} [inst_1 : CategoryTheory.Limits.HasImages C]
  (f : X ⟶ Y) {X' : CategoryTheory.Subobject X} {Y' : CategoryTheory.Subobject Y}
  (u : CategoryTheory.Subobject.underlying.obj X' ⟶ CategoryTheory.Subobject.underlying.obj Y'),
  CategoryTheory.CategoryStruct.comp u Y'.arrow = CategoryTheory.CategoryStruct.comp X'.arrow f →
    (CategoryTheory.Subobject.exists f).obj X' ≤ Y'