-- Module: Mathlib.CategoryTheory.WithTerminal.Basic
Goal:
C : Type u
inst : Category.{v, u} C
x : (WithInitial C)ᵒᵖ
a : C
⊢ Eq (α :=
    Quiver.Hom (V := WithTerminal Cᵒᵖ)
      (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
        | op x =>
          match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
          | of x => WithTerminal.of (op x)
          | star => WithTerminal.star :
        WithTerminal Cᵒᵖ)
      (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
        | op x =>
          match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
          | of x => WithTerminal.of (op x)
          | star => WithTerminal.star :
        WithTerminal Cᵒᵖ))
    (match (motive :=
        (op (of a) ⟶ op (of a)) →
          Quiver.Hom (V := WithTerminal Cᵒᵖ)
            (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
              | op x =>
                match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
                | of x => WithTerminal.of (op x)
                | star => WithTerminal.star :
              WithTerminal Cᵒᵖ)
            (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
              | op x =>
                match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
                | of x => WithTerminal.of (op x)
                | star => WithTerminal.star :
              WithTerminal Cᵒᵖ))
        𝟙 (op (of a)) with
      | op f =>
        match (motive :=
          (x y : (WithInitial C)ᵒᵖ) →
            (unop y ⟶ unop x) →
              (x ⟶ y) →
                Quiver.Hom (V := WithTerminal Cᵒᵖ)
                  (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) x with
                    | op x =>
                      match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
                      | of x => WithTerminal.of (op x)
                      | star => WithTerminal.star :
                    WithTerminal Cᵒᵖ)
                  (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) y with
                    | op x =>
                      match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
                      | of x => WithTerminal.of (op x)
                      | star => WithTerminal.star :
                    WithTerminal Cᵒᵖ))
          op (of a), op (of a), f, 𝟙 (op (of a)) with
        | op (of x), op (of y), f, x_1 => (WithTerminal.down f).op
        | op (of a), op star, x, x_1 =>
          Limits.IsTerminal.from WithTerminal.starTerminal
            (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
            | op x =>
              match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
              | of x => WithTerminal.of (op x)
              | star => WithTerminal.star)
        | op star, op star, x, x_1 =>
          𝟙
            (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op star with
            | op x =>
              match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
              | of x => WithTerminal.of (op x)
              | star => WithTerminal.star) :
      Quiver.Hom (V := WithTerminal Cᵒᵖ)
        (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
          | op x =>
            match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
            | of x => WithTerminal.of (op x)
            | star => WithTerminal.star :
          WithTerminal Cᵒᵖ)
        (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
          | op x =>
            match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
            | of x => WithTerminal.of (op x)
            | star => WithTerminal.star :
          WithTerminal Cᵒᵖ))
    (𝟙
        (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
        | op x =>
          match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
          | of x => WithTerminal.of (op x)
          | star => WithTerminal.star) :
      Quiver.Hom (V := WithTerminal Cᵒᵖ)
        (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
          | op x =>
            match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
            | of x => WithTerminal.of (op x)
            | star => WithTerminal.star :
          WithTerminal Cᵒᵖ)
        (match (motive := (WithInitial C)ᵒᵖ → WithTerminal Cᵒᵖ) op (of a) with
          | op x =>
            match (motive := WithInitial C → WithTerminal Cᵒᵖ) x with
            | of x => WithTerminal.of (op x)
            | star => WithTerminal.star :
          WithTerminal Cᵒᵖ))

Tactic:
rfl