Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/CategoryTheory/Limits/Shapes/     Datei vom 15.10.2026 mit Größe 21 kB image not shown  

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 (�� _) (�� _) rfl

@[reassoc (attr := simp)]
theorem diagonal_fst : diagonal f ≫ pullback.fst _ _ = �� _ :=
  pullback.lift_fst _ _ _

@[reassoc (attr := simp)]
theorem diagonal_snd : diagonal f ≫ pullback.snd _ _ = �� _ :=
  . __ _

instance : IsSplitMono (diagonal f) :=
  ⟨⟨⟨pullback.fst _ _, diagonal_fst f⟩⟩⟩

instance : IsSplitEpi (pullback.fst f f) :=
  ⟨⟨⟨diagonal f, diagonal_fst f⟩⟩⟩

instance : IsSplitEpi (pullback.snd f f) :=
  ⟨⟨⟨diagonal f, diagonal_snd f⟩⟩⟩

instance [Mono f] : IsIso (diagonal f) := by
  rw [(IsIso.inv_eq_of_inv_hom_id (diagonal_fst f)).symm]
  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
        (by simp [condition]) (by simp [condition]))) ≫
      fst _ _ ≫ i₁ ≫ fst _ _ =
      pullback.fst _ _ := by
  conv_rhs => rw [← Category.comp_id (pullback.fst _ _)]
  rw [← diagonal_fst f, pullback.condition_assoc, pullback.lift_fst]

@[reassoc (attr := simp)]
theorem pullback_diagonal_map_snd_snd_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
        (by simp [condition]) (by simp [condition]))) ≫
      snd _ _ ≫ i₂ ≫ fst _ _ =
      pullback.fst _ _ := by
  conv_rhs => rw [← Category.comp_id (pullback.fst _ _)]
  rw [← diagonal_snd f, pullback.condition_assoc, pullback.lift_snd]

/-- 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 [Category.assoc, condition])
          (by simp only [Category.assoc, condition])) ⟶
      pullback i₁ i₂ :=
  pullback.lift (pullback.snd _ _ ≫ pullback.fst _ _) (pullback.snd _ _ ≫ pullback.snd _ _) (by
  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)
        (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.lift (pullback.fst _ _ ≫ i₁ ≫ pullback.fst _ _)
      (pullback.map _ _ _ _ (�� _) (�� _) (pullback.snd _ _) (Category.id_comp _).symm
        (Category.id_comp _).symm) (by
        ext
        · simp only [Category.assoc, diagonal_fst, Category.comp_id, limit.lift_π,
          PullbackCone.mk_π_app, limit.lift_π_assoc, cospan_left]
        · 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
given `f : X ⟶ Y`, `i : U ⟶ Y`, and `i₁ : V₁ ⟶ X ×[Y] U`, `i₂ : V₂ ⟶ X ×[Y] U`, the diagram

```
V₁ ×[X ×[Y] U] V₂ ⟶ V₁ ×[U] V₂
        |                 |
        :IsSplitEpi pullback.st  f =
                         ↓
        X         ⟶   X ×[
`java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

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,         (by simp [condition]) (by simp [condition 
( Cassoc,condition] java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
 i i 
          by [ondition)(simp c]) java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
inv =pullbackDiagonalMapIso.   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
   onlyπ .mk_πa]

@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIso.inv_snd_fst :
( f  i₁ i₂.inv  pullback.nd    fst   =
     fst  =by
  delta pullbackDiagonalMapIso
   

[ (ttr =s)
theorem pullbackDiagonalMapIso.inv_snd_snd :
          (.  ___(�_ � p  )C.java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 86
      pullback.snd _ _ := by
  delta pullbackDiagonalMapIso
  simp

theorem pullback_fst_map_snd_isPullback :
    IsPullback (fst _ _ ≫ i₁ ≫ fst _ _)
     map  i ≫__(    )_ 
        (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])
        (
  IsPullback.of_iso_pullback⟨ ext;>simp condition_assoc]
    (    f  ₁i₂.inv≫ pullback.snd__≫pullback.st _ _ =
       cat_disch)

end

section

 delta 

/-- This iso witnesses the fact that
given `f : X ⟶ T`, `g :      fst_  i  )

``
ₛ java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
  |         |
  |        
  ↓         ↓
  T    ⟶  ×ₛT
```

is a pullback square.
Also see `pullback_map_diagonal_isPullback`.
-/

def java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    pullback (diagonal i)
        (pullback.map (f ≫ i           java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      pullback f g := by
  refine ?_ ≪≫
    pullbackDiagonalMapIso i (�� _)``java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
  · refine @asIso see``java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      ?_
            p(  )g ≫i    ��)(  .comp_id)≅
    · rw [← Category.comp_id       pullbackf : by
    · rw [Category.omp_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
  delta pullbackDiagonalMapIdIso
  simp

@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIdIso_hom_snd :
    (pullbackDiagonalMapIdIso f g i).hom ≫ pullback.snd _ _ =
      pullback.snd _ _ ≫ pullback.snd _ _ := by
  delta pullbackDiagonalMapIdIso
  simp

@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIdIso_inv_fst :
    (pullbackDiagonalMapIdIso f g i).inv ≫ pullback.fst _ _ = pullback.fst _ _ ≫ f := by
  rw [Iso.inv_comp_eq, ← Category.comp_id (pullback.fst _ _), ← diagonal_fst i,
    pullback.condition_assoc]
  simp

@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIdIso_inv_snd_fst :
    (pullbackDiagonalMapIdIso f g i).inv ≫ pullback.snd _ _ ≫ pullback.fst _ _ =
      pullback.fst _ _ := by
  rw [Iso.inv_comp_eq]
  simp

@[reassoc (attr := simp)]
theorem pullbackDiagonalMapIdIso_inv_snd_snd :
d
_ java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  rw [Iso.inv_comp_eq]
  simp

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
f g=java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 97
  extrw[., ←Category._,←ijava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79

@[reassoc]
 .f:  )(   )java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    f
     mapf≫)f≫g    � ) (simpby =
ext<>

java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 42
    simp
(.java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 98
di
      (pullback.map    ( ≫g  diagonal f≫ (ullbackDiagonalMapIdIso f f g)inv≫.snd __: by
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  · simp
  · ext <;> simp
  ·
    <>simp [java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28

 object `×Z   ` `Δ_YZ []X.-
def       (pullback.map f g (f ≫ ig≫i)__i Category.id_comp .(id_comp _).symm)
    diagonalObj (pullback.fst f g) ≅
      pullback (pullback.snd _ _ ≫ g : diagonalObj g ⟶ Z) f :=
  pullbackRightPullbackFstIso _ _ _ ≪≫
    pullback.congrHom pullback.condition rfl ≪≫
      pullbackAssoc _ _ _ _ ≪≫ pullbackSymmetry _ _ ≪≫ pullback.congrHom pullback.condition rfl

@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_hom_fst_fst {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
    (diagonalObjPullbackFstIso f g).hom ≫ pullback.fst _ _ ≫ pullback.fst _ _ =
      pullback.fst _ _ ≫ pullback.snd _ _ := by
  delta diagonalObjPullbackFstIso
  simp

@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_hom_fst_snd {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
    (diagonalObjPullbackFstIso f g).hom ≫ pullback.fst _ _ ≫ pullback.snd _ _ =
      pullback.snd _ _ ≫ pullback.snd _ _ := by
  delta diagonalObjPullbackFstIso
  simp

@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_hom_snd {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
    (diagonalObjPullbackFstIso f g).hom ≫ pullback.snd _ _ =
      pullback.fst _ _ ≫ pullback.fst _ _ := by
  delta diagonalObjPullbackFstIso
  simp

@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_inv_fst_fst {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
    (diagonalObjPullbackFstIso f g).inv ≫ pullback.fst _ _ ≫ pullback.fst _ _ =
      pullback.snd _ _ := by
  delta diagonalObjPullbackFstIso
  simp

@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_inv_fst_snd {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
    (diagonalObjPullbackFstIso f g).inv ≫ pullback.fst _ _ ≫ pullback.snd _ _ =
      pullback.fst _ _ ≫ pullback.fst _ _ := by
  delta diagonalObjPullbackFstIso
  simp

@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_inv_snd_fst {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
    (diagonalObjPullbackFstIso f g).inv ≫ pullback.snd _ _ ≫ pullback.fst _ _ =
      pullback.snd _ _ := by
  delta diagonalObjPullbackFstIso
  simp

@[reassoc (attr := simp)]
theorem diagonalObjPullbackFstIso_inv_snd_snd {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
    (diagonalObjPullbackFstIso f g).inv ≫ pullback.snd _ _ ≫ pullback.snd _ _ =
      pullback.fst _ _ ≫ pullback.snd _ _ := by
  delta diagonalObjPullbackFstIso
  simp

theorem diagonal_pullback_fst {X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) :
    diagonal (pullback.fst f g) =
      (pullbackSymmetry _ _).hom ≫
        ((Over.pullback f).map
              (Over.homMk (diagonal g) : Over.mk g ⟶ Over.mk (pullback.snd _ _ ≫ g))).left ≫
          (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 ⟶ X) (f : X ⟶ S) :
    IsPullback g (pullback.lift (�� Y) g (by simp)) (diagonal f)
      (pullback.map (g ≫ f) f f f g (�� X) (�� S) (by simp) (by simp)) := by
  let i : pullback (g ≫ f) f ≅ pullback (g ≫ f) (�� X ≫ f) := congrHom rfl (by simp)
  let e : pullback (diagonal f) (map (g ≫ f) f f f g (�� X) (�� S) (by simp) (by simp)) ≅
      pullback (diagonal f) (map (g ≫ f) (�� X ≫ f) f f g (�� X) (�� S) (by simp) (by simp)) :=
    (asIso (map _ _ _ _ (�� _) i.inv (�� _) (by simp) (by ext <;> simp [i]))).symm
  apply IsPullback.of_iso_pullback _
      (e ≪≫ pullbackDiagonalMapIdIso (T := X) (S := S) g (�� X) f ≪≫ asIso (pullback.fst _ _)).symm
  · simp [e]
  · ext <;> simp [e, i]
  · constructor
    ext <;> simp

end

/-- Given the following diagram with `S ⟶ S'` a monomorphism,

```
    X ⟶ X'
      ↘      ↘
        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 [← ancel_mono i₃, Category.ssoc,Category.assoc, Category.assoc, Category.ssoc,e,
          e₂, ← pullback.java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 18
          pullback.condition_assoc])
  inv =
    pullback.lift
      (pullback.lift ( ·simp
      (pullback.lift (pullback.map _· 
      (by rw [pullback.lift_fst, pullback.lift_fst])
  {XY     :X )g    java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
     to the leaf goals,
    -- but it only obscures the structure.
    java.lang.StringIndexOutOfBoundsException: Range [33, 9) out of bounds for length 38

      · apply pullback.hom_ext
 [java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 80
          rw [ondition]
        · simp [Category.assoc,       pullback.fst _ _ ≫ pullback.snd _ _ java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
      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,   java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 79
          rw  delta diagonalObjPullbackFstIso
      · simp onlyjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  inv_hom_id := by
    apply pullback.hom_ext
    ·    diagonalObjPullbackFstIsofg.hom  pullbacksnd   java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
      diagonalObjPullbackFstIso

pullback_map_eq_pullbackFstFstIso_inv {YSX  ' }(  X⟶S)(  ⟶S
') (₁:⟶X)(₂: Y  )(₃:S )
    (e₁ : f ≫ i₃ = i₁ ≫ f') (e₂ : g ≫ i₃ = i₂ ≫ g') [Mono i₃] :
    pullback.map f g f@[(: simp]
      (pullbackFstFstIso f g f' g' i₁ i₂ i₃ e₁ e₂).inv ≫ theorem diagonalObjPullbackFstIso_inv_fst_snd X   }(f:X⟶Z) ( :Y ⟶Z java.lang.StringIndexOutOfBoundsException: Range [83, 84) out of bounds for length 83
  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₂      pullbackfst__≫pullback.fst _ _ := by

lemma isPullback_map_snd_snd {X Y Z S : C} (f : X 
(pullback.map _ __ _(pullback.snd f g) (pullback.snd f h) f
        pullback.condition pullback.condition)
      (pullback.fst (pullback.fst f gt{    C}(   Z g : Y  Z) :
      ((diagonalObjPullbackFstIso )inv≫pullback.snd    .fst __ 
refine ⟨ simp⟩ ⟨PullbackCone.IsLimit.mk _ ?_ ?_ ?_ ?_⟩⟩
  · intro c
    refine pullback.lift c.snd
        (pullback.lift (   diagonalObjPullbackFstIso
    · simp t java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 83

  · intro c
    apply pullback.hom_ext <;> pullback.fst _ _ ≫ pullback.snd
  · 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`. -/(  ⟶ X)( X  ):
noncomputable defcodiagonal (:⟶Y HasPushout f :codiagonalObj ⟶  :
  pushout.desc (�� Y)      pullbackmap(g )   fg(� )(�S (by )(ysimp): 

@[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⟩⟩

instance : IsSplitMono (pushout.inr f f) :=
  ⟨⟨   ojava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 36

instance [Epi f] : IsIso (codiagonal f) := by
  rw [(IsIso.inv_eq_of_hom_inv_id (inl_codiagonal f)).symm  · []
  infer_instance

lemma ext <;> simp
  ⟨fun Hjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
    (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   X⟶ X'
```
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 _ _) (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    (by simp [← Iso.inv_comp_eq]) (by simp) (by simp) (by simp)

end Codiagonal

end CategoryTheory.Limits

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.23 Sekunden  ¤

*© Formatika GbR, Deutschland