-- Module: Mathlib.CategoryTheory.Category.TwoP
Goal:
α : Type u_1
β : Type u_2
X Y Z : Pointed
f : X ⟶ Y
g : Y ⟶ Z
⊢ Eq (α :=
    { X := Option X.X,
            toTwoPointing :=
              { fst := some X.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option X.X) } }.toBipointed.X →
      { X := Option Z.X,
            toTwoPointing :=
              { fst := some Z.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Z.X) } }.toBipointed.X)
    (↑(ConcreteCategory.hom (FC := Bipointed.HomSubtype) (CC := Bipointed.X)
          (InducedCategory.Hom.hom
            {
              hom :=
                { toFun := Option.map (f ≫ g).toFun, map_fst := ⋯, map_snd := ⋯ :
                  { X := Option X.X,
                          toTwoPointing :=
                            { fst := some X.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option X.X) } :
                          TwoP.{u} }.toBipointed.Hom
                    { X := Option Z.X,
                        toTwoPointing :=
                          { fst := some Z.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Z.X) } :
                        TwoP.{u} }.toBipointed } :
              InducedCategory.Hom (D := Bipointed) (F := TwoP.toBipointed)
                { X := Option X.X,
                  toTwoPointing := { fst := some X.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option X.X) } :
                  TwoP.{u} }
                { X := Option Z.X,
                  toTwoPointing := { fst := some Z.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Z.X) } :
                  TwoP.{u} } })) :
      { X := Option X.X, toTwoPointing := { fst := some X.point, snd := none, fst_ne_snd := ⋯ } }.toBipointed.X →
        { X := Option Z.X, toTwoPointing := { fst := some Z.point, snd := none, fst_ne_snd := ⋯ } }.toBipointed.X)
    (↑(ConcreteCategory.hom (FC := Bipointed.HomSubtype) (CC := Bipointed.X)
          (InducedCategory.Hom.hom
            (CategoryStruct.comp (Y :=
              { X := Option Y.X,
                toTwoPointing := { fst := some Y.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Y.X) } :
                TwoP.{u} })
              {
                hom :=
                  { toFun := Option.map f.toFun, map_fst := ⋯, map_snd := ⋯ :
                    { X := Option X.X,
                            toTwoPointing :=
                              { fst := some X.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option X.X) } :
                            TwoP.{u} }.toBipointed.Hom
                      { X := Option Y.X,
                          toTwoPointing :=
                            { fst := some Y.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Y.X) } :
                          TwoP.{u} }.toBipointed } :
                InducedCategory.Hom (D := Bipointed) (F := TwoP.toBipointed)
                  { X := Option X.X,
                    toTwoPointing := { fst := some X.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option X.X) } :
                    TwoP.{u} }
                  { X := Option Y.X,
                    toTwoPointing := { fst := some Y.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Y.X) } :
                    TwoP.{u} } }
              {
                hom :=
                  { toFun := Option.map g.toFun, map_fst := ⋯, map_snd := ⋯ :
                    { X := Option Y.X,
                            toTwoPointing :=
                              { fst := some Y.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Y.X) } :
                            TwoP.{u} }.toBipointed.Hom
                      { X := Option Z.X,
                          toTwoPointing :=
                            { fst := some Z.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Z.X) } :
                          TwoP.{u} }.toBipointed } :
                InducedCategory.Hom (D := Bipointed) (F := TwoP.toBipointed)
                  { X := Option Y.X,
                    toTwoPointing := { fst := some Y.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Y.X) } :
                    TwoP.{u} }
                  { X := Option Z.X,
                    toTwoPointing := { fst := some Z.point, snd := none, fst_ne_snd := ⋯ : TwoPointing (Option Z.X) } :
                    TwoP.{u} } }))) :
      { X := Option X.X, toTwoPointing := { fst := some X.point, snd := none, fst_ne_snd := ⋯ } }.toBipointed.X →
        { X := Option Z.X, toTwoPointing := { fst := some Z.point, snd := none, fst_ne_snd := ⋯ } }.toBipointed.X)

Tactic:
exact (Option.map_comp_map f.1 g.1).symm

Premises used: Option.map_comp_map, Eq.symm, Pointed.Hom.toFun