The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Types.Pullbacks
29 declarations. Mathlib docs · Source
abbrev CategoryTheory.Limits.Types.PullbackObj E1 #
{X Y Z : Type u} → (X ⟶ Z) → (Y ⟶ Z) → Type u
The usual explicit pullback in the category of types, as a subtype of the product.
The full LimitCone data is bundled as pullbackLimitCone f g.
abbrev CategoryTheory.Limits.Types.pullbackCone E1 #
{X Y Z : Type u} → (f : X ⟶ Z) → (g : Y ⟶ Z) → CategoryTheory.Limits.PullbackCone f g
The explicit pullback cone on PullbackObj f g.
This is bundled with the IsLimit data as pullbackLimitCone f g.
def CategoryTheory.Limits.Types.pullbackLimitCone E1 #
{X Y Z : Type u} → (f : X ⟶ Z) → (g : Y ⟶ Z) → CategoryTheory.Limits.LimitCone (CategoryTheory.Limits.cospan f g)
The explicit pullback in the category of types, bundled up as a LimitCone
for given f and g.
theorem CategoryTheory.Limits.Types.pullbackLimitCone_cone E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z),
(CategoryTheory.Limits.Types.pullbackLimitCone f g).cone = CategoryTheory.Limits.Types.pullbackCone f g
theorem CategoryTheory.Limits.Types.pullbackLimitCone_isLimit E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z),
(CategoryTheory.Limits.Types.pullbackLimitCone f g).isLimit =
(CategoryTheory.Limits.Types.pullbackCone f g).isLimitAux
(fun s ↦
TypeCat.ofHom fun x ↦
⟨((CategoryTheory.ConcreteCategory.hom s.fst) x, (CategoryTheory.ConcreteCategory.hom s.snd) x), ⋯⟩)
⋯ ⋯ ⋯
def CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj E1 #
{X Y S : Type v} →
{f : X ⟶ S} →
{g : Y ⟶ S} →
{c : CategoryTheory.Limits.PullbackCone f g} →
CategoryTheory.Limits.IsLimit c → c.pt ≃ CategoryTheory.Limits.Types.PullbackObj f g
A limit pullback cone in the category of types identifies to the explicit pullback.
theorem CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj_apply_fst E0 #
∀ {X Y S : Type v} {f : X ⟶ S} {g : Y ⟶ S} {c : CategoryTheory.Limits.PullbackCone f g}
(hc : CategoryTheory.Limits.IsLimit c) (x : c.pt),
(↑((CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj hc) x)).1 =
(CategoryTheory.ConcreteCategory.hom c.fst) x
theorem CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj_apply_snd E0 #
∀ {X Y S : Type v} {f : X ⟶ S} {g : Y ⟶ S} {c : CategoryTheory.Limits.PullbackCone f g}
(hc : CategoryTheory.Limits.IsLimit c) (x : c.pt),
(↑((CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj hc) x)).2 =
(CategoryTheory.ConcreteCategory.hom c.snd) x
theorem CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj_symm_apply_fst E0 #
∀ {X Y S : Type v} {f : X ⟶ S} {g : Y ⟶ S} {c : CategoryTheory.Limits.PullbackCone f g}
(hc : CategoryTheory.Limits.IsLimit c) (x : CategoryTheory.Limits.Types.PullbackObj f g),
(CategoryTheory.ConcreteCategory.hom c.fst)
((CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj hc).symm x) =
(↑x).1
theorem CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj_symm_apply_snd E0 #
∀ {X Y S : Type v} {f : X ⟶ S} {g : Y ⟶ S} {c : CategoryTheory.Limits.PullbackCone f g}
(hc : CategoryTheory.Limits.IsLimit c) (x : CategoryTheory.Limits.Types.PullbackObj f g),
(CategoryTheory.ConcreteCategory.hom c.snd)
((CategoryTheory.Limits.PullbackCone.IsLimit.equivPullbackObj hc).symm x) =
(↑x).2
theorem CategoryTheory.Limits.PullbackCone.IsLimit.type_ext E1 #
∀ {X Y S : Type v} {f : X ⟶ S} {g : Y ⟶ S} {c : CategoryTheory.Limits.PullbackCone f g}
(hc : CategoryTheory.Limits.IsLimit c) {x y : c.pt},
(CategoryTheory.ConcreteCategory.hom c.fst) x = (CategoryTheory.ConcreteCategory.hom c.fst) y →
(CategoryTheory.ConcreteCategory.hom c.snd) x = (CategoryTheory.ConcreteCategory.hom c.snd) y → x = y
def CategoryTheory.Limits.PullbackCone.toPullbackObj E1 #
{X Y S : Type v} →
{f : X ⟶ S} →
{g : Y ⟶ S} → (c : CategoryTheory.Limits.PullbackCone f g) → c.pt → CategoryTheory.Limits.Types.PullbackObj f g
Given c : PullbackCone f g in the category of types, this is
the canonical map c.pt → Types.PullbackObj f g.
theorem CategoryTheory.Limits.PullbackCone.toPullbackObj_coe_snd E0 #
∀ {X Y S : Type v} {f : X ⟶ S} {g : Y ⟶ S} (c : CategoryTheory.Limits.PullbackCone f g) (x : c.pt),
(↑(c.toPullbackObj x)).2 = (CategoryTheory.ConcreteCategory.hom c.snd) x
theorem CategoryTheory.Limits.PullbackCone.toPullbackObj_coe_fst E0 #
∀ {X Y S : Type v} {f : X ⟶ S} {g : Y ⟶ S} (c : CategoryTheory.Limits.PullbackCone f g) (x : c.pt),
(↑(c.toPullbackObj x)).1 = (CategoryTheory.ConcreteCategory.hom c.fst) x
def CategoryTheory.Limits.PullbackCone.isLimitEquivBijective E1 #
{X Y S : Type v} →
{f : X ⟶ S} →
{g : Y ⟶ S} →
(c : CategoryTheory.Limits.PullbackCone f g) →
CategoryTheory.Limits.IsLimit c ≃ Function.Bijective c.toPullbackObj
A pullback cone c in the category of types is limit iff the
map c.toPullbackObj : c.pt → Types.PullbackObj f g is a bijection.
def CategoryTheory.Limits.Types.pullbackIsoPullback E1 #
{X Y Z : Type u} →
(f : X ⟶ Z) → (g : Y ⟶ Z) → CategoryTheory.Limits.pullback f g ≅ CategoryTheory.Limits.Types.PullbackObj f g
The pullback given by the instance HasPullbacks (Type u) is isomorphic to the
explicit pullback object given by PullbackObj.
theorem CategoryTheory.Limits.Types.pullbackIsoPullback_hom_fst E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z) (p : CategoryTheory.Limits.pullback f g),
(↑((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.Types.pullbackIsoPullback f g).hom) p)).1 =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.pullback.fst f g)) p
theorem CategoryTheory.Limits.Types.pullbackIsoPullback_hom_snd E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z) (p : CategoryTheory.Limits.pullback f g),
(↑((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.Types.pullbackIsoPullback f g).hom) p)).2 =
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.pullback.snd f g)) p
theorem CategoryTheory.Limits.Types.pullbackIsoPullback_inv_fst E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.Types.pullbackIsoPullback f g).inv
(CategoryTheory.Limits.pullback.fst f g) =
TypeCat.ofHom fun p ↦ (↑p).1
theorem CategoryTheory.Limits.Types.pullbackIsoPullback_inv_fst_apply E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z) (x : CategoryTheory.Limits.Types.PullbackObj f g),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.pullback.fst f g))
((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.Types.pullbackIsoPullback f g).inv) x) =
(↑x).1
theorem CategoryTheory.Limits.Types.pullbackIsoPullback_inv_snd E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.Types.pullbackIsoPullback f g).inv
(CategoryTheory.Limits.pullback.snd f g) =
TypeCat.ofHom fun p ↦ (↑p).2
theorem CategoryTheory.Limits.Types.pullbackIsoPullback_inv_snd_apply E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z) (x : CategoryTheory.Limits.Types.PullbackObj f g),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.pullback.snd f g))
((CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.Types.pullbackIsoPullback f g).inv) x) =
(↑x).2
theorem CategoryTheory.Limits.Types.range_fst_of_isPullback E1 #
∀ {P X Y Z : Type u} {fst : P ⟶ X} {snd : P ⟶ Y} {f : X ⟶ Z} {g : Y ⟶ Z},
CategoryTheory.IsPullback fst snd f g →
Set.range ⇑(CategoryTheory.ConcreteCategory.hom fst) =
⇑(CategoryTheory.ConcreteCategory.hom f) ⁻¹' Set.range ⇑(CategoryTheory.ConcreteCategory.hom g)
theorem CategoryTheory.Limits.Types.range_snd_of_isPullback E1 #
∀ {P X Y Z : Type u} {fst : P ⟶ X} {snd : P ⟶ Y} {f : X ⟶ Z} {g : Y ⟶ Z},
CategoryTheory.IsPullback fst snd f g →
Set.range ⇑(CategoryTheory.ConcreteCategory.hom snd) =
⇑(CategoryTheory.ConcreteCategory.hom g) ⁻¹' Set.range ⇑(CategoryTheory.ConcreteCategory.hom f)
theorem CategoryTheory.Limits.Types.range_pullbackFst E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z),
Set.range ⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.pullback.fst f g)) =
⇑(CategoryTheory.ConcreteCategory.hom f) ⁻¹' Set.range ⇑(CategoryTheory.ConcreteCategory.hom g)
theorem CategoryTheory.Limits.Types.range_pullbackSnd E0 #
∀ {X Y Z : Type u} (f : X ⟶ Z) (g : Y ⟶ Z),
Set.range ⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.Limits.pullback.snd f g)) =
⇑(CategoryTheory.ConcreteCategory.hom g) ⁻¹' Set.range ⇑(CategoryTheory.ConcreteCategory.hom f)
theorem CategoryTheory.Limits.Types.ext_of_isPullback 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 →
∀ {x₁ y₁ : X₁},
(CategoryTheory.ConcreteCategory.hom t) x₁ = (CategoryTheory.ConcreteCategory.hom t) y₁ →
(CategoryTheory.ConcreteCategory.hom l) x₁ = (CategoryTheory.ConcreteCategory.hom l) y₁ → x₁ = y₁
theorem CategoryTheory.Limits.Types.exists_of_isPullback 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 →
∀ (x₂ : X₂) (x₃ : X₃),
(CategoryTheory.ConcreteCategory.hom r) x₂ = (CategoryTheory.ConcreteCategory.hom b) x₃ →
∃ x₁, (CategoryTheory.ConcreteCategory.hom t) x₁ = x₂ ∧ (CategoryTheory.ConcreteCategory.hom l) x₁ = x₃
theorem CategoryTheory.Limits.Types.isPullback_iff E0 #
∀ {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.CategoryStruct.comp t r = CategoryTheory.CategoryStruct.comp l b ∧
(∀ (x₁ y₁ : (fun X ↦ X) X₁),
(CategoryTheory.ConcreteCategory.hom t) x₁ = (CategoryTheory.ConcreteCategory.hom t) y₁ ∧
(CategoryTheory.ConcreteCategory.hom l) x₁ = (CategoryTheory.ConcreteCategory.hom l) y₁ →
x₁ = y₁) ∧
∀ (x₂ : (fun X ↦ X) X₂) (x₃ : (fun X ↦ X) X₃),
(CategoryTheory.ConcreteCategory.hom r) x₂ = (CategoryTheory.ConcreteCategory.hom b) x₃ →
∃ x₁, (CategoryTheory.ConcreteCategory.hom t) x₁ = x₂ ∧ (CategoryTheory.ConcreteCategory.hom l) x₁ = x₃