-- Lean 4 proof step from Mathlib.CategoryTheory.Triangulated.Adjunction (goal)
Goal:
C : Type u_1
D : Type u_2
inst : Category.{v_1, u_1} C
inst_1 : Category.{v_2, u_2} D
inst_2 : HasZeroObject.{v_1, u_1} C
inst_3 : HasZeroObject.{v_2, u_2} D
inst_4 : Preadditive.{v_1, u_1} C
inst_5 : Preadditive.{v_2, u_2} D
inst_6 : HasShift.{v_1, u_1, 0} C ℤ
inst_7 : HasShift.{v_2, u_2, 0} D ℤ
inst_8 : ∀ (n : ℤ), Functor.Additive.{v_1, u_1, v_1, u_1} (shiftFunctor C n)
inst_9 : ∀ (n : ℤ), Functor.Additive.{v_2, u_2, v_2, u_2} (shiftFunctor D n)
inst_10 : Pretriangulated.{v_1, u_1} C
inst_11 : Pretriangulated.{v_2, u_2} D
F : Functor.{v_1, v_2, u_1, u_2} C D
G : Functor.{v_2, v_1, u_2, u_1} D C
adj : F ⊣ G
inst_12 : F.CommShift ℤ
inst_13 : G.CommShift ℤ
inst_14 : adj.CommShift ℤ
inst_15 : F.IsTriangulated
T : Triangle.{v_2, u_2} D
hT : Membership.mem (γ := Set (Triangle.{v_2, u_2} D)) (@distinguishedTriangles _ _ inst_3 _ inst_5 inst_9 _) T
this : G.Additive
Z : C
f : G.obj T.obj₂ ⟶ Z
g : Z ⟶ Functor.obj.{v_1, v_1, u_1, u_1} (shiftFunctor C (A := ℤ) 1) (G.obj T.obj₁)
mem :
  Membership.mem (γ := Set (Triangle.{v_1, u_1} C)) (@distinguishedTriangles _ _ inst_2 _ inst_4 inst_8 _)
    (Triangle.mk (G.map T.mor₁) f g)
h : F.obj Z ⟶ T.obj₃
h₁ : F.map f ≫ h = adj.counit.app T.obj₂ ≫ T.mor₂
h₂ :
  F.map g ≫
      NatTrans.app (Iso.hom (Functor.commShiftIso F 1)) (G.obj T.obj₁) ≫
        Functor.map (shiftFunctor D (A := ℤ) 1) (adj.counit.app T.obj₁) =
    h ≫ T.mor₃
h₁' : f ≫ adj.unit.app Z ≫ G.map h = G.map T.mor₂
h₂' :
  Eq (α := Z ⟶ (shiftFunctor D (A := ℤ) 1 ⋙ G).obj T.obj₁)
    (g ≫ NatTrans.app (Iso.inv (Functor.commShiftIso G 1)) T.obj₁)
    (((adj.homEquiv Z T.obj₃ : Equiv.{v_2 + 1, v_1 + 1} (F.obj Z ⟶ T.obj₃) (Z ⟶ G.obj T.obj₃)) :
          (a : F.obj Z ⟶ T.obj₃) → Z ⟶ G.obj T.obj₃)
        h ≫
      G.map T.mor₃)
P : C
φ : P ⟶ Z
hφ : φ ≫ adj.unit.app Z ≫ G.map h = 0
rw :
  Eq (α := P ⟶ (shiftFunctor D (A := ℤ) 1 ⋙ G).obj T.obj₁)
    ((φ ≫ g) ≫ NatTrans.app (Iso.inv (Functor.commShiftIso G 1)) T.obj₁)
    (CategoryStruct.comp (Y := (G ⋙ shiftFunctor C (A := ℤ) 1).obj T.obj₁) 0
      (NatTrans.app (Iso.inv (Functor.commShiftIso G 1)) T.obj₁))
rw₁ :
  Eq (α := P ⟶ (shiftFunctor D (A := ℤ) 1 ⋙ G).obj T.obj₁)
    (φ ≫ g ≫ NatTrans.app (Iso.inv (Functor.commShiftIso G 1)) T.obj₁)
    (CategoryStruct.comp (Y := (G ⋙ shiftFunctor C (A := ℤ) 1).obj T.obj₁) 0
      (NatTrans.app (Iso.inv (Functor.commShiftIso G 1)) T.obj₁))
rw₂ :
  Eq (α := P ⟶ (shiftFunctor D (A := ℤ) 1 ⋙ G).obj T.obj₁)
    (φ ≫
      ((adj.homEquiv Z T.obj₃ : Equiv.{v_2 + 1, v_1 + 1} (F.obj Z ⟶ T.obj₃) (Z ⟶ G.obj T.obj₃)) :
            (a : F.obj Z ⟶ T.obj₃) → Z ⟶ G.obj T.obj₃)
          h ≫
        G.map T.mor₃)
    (CategoryStruct.comp (Y := (G ⋙ shiftFunctor C (A := ℤ) 1).obj T.obj₁) 0
      (NatTrans.app (Iso.inv (Functor.commShiftIso G 1)) T.obj₁))
rw₃ :
  Eq (α := P ⟶ (shiftFunctor D (A := ℤ) 1 ⋙ G).obj T.obj₁)
    (φ ≫
      ((adj.homEquiv Z T.obj₃ : Equiv.{v_2 + 1, v_1 + 1} (F.obj Z ⟶ T.obj₃) (Z ⟶ G.obj T.obj₃)) :
            (a : F.obj Z ⟶ T.obj₃) → Z ⟶ G.obj T.obj₃)
          h ≫
        G.map T.mor₃)
    0
rw₄ : φ ≫ (adj.unit.app Z ≫ G.map h) ≫ G.map T.mor₃ = 0
⊢ φ ≫ g = 0
have rw₅ : φ ≫ adj.unit.app Z ≫ G.map h ≫ G.map T.mor₃ = 0
Tactic: rw [← cancel_mono ((G.commShiftIso (1 : ℤ)).inv.app T.obj₁), assoc, h₂', zero_comp,
          homEquiv_unit, assoc, reassoc_of% hφ, zero_comp]