The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Types.Pushouts
38 declarations. Mathlib docs · Source
Pushouts in Type
We describe the pushout of two maps f : S ⟶ X₁ and g : S ⟶ X₂
in the category of types as the quotient of X₁ ⊕ X₂ by the
equivalence relation generated by a relation. We also study
the particular case when f is injective (in the file
CategoryTheory.Types.Monomorphisms, it is deduced that monomorphisms
are stable under cobase change in the category of types).
instance CategoryTheory.Limits.Types.instHasPushoutsType E0 #
CategoryTheory.Limits.HasPushouts (Type u)
inductive CategoryTheory.Limits.Types.Pushout.Rel E1 #
{S X₁ X₂ : Type u} → (S ⟶ X₁) → (S ⟶ X₂) → X₁ ⊕ X₂ → X₁ ⊕ X₂ → Prop
The pushout of two maps f : S ⟶ X₁ and g : S ⟶ X₂ is the quotient
by the equivalence relation on X₁ ⊕ X₂ generated by this relation.
ctor CategoryTheory.Limits.Types.Pushout.Rel.inl_inr E0 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} (s : S),
CategoryTheory.Limits.Types.Pushout.Rel f g (Sum.inl ((CategoryTheory.ConcreteCategory.hom f) s))
(Sum.inr ((CategoryTheory.ConcreteCategory.hom g) s))
def CategoryTheory.Limits.Types.Pushout E1 #
{S X₁ X₂ : Type u} → (S ⟶ X₁) → (S ⟶ X₂) → Type u
Construction of the pushout in the category of types, as a quotient of X₁ ⊕ X₂.
inductive CategoryTheory.Limits.Types.Pushout.Rel' E1 #
{S X₁ X₂ : Type u} → (S ⟶ X₁) → (S ⟶ X₂) → X₁ ⊕ X₂ → X₁ ⊕ X₂ → Prop
In case f : S ⟶ X₁ is a monomorphism, this relation is the equivalence relation
generated by Pushout.Rel f g.
ctor CategoryTheory.Limits.Types.Pushout.Rel'.refl E0 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} (x : X₁ ⊕ X₂), CategoryTheory.Limits.Types.Pushout.Rel' f g x x
ctor CategoryTheory.Limits.Types.Pushout.Rel'.inl_inl E0 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} (x₀ y₀ : S),
(CategoryTheory.ConcreteCategory.hom g) x₀ = (CategoryTheory.ConcreteCategory.hom g) y₀ →
CategoryTheory.Limits.Types.Pushout.Rel' f g (Sum.inl ((CategoryTheory.ConcreteCategory.hom f) x₀))
(Sum.inl ((CategoryTheory.ConcreteCategory.hom f) y₀))
ctor CategoryTheory.Limits.Types.Pushout.Rel'.inl_inr E0 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} (s : S),
CategoryTheory.Limits.Types.Pushout.Rel' f g (Sum.inl ((CategoryTheory.ConcreteCategory.hom f) s))
(Sum.inr ((CategoryTheory.ConcreteCategory.hom g) s))
ctor CategoryTheory.Limits.Types.Pushout.Rel'.inr_inl E0 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} (s : S),
CategoryTheory.Limits.Types.Pushout.Rel' f g (Sum.inr ((CategoryTheory.ConcreteCategory.hom g) s))
(Sum.inl ((CategoryTheory.ConcreteCategory.hom f) s))
def CategoryTheory.Limits.Types.Pushout' E1 #
{S X₁ X₂ : Type u} → (S ⟶ X₁) → (S ⟶ X₂) → Type u
The quotient of X₁ ⊕ X₂ by the relation PushoutRel' f g.
def CategoryTheory.Limits.Types.Pushout.inl E1 #
{S X₁ X₂ : Type u} → (f : S ⟶ X₁) → (g : S ⟶ X₂) → X₁ ⟶ CategoryTheory.Limits.Types.Pushout f g
The left inclusion in the constructed pushout Pushout f g.
def CategoryTheory.Limits.Types.Pushout.inr E1 #
{S X₁ X₂ : Type u} → (f : S ⟶ X₁) → (g : S ⟶ X₂) → X₂ ⟶ CategoryTheory.Limits.Types.Pushout f g
The right inclusion in the constructed pushout Pushout f g.
theorem CategoryTheory.Limits.Types.Pushout.condition E1 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂),
CategoryTheory.CategoryStruct.comp f (CategoryTheory.Limits.Types.Pushout.inl f g) =
CategoryTheory.CategoryStruct.comp g (CategoryTheory.Limits.Types.Pushout.inr f g)
def CategoryTheory.Limits.Types.Pushout.cocone E1 #
{S X₁ X₂ : Type u} → (f : S ⟶ X₁) → (g : S ⟶ X₂) → CategoryTheory.Limits.PushoutCocone f g
The constructed pushout cocone in the category of types.
theorem CategoryTheory.Limits.Types.Pushout.cocone_ι_app E0 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂) (j : CategoryTheory.Limits.WalkingSpan),
(CategoryTheory.Limits.Types.Pushout.cocone f g).ι.app j =
Option.rec
(CategoryTheory.CategoryStruct.comp f
(TypeCat.ofHom fun x ↦ Quot.mk (CategoryTheory.Limits.Types.Pushout.Rel f g) (Sum.inl x)))
(fun val ↦
CategoryTheory.Limits.WalkingPair.rec
(TypeCat.ofHom fun x ↦ Quot.mk (CategoryTheory.Limits.Types.Pushout.Rel f g) (Sum.inl x))
(TypeCat.ofHom fun x ↦ Quot.mk (CategoryTheory.Limits.Types.Pushout.Rel f g) (Sum.inr x)) val)
j
theorem CategoryTheory.Limits.Types.Pushout.cocone_pt E0 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂),
(CategoryTheory.Limits.Types.Pushout.cocone f g).pt = CategoryTheory.Limits.Types.Pushout f g
def CategoryTheory.Limits.Types.Pushout.isColimitCocone E1 #
{S X₁ X₂ : Type u} →
(f : S ⟶ X₁) → (g : S ⟶ X₂) → CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.Types.Pushout.cocone f g)
The cocone cocone f g is colimit.
theorem CategoryTheory.Limits.Types.Pushout.inl_rel'_inl_iff E0 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂) (x₁ y₁ : X₁),
CategoryTheory.Limits.Types.Pushout.Rel' f g (Sum.inl x₁) (Sum.inl y₁) ↔
x₁ = y₁ ∨
∃ x₀ y₀,
∃ (_ : (CategoryTheory.ConcreteCategory.hom g) x₀ = (CategoryTheory.ConcreteCategory.hom g) y₀),
x₁ = (CategoryTheory.ConcreteCategory.hom f) x₀ ∧ y₁ = (CategoryTheory.ConcreteCategory.hom f) y₀
theorem CategoryTheory.Limits.Types.Pushout.inl_rel'_inr_iff E0 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂) (x₁ : X₁) (x₂ : X₂),
CategoryTheory.Limits.Types.Pushout.Rel' f g (Sum.inl x₁) (Sum.inr x₂) ↔
∃ s, x₁ = (CategoryTheory.ConcreteCategory.hom f) s ∧ x₂ = (CategoryTheory.ConcreteCategory.hom g) s
theorem CategoryTheory.Limits.Types.Pushout.inr_rel'_inr_iff E0 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂) (x₂ y₂ : X₂),
CategoryTheory.Limits.Types.Pushout.Rel' f g (Sum.inr x₂) (Sum.inr y₂) ↔ x₂ = y₂
theorem CategoryTheory.Limits.Types.Pushout.Rel'.symm E1 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} {x y : X₁ ⊕ X₂},
CategoryTheory.Limits.Types.Pushout.Rel' f g x y → CategoryTheory.Limits.Types.Pushout.Rel' f g y x
theorem CategoryTheory.Limits.Types.Pushout.equivalence_rel' E1 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂) [CategoryTheory.Mono f],
Equivalence (CategoryTheory.Limits.Types.Pushout.Rel' f g)
def CategoryTheory.Limits.Types.Pushout.equivPushout' E1 #
{S X₁ X₂ : Type u} →
(f : S ⟶ X₁) → (g : S ⟶ X₂) → CategoryTheory.Limits.Types.Pushout f g ≃ CategoryTheory.Limits.Types.Pushout' f g
The obvious equivalence Pushout f g ≃ Pushout' f g.
theorem CategoryTheory.Limits.Types.Pushout.quot_mk_eq_iff E0 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂) [CategoryTheory.Mono f] (a b : X₁ ⊕ X₂),
Quot.mk (CategoryTheory.Limits.Types.Pushout.Rel f g) a = Quot.mk (CategoryTheory.Limits.Types.Pushout.Rel f g) b ↔
CategoryTheory.Limits.Types.Pushout.Rel' f g a b
theorem CategoryTheory.Limits.Types.Pushout.inl_eq_inr_iff E0 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂) [CategoryTheory.Mono f] (x₁ : X₁) (x₂ : X₂),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.Types.Pushout.inl f g)) x₁ =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.Types.Pushout.inr f g)) x₂ ↔
∃ s, (CategoryTheory.ConcreteCategory.hom f) s = x₁ ∧ (CategoryTheory.ConcreteCategory.hom g) s = x₂
instance CategoryTheory.Limits.Types.Pushout.mono_inr E0 #
∀ {S X₁ X₂ : Type u} (f : S ⟶ X₁) (g : S ⟶ X₂) [CategoryTheory.Mono f],
CategoryTheory.Mono (CategoryTheory.Limits.Types.Pushout.inr f g)
theorem CategoryTheory.Limits.Types.pushoutCocone_inl_eq_inr_imp_of_iso E1 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} {c c' : CategoryTheory.Limits.PushoutCocone f g} (e : c ≅ c') (x₁ : X₁)
(x₂ : X₂),
(CategoryTheory.ConcreteCategory.hom c.inl) x₁ = (CategoryTheory.ConcreteCategory.hom c.inr) x₂ →
(CategoryTheory.ConcreteCategory.hom c'.inl) x₁ = (CategoryTheory.ConcreteCategory.hom c'.inr) x₂
theorem CategoryTheory.Limits.Types.pushoutCocone_inl_eq_inr_iff_of_iso E1 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} {c c' : CategoryTheory.Limits.PushoutCocone f g} (e : c ≅ c') (x₁ : X₁)
(x₂ : X₂),
(CategoryTheory.ConcreteCategory.hom c.inl) x₁ = (CategoryTheory.ConcreteCategory.hom c.inr) x₂ ↔
(CategoryTheory.ConcreteCategory.hom c'.inl) x₁ = (CategoryTheory.ConcreteCategory.hom c'.inr) x₂
theorem CategoryTheory.Limits.Types.pushoutCocone_inl_eq_inr_iff_of_isColimit E1 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} {c : CategoryTheory.Limits.PushoutCocone f g}
(hc : CategoryTheory.Limits.IsColimit c),
Function.Injective ⇑(CategoryTheory.ConcreteCategory.hom f) →
∀ (x₁ : X₁) (x₂ : X₂),
(CategoryTheory.ConcreteCategory.hom c.inl) x₁ = (CategoryTheory.ConcreteCategory.hom c.inr) x₂ ↔
∃ s, (CategoryTheory.ConcreteCategory.hom f) s = x₁ ∧ (CategoryTheory.ConcreteCategory.hom g) s = x₂
theorem CategoryTheory.Limits.Types.pushoutCocone_inr_mono_of_isColimit E1 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} {c : CategoryTheory.Limits.PushoutCocone f g}
(hc : CategoryTheory.Limits.IsColimit c) [CategoryTheory.Mono f], CategoryTheory.Mono c.inr
theorem CategoryTheory.Limits.Types.pushoutCocone_inr_injective_of_isColimit E1 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} {c : CategoryTheory.Limits.PushoutCocone f g}
(hc : CategoryTheory.Limits.IsColimit c),
Function.Injective ⇑(CategoryTheory.ConcreteCategory.hom f) →
Function.Injective ⇑(CategoryTheory.ConcreteCategory.hom c.inr)
instance CategoryTheory.Limits.Types.mono_inl E0 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} [CategoryTheory.Mono g],
CategoryTheory.Mono (CategoryTheory.Limits.Types.Pushout.inl f g)
instance CategoryTheory.Limits.Types.instMonoPushoutInr E0 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} [CategoryTheory.Mono f],
CategoryTheory.Mono (CategoryTheory.Limits.pushout.inr f g)
instance CategoryTheory.Limits.Types.instMonoPushoutInl E0 #
∀ {S X₁ X₂ : Type u} {f : S ⟶ X₁} {g : S ⟶ X₂} [CategoryTheory.Mono g],
CategoryTheory.Mono (CategoryTheory.Limits.pushout.inl f g)
theorem CategoryTheory.Limits.Types.isPullback_of_isPushout E1 #
∀ {X₁ X₂ X₃ X₄ : Type u} {t : X₁ ⟶ X₂} {r : X₂ ⟶ X₄} {l : X₁ ⟶ X₃} {b : X₃ ⟶ X₄},
CategoryTheory.IsPushout t l r b →
Function.Injective ⇑(CategoryTheory.ConcreteCategory.hom t) → CategoryTheory.IsPullback t l r b
A pushout square in Type where the top map is injective is a pullback square.
This is also essentially the lemma isPullback_of_isPushout_of_mono_left
from the file CategoryTheory.Adhesive.Basic in the case of the adhesive category of types.
theorem CategoryTheory.Limits.Types.mono_of_isPushout_of_isPullback E1 #
∀ {X₁ X₂ X₃ X₄ X₅ : Type u} {t : X₁ ⟶ X₂} {r : X₂ ⟶ X₄} {l : X₁ ⟶ X₃} {b : X₃ ⟶ X₄} {k : X₄ ⟶ X₅},
CategoryTheory.IsPushout t l r b →
∀ {r' : X₂ ⟶ X₅} {b' : X₃ ⟶ X₅},
CategoryTheory.IsPullback t l r' b' →
CategoryTheory.CategoryStruct.comp r k = r' →
CategoryTheory.CategoryStruct.comp b k = b' →
∀ [hr' : CategoryTheory.Mono r'],
(∀ (x₃ y₃ : X₃),
x₃ ∉ Set.range ⇑(CategoryTheory.ConcreteCategory.hom l) →
y₃ ∉ Set.range ⇑(CategoryTheory.ConcreteCategory.hom l) →
(CategoryTheory.ConcreteCategory.hom b') x₃ = (CategoryTheory.ConcreteCategory.hom b') y₃ →
x₃ = y₃) →
CategoryTheory.Mono k
Consider a pushout square involving types X₁, X₂, X₃ and X₄:
t
X₁ ⟶ X₂
l| |r \
v b v \ r'
X₃ ⟶ X₄ \
\ k\ |
\ b' v v
\______> X₅
Let k : X₄ ⟶ X₅, r' : X₂ ⟶ X₅ and b' : X₃ ⟶ X₅ be such
that r ≫ k = r' and b ≫ k = b'. Assume that
the outer square is a pullback, that r' is a monomorphism
and that b' is injective on the complement of the range of l,
then k : X₄ ⟶ X₅ is a monomorphism.
theorem CategoryTheory.Limits.Types.isPushout_of_isPullback_of_mono E1 #
∀ {X₁ X₂ X₃ X₄ X₅ : Type u} {t : X₁ ⟶ X₂} {r : X₂ ⟶ X₄} {l : X₁ ⟶ X₃} {b : X₃ ⟶ X₄} {k : X₄ ⟶ X₅} {r' : X₂ ⟶ X₅}
{b' : X₃ ⟶ X₅},
CategoryTheory.IsPullback t l r' b' →
CategoryTheory.CategoryStruct.comp r k = r' →
CategoryTheory.CategoryStruct.comp b k = b' →
∀ [CategoryTheory.Mono r'] [CategoryTheory.Mono k],
Set.range ⇑(CategoryTheory.ConcreteCategory.hom r) ∪ Set.range ⇑(CategoryTheory.ConcreteCategory.hom b) =
Set.univ →
(∀ (x₃ y₃ : X₃),
x₃ ∉ Set.range ⇑(CategoryTheory.ConcreteCategory.hom l) →
y₃ ∉ Set.range ⇑(CategoryTheory.ConcreteCategory.hom l) →
(CategoryTheory.ConcreteCategory.hom b') x₃ = (CategoryTheory.ConcreteCategory.hom b') y₃ →
x₃ = y₃) →
CategoryTheory.IsPushout t l r b
Consider a diagram where the outer square involving types X₁, X₂, X₃ and X₅
is a pullback, where the two bottom and right triangles commute:
t
X₁ ⟶ X₂
l| |r \
v b v \ r'
X₃ ⟶ X₄ \
\ k\ |
\ b' v v
\______> X₅
Assume that r' and k are monomorphisms, that r and b are jointly surjective,
and that b' is injective on the complement of the range of l, then
the top-left square is a pushout.
theorem CategoryTheory.Limits.Types.isPushout_of_isPullback_of_mono' E1 #
∀ {X₁ X₂ X₃ X₄ : Type u} {t : X₁ ⟶ X₂} {r : X₂ ⟶ X₄} {l : X₁ ⟶ X₃} {b : X₃ ⟶ X₄},
CategoryTheory.IsPullback t l r b →
∀ [CategoryTheory.Mono r],
Set.range ⇑(CategoryTheory.ConcreteCategory.hom r) ∪ Set.range ⇑(CategoryTheory.ConcreteCategory.hom b) =
Set.univ →
(∀ (x₃ y₃ : X₃),
x₃ ∉ Set.range ⇑(CategoryTheory.ConcreteCategory.hom l) →
y₃ ∉ Set.range ⇑(CategoryTheory.ConcreteCategory.hom l) →
(CategoryTheory.ConcreteCategory.hom b) x₃ = (CategoryTheory.ConcreteCategory.hom b) y₃ → x₃ = y₃) →
CategoryTheory.IsPushout t l r b
Consider a pullback square of types where the right map is a monomorphism. If the right and bottom map are jointly surjective, and the bottom map is injective on the complement on the range of the left map, then the square is a pushout square.