Theorem: CategoryTheory.Limits.Concrete.isColimit_rep_eq_of_exists
File: Mathlib/CategoryTheory/Limits/ConcreteCategory.lean

Proof steps:
state_before: C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
h : ∃ k f g, (F.map f) x = (F.map g) y
⊢ (D.ι.app i) x = (D.ι.app j) y
state_after: C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
h : ∃ k f g, (F.map f) x = (F.map g) y
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
⊢ (D.ι.app i) x = (D.ι.app j) y
tactic: let E := (forget C).mapCocone D
state_before: C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
h : ∃ k f g, (F.map f) x = (F.map g) y
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
⊢ (D.ι.app i) x = (D.ι.app j) y
state_after: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
⊢ (D.ι.app i) x = (D.ι.app j) y
tactic: obtain ⟨k, f, g, (hfg : (F ⋙ forget C).map f x = F.map g y)⟩ := h
state_before: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
⊢ (D.ι.app i) x = (D.ι.app j) y
state_after: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
⊢ (D.ι.app i) x = (D.ι.app j) y
tactic: let h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
state_before: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
⊢ (D.ι.app i) x = (D.ι.app j) y
state_after: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
h2 : (F ⋙ forget C).map g ≫ E.ι.app k = E.ι.app j := E.ι.naturality g
⊢ (D.ι.app i) x = (D.ι.app j) y
tactic: let h2 : (F ⋙ forget C).map g ≫ E.ι.app k = E.ι.app j := E.ι.naturality g
state_before: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
h2 : (F ⋙ forget C).map g ≫ E.ι.app k = E.ι.app j := E.ι.naturality g
⊢ (D.ι.app i) x = (D.ι.app j) y
state_after: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
h2 : (F ⋙ forget C).map g ≫ E.ι.app k = E.ι.app j := E.ι.naturality g
⊢ E.ι.app i x = E.ι.app j y
tactic: show E.ι.app i x = E.ι.app j y
state_before: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
h2 : (F ⋙ forget C).map g ≫ E.ι.app k = E.ι.app j := E.ι.naturality g
⊢ E.ι.app i x = E.ι.app j y
state_after: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
h2 : (F ⋙ forget C).map g ≫ E.ι.app k = E.ι.app j := E.ι.naturality g
⊢ E.ι.app k ((F.map g) y) = E.ι.app j y
tactic: rw [← h1, types_comp_apply, hfg]
state_before: case intro.intro.intro
C : Type u
inst✝² : Category.{v, u} C
inst✝¹ : ConcreteCategory C
J : Type w
inst✝ : Category.{r, w} J
F : J ⥤ C
D : Cocone F
i j : J
x : (forget C).obj (F.obj i)
y : (forget C).obj (F.obj j)
E : Cocone (F ⋙ forget C) := (forget C).mapCocone D
k : J
f : i ⟶ k
g : j ⟶ k
hfg : (F ⋙ forget C).map f x = (F.map g) y
h1 : (F ⋙ forget C).map f ≫ E.ι.app k = E.ι.app i := E.ι.naturality f
h2 : (F ⋙ forget C).map g ≫ E.ι.app k = E.ι.app j := E.ι.naturality g
⊢ E.ι.app k ((F.map g) y) = E.ι.app j y
state_after: no goals
tactic: exact congrFun h2 y