The areas / V25. Higher structures in categories
Mathlib.CategoryTheory.RegularCategory.Basic
23 declarations. Mathlib docs · Source
Regular categories
A regular category is a category with finite limits such that each kernel pair has a coequalizer and such that regular epimorphisms are stable under pullback.
These categories provide a good ground to develop the calculus of relations, as well as being the semantics for regular logic.
Main results
- We show that every regular category has strong epi-mono factorisations, following Theorem 1.11 in [Gran2021].
- We show that every regular category satisfies Frobenius reciprocity. That is, that in their
internal language, we have
∃ x, (P(x) ⊓ Q)iff(∃ x, P(x)) ⊓ Q, for a propositionQnot depending onx.
TODO
- Show that every topos is regular
- Show that regular logic has an interpretation in regular categories
References
- [Marino Gran, An Introduction to Regular Categories][Gran2021]
- https://ncatlab.org/nlab/show/regular+category
class CategoryTheory.Regular E1 #
(C : Type u) → [CategoryTheory.Category.{v, u} C] → Prop
A regular category is a category with finite limits, such that every kernel pair has a coequalizer, and such that regular epimorphisms are stable under base change.
ctor CategoryTheory.Regular.mk E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [toHasFiniteLimits : CategoryTheory.Limits.HasFiniteLimits C],
(∀ {X Y Z : C} {f : X ⟶ Y} {g₁ g₂ : Z ⟶ X},
CategoryTheory.IsKernelPair f g₁ g₂ → CategoryTheory.Limits.HasCoequalizer g₁ g₂) →
(CategoryTheory.MorphismProperty.regularEpi C).IsStableUnderBaseChange → CategoryTheory.Regular C
instance CategoryTheory.Regular.toHasFiniteLimits E0 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Regular C],
CategoryTheory.Limits.HasFiniteLimits C
theorem CategoryTheory.Regular.hasCoequalizer_of_isKernelPair E1 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Regular C] {X Y Z : C} {f : X ⟶ Y}
{g₁ g₂ : Z ⟶ X}, CategoryTheory.IsKernelPair f g₁ g₂ → CategoryTheory.Limits.HasCoequalizer g₁ g₂
theorem CategoryTheory.Regular.regularEpiIsStableUnderBaseChange E1 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Regular C],
(CategoryTheory.MorphismProperty.regularEpi C).IsStableUnderBaseChange
instance CategoryTheory.instIsRegularEpiSnd E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Regular C] {X Y B : C} (f : X ⟶ B) (g : Y ⟶ B)
[inst_2 : CategoryTheory.Limits.HasPullback f g] [CategoryTheory.IsRegularEpi f],
CategoryTheory.IsRegularEpi (CategoryTheory.Limits.pullback.snd f g)
instance CategoryTheory.instIsRegularEpiFst E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Regular C] {X Y B : C} (f : X ⟶ B) (g : Y ⟶ B)
[inst_2 : CategoryTheory.Limits.HasPullback f g] [CategoryTheory.IsRegularEpi g],
CategoryTheory.IsRegularEpi (CategoryTheory.Limits.pullback.fst f g)
instance CategoryTheory.instPreregular E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Regular C], CategoryTheory.Preregular C
theorem CategoryTheory.Regular.instHasCoequalizerFstSnd E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {X Y : C} (f : X ⟶ Y),
CategoryTheory.Limits.HasCoequalizer (CategoryTheory.Limits.pullback.fst f f) (CategoryTheory.Limits.pullback.snd f f)
instance CategoryTheory.Regular.instMonoDesc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {X Y : C} (f : X ⟶ Y),
CategoryTheory.Mono (CategoryTheory.Limits.coequalizer.desc f ⋯)
def CategoryTheory.Regular.strongEpiMonoFactorisation E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Regular C] → {X Y : C} → (f : X ⟶ Y) → CategoryTheory.Limits.StrongEpiMonoFactorisation f
In a regular category, every morphism f : X ⟶ Y factors as e ≫ m, where e is the projection
map to the coequalizer of the kernel pair of f, and m is the canonical map from that
coequalizer to Y. In particular, f factors as a strong epimorphism followed by a monomorphism.
instance CategoryTheory.Regular.instIsRegularEpiEStrongEpiMonoFactorisation E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {X Y : C} (f : X ⟶ Y),
CategoryTheory.IsRegularEpi (CategoryTheory.Regular.strongEpiMonoFactorisation f).e
instance CategoryTheory.Regular.hasStrongEpiMonoFactorisations E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Regular C],
CategoryTheory.Limits.HasStrongEpiMonoFactorisations C
In a regular category, every morphism f factors as e ≫ m, with e a strong epimorphism
and m a monomorphism.
def CategoryTheory.Regular.regularEpiOfExtremalEpi E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Regular C] →
{X Y : C} → (f : X ⟶ Y) → [h : CategoryTheory.ExtremalEpi f] → CategoryTheory.RegularEpi f
In a regular category, every extremal epimorphism is a regular epimorphism.
instance CategoryTheory.Regular.isRegularEpi_of_extremalEpi E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Regular C] {X Y : C} (f : X ⟶ Y)
[CategoryTheory.ExtremalEpi f], CategoryTheory.IsRegularEpi f
def CategoryTheory.Regular.frobeniusMorphism E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Regular C] →
{A B : C} →
(f : A ⟶ B) →
(A' : CategoryTheory.Subobject A) →
(B' : CategoryTheory.Subobject B) →
CategoryTheory.Subobject.underlying.obj (A' ⊓ (CategoryTheory.Subobject.pullback f).obj B') ⟶
CategoryTheory.Subobject.underlying.obj ((CategoryTheory.Subobject.exists f).obj A' ⊓ B')
Given a morphism f : A ⟶ B and subobjects A' ⟶ A and B' ⟶ B, we have a canonical morphism
(A' ⊓ (Subobject.pullback f).obj B') ⟶ ((«exists» f).obj A' ⊓ B').
This morphism is part of a StrongEpiMonoFactorisation of
(A' ⊓ (Subobject.pullback f).obj B').arrow ≫ f, see frobeniusStrongEpiMonoFactorisation.
theorem CategoryTheory.Regular.frobeniusMorphism_isPullback E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {A B : C} (f : A ⟶ B)
(A' : CategoryTheory.Subobject A) (B' : CategoryTheory.Subobject B),
CategoryTheory.IsPullback (CategoryTheory.Regular.frobeniusMorphism f A' B')
((A' ⊓ (CategoryTheory.Subobject.pullback f).obj B').ofLE A' ⋯)
(((CategoryTheory.Subobject.exists f).obj A' ⊓ B').ofLE ((CategoryTheory.Subobject.exists f).obj A') ⋯)
(CategoryTheory.Subobject.imageFactorisation f A').F.e
instance CategoryTheory.Regular.instIsRegularEpiFrobeniusMorphism E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {A B : C} (f : A ⟶ B)
(A' : CategoryTheory.Subobject A) (B' : CategoryTheory.Subobject B),
CategoryTheory.IsRegularEpi (CategoryTheory.Regular.frobeniusMorphism f A' B')
def CategoryTheory.Regular.frobeniusStrongEpiMonoFactorisation E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Regular C] →
{A B : C} →
(f : A ⟶ B) →
(A' : CategoryTheory.Subobject A) →
(B' : CategoryTheory.Subobject B) →
CategoryTheory.Limits.StrongEpiMonoFactorisation
(CategoryTheory.CategoryStruct.comp (A' ⊓ (CategoryTheory.Subobject.pullback f).obj B').arrow f)
Given a morphism f : A ⟶ B and subobjects A' ⟶ A and B' ⟶ B, the frobeniusMorphism
gives a StrongEpiMonoFactorisation of (A' ⊓ (Subobject.pullback f).obj B').arrow ≫ f through
((«exists» f).obj A' ⊓ B').arrow.
This is an auxiliary definition to show frobenius_reciprocity.
theorem CategoryTheory.Regular.frobeniusStrongEpiMonoFactorisation_I E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {A B : C} (f : A ⟶ B)
(A' : CategoryTheory.Subobject A) (B' : CategoryTheory.Subobject B),
(CategoryTheory.Regular.frobeniusStrongEpiMonoFactorisation f A' B').I =
CategoryTheory.Subobject.underlying.obj ((CategoryTheory.Subobject.exists f).obj A' ⊓ B')
theorem CategoryTheory.Regular.frobeniusStrongEpiMonoFactorisation_e E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {A B : C} (f : A ⟶ B)
(A' : CategoryTheory.Subobject A) (B' : CategoryTheory.Subobject B),
(CategoryTheory.Regular.frobeniusStrongEpiMonoFactorisation f A' B').e =
CategoryTheory.Regular.frobeniusMorphism f A' B'
theorem CategoryTheory.Regular.frobeniusStrongEpiMonoFactorisation_m E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {A B : C} (f : A ⟶ B)
(A' : CategoryTheory.Subobject A) (B' : CategoryTheory.Subobject B),
(CategoryTheory.Regular.frobeniusStrongEpiMonoFactorisation f A' B').m =
((CategoryTheory.Subobject.exists f).obj A' ⊓ B').arrow
theorem CategoryTheory.Regular.exists_inf_pullback_eq_exists_inf E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Regular C] {A B : C} (f : A ⟶ B)
(A' : CategoryTheory.Subobject A) (B' : CategoryTheory.Subobject B),
(CategoryTheory.Subobject.exists f).obj (A' ⊓ (CategoryTheory.Subobject.pullback f).obj B') =
(CategoryTheory.Subobject.exists f).obj A' ⊓ B'
Regular categories satisfy Frobenius reciprocity. That is, in the internal language of regular
categories, we have ∃ x, (P(x) ⊓ Q) iff (∃ x, P(x)) ⊓ Q, for a proposition Q not depending on
x.