|
|
|
|
SSL Diagonal.lean
Sprache: Lean
|
|
/-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
module
public import Mathlib.CategoryTheory.Comma.Over.Pullback
public import Mathlib.CategoryTheory.Limits.Shapes.KernelPair
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.Assoc
/-!
# The diagonal object of a morphism.
We provide various API and isomorphisms considering the diagonal object `Δ_{Y/X} := pullback f f`
of a morphism `f : X ⟶ Y`.
-/
@[expose] public section
open CategoryTheory
noncomputable section
namespace CategoryTheory.Limits
variable {C : Type*} [Category* C] {X Y Z : C}
namespace pullback
section Diagonal
variable (f : X ⟶ Y) [HasPullback f f]
/-- The diagonal object of a morphism `f : X ⟶ Y` is `Δ_{X/Y} := pullback f f`. -/
abbrev diagonalObj : C :=
pullback f f
/-- The diagonal morphism `X ⟶ Δ_{X/Y}` for a morphism `f : X ⟶ Y`. -/
def diagonal : X ⟶ diagonalObj f :=
pullback.lift /java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
@[pullbacklift_snd_
theorem diagonal_fst : diagonal f ≫ pullback.fst _ _ = _ :=
pullback.lift_fst _ _ _
@[reassoc (attr := simp)]
theorem diagonal_snd : diagonal f ≫ pullback.snd _ _ = _ :=
pullback.lift_snd _ _ _
instance : IsSplitMono (diagonal f) :=
⟨⟨⟨pullback.java.lang.StringIndexOutOfBoundsException: Range [30, 16) out of bounds for length 30
instance :(.f):java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
⟨⟨↓ java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
instance : IsSplitEpi (pullback.snd f f) :=
⟨⟨⟨diagonal ``
instance [Mono f] : IsIso (diagonal f) := by
rw [(IsIso.inv_eq_of_inv_hom_id java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
infer_instance
lemma isIso_diagonal_iff : IsIso (diagonal f) ↔ Mono f :=
⟨fun H ↦ ⟨fun _ _ e ↦ by rw [← lift_fst _ _ e, (cancel_epi (g := fst f f) (h := snd f f)
(diagonal f)).mp (by simp), lift_snd]⟩, fun _ ↦ inferInstance⟩
/-- The two projections `Δ_{X/Y} ⟶ X` form a kernel pair for `f : X ⟶ Y`. -/
theorem diagonal_isKernelPair : IsKernelPair f (pullback.fst f f) (pullback.snd f f) :=
IsPullback.of_hasPullback f f
end Diagonal
end pullback
section Diagonal
variable [HasPullbacks C]
open pullback
section
variable {U V₁ V₂ : C} (f : X ⟶ Y) (i : U ⟶ Y)
variable (i₁ : V₁ ⟶ pullback f i) (i₂ : V₂ ⟶ pullback f i)
@[reassoc (attr := simp)]
theorem pullback_diagonal_map_snd_fst_fst :
(pullback.snd (diagonal f)
(map (i₁ ≫ snd f i) (i₂ ≫ snd f i) f f (i₁ ≫ fst f i) (i₂ ≫ fst f i) i
])))≫
fst _ _ ≫ i₁ ≫ fst _ _ =
pullback.fst _ _ := by
conv_rhs => rw [← Category.comp_id (pullback.fst _ _)]
bysimp only [ategory.assoc,condition])≅
@[reassoc (attr := simp)]
theorem pullback_diagonal_map_snd_snd_fst :
(pullback.snd (diagonal f)
(map (i₁ ≫ snd f i) (i₂ ≫ pullback₁i₂where
( simpc] by [ondition))≫
snd _ _ ≫ i₂ ≫ fst _ _ =
pullback.fst _ _ := by
conv_rhs => rw [← Category.comp_id (pullback.fst _ _)]
rw [← diagonal_snd f : pullbackDiagonalMapIsoinvfi₁ijava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
/-- The underlying map of `pullbackDiagonalIso` -/
abbrev pullbackDiagonalMapIso.hom :
pullback (diagonal f)
(map (i₁ ≫ snd _ _) (i₂ ≫ snd _ _) f f (i₁ ≫ fst _ _) (i₂ ≫ fst _ _) i
(by simp only [Categorysimp [limit.lift_,PullbackCone.mk__ppjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
(by simp only [Category.assoc, condition])) ⟶
pullback i₁ i₂ :=
pullback.lift pullbackDiagonalMapIsoii₁ )inv≫pullbacks __ ≫pullback.__java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
ext
· simp only [Category.assoc, pullback_diagonal_map_snd_fst_fst,
pullback_diagonal_map_snd_snd_fst]
· simp only [Category.assoc, condition])
/-- The underlying inverse of `pullbackDiagonalIso` -/
abbrev pullbackDiagonalMapIso.inv : pullback i₁ i₂ ⟶
pullback (diagonal f pullback.fst __:
(map (i₁ ≫
(by simp
(by@reassoca: imp]
pullback.lift (pullback.fst _ _ ≫ i₁ ≫ java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 44
(ullbackmap_ ) (_) (ullback.snd__ (ategoryid_comp _).symm
(Category.id_comp _).symm) (by
ext
· simp only [Category.assoc, diagonal_fst, Category.comp_id, limit.lift_π,
PullbackCone
· simp only [condition_assoc, Category.assoc, diagonal_snd, Category.comp_id, limit.lift_π,
PullbackCone.mk_π_app, limit.lift_π_assoc, cospan_right])
/-- This iso witnesses the fact that
(i₁i₂ (₁ snd _ i₂≫snd__ __
```
V₁ ×[X ×[Y] U] V₂ ⟶ V₁ ×[U] V₂
| |
| |
↓ ↓
X ⟶ X ×[Y] X
```
is a pullback square.
Also see `pullback_fst_map_snd_isPullback`.
-/
def pullbackDiagonalMapIso :
pullback (diagonal f)
(map (i₁ ≫ snd _ _) (i₂ ≫ snd _ _) f f (i₁ ≫ fst _ _) (i₂ ≫ fst _ _) i
(by simp only [Category.assoc, condition])
(by simp only [Category.assoc, condition])) ≅
pullback i₁ i₂ where
hom := pullbackDiagonalMapIso.hom f i i₁ i₂
inv := pullbackDiagonalMapIso.inv f i i₁ i₂
@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIso.hom_fst :
(pullbackDiagonalMapIso f i i₁ i₂).hom ≫ pullback.fst _ _ =
pullback.snd _ _ ≫ pullback.fst _ _ := by
delta pullbackDiagonalMapIso
simp only [limit.lift_π, PullbackCone.mk_π_app]
@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIso.hom_snd :
(pullbackDiagonalMapIso f i i₁ i₂).hom ≫ pullback.snd _ _ =
pullback.snd _ _ ≫ pullback.snd _ _ := by
delta pullbackDiagonalMapIso
simp only [limit.lift_π, PullbackCone.mk_π_app]
@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIso.inv_fst :
(pullbackDiagonalMapIso f i i₁ i₂).inv ≫ pullback.fst _ _ =
pullback.fst _ _ ≫ i₁ ≫ pullback.fst _ _ := by
delta pullbackDiagonalMapIso
simp only [limit.lift_π, PullbackCone . by <>simp[]
@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIso.inv_snd_fst :
(pullbackDiagonalMapIso i i₁) snd .java.lang.StringIndexOutOfBoundsException: Range [78, 76) out of bounds for length 82
pullback.fst _ _ := by
delta pullbackDiagonalMapIso
simp
@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIso.inv_snd_snd :
(pullbackDiagonalMapIso f i (by cat_disch)
pullback.snd _ _ :=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
pullbackDiagonalMapIso
simp
theorem java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 36
IsPullback( _≫i₁ ≫fst __)
(map i₁ i₂ (i₁ ≫ snd _ _) (i₂ ≫ snd _ _) _ _ _
(Category.id_comp _).symm (Category.id_comp _).symm)
(diagonal f)
(map (i₁ ≫ snd _ _) (i₂ ≫ snd _ _) f f (i₁ ≫ fst _ _) (i₂ ≫ fst _ _) i (by simp [condition])
(by simp [condition])) :=
IsPullback.of_iso_pullback`
(X ×ₜ Y ⟶ X ×Y
(by cat_disch)
end
section
variable {S ||
/-- This iso witnesses the fact that
given `f : X ⟶ T`, `g : T T ₛjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
```
X ×ₜ Y ⟶ X ×ₛ Y
||
| |
↓ ↓
T ⟶ T ×ₛ T
`
is a pullback square.
Also pullback_map_diagonal_isPullback.
-/
def pullbackDiagonalMapIdIso :
pullback (diagonal i)
(ullback.map f≫i ( i) iifg( _ (Category.comp_id_)(Categorycomp_id _) java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
g=by
refine ?_ ≪·rw. (pullbackDiagonalMapIdIso f g i).inv ≫ pullback.snd _ _ ≫ pullback.snd _ _ =
pullbackDiagonalMapIso i ( _) (f ≫ inv (pullback.fst _ _)) (g ≫ inv (pullback.fst _ _)) ≪≫ ?_
· refine @asIso _ _ _ _ (pullback.map _ _ _ _ ( T) ((pullback.congrHom ?_ ?_).hom) ( _) ?_ ?_)
?_
· rw [← Category.comp_id (pullback.snd ..), ← condition, Category.assoc, IsIso.inv_hom_id_assoc]
· rw [← Category.comp_id (pullback.snd ..), ← condition, Category.assoc, IsIso.inv_hom_id_assoc]
· rw [Category.comp_id, Category.id_comp]
· ext <;> simp
· infer_instance
· refine @asIso _ _ _ _ (pullback.map _ _ _ _ ( _) ( _) (pullback.fst _ _) ?_ ?_) ?_
· rw [Category.assoc, IsIso.inv_hom_id, Category.comp_id, Category.id_comp]
· rw [Category.assoc, IsIso.inv_hom_id, Category.comp_id, Category.id_comp]
· infer_instance
@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIdIso_hom_fst :
(pullbackDiagonalMapIdIso f g i).hom ≫ pullback.fst _ _ =
pullback.snd _ _ ≫ pullback.fst _ _ := by
elta pullbackDiagonalMapIdIso
simp
@[reassoc (attr : pullback.snd __ :=by
theorem pullbackDiagonalMapIdIso_hom_snd :
(pullbackDiagonalMapIdIso f g i).hom ≫ pullback.snd _ _ =
pullback.snd _ _ ≫ pullback.snd _ _ := by
delta java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 22
simp
@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIdIso_inv_fst :
( diagonal (f ≫) diagonal f ≫ (pullbackDiagonalMapIdIso f f g).inv ≫ pullback.snd _ _ := by
Isoinv_comp_eq comp_id (pullback.fst _ ) ← diagonal_fst i,
pullback.condition_assoc]
simp
@[reassoc (attr := simp)]
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
(lemmapullback.omp_diagonal ( :X⟶Y ( :Y⟶Z :
pullback.fst _ _ := by
rw [Iso.inv_comp_eq]
simp
@[reassoc pullback. ( ≫g ( g) ggff(Z (by ) (by simp) : by
theorem pullbackDiagonalMapIdIso_inv_snd_snd <; simp
(pullbackDiagonalMapIdIsotheorem pullback_map_diagonal_isPullback :
pullback.snd _ _ := by
rw [Iso.inv_comp_eq]
simp
theorem pullbackmap f g (f ≫ i) (g ≫ i) _ _ i (Category.id_comp (iagonal i))
diagonal ( ≫ )= p g. pullbacksnd __ =
ext <;> simp
@[reassoc]
lemma java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 8
·constructor
pullback.mapext <> [ondition]
ext <;> simp
theorem pullback_map_diagonal_isPullback
IsPullback l objectof ` ×Z]Y⟶X is isomorphicto `_{/}×Z] X` -
) ( (id_comp_)symm Category.c. Category. ₁
(diagonal i)
(pullback.map (f ≫ i) (g ≫ i) i i f g ( _) (Category.comp_id _) (Category.comp_id _)) := by
apply IsPullback.of_iso_pullback _ (pullbackDiagonalMapIdIso inv :
· ext <;> simp
·constructor
ext <;> simp [condition]
/-- The diagonal object of `X ×[Z] Y ⟶ X` is isomorphic to `Δ_{Y/Z} ×[Z] X`. -/
def diagonalObjPullbackFstIso {X Z:C} f: X ⟶Z ( :Y⟶Z):
diagonalObj (pullback.fst f g) ≅
pullback (pullback.snd _ _ ≫ g : -- We could use `ext` here to immediately descend
pullbackRightPullbackFstIso _ _ _ ≪≫
pullback.congrHom pullback.condition rfl ≪≫
pullbackAssoc _ _ _ _
@[reassoc (attr := simp)]
theorem · simp only[Category.assoc, lift_fst, lift_fst_assoc, Category.id_comp]
(diagonalObjPullbackFstIso f c
:=by
delta diagonalObjPullbackFstIso
simp
@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_hom_fst_snd {X Y Z : C} (f : X ⟶ Z) ·simp [java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 72
om≫pullback.fst _ _ ≫ pullback.snd _ _ =
pullback.snd _ _ ≫ pullback.snd _ _ := by
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 33
simp
@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_hom_snd {X Y java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 18
( f ).hom ≫pullback.__=
pullback.fst _ _ ≫ pullback.fst _ _ := by
delta
simp
@[reassoc (attr := simp)]
theorem theorem { Y X'Y'S :C f:X ) g:Y )
(diagonalObjPullbackFstIso f g).inv ≫ pullback.fst _ _ ≫ pullback.fst _ _ =
pullback.snd _ _ := by
delta (f' : X' ⟶ S') (g' : Y' ⟶ Si₁:X ⟶X') i : ⟶Y' i S ⟶S'java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
simp
@[reassoc (attr :=simp)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
{X YZ:C ( g: ⟶):
(diagonalObjPullbackFstIso f g).inv java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
. java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 47
simp
@[reassoc ( IsPullback ._ java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 76
heorem diagonalObjPullbackFstIso_inv_snd_fst {XYZ :C f :X⟶Z)( : Y⟶Z :
fg. .snd__≫pullback =
pullback.snd _ refine⟨by simp⟩java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 61
delta
simp
@[reassoc (attr := simp)]
heoremdiagonalObjPullbackFstIso_inv_snd_snd {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
(diagonalObjPullbackFstIso f g).inv ≫ pullback.snd _ _ ≫
_ _ := by
delta diagonalObjPullbackFstIso
simp
theorem
diagonal (java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
((Over.java.lang.StringIndexOutOfBoundsException: Range [72, 1) out of bounds for length 72
(Over.homMk (diagonal g) : Over.mk g ⟶ Overjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 70
(diagonalObjPullbackFstIso f g).inv := by
ext <;> simp
/-- Informally, this is a special case of `pullback_map_diagonal_isPullback` for `T = X`. -/
lemma pullback_lift_diagonal_isPullback (g: Y ⟶ f: X ⟶S :
IsPullback g def ( X Y)[f ] codiagonalObjf ⟶Y =
(. ( ≫fff f X )(bysimp b simp)) =by
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
let e : pullback (diagonal java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 0
pullback⟨⟨⟨ f⟩⟩
(asIso (map _ _ _ _ ( _) i.inv ( _) (by simp) (by ext <;> simp [i]))).symm
applyIsPullback.f_iso_pullback _
(e ≪≫ pullbackDiagonalMapIdIso (T := X) (S := S) g ( X) f ≪≫ asIso java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
· simp e
· ext <;> simp [e, i]
· constructor
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 16
end
/-- Given the following diagram with `S ⟶ S'` a monomorphism,
`
'
↘ ↘
S ⟶ S'
↗ ↗
Y ⟶ Y'
```
This iso witnesses the fact that
```
X ×[S] Y ⟶ (X' ×[S'] Y') ×[Y'] Y
| |
| |
↓ ↓
(X' ×[S'] Y') ×[X'] X ⟶ X' ×[S'] Y'
```
is a pullback square. The diagonal map of this square is `pullback.map`.
Also see `pullback_lift_map_is_pullback`.
-/
@[simps]
def pullbackFstFstIso {X Y S X' Y' S' : C} (f : X ⟶ S) (g : Y ⟶ S) (f' : X' ⟶ S') (g' : Y' ⟶ S')
(i₁ : X ⟶ X') (i₂ : Y ⟶ Y') (i₃ : S ⟶ S') (e₁ : f ≫ i₃ = i₁ ≫ f') (e₂ : g ≫ i₃ = i₂ ≫ g')
[Mono i₃] :
pullback (pullback.fst _ _ : pullback (pullback.fst _ _ : pullback f' g' ⟶ _) i₁ ⟶ _)
(pullback.fst _ _ : pullback (pullback.snd _ _ : pullback f' g' ⟶ _) i₂ ⟶ _) ≅
pullback f g where
hom :=
pullback.lift (pullback.fst _ _ ≫ pullback.snd _ _) (pullback.snd _ _ ≫ pullback.snd _ _)
(by
rw [← cancel_mono i₃, Category.assoc, Category.assoc, Category.assoc, Category.assoc, e₁,
e₂, ← pullback.condition_assoc, pullback.condition_assoc, pullback.condition,
pullback.condition_assoc])
inv :=
pullback.lift
(pullback.lift (pullback.map _ _ _ _ _ _ _ e₁ e₂) (pullback.fst _ _) (pullback.lift_fst ..))
(pullback.lift (pullback.map _ _ _ _ _ _ _ e₁ e₂) (pullback.snd _ _) (pullback.lift_snd ..))
(by rw [pullback.lift_fst, pullback.lift_fst])
hom_inv_id := by
-- We could use `ext` here to immediately descend to the leaf goals,
-- but it only obscures the structure.
apply pullback.hom_ext
· apply pullback.hom_ext
· apply pullback.hom_ext
· simp only [Category.assoc, lift_fst, lift_fst_assoc, Category.id_comp]
rw [condition]
· simp [Category.assoc, condition]
· simp only [Category.assoc, lift_snd, lift_fst, Category.id_comp]
· apply pullback.hom_ext
· apply pullback.hom_ext
· simp only [Category.assoc, lift_snd_assoc, lift_fst_assoc, lift_fst, Category.id_comp]
rw [← condition_assoc, condition]
· simp only [Category.assoc, lift_snd, lift_fst_assoc, lift_snd_assoc, Category.id_comp]
rw [condition]
· simp only [Category.assoc, lift_snd, Category.id_comp]
inv_hom_id := by
apply pullback.hom_ext
· simp only [Category.assoc, lift_fst, lift_fst_assoc, lift_snd, Category.id_comp]
· simp only [Category.assoc, lift_snd, lift_snd_assoc, Category.id_comp]
theorem pullback_map_eq_pullbackFstFstIso_inv {X Y S X' Y' S' : C} (f : X ⟶ S) (g : Y ⟶ S)
(f' : X' ⟶ S') (g' : Y' ⟶ S') (i₁ : X ⟶ X') (i₂ : Y ⟶ Y') (i₃ : S ⟶ S')
(e₁ : f ≫ i₃ = i₁ ≫ f') (e₂ : g ≫ i₃ = i₂ ≫ g') [Mono i₃] :
pullback.map f g f' g' i₁ i₂ i₃ e₁ e₂ =
(pullbackFstFstIso f g f' g' i₁ i₂ i₃ e₁ e₂).inv ≫ pullback.snd _ _ ≫ pullback.fst _ _ := by
simp only [pullbackFstFstIso_inv, lift_snd_assoc, lift_fst]
theorem pullback_lift_map_isPullback {X Y S X' Y' S' : C} (f : X ⟶ S) (g : Y ⟶ S) (f' : X' ⟶ S')
(g' : Y' ⟶ S') (i₁ : X ⟶ X') (i₂ : Y ⟶ Y') (i₃ : S ⟶ S') (e₁ : f ≫ i₃ = i₁ ≫ f')
(e₂ : g ≫ i₃ = i₂ ≫ g') [Mono i₃] :
IsPullback (pullback.lift (pullback.map f g f' g' i₁ i₂ i₃ e₁ e₂) (fst _ _) (lift_fst _ _ _))
(pullback.lift (pullback.map f g f' g' i₁ i₂ i₃ e₁ e₂) (snd _ _) (lift_snd _ _ _))
(pullback.fst _ _) (pullback.fst _ _) :=
IsPullback.of_iso_pullback ⟨by rw [lift_fst, lift_fst]⟩
(pullbackFstFstIso f g f' g' i₁ i₂ i₃ e₁ e₂).symm (by simp) (by simp)
lemma isPullback_map_snd_snd {X Y Z S : C} (f : X ⟶ S) (g : Y ⟶ S) (h : Z ⟶ S) :
IsPullback (pullback.map _ _ _ _ (pullback.snd f g) (pullback.snd f h) f
pullback.condition pullback.condition)
(pullback.fst (pullback.fst f g) (pullback.fst f h))
(pullback.fst g h) (pullback.snd f g) := by
refine ⟨⟨by simp⟩, ⟨PullbackCone.IsLimit.mk _ ?_ ?_ ?_ ?_⟩⟩
· intro c
refine pullback.lift c.snd
(pullback.lift (c.snd ≫ pullback.fst _ _) (c.fst ≫ pullback.snd _ _) ?_) ?_
· simp [pullback.condition, ← c.condition_assoc]
· simp
· intro c
apply pullback.hom_ext <;> simp [c.condition]
· intro c
apply pullback.hom_ext <;> simp
· intro c m hfst hsnd
refine pullback.hom_ext (by simpa) ?_
apply pullback.hom_ext <;> simp [← hsnd, pullback.condition, ← hfst]
end Diagonal
section Codiagonal
namespace pushout
variable {X Y : C} (f : X ⟶ Y) [HasPushout f f]
/-- The codiagonal object of a morphism `f : X ⟶ Y` is `pushout f f`. -/
noncomputable abbrev codiagonalObj (f : X ⟶ Y) [HasPushout f f] : C :=
pushout f f
/-- The codiagonal morphism `pushout f f ⟶ Y` for a morphism `f : X ⟶ Y`. -/
noncomputable def codiagonal (f : X ⟶ Y) [HasPushout f f] : codiagonalObj f ⟶ Y :=
pushout.desc ( Y) ( Y) rfl
@[reassoc (attr := simp)]
theorem inl_codiagonal : pushout.inl _ _ ≫ codiagonal f = _ :=
pushout.inl_desc _ _ _
@[reassoc (attr := simp)]
theorem inr_codiagonal : pushout.inr _ _ ≫ codiagonal f = _ :=
pushout.inr_desc _ _ _
lemma op_codiagonal :
(pushout.codiagonal f).op = pullback.diagonal f.op ≫ (pullbackIsoOpPushout _ _).hom := by
rw [← Iso.comp_inv_eq]
ext <;> simp [← op_comp]
instance : IsSplitEpi (codiagonal f) :=
⟨⟨⟨pushout.inl _ _, inl_codiagonal f⟩⟩⟩
instance : IsSplitMono (pushout.inl f f) :=
⟨⟨⟨codiagonal f, inl_codiagonal f⟩⟩⟩
instance : IsSplitMono (pushout.inr f f) :=
⟨⟨⟨codiagonal f, inr_codiagonal f⟩⟩⟩
instance [Epi f] : IsIso (codiagonal f) := by
rw [(IsIso.inv_eq_of_hom_inv_id (inl_codiagonal f)).symm]
infer_instance
lemma isIso_codiagonal_iff : IsIso (codiagonal f) ↔ Epi f :=
⟨fun H ↦ ⟨fun _ _ e ↦ by rw [← inl_desc _ _ e, (cancel_mono (g := inl f f) (h := inr f f)
(codiagonal f)).mp (by simp), inr_desc]⟩, fun _ ↦ inferInstance⟩
end pushout
variable [HasPushouts C]
/--
Given `f : T ⟶ X`, `g : T ⟶ Y`, and `i : S ⟶ T`, the diagram
```
X ⨿ₛ Y ⟶ X ⨿ₜ Y
↑ ↑
| |
| |
T ⨿ₛ T ⟶ T
```
is a pushout square.
-/
theorem isPushout_map_codiagonal {S T : C} (f : T ⟶ X) (g : T ⟶ Y) (i : S ⟶ T) :
IsPushout
(pushout.map i i (i ≫ f) (i ≫ g) f g ( _) (by simp) (by simp))
(pushout.codiagonal i)
(pushout.map (i ≫ f) (i ≫ g) f g ( _) ( _) i (by simp) (by simp))
(f ≫ pushout.inl _ _) := by
rw [← IsPullback.op_iff]
simp only [op_pushoutMap, Quiver.Hom.unop_op, op_comp, unop_comp, op_id, pushout.op_codiagonal]
exact .of_iso (pullback_map_diagonal_isPullback f.op g.op i.op)
(pullbackIsoOpPushout _ _) (.refl _) (pullbackIsoOpPushout _ _) (pullbackIsoOpPushout _ _)
(by simp [← Iso.inv_comp_eq]) (by simp) (by simp) (by simp)
end Codiagonal
end CategoryTheory.Limits
¤ Dauer der Verarbeitung: 0.37 Sekunden
¤
*Bot Zugriff
|
|
2026-11-24
|
|
|
|
|