-- Lean 4 proof step from Mathlib.CategoryTheory.Sites.Subsheaf (hypothesis)
Goal:
C : Type u
inst : Category.{v, u} C
J : GrothendieckTopology.{v, u} C
F_1 F'_1 F'' : Functor.{v, w, u, w + 1} Cᵒᵖ (Type w)
G G'_1 : Subfunctor F_1
F F' : Sheaf J (Type w)
f : F ⟶ F'
G' : Sheaf J (Type w)
g₁ g₂ : Sheaf.image f ⟶ G'
e : Sheaf.toImage f ≫ g₁ = Sheaf.toImage f ≫ g₂
U : Cᵒᵖ
s : F'.obj (P := Presheaf.IsSheaf J).obj U
hx : s ∈ (Subfunctor.sheafify J (Subfunctor.range f.hom)).obj U
V : C
i : V ⟶ unop U
y : F.obj (P := Presheaf.IsSheaf J).obj (op V)
e' :
  Eq (α := F'.obj (P := Presheaf.IsSheaf J).obj (op V))
    ((ConcreteCategory.hom (FC := TypeCat.Fun) (f.hom.app (op V)) :
          (a : (fun (X : Type w) ↦ X) (F.obj.obj (op V))) → (fun (X : Type w) ↦ X) (F'.obj.obj (op V)))
        y :
      (fun (X : Type w) ↦ X) (F'.obj (P := Presheaf.IsSheaf J).obj (op V)))
    ((ConcreteCategory.hom (FC := TypeCat.Fun) (F'.obj (P := Presheaf.IsSheaf J).map i.op) :
          (a : (fun (X : Type w) ↦ X) (F'.obj.obj (op (unop U)))) → (fun (X : Type w) ↦ X) (F'.obj.obj (op V)))
        s :
      (fun (X : Type w) ↦ X) (F'.obj (P := Presheaf.IsSheaf J).obj (op V)))
⊢ Eq (α := (fun (X : Type w) ↦ X) (G'.obj (P := Presheaf.IsSheaf J).obj (op V)))
    ((ConcreteCategory.hom (FC := TypeCat.Fun)
            ((Sheaf.image f).obj (P := Presheaf.IsSheaf J).map i.op ≫ g₁.hom.app (op V)) :
          (a : (fun (X : Type w) ↦ X) ((Sheaf.image f).obj.obj (op (unop U)))) →
            (fun (X : Type w) ↦ X) (G'.obj.obj (op V)))
        (Subtype.mk (p := fun (x : F'.obj (P := Presheaf.IsSheaf J).obj U) ↦
          x ∈ (Subfunctor.sheafify J (Subfunctor.range f.hom)).obj U) s hx) :
      (fun (X : Type w) ↦ X) (G'.obj (P := Presheaf.IsSheaf J).obj (op V)))
    ((ConcreteCategory.hom (FC := TypeCat.Fun)
            ((Sheaf.image f).obj (P := Presheaf.IsSheaf J).map i.op ≫ g₂.hom.app (op V)) :
          (a : (fun (X : Type w) ↦ X) ((Sheaf.image f).obj.obj (op (unop U)))) →
            (fun (X : Type w) ↦ X) (G'.obj.obj (op V)))
        (Subtype.mk (p := fun (x : F'.obj (P := Presheaf.IsSheaf J).obj U) ↦
          x ∈ (Subfunctor.sheafify J (Subfunctor.range f.hom)).obj U) s hx) :
      (fun (X : Type w) ↦ X) (G'.obj (P := Presheaf.IsSheaf J).obj (op V)))
have E : Eq (α := (fun (X : Type w) ↦ X) ((Sheaf.image f).obj (P := Presheaf.IsSheaf J).obj (op V)))
  ((ConcreteCategory.hom (FC := TypeCat.Fun) ((Sheaf.toImage f).hom.app (op V)) :
        (a : (fun (X : Type w) ↦ X) (F.obj.obj (op V))) → (fun (X : Type w) ↦ X) ((Sheaf.image f).obj.obj (op V)))
      y :
    (fun (X : Type w) ↦ X) ((Sheaf.image f).obj (P := Presheaf.IsSheaf J).obj (op V)))
  ((ConcreteCategory.hom (FC := TypeCat.Fun) ((Sheaf.image f).obj (P := Presheaf.IsSheaf J).map i.op) :
        (a : (fun (X : Type w) ↦ X) ((Sheaf.image f).obj.obj (op (unop U)))) →
          (fun (X : Type w) ↦ X) ((Sheaf.image f).obj.obj (op V)))
      (Subtype.mk (p := fun (x : F'.obj (P := Presheaf.IsSheaf J).obj (op (unop U))) ↦
        Membership.mem (γ := Set (F'.obj (P := Presheaf.IsSheaf J).obj (op (unop U))))
          ((Subfunctor.sheafify J (Subfunctor.range f.hom)).obj (op (unop U))) x)
        s hx) :
    (fun (X : Type w) ↦ X) ((Sheaf.image f).obj (P := Presheaf.IsSheaf J).obj (op V)))
Tactic: have E : (Sheaf.toImage f).hom.app (op V) y = (Sheaf.image f).obj.map i.op ⟨s, hx⟩ :=
    Subtype.ext e'