-- Lean 4 proof step from Mathlib.CategoryTheory.Limits.Shapes.Equalizers (goal)
Goal:
C : Type u
inst : Category.{v, u} C
X Y : C
f_1 g : X ⟶ Y
P : C
ι : P ⟶ X
w : ι ≫ f_1 = ι ≫ g
f : zero ⟶ zero
⊢ Eq.{v + 1} (α :=
    Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) zero ⟶ (parallelPair f_1 g).obj zero)
    (Functor.map (Functor.obj (Functor.const WalkingParallelPair) P) f ≫
      WalkingParallelPair.casesOn (motive := fun (t : WalkingParallelPair) ↦
        (h : zero = t) →
          Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) zero ⟶
            (parallelPair f_1 g).obj zero)
        zero
        (fun (h : zero = zero) ↦
          Eq.ndrec (motive := fun (X_1 : WalkingParallelPair) ↦
            Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) X_1 ⟶
              (parallelPair f_1 g).obj X_1)
            ι ⋯)
        (fun (h : zero = one) ↦
          Eq.ndrec (motive := fun (X_1 : WalkingParallelPair) ↦
            Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) X_1 ⟶
              (parallelPair f_1 g).obj X_1)
            (ι ≫ f_1) ⋯)
        ⋯)
    (WalkingParallelPair.casesOn (motive := fun (t : WalkingParallelPair) ↦
        (h : zero = t) →
          Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) zero ⟶
            (parallelPair f_1 g).obj zero)
        zero
        (fun (h : zero = zero) ↦
          Eq.ndrec (motive := fun (X_1 : WalkingParallelPair) ↦
            Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) X_1 ⟶
              (parallelPair f_1 g).obj X_1)
            ι ⋯)
        (fun (h : zero = one) ↦
          Eq.ndrec (motive := fun (X_1 : WalkingParallelPair) ↦
            Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) X_1 ⟶
              (parallelPair f_1 g).obj X_1)
            (ι ≫ f_1) ⋯)
        ⋯ ≫
      (parallelPair f_1 g).map f)
have zero : Eq.{v + 1} (α :=
  Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) zero ⟶ (parallelPair f_1 g).obj zero)
  (Functor.map (Functor.obj (Functor.const WalkingParallelPair) P) (WalkingParallelPairHom.id zero) ≫
    WalkingParallelPair.casesOn (motive := fun (t : WalkingParallelPair) ↦
      (h : zero = t) →
        Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) zero ⟶
          (parallelPair f_1 g).obj zero)
      zero
      (fun (h : zero = zero) ↦
        Eq.ndrec (motive := fun (X_1 : WalkingParallelPair) ↦
          Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) X_1 ⟶
            (parallelPair f_1 g).obj X_1)
          ι sorry)
      (fun (h : zero = one) ↦
        Eq.ndrec (motive := fun (X_1 : WalkingParallelPair) ↦
          Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) X_1 ⟶
            (parallelPair f_1 g).obj X_1)
          (ι ≫ f_1) sorry)
      sorry)
  (WalkingParallelPair.casesOn (motive := fun (t : WalkingParallelPair) ↦
      (h : zero = t) →
        Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) zero ⟶
          (parallelPair f_1 g).obj zero)
      zero
      (fun (h : zero = zero) ↦
        Eq.ndrec (motive := fun (X_1 : WalkingParallelPair) ↦
          Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) X_1 ⟶
            (parallelPair f_1 g).obj X_1)
          ι sorry)
      (fun (h : zero = one) ↦
        Eq.ndrec (motive := fun (X_1 : WalkingParallelPair) ↦
          Functor.obj.{0, v, 0, u} (Functor.obj (Functor.const WalkingParallelPair) P) X_1 ⟶
            (parallelPair f_1 g).obj X_1)
          (ι ≫ f_1) sorry)
      sorry ≫
    (parallelPair f_1 g).map (WalkingParallelPairHom.id zero))
Tactic: cases f
Cleared hypotheses: f