The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Shapes.KernelPair
24 declarations. Mathlib docs · Source
Kernel pairs
This file defines what it means for a parallel pair of morphisms a b : R ⟶ X to be the kernel pair
for a morphism f.
Some properties of kernel pairs are given, namely allowing one to transfer between
the kernel pair of f₁ ≫ f₂ to the kernel pair of f₁.
It is also proved that if f is a coequalizer of some pair, and a,b is a kernel pair for f
then it is a coequalizer of a,b.
Implementation
The definition is essentially just a wrapper for IsLimit (PullbackCone.mk _ _ _), but the
constructions given here are useful, yet awkward to present in that language, so a basic API
is developed here.
TODO
- Internal equivalence relations (or congruences) and the fact that every kernel pair induces one, and the converse in an effective regular category (WIP by b-mehta).
theorem CategoryTheory.IsKernelPair.lift.congr_simp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f f_1 : X ⟶ Y} (e_f : f = f_1) {a a_1 : R ⟶ X}
(e_a : a = a_1) {b b_1 : R ⟶ X} (e_b : b = b_1) {S : C} (k : CategoryTheory.IsKernelPair f a b) (p p_1 : S ⟶ X)
(e_p : p = p_1) (q q_1 : S ⟶ X) (e_q : q = q_1)
(w : CategoryTheory.CategoryStruct.comp p f = CategoryTheory.CategoryStruct.comp q f), k.lift p q w = ⋯.lift p_1 q_1 ⋯
abbrev CategoryTheory.IsKernelPair E1 #
{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → {R X Y : C} → (X ⟶ Y) → (R ⟶ X) → (R ⟶ X) → Prop
IsKernelPair f a b expresses that (a, b) is a kernel pair for f, i.e. a ≫ f = b ≫ f
and the square
R → X
↓ ↓
X → Y
is a pullback square.
This is just an abbreviation for IsPullback a b f f.
instance CategoryTheory.IsKernelPair.instSubsingleton E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} (f : X ⟶ Y) (a b : R ⟶ X),
Subsingleton (CategoryTheory.IsKernelPair f a b)
The data expressing that (a, b) is a kernel pair is subsingleton.
theorem CategoryTheory.IsKernelPair.id_of_mono E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y) [CategoryTheory.Mono f],
CategoryTheory.IsKernelPair f (CategoryTheory.CategoryStruct.id X) (CategoryTheory.CategoryStruct.id X)
If f is a monomorphism, then (𝟙 _, 𝟙 _) is a kernel pair for f.
instance CategoryTheory.IsKernelPair.instInhabitedIdOfMono E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{X Y : C} →
(f : X ⟶ Y) →
[CategoryTheory.Mono f] →
Inhabited
(CategoryTheory.IsKernelPair f (CategoryTheory.CategoryStruct.id X) (CategoryTheory.CategoryStruct.id X))
def CategoryTheory.IsKernelPair.lift E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{R X Y : C} →
{f : X ⟶ Y} →
{a b : R ⟶ X} →
{S : C} →
CategoryTheory.IsKernelPair f a b →
(p q : S ⟶ X) → CategoryTheory.CategoryStruct.comp p f = CategoryTheory.CategoryStruct.comp q f → (S ⟶ R)
Given a pair of morphisms p, q to X which factor through f, they factor through any kernel
pair of f.
theorem CategoryTheory.IsKernelPair.lift_fst_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a b : R ⟶ X} {S : C}
(k : CategoryTheory.IsKernelPair f a b) (p q : S ⟶ X)
(w : CategoryTheory.CategoryStruct.comp p f = CategoryTheory.CategoryStruct.comp q f) {Z : C} (h : X ⟶ Z),
CategoryTheory.CategoryStruct.comp (k.lift p q w) (CategoryTheory.CategoryStruct.comp a h) =
CategoryTheory.CategoryStruct.comp p h
theorem CategoryTheory.IsKernelPair.lift_fst E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a b : R ⟶ X} {S : C}
(k : CategoryTheory.IsKernelPair f a b) (p q : S ⟶ X)
(w : CategoryTheory.CategoryStruct.comp p f = CategoryTheory.CategoryStruct.comp q f),
CategoryTheory.CategoryStruct.comp (k.lift p q w) a = p
theorem CategoryTheory.IsKernelPair.lift_snd_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a b : R ⟶ X} {S : C}
(k : CategoryTheory.IsKernelPair f a b) (p q : S ⟶ X)
(w : CategoryTheory.CategoryStruct.comp p f = CategoryTheory.CategoryStruct.comp q f) {Z : C} (h : X ⟶ Z),
CategoryTheory.CategoryStruct.comp (k.lift p q w) (CategoryTheory.CategoryStruct.comp b h) =
CategoryTheory.CategoryStruct.comp q h
theorem CategoryTheory.IsKernelPair.lift_snd E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a b : R ⟶ X} {S : C}
(k : CategoryTheory.IsKernelPair f a b) (p q : S ⟶ X)
(w : CategoryTheory.CategoryStruct.comp p f = CategoryTheory.CategoryStruct.comp q f),
CategoryTheory.CategoryStruct.comp (k.lift p q w) b = q
def CategoryTheory.IsKernelPair.lift' E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{R X Y : C} →
{f : X ⟶ Y} →
{a b : R ⟶ X} →
{S : C} →
CategoryTheory.IsKernelPair f a b →
(p q : S ⟶ X) →
CategoryTheory.CategoryStruct.comp p f = CategoryTheory.CategoryStruct.comp q f →
{ t // CategoryTheory.CategoryStruct.comp t a = p ∧ CategoryTheory.CategoryStruct.comp t b = q }
Given a pair of morphisms p, q to X which factor through f, they factor through any kernel
pair of f.
theorem CategoryTheory.IsKernelPair.cancel_right E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y Z : C} {a b : R ⟶ X} {f₁ : X ⟶ Y} {f₂ : Y ⟶ Z},
CategoryTheory.CategoryStruct.comp a f₁ = CategoryTheory.CategoryStruct.comp b f₁ →
CategoryTheory.IsKernelPair (CategoryTheory.CategoryStruct.comp f₁ f₂) a b → CategoryTheory.IsKernelPair f₁ a b
If (a,b) is a kernel pair for f₁ ≫ f₂ and a ≫ f₁ = b ≫ f₁, then (a,b) is a kernel pair for
just f₁.
That is, to show that (a,b) is a kernel pair for f₁ it suffices to only show the square
commutes, rather than to additionally show it's a pullback.
theorem CategoryTheory.IsKernelPair.cancel_right_of_mono E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y Z : C} {a b : R ⟶ X} {f₁ : X ⟶ Y} {f₂ : Y ⟶ Z}
[CategoryTheory.Mono f₂],
CategoryTheory.IsKernelPair (CategoryTheory.CategoryStruct.comp f₁ f₂) a b → CategoryTheory.IsKernelPair f₁ a b
If (a,b) is a kernel pair for f₁ ≫ f₂ and f₂ is mono, then (a,b) is a kernel pair for
just f₁.
The converse of comp_of_mono.
theorem CategoryTheory.IsKernelPair.comp_of_mono E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y Z : C} {a b : R ⟶ X} {f₁ : X ⟶ Y} {f₂ : Y ⟶ Z}
[CategoryTheory.Mono f₂],
CategoryTheory.IsKernelPair f₁ a b → CategoryTheory.IsKernelPair (CategoryTheory.CategoryStruct.comp f₁ f₂) a b
If (a,b) is a kernel pair for f₁ and f₂ is mono, then (a,b) is a kernel pair for f₁ ≫ f₂.
The converse of cancel_right_of_mono.
def CategoryTheory.IsKernelPair.toCoequalizer E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{R X Y : C} →
{f : X ⟶ Y} →
{a b : R ⟶ X} →
(k : CategoryTheory.IsKernelPair f a b) →
CategoryTheory.RegularEpi f → CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.Cofork.ofπ f ⋯)
If (a,b) is the kernel pair of f, and f is a coequalizer morphism for some parallel pair, then
f is a coequalizer morphism of a and b.
def CategoryTheory.IsKernelPair.toCoequalizer' E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{R X Y : C} →
{f : X ⟶ Y} →
{a b : R ⟶ X} →
(k : CategoryTheory.IsKernelPair f a b) →
[CategoryTheory.IsRegularEpi f] → CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.Cofork.ofπ f ⋯)
If (a,b) is the kernel pair of f, and f is a regular epimorphism, then
f is a coequalizer morphism of a and b.
theorem CategoryTheory.IsKernelPair.pullback E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z A : C} {g : Y ⟶ Z} {a₁ a₂ : A ⟶ Y}
(h : CategoryTheory.IsKernelPair g a₁ a₂) (f : X ⟶ Z) [inst_1 : CategoryTheory.Limits.HasPullback f g]
[inst_2 : CategoryTheory.Limits.HasPullback f (CategoryTheory.CategoryStruct.comp a₁ g)],
CategoryTheory.IsKernelPair (CategoryTheory.Limits.pullback.fst f g)
(CategoryTheory.Limits.pullback.map f (CategoryTheory.CategoryStruct.comp a₁ g) f g
(CategoryTheory.CategoryStruct.id X) a₁ (CategoryTheory.CategoryStruct.id Z) ⋯ ⋯)
(CategoryTheory.Limits.pullback.map f (CategoryTheory.CategoryStruct.comp a₁ g) f g
(CategoryTheory.CategoryStruct.id X) a₂ (CategoryTheory.CategoryStruct.id Z) ⋯ ⋯)
If a₁ a₂ : A ⟶ Y is a kernel pair for g : Y ⟶ Z, then a₁ ×[Z] X and a₂ ×[Z] X
(A ×[Z] X ⟶ Y ×[Z] X) is a kernel pair for Y ×[Z] X ⟶ X.
theorem CategoryTheory.IsKernelPair.mono_of_isIso_fst E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a b : R ⟶ X},
CategoryTheory.IsKernelPair f a b → ∀ [CategoryTheory.IsIso a], CategoryTheory.Mono f
theorem CategoryTheory.IsKernelPair.mono_of_eq_fst_snd' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a : R ⟶ X},
CategoryTheory.IsKernelPair f a a → CategoryTheory.Mono f
theorem CategoryTheory.IsKernelPair.mono_of_eq_fst_snd E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a b : R ⟶ X},
CategoryTheory.IsKernelPair f a b → a = b → CategoryTheory.Mono f
theorem CategoryTheory.IsKernelPair.isIso_of_mono E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a b : R ⟶ X},
CategoryTheory.IsKernelPair f a b → ∀ [CategoryTheory.Mono f], CategoryTheory.IsIso a
theorem CategoryTheory.IsKernelPair.of_isIso_of_mono E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {R X Y : C} {f : X ⟶ Y} {a : R ⟶ X} [CategoryTheory.IsIso a]
[CategoryTheory.Mono f], CategoryTheory.IsKernelPair f a a
theorem CategoryTheory.IsKernelPair.of_hasPullback E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y)
[inst_1 : CategoryTheory.Limits.HasPullback f f],
CategoryTheory.IsKernelPair f (CategoryTheory.Limits.pullback.fst f f) (CategoryTheory.Limits.pullback.snd f f)
The kernel pair provided by HasPullback f f fits into an IsKernelPair.
theorem CategoryTheory.IsRegularEpi.exists_of_isKernelPair E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (π : X ⟶ Y) [CategoryTheory.IsRegularEpi π] {Z : C}
{fst snd : Z ⟶ X},
CategoryTheory.IsKernelPair π fst snd →
∀ {W : C} (f : X ⟶ W),
CategoryTheory.CategoryStruct.comp fst f = CategoryTheory.CategoryStruct.comp snd f →
∃ g, CategoryTheory.CategoryStruct.comp π g = f