English
The property epiWithInjectiveKernel is closed under identities and composition (i.e., multiplicative).
Русский
Свойство epiWithInjectiveKernel замкнуто относительно единицы и композиции (множимо).
LaTeX
$$$\\mathrm{epiWithInjectiveKernel}$ is multiplicative:\\ id_mem\\,\\, {\\rm comp\\_mem}$$$
Lean4
instance : (epiWithInjectiveKernel : MorphismProperty C).IsMultiplicative
where
id_mem _ := epiWithInjectiveKernel_of_iso _
comp_mem {X Y Z} g₁ g₂ hg₁
hg₂ := by
rw [epiWithInjectiveKernel_iff] at hg₁ hg₂ ⊢
obtain ⟨I₁, _, f₁, w₁, ⟨σ₁⟩⟩ := hg₁
obtain ⟨I₂, _, f₂, w₂, ⟨σ₂⟩⟩ := hg₂
refine ⟨I₁ ⊞ I₂, inferInstance, biprod.fst ≫ f₁ + biprod.snd ≫ f₂ ≫ σ₁.s, ?_, ⟨?_⟩⟩
· ext
· simp [reassoc_of% w₁]
· simp [reassoc_of% σ₁.s_g, w₂]
·
exact
{ r := σ₁.r ≫ biprod.inl + g₁ ≫ σ₂.r ≫ biprod.inr
s := σ₂.s ≫ σ₁.s
f_r := by
ext
· simp [σ₁.f_r]
· simp [reassoc_of% w₁]
· simp
· simp [reassoc_of% σ₁.s_g, σ₂.f_r]
s_g := by simp [reassoc_of% σ₁.s_g, σ₂.s_g]
id := by
dsimp
have h := g₁ ≫= σ₂.id =≫ σ₁.s
simp only [add_comp, assoc, comp_add, id_comp] at h
rw [← σ₁.id, ← h]
simp only [comp_add, add_comp, assoc, BinaryBicone.inl_fst_assoc, BinaryBicone.inr_fst_assoc, zero_comp,
comp_zero, add_zero, BinaryBicone.inl_snd_assoc, BinaryBicone.inr_snd_assoc, zero_add]
abel }