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 s✝ : ↑(RingCat.FilteredColimits.colimit R)
m : ↑(AddCommGrpCat.FilteredColimits.colimit M)
U₁ : C
a₁ : (((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat MonCat) ⋙ forget MonCat).obj U₁
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
s : C
α : IsFiltered.max (IsFiltered.max U₁ V) (IsFiltered.max U₂ V) ⟶ s
β : IsFiltered.max (IsFiltered.max U₁ U₂) V ⟶ s
h₁ :
  (rightToMax U₁ V ≫ leftToMax (IsFiltered.max U₁ V) (IsFiltered.max U₂ V)) ≫ α =
    rightToMax (IsFiltered.max U₁ U₂) V ≫ β
h₂ :
  (rightToMax U₂ V ≫ rightToMax (IsFiltered.max U₁ V) (IsFiltered.max U₂ V)) ≫ α =
    rightToMax (IsFiltered.max U₁ U₂) V ≫ β
h₃ :
  (leftToMax U₁ V ≫ leftToMax (IsFiltered.max U₁ V) (IsFiltered.max U₂ V)) ≫ α =
    (leftToMax U₁ U₂ ≫ leftToMax (IsFiltered.max U₁ U₂) V) ≫ β
h₄ :
  (leftToMax U₂ V ≫ rightToMax (IsFiltered.max U₁ V) (IsFiltered.max U₂ V)) ≫ α =
    (rightToMax U₁ U₂ ≫ leftToMax (IsFiltered.max U₁ U₂) V) ≫ β
⊢ (ConcreteCategory.hom ((M ⋙ forget Ab).map β))
      ((ConcreteCategory.hom
            (R.map
              (leftToMax
                ⟨⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst,
                        (ConcreteCategory.hom
                              ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                                    forget₂ AddCommMonCat AddMonCat).map
                                (leftToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                            ⟨U₁, a₁⟩.snd +
                          (ConcreteCategory.hom
                              ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                                    forget₂ AddCommMonCat AddMonCat).map
                                (rightToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                            ⟨U₂, a₂⟩.snd⟩.fst,
                    ⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst,
                        (ConcreteCategory.hom
                              ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                                    forget₂ AddCommMonCat AddMonCat).map
                                (leftToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                            ⟨U₁, a₁⟩.snd +
                          (ConcreteCategory.hom
                              ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                                    forget₂ AddCommMonCat AddMonCat).map
                                (rightToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                            ⟨U₂, a₂⟩.snd⟩.snd⟩.fst
                ⟨V, b⟩.fst)))
          ⟨⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst,
                  (ConcreteCategory.hom
                        ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                              forget₂ AddCommMonCat AddMonCat).map
                          (leftToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                      ⟨U₁, a₁⟩.snd +
                    (ConcreteCategory.hom
                        ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                              forget₂ AddCommMonCat AddMonCat).map
                          (rightToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                      ⟨U₂, a₂⟩.snd⟩.fst,
              ⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst,
                  (ConcreteCategory.hom
                        ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                              forget₂ AddCommMonCat AddMonCat).map
                          (leftToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                      ⟨U₁, a₁⟩.snd +
                    (ConcreteCategory.hom
                        ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                              forget₂ AddCommMonCat AddMonCat).map
                          (rightToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                      ⟨U₂, a₂⟩.snd⟩.snd⟩.snd •
        (ConcreteCategory.hom
            (M.map
              (rightToMax
                ⟨⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst,
                        (ConcreteCategory.hom
                              ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                                    forget₂ AddCommMonCat AddMonCat).map
                                (leftToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                            ⟨U₁, a₁⟩.snd +
                          (ConcreteCategory.hom
                              ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                                    forget₂ AddCommMonCat AddMonCat).map
                                (rightToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                            ⟨U₂, a₂⟩.snd⟩.fst,
                    ⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst,
                        (ConcreteCategory.hom
                              ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                                    forget₂ AddCommMonCat AddMonCat).map
                                (leftToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                            ⟨U₁, a₁⟩.snd +
                          (ConcreteCategory.hom
                              ((((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat AddCommMonCat) ⋙
                                    forget₂ AddCommMonCat AddMonCat).map
                                (rightToMax ⟨U₁, a₁⟩.fst ⟨U₂, a₂⟩.fst)))
                            ⟨U₂, a₂⟩.snd⟩.snd⟩.fst
                ⟨V, b⟩.fst)))
          ⟨V, b⟩.snd) =
    (ConcreteCategory.hom ((M ⋙ forget Ab).map α))
      ⟨IsFiltered.max
            ⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst,
                (ConcreteCategory.hom (R.map (leftToMax ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst))) ⟨U₁, a₁⟩.snd •
                  (ConcreteCategory.hom (M.map (rightToMax ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst))) ⟨V, b⟩.snd⟩.fst
            ⟨IsFiltered.max ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst,
                (ConcreteCategory.hom (R.map (leftToMax ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst))) ⟨U₂, a₂⟩.snd •
                  (ConcreteCategory.hom (M.map (rightToMax ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst))) ⟨V, b⟩.snd⟩.fst,
          (ConcreteCategory.hom
                (((M ⋙ forget₂ AddCommGrpCat AddGrpCat) ⋙ forget₂ AddGrpCat AddMonCat).map
                  (leftToMax
                    ⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst,
                        (ConcreteCategory.hom (R.map (leftToMax ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst))) ⟨U₁, a₁⟩.snd •
                          (ConcreteCategory.hom (M.map (rightToMax ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst))) ⟨V, b⟩.snd⟩.fst
                    ⟨IsFiltered.max ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst,
                        (ConcreteCategory.hom (R.map (leftToMax ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst))) ⟨U₂, a₂⟩.snd •
                          (ConcreteCategory.hom (M.map (rightToMax ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst))) ⟨V, b⟩.snd⟩.fst)))
              ⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst,
                  (ConcreteCategory.hom (R.map (leftToMax ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst))) ⟨U₁, a₁⟩.snd •
                    (ConcreteCategory.hom (M.map (rightToMax ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst))) ⟨V, b⟩.snd⟩.snd +
            (ConcreteCategory.hom
                (((M ⋙ forget₂ AddCommGrpCat AddGrpCat) ⋙ forget₂ AddGrpCat AddMonCat).map
                  (rightToMax
                    ⟨IsFiltered.max ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst,
                        (ConcreteCategory.hom (R.map (leftToMax ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst))) ⟨U₁, a₁⟩.snd •
                          (ConcreteCategory.hom (M.map (rightToMax ⟨U₁, a₁⟩.fst ⟨V, b⟩.fst))) ⟨V, b⟩.snd⟩.fst
                    ⟨IsFiltered.max ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst,
                        (ConcreteCategory.hom (R.map (leftToMax ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst))) ⟨U₂, a₂⟩.snd •
                          (ConcreteCategory.hom (M.map (rightToMax ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst))) ⟨V, b⟩.snd⟩.fst)))
              ⟨IsFiltered.max ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst,
                  (ConcreteCategory.hom (R.map (leftToMax ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst))) ⟨U₂, a₂⟩.snd •
                    (ConcreteCategory.hom (M.map (rightToMax ⟨U₂, a₂⟩.fst ⟨V, b⟩.fst))) ⟨V, b⟩.snd⟩.snd⟩.snd

Tactic:
dsimp

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 s✝ : ↑(RingCat.FilteredColimits.colimit R)
m : ↑(AddCommGrpCat.FilteredColimits.colimit M)
U₁ : C
a₁ : (((R ⋙ forget₂ RingCat SemiRingCat) ⋙ forget₂ SemiRingCat MonCat) ⋙ forget MonCat).obj U₁
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
s : C
α : IsFiltered.max (IsFiltered.max U₁ V) (IsFiltered.max U₂ V) ⟶ s
β : IsFiltered.max (IsFiltered.max U₁ U₂) V ⟶ s
h₁ :
  (rightToMax U₁ V ≫ leftToMax (IsFiltered.max U₁ V) (IsFiltered.max U₂ V)) ≫ α =
    rightToMax (IsFiltered.max U₁ U₂) V ≫ β
h₂ :
  (rightToMax U₂ V ≫ rightToMax (IsFiltered.max U₁ V) (IsFiltered.max U₂ V)) ≫ α =
    rightToMax (IsFiltered.max U₁ U₂) V ≫ β
h₃ :
  (leftToMax U₁ V ≫ leftToMax (IsFiltered.max U₁ V) (IsFiltered.max U₂ V)) ≫ α =
    (leftToMax U₁ U₂ ≫ leftToMax (IsFiltered.max U₁ U₂) V) ≫ β
h₄ :
  (leftToMax U₂ V ≫ rightToMax (IsFiltered.max U₁ V) (IsFiltered.max U₂ V)) ≫ α =
    (rightToMax U₁ U₂ ≫ leftToMax (IsFiltered.max U₁ U₂) V) ≫ β
⊢ (ConcreteCategory.hom (M.map β))
      ((ConcreteCategory.hom (R.map (leftToMax (IsFiltered.max U₁ U₂) V)))
          ((ConcreteCategory.hom (R.map (leftToMax U₁ U₂))) a₁ + (ConcreteCategory.hom (R.map (rightToMax U₁ U₂))) a₂) •
        (ConcreteCategory.hom (M.map (rightToMax (IsFiltered.max U₁ U₂) 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))