Module: Mathlib.CategoryTheory.Limits.Shapes.Equalizers

Goal state before:
pp: ⊢ ∀ {X Y Z : WalkingParallelPair} (f : X ⟶ Y) (g : Y ⟶ Z),
    WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
        X = a →
          Z = a_1 →
            f ≫ g ≍ t →
              (op
                  (match X with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match Z with
                  | zero => one
                  | one => zero)))
        (f ≫ g)
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ Z) →
              Z = one →
                f ≍ left →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ left →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op left) ⋯ f)
            ⋯ (f ≫ g))
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ Z) →
              Z = one →
                f ≍ right →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ right →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op right) ⋯ f)
            ⋯ (f ≫ g))
        (fun X_1 h ↦
          Eq.ndrec (motive := fun X_2 ↦
            Z = X_2 →
              f ≫ g ≍ WalkingParallelPairHom.id X_2 →
                (op
                    (match X with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z with
                    | zero => one
                    | one => zero)))
            (fun h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : X ⟶ Y) →
                  f ≍ WalkingParallelPairHom.id X →
                    (op
                        (match X with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦
                  Quiver.Hom.op
                    (WalkingParallelPairHom.id
                      (match X with
                      | zero => one
                      | one => zero)))
                ⋯ (f ≫ g))
            h)
        ⋯ ⋯ ⋯ =
      WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
          X = a →
            Y = a_1 →
              f ≍ t →
                (op
                    (match X with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Y with
                    | zero => one
                    | one => zero)))
          f
          (fun h ↦
            Eq.ndrec (motive := fun {X} ↦
              (f : X ⟶ Y) →
                Y = one →
                  f ≍ left →
                    (op
                        (match X with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
              (fun f h ↦
                Eq.ndrec (motive := fun {Y} ↦
                  (f : zero ⟶ Y) →
                    f ≍ left →
                      (op
                          (match zero with
                          | zero => one
                          | one => zero) ⟶
                        op
                          (match Y with
                          | zero => one
                          | one => zero)))
                  (fun f h ↦ Quiver.Hom.op left) ⋯ f)
              ⋯ f)
          (fun h ↦
            Eq.ndrec (motive := fun {X} ↦
              (f : X ⟶ Y) →
                Y = one →
                  f ≍ right →
                    (op
                        (match X with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
              (fun f h ↦
                Eq.ndrec (motive := fun {Y} ↦
                  (f : zero ⟶ Y) →
                    f ≍ right →
                      (op
                          (match zero with
                          | zero => one
                          | one => zero) ⟶
                        op
                          (match Y with
                          | zero => one
                          | one => zero)))
                  (fun f h ↦ Quiver.Hom.op right) ⋯ f)
              ⋯ f)
          (fun X_1 h ↦
            Eq.ndrec (motive := fun X_2 ↦
              Y = X_2 →
                f ≍ WalkingParallelPairHom.id X_2 →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun h ↦
                Eq.ndrec (motive := fun {Y} ↦
                  (f : X ⟶ Y) →
                    f ≍ WalkingParallelPairHom.id X →
                      (op
                          (match X with
                          | zero => one
                          | one => zero) ⟶
                        op
                          (match Y with
                          | zero => one
                          | one => zero)))
                  (fun f h ↦
                    Quiver.Hom.op
                      (WalkingParallelPairHom.id
                        (match X with
                        | zero => one
                        | one => zero)))
                  ⋯ f)
              h)
          ⋯ ⋯ ⋯ ≫
        WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
          Y = a →
            Z = a_1 →
              g ≍ t →
                (op
                    (match Y with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z with
                    | zero => one
                    | one => zero)))
          g
          (fun h ↦
            Eq.ndrec (motive := fun {X} ↦
              (f : X ⟶ Z) →
                Z = one →
                  f ≍ left →
                    (op
                        (match X with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Z with
                        | zero => one
                        | one => zero)))
              (fun f h ↦
                Eq.ndrec (motive := fun {Y} ↦
                  (f : zero ⟶ Y) →
                    f ≍ left →
                      (op
                          (match zero with
                          | zero => one
                          | one => zero) ⟶
                        op
                          (match Y with
                          | zero => one
                          | one => zero)))
                  (fun f h ↦ Quiver.Hom.op left) ⋯ f)
              ⋯ g)
          (fun h ↦
            Eq.ndrec (motive := fun {X} ↦
              (f : X ⟶ Z) →
                Z = one →
                  f ≍ right →
                    (op
                        (match X with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Z with
                        | zero => one
                        | one => zero)))
              (fun f h ↦
                Eq.ndrec (motive := fun {Y} ↦
                  (f : zero ⟶ Y) →
                    f ≍ right →
                      (op
                          (match zero with
                          | zero => one
                          | one => zero) ⟶
                        op
                          (match Y with
                          | zero => one
                          | one => zero)))
                  (fun f h ↦ Quiver.Hom.op right) ⋯ f)
              ⋯ g)
          (fun X h ↦
            Eq.ndrec (motive := fun X ↦
              Z = X →
                g ≍ WalkingParallelPairHom.id X →
                  (op
                      (match Y with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z with
                      | zero => one
                      | one => zero)))
              (fun h ↦
                Eq.ndrec (motive := fun {Y_1} ↦
                  (f : Y ⟶ Y_1) →
                    f ≍ WalkingParallelPairHom.id Y →
                      (op
                          (match Y with
                          | zero => one
                          | one => zero) ⟶
                        op
                          (match Y_1 with
                          | zero => one
                          | one => zero)))
                  (fun f h ↦
                    Quiver.Hom.op
                      (WalkingParallelPairHom.id
                        (match Y with
                        | zero => one
                        | one => zero)))
                  ⋯ g)
              h)
          ⋯ ⋯ ⋯

Tactic:
rintro _ _ _ (_ | _ | _) g

Goal state after:
case left
Z✝ : WalkingParallelPair
g : one ⟶ Z✝
⊢ WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
      zero = a →
        Z✝ = a_1 →
          left ≫ g ≍ t →
            (op
                (match zero with
                | zero => one
                | one => zero) ⟶
              op
                (match Z✝ with
                | zero => one
                | one => zero)))
      (left ≫ g)
      (fun h ↦
        Eq.ndrec (motive := fun {X} ↦
          (f : X ⟶ Z✝) →
            Z✝ = one →
              f ≍ left →
                (op
                    (match X with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
          (fun f h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : zero ⟶ Y) →
                f ≍ left →
                  (op
                      (match zero with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦ Quiver.Hom.op left) ⋯ f)
          ⋯ (left ≫ g))
      (fun h ↦
        Eq.ndrec (motive := fun {X} ↦
          (f : X ⟶ Z✝) →
            Z✝ = one →
              f ≍ right →
                (op
                    (match X with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
          (fun f h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : zero ⟶ Y) →
                f ≍ right →
                  (op
                      (match zero with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦ Quiver.Hom.op right) ⋯ f)
          ⋯ (left ≫ g))
      (fun X h ↦
        Eq.ndrec (motive := fun X ↦
          Z✝ = X →
            left ≫ g ≍ WalkingParallelPairHom.id X →
              (op
                  (match zero with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match Z✝ with
                  | zero => one
                  | one => zero)))
          (fun h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : zero ⟶ Y) →
                f ≍ WalkingParallelPairHom.id zero →
                  (op
                      (match zero with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦
                Quiver.Hom.op
                  (WalkingParallelPairHom.id
                    (match zero with
                    | zero => one
                    | one => zero)))
              ⋯ (left ≫ g))
          h)
      ⋯ ⋯ ⋯ =
    WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
        zero = a →
          one = a_1 →
            left ≍ t →
              (op
                  (match zero with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match one with
                  | zero => one
                  | one => zero)))
        left
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ one) →
              one = one →
                f ≍ left →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match one with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ left →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op left) ⋯ f)
            ⋯ left)
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ one) →
              one = one →
                f ≍ right →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match one with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ right →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op right) ⋯ f)
            ⋯ left)
        (fun X h ↦
          Eq.ndrec (motive := fun X ↦
            one = X →
              left ≍ WalkingParallelPairHom.id X →
                (op
                    (match zero with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match one with
                    | zero => one
                    | one => zero)))
            (fun h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ WalkingParallelPairHom.id zero →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦
                  Quiver.Hom.op
                    (WalkingParallelPairHom.id
                      (match zero with
                      | zero => one
                      | one => zero)))
                ⋯ left)
            h)
        ⋯ ⋯ ⋯ ≫
      WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
        one = a →
          Z✝ = a_1 →
            g ≍ t →
              (op
                  (match one with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match Z✝ with
                  | zero => one
                  | one => zero)))
        g
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ Z✝) →
              Z✝ = one →
                f ≍ left →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z✝ with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ left →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op left) ⋯ f)
            ⋯ g)
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ Z✝) →
              Z✝ = one →
                f ≍ right →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z✝ with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ right →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op right) ⋯ f)
            ⋯ g)
        (fun X h ↦
          Eq.ndrec (motive := fun X ↦
            Z✝ = X →
              g ≍ WalkingParallelPairHom.id X →
                (op
                    (match one with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
            (fun h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : one ⟶ Y) →
                  f ≍ WalkingParallelPairHom.id one →
                    (op
                        (match one with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦
                  Quiver.Hom.op
                    (WalkingParallelPairHom.id
                      (match one with
                      | zero => one
                      | one => zero)))
                ⋯ g)
            h)
        ⋯ ⋯ ⋯

case right
Z✝ : WalkingParallelPair
g : one ⟶ Z✝
⊢ WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
      zero = a →
        Z✝ = a_1 →
          right ≫ g ≍ t →
            (op
                (match zero with
                | zero => one
                | one => zero) ⟶
              op
                (match Z✝ with
                | zero => one
                | one => zero)))
      (right ≫ g)
      (fun h ↦
        Eq.ndrec (motive := fun {X} ↦
          (f : X ⟶ Z✝) →
            Z✝ = one →
              f ≍ left →
                (op
                    (match X with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
          (fun f h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : zero ⟶ Y) →
                f ≍ left →
                  (op
                      (match zero with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦ Quiver.Hom.op left) ⋯ f)
          ⋯ (right ≫ g))
      (fun h ↦
        Eq.ndrec (motive := fun {X} ↦
          (f : X ⟶ Z✝) →
            Z✝ = one →
              f ≍ right →
                (op
                    (match X with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
          (fun f h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : zero ⟶ Y) →
                f ≍ right →
                  (op
                      (match zero with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦ Quiver.Hom.op right) ⋯ f)
          ⋯ (right ≫ g))
      (fun X h ↦
        Eq.ndrec (motive := fun X ↦
          Z✝ = X →
            right ≫ g ≍ WalkingParallelPairHom.id X →
              (op
                  (match zero with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match Z✝ with
                  | zero => one
                  | one => zero)))
          (fun h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : zero ⟶ Y) →
                f ≍ WalkingParallelPairHom.id zero →
                  (op
                      (match zero with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦
                Quiver.Hom.op
                  (WalkingParallelPairHom.id
                    (match zero with
                    | zero => one
                    | one => zero)))
              ⋯ (right ≫ g))
          h)
      ⋯ ⋯ ⋯ =
    WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
        zero = a →
          one = a_1 →
            right ≍ t →
              (op
                  (match zero with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match one with
                  | zero => one
                  | one => zero)))
        right
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ one) →
              one = one →
                f ≍ left →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match one with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ left →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op left) ⋯ f)
            ⋯ right)
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ one) →
              one = one →
                f ≍ right →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match one with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ right →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op right) ⋯ f)
            ⋯ right)
        (fun X h ↦
          Eq.ndrec (motive := fun X ↦
            one = X →
              right ≍ WalkingParallelPairHom.id X →
                (op
                    (match zero with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match one with
                    | zero => one
                    | one => zero)))
            (fun h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ WalkingParallelPairHom.id zero →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦
                  Quiver.Hom.op
                    (WalkingParallelPairHom.id
                      (match zero with
                      | zero => one
                      | one => zero)))
                ⋯ right)
            h)
        ⋯ ⋯ ⋯ ≫
      WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
        one = a →
          Z✝ = a_1 →
            g ≍ t →
              (op
                  (match one with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match Z✝ with
                  | zero => one
                  | one => zero)))
        g
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ Z✝) →
              Z✝ = one →
                f ≍ left →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z✝ with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ left →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op left) ⋯ f)
            ⋯ g)
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ Z✝) →
              Z✝ = one →
                f ≍ right →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z✝ with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ right →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op right) ⋯ f)
            ⋯ g)
        (fun X h ↦
          Eq.ndrec (motive := fun X ↦
            Z✝ = X →
              g ≍ WalkingParallelPairHom.id X →
                (op
                    (match one with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
            (fun h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : one ⟶ Y) →
                  f ≍ WalkingParallelPairHom.id one →
                    (op
                        (match one with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦
                  Quiver.Hom.op
                    (WalkingParallelPairHom.id
                      (match one with
                      | zero => one
                      | one => zero)))
                ⋯ g)
            h)
        ⋯ ⋯ ⋯

case id
X✝ Z✝ : WalkingParallelPair
g : X✝ ⟶ Z✝
⊢ WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
      X✝ = a →
        Z✝ = a_1 →
          WalkingParallelPairHom.id X✝ ≫ g ≍ t →
            (op
                (match X✝ with
                | zero => one
                | one => zero) ⟶
              op
                (match Z✝ with
                | zero => one
                | one => zero)))
      (WalkingParallelPairHom.id X✝ ≫ g)
      (fun h ↦
        Eq.ndrec (motive := fun {X} ↦
          (f : X ⟶ Z✝) →
            Z✝ = one →
              f ≍ left →
                (op
                    (match X with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
          (fun f h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : zero ⟶ Y) →
                f ≍ left →
                  (op
                      (match zero with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦ Quiver.Hom.op left) ⋯ f)
          ⋯ (WalkingParallelPairHom.id X✝ ≫ g))
      (fun h ↦
        Eq.ndrec (motive := fun {X} ↦
          (f : X ⟶ Z✝) →
            Z✝ = one →
              f ≍ right →
                (op
                    (match X with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
          (fun f h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : zero ⟶ Y) →
                f ≍ right →
                  (op
                      (match zero with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦ Quiver.Hom.op right) ⋯ f)
          ⋯ (WalkingParallelPairHom.id X✝ ≫ g))
      (fun X h ↦
        Eq.ndrec (motive := fun X ↦
          Z✝ = X →
            WalkingParallelPairHom.id X✝ ≫ g ≍ WalkingParallelPairHom.id X →
              (op
                  (match X✝ with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match Z✝ with
                  | zero => one
                  | one => zero)))
          (fun h ↦
            Eq.ndrec (motive := fun {Y} ↦
              (f : X✝ ⟶ Y) →
                f ≍ WalkingParallelPairHom.id X✝ →
                  (op
                      (match X✝ with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Y with
                      | zero => one
                      | one => zero)))
              (fun f h ↦
                Quiver.Hom.op
                  (WalkingParallelPairHom.id
                    (match X✝ with
                    | zero => one
                    | one => zero)))
              ⋯ (WalkingParallelPairHom.id X✝ ≫ g))
          h)
      ⋯ ⋯ ⋯ =
    WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
        X✝ = a →
          X✝ = a_1 →
            WalkingParallelPairHom.id X✝ ≍ t →
              (op
                  (match X✝ with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match X✝ with
                  | zero => one
                  | one => zero)))
        (WalkingParallelPairHom.id X✝)
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ X✝) →
              X✝ = one →
                f ≍ left →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match X✝ with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ left →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op left) ⋯ f)
            ⋯ (WalkingParallelPairHom.id X✝))
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ X✝) →
              X✝ = one →
                f ≍ right →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match X✝ with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ right →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op right) ⋯ f)
            ⋯ (WalkingParallelPairHom.id X✝))
        (fun X h ↦
          Eq.ndrec (motive := fun X ↦
            X✝ = X →
              WalkingParallelPairHom.id X✝ ≍ WalkingParallelPairHom.id X →
                (op
                    (match X✝ with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match X✝ with
                    | zero => one
                    | one => zero)))
            (fun h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : X✝ ⟶ Y) →
                  f ≍ WalkingParallelPairHom.id X✝ →
                    (op
                        (match X✝ with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦
                  Quiver.Hom.op
                    (WalkingParallelPairHom.id
                      (match X✝ with
                      | zero => one
                      | one => zero)))
                ⋯ (WalkingParallelPairHom.id X✝))
            h)
        ⋯ ⋯ ⋯ ≫
      WalkingParallelPairHom.casesOn (motive := fun a a_1 t ↦
        X✝ = a →
          Z✝ = a_1 →
            g ≍ t →
              (op
                  (match X✝ with
                  | zero => one
                  | one => zero) ⟶
                op
                  (match Z✝ with
                  | zero => one
                  | one => zero)))
        g
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ Z✝) →
              Z✝ = one →
                f ≍ left →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z✝ with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ left →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op left) ⋯ f)
            ⋯ g)
        (fun h ↦
          Eq.ndrec (motive := fun {X} ↦
            (f : X ⟶ Z✝) →
              Z✝ = one →
                f ≍ right →
                  (op
                      (match X with
                      | zero => one
                      | one => zero) ⟶
                    op
                      (match Z✝ with
                      | zero => one
                      | one => zero)))
            (fun f h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : zero ⟶ Y) →
                  f ≍ right →
                    (op
                        (match zero with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦ Quiver.Hom.op right) ⋯ f)
            ⋯ g)
        (fun X h ↦
          Eq.ndrec (motive := fun X ↦
            Z✝ = X →
              g ≍ WalkingParallelPairHom.id X →
                (op
                    (match X✝ with
                    | zero => one
                    | one => zero) ⟶
                  op
                    (match Z✝ with
                    | zero => one
                    | one => zero)))
            (fun h ↦
              Eq.ndrec (motive := fun {Y} ↦
                (f : X✝ ⟶ Y) →
                  f ≍ WalkingParallelPairHom.id X✝ →
                    (op
                        (match X✝ with
                        | zero => one
                        | one => zero) ⟶
                      op
                        (match Y with
                        | zero => one
                        | one => zero)))
                (fun f h ↦
                  Quiver.Hom.op
                    (WalkingParallelPairHom.id
                      (match X✝ with
                      | zero => one
                      | one => zero)))
                ⋯ g)
            h)
        ⋯ ⋯ ⋯