Module: Mathlib.Algebra.Category.ModuleCat.Stalk

Goal state before:
pp: C : Type u_1
inst✝² : SmallCategory C
inst✝¹ : IsFiltered C
R : C ⥤ RingCat
M : C ⥤ Ab
inst✝ : (i : C) → Module ↑(R.obj i) ↑(M.obj i)
H :
  ∀ {i j : C} (f : i ⟶ j) (r : ↑(R.obj i)) (m : ↑(M.obj i)),
    (ConcreteCategory.hom (M.map f)) (r • m) = (ConcreteCategory.hom (R.map f)) r • (ConcreteCategory.hom (M.map f)) m
r : ↑(RingCat.FilteredColimits.colimit R)
m n : ↑(AddCommGrpCat.FilteredColimits.colimit M)
U : C
a : (((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat MonCat) ⋙ forget MonCat).obj U
V₁ : C
b₁ : (((M ⋙ forget₂ AddCommGrpCat AddGrpCat) ⋙ forget₂ AddGrpCat AddMonCat) ⋙ forget AddMonCat).obj V₁
V₂ : C
b₂ : (((M ⋙ forget₂ AddCommGrpCat AddGrpCat) ⋙ forget₂ AddGrpCat AddMonCat) ⋙ forget AddMonCat).obj V₂
s : C
α : IsFiltered.max (IsFiltered.max U V₁) (IsFiltered.max U V₂) ⟶ s
β : IsFiltered.max U (IsFiltered.max V₁ V₂) ⟶ s
h₁ :
  (leftToMax U V₁ ≫ leftToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂)) ≫ α = leftToMax U (IsFiltered.max V₁ V₂) ≫ β
h₂ :
  (leftToMax U V₂ ≫ rightToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂)) ≫ α = leftToMax U (IsFiltered.max V₁ V₂) ≫ β
h₃ :
  (rightToMax U V₁ ≫ leftToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂)) ≫ α =
    (leftToMax V₁ V₂ ≫ rightToMax U (IsFiltered.max V₁ V₂)) ≫ β
h₄ :
  (rightToMax U V₂ ≫ rightToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂)) ≫ α =
    (rightToMax V₁ V₂ ≫ rightToMax U (IsFiltered.max V₁ V₂)) ≫ β
⊢ (ConcreteCategory.hom (M.map β))
      ((ConcreteCategory.hom (R.map (leftToMax U (IsFiltered.max V₁ V₂)))) a •
        (ConcreteCategory.hom (M.map (rightToMax U (IsFiltered.max V₁ V₂))))
          ((ConcreteCategory.hom (M.map (leftToMax V₁ V₂))) b₁ +
            (ConcreteCategory.hom (M.map (rightToMax V₁ V₂))) b₂)) =
    (ConcreteCategory.hom (M.map α))
      ((ConcreteCategory.hom (M.map (leftToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂))))
          ((ConcreteCategory.hom (R.map (leftToMax U V₁))) a • (ConcreteCategory.hom (M.map (rightToMax U V₁))) b₁) +
        (ConcreteCategory.hom (M.map (rightToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂))))
          ((ConcreteCategory.hom (R.map (leftToMax U V₂))) a • (ConcreteCategory.hom (M.map (rightToMax U V₂))) b₂))

Tactic:
rw [H, H, H]

Goal state after:
C : Type u_1
inst✝² : SmallCategory C
inst✝¹ : IsFiltered C
R : C ⥤ RingCat
M : C ⥤ Ab
inst✝ : (i : C) → Module ↑(R.obj i) ↑(M.obj i)
H :
  ∀ {i j : C} (f : i ⟶ j) (r : ↑(R.obj i)) (m : ↑(M.obj i)),
    (ConcreteCategory.hom (M.map f)) (r • m) = (ConcreteCategory.hom (R.map f)) r • (ConcreteCategory.hom (M.map f)) m
r : ↑(RingCat.FilteredColimits.colimit R)
m n : ↑(AddCommGrpCat.FilteredColimits.colimit M)
U : C
a : (((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat MonCat) ⋙ forget MonCat).obj U
V₁ : C
b₁ : (((M ⋙ forget₂ AddCommGrpCat AddGrpCat) ⋙ forget₂ AddGrpCat AddMonCat) ⋙ forget AddMonCat).obj V₁
V₂ : C
b₂ : (((M ⋙ forget₂ AddCommGrpCat AddGrpCat) ⋙ forget₂ AddGrpCat AddMonCat) ⋙ forget AddMonCat).obj V₂
s : C
α : IsFiltered.max (IsFiltered.max U V₁) (IsFiltered.max U V₂) ⟶ s
β : IsFiltered.max U (IsFiltered.max V₁ V₂) ⟶ s
h₁ :
  (leftToMax U V₁ ≫ leftToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂)) ≫ α = leftToMax U (IsFiltered.max V₁ V₂) ≫ β
h₂ :
  (leftToMax U V₂ ≫ rightToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂)) ≫ α = leftToMax U (IsFiltered.max V₁ V₂) ≫ β
h₃ :
  (rightToMax U V₁ ≫ leftToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂)) ≫ α =
    (leftToMax V₁ V₂ ≫ rightToMax U (IsFiltered.max V₁ V₂)) ≫ β
h₄ :
  (rightToMax U V₂ ≫ rightToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂)) ≫ α =
    (rightToMax V₁ V₂ ≫ rightToMax U (IsFiltered.max V₁ V₂)) ≫ β
⊢ (ConcreteCategory.hom (R.map β)) ((ConcreteCategory.hom (R.map (leftToMax U (IsFiltered.max V₁ V₂)))) a) •
      (ConcreteCategory.hom (M.map β))
        ((ConcreteCategory.hom (M.map (rightToMax U (IsFiltered.max V₁ V₂))))
          ((ConcreteCategory.hom (M.map (leftToMax V₁ V₂))) b₁ +
            (ConcreteCategory.hom (M.map (rightToMax V₁ V₂))) b₂)) =
    (ConcreteCategory.hom (M.map α))
      ((ConcreteCategory.hom (R.map (leftToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂))))
            ((ConcreteCategory.hom (R.map (leftToMax U V₁))) a) •
          (ConcreteCategory.hom (M.map (leftToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂))))
            ((ConcreteCategory.hom (M.map (rightToMax U V₁))) b₁) +
        (ConcreteCategory.hom (R.map (rightToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂))))
            ((ConcreteCategory.hom (R.map (leftToMax U V₂))) a) •
          (ConcreteCategory.hom (M.map (rightToMax (IsFiltered.max U V₁) (IsFiltered.max U V₂))))
            ((ConcreteCategory.hom (M.map (rightToMax U V₂))) b₂))