English
The extensional principle for double_hom: equality on i0 and i1 suffices.
Русский
Принцип экстренции для двойного гомоморфизма: равенство на i0 и i1 достаточно.
LaTeX
$$$\forall (φ φ' : K \to \text{double } f hi₀₁),\; φ.f i_0 = φ'.f i_0 ∧ φ.f i_1 = φ'.f i_1 \Rightarrow φ = φ'$$$
Lean4
@[ext]
theorem from_double_hom_ext {K : HomologicalComplex C c} {φ φ' : double f hi₀₁ ⟶ K} (h₀ : φ.f i₀ = φ'.f i₀)
(h₁ : φ.f i₁ = φ'.f i₁) : φ = φ' := by
ext k
by_cases h : k = i₀ ∨ k = i₁
· obtain rfl | rfl := h <;> assumption
· simp only [not_or] at h
apply (isZero_double_X f hi₀₁ k h.1 h.2).eq_of_src