-- Lean 4 proof step from Mathlib.CategoryTheory.Monoidal.Bimod (goal)
Goal:
C : Type u₁
inst : Category.{v₁, u₁} C
inst_1 : MonoidalCategory.{v₁, u₁} C
inst_2 : HasCoequalizers.{v₁, u₁} C
R S : Mon.{v₁, u₁} C
P : Bimod R S
inst_3 : ∀ (X : C), PreservesColimitsOfSize.{0, 0, v₁, v₁, u₁, u₁} (tensorLeft X)
inst_4 : ∀ (X : C), PreservesColimitsOfSize.{0, 0, v₁, v₁, u₁, u₁} (tensorRight X)
⊢ Eq (α :=
    tensorObj.{v₁, u₁} (𝒞 := inst)
        (TensorBimod.X P
          { X := S.X, actLeft := μ, one_actLeft := ⋯, left_assoc := ⋯, actRight := μ, actRight_one := ⋯,
            right_assoc := ⋯, middle_assoc := ⋯ : Bimod S S })
        S.X ⟶
      P.X)
    (CategoryStruct.comp (Y :=
      TensorBimod.X P
        { X := S.X, actLeft := μ, one_actLeft := ⋯, left_assoc := ⋯, actRight := μ, actRight_one := ⋯, right_assoc := ⋯,
          middle_assoc := ⋯ : Bimod S S })
      (CategoryStruct.comp (Y :=
        coequalizer (X :=
          tensorObj.{v₁, u₁} (𝒞 := inst) (tensorObj.{v₁, u₁} (𝒞 := inst) (tensorObj.{v₁, u₁} (𝒞 := inst) P.X S.X) S.X)
            S.X)
          (P.actRight ▷ S.X ▷ S.X) ((Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ) ▷ S.X))
        (Iso.inv (PreservesCoequalizer.iso (tensorRight S.X) (P.actRight ▷ S.X) (Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ)))
        (colimMap
          (parallelPairHom (P.actRight ▷ S.X ▷ S.X) ((Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ) ▷ S.X) (P.actRight ▷ S.X)
            (Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ)
            (Iso.hom (α_ (tensorObj.{v₁, u₁} (𝒞 := inst) P.X S.X) S.X S.X) ≫
              Iso.hom (α_ P.X S.X (tensorObj.{v₁, u₁} (𝒞 := inst) S.X S.X)) ≫ P.X ◁ S.X ◁ μ ≫ Iso.inv (α_ P.X S.X S.X))
            (Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ) ⋯ ⋯)))
      (coequalizer.desc P.actRight ⋯))
    (coequalizer.desc P.actRight ⋯ ▷ S.X ≫ P.actRight)
have refine : CategoryStruct.comp (Y :=
    Functor.obj.{v₁, v₁, u₁, u₁} (tensorRight S.X)
      (coequalizer
        (P.actRight ▷
          { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
              right_assoc := sorry, middle_assoc := sorry : Bimod S S }.X)
        (Iso.hom
            (α_ P.X S.X
              { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
                  right_assoc := sorry, middle_assoc := sorry : Bimod S S }.X) ≫
          P.X ◁
            { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
                right_assoc := sorry, middle_assoc := sorry : Bimod S S }.actLeft)))
    (CategoryTheory.Functor.map (tensorRight S.X)
      (coequalizer.π
        (P.actRight ▷
          { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
              right_assoc := sorry, middle_assoc := sorry : Bimod S S }.X)
        (Iso.hom
            (α_ P.X S.X
              { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
                  right_assoc := sorry, middle_assoc := sorry : Bimod S S }.X) ≫
          P.X ◁
            { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
                right_assoc := sorry, middle_assoc := sorry : Bimod S S }.actLeft)))
    (CategoryStruct.comp (Y :=
      TensorBimod.X P
        { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry, right_assoc := sorry,
          middle_assoc := sorry : Bimod S S })
      (CategoryStruct.comp (Y :=
        coequalizer (X :=
          tensorObj.{v₁, u₁} (𝒞 := inst) (tensorObj.{v₁, u₁} (𝒞 := inst) (tensorObj.{v₁, u₁} (𝒞 := inst) P.X S.X) S.X)
            S.X)
          (P.actRight ▷ S.X ▷ S.X) ((Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ) ▷ S.X))
        (Iso.inv (PreservesCoequalizer.iso (tensorRight S.X) (P.actRight ▷ S.X) (Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ)))
        (colimMap
          (parallelPairHom (P.actRight ▷ S.X ▷ S.X) ((Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ) ▷ S.X) (P.actRight ▷ S.X)
            (Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ)
            (Iso.hom (α_ (tensorObj.{v₁, u₁} (𝒞 := inst) P.X S.X) S.X S.X) ≫
              Iso.hom (α_ P.X S.X (tensorObj.{v₁, u₁} (𝒞 := inst) S.X S.X)) ≫ P.X ◁ S.X ◁ μ ≫ Iso.inv (α_ P.X S.X S.X))
            (Iso.hom (α_ P.X S.X S.X) ≫ P.X ◁ μ) sorry sorry)))
      (coequalizer.desc P.actRight sorry)) =
  CategoryStruct.comp (Y :=
    Functor.obj.{v₁, v₁, u₁, u₁} (tensorRight S.X)
      (coequalizer
        (P.actRight ▷
          { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
              right_assoc := sorry, middle_assoc := sorry : Bimod S S }.X)
        (Iso.hom
            (α_ P.X S.X
              { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
                  right_assoc := sorry, middle_assoc := sorry : Bimod S S }.X) ≫
          P.X ◁
            { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
                right_assoc := sorry, middle_assoc := sorry : Bimod S S }.actLeft)))
    (CategoryTheory.Functor.map (tensorRight S.X)
      (coequalizer.π
        (P.actRight ▷
          { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
              right_assoc := sorry, middle_assoc := sorry : Bimod S S }.X)
        (Iso.hom
            (α_ P.X S.X
              { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
                  right_assoc := sorry, middle_assoc := sorry : Bimod S S }.X) ≫
          P.X ◁
            { X := S.X, actLeft := μ, one_actLeft := sorry, left_assoc := sorry, actRight := μ, actRight_one := sorry,
                right_assoc := sorry, middle_assoc := sorry }.actLeft)))
    (coequalizer.desc P.actRight sorry ▷ S.X ≫ P.actRight)
Tactic: refine (cancel_epi ((tensorRight _).map (coequalizer.π _ _))).1 ?_