ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
⊢ AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
⊢ a * b * c = a * (b * c)
suffices (mulHom A).compHom.comp (mulHom A) =
    (AddMonoidHom.compHom flipHom <| (mulHom A).flip.compHom.comp (mulHom A)).flip by
    have sol := FunLike.congr_fun (FunLike.congr_fun (FunLike.congr_fun this a) b) c
    have aux : ∀ a b, (mulHom A) a b = a * b := fun _ _ ↦ rfl
    simp only [coe_comp, Function.comp_apply, AddMonoidHom.compHom_apply_apply, aux, flip_apply,
      AddMonoidHom.flipHom_apply] at sol
    exact sol
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
⊢ ↑(AddMonoidHom.comp (AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) (of (fun i => A i) ai)) ax =
    ↑(AddMonoidHom.comp
          (AddMonoidHom.flip
            (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
          (of (fun i => A i) ai))
      ax
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
⊢ AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
refine DirectSum.addHom_ext' (fun ai ↦ AddMonoidHom.ext (fun ax ↦ ?_))
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
bi : ι
bx : A bi
⊢ ↑(AddMonoidHom.comp
          (↑(AddMonoidHom.comp (AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) (of (fun i => A i) ai)) ax)
          (of (fun i => A i) bi))
      bx =
    ↑(AddMonoidHom.comp
          (↑(AddMonoidHom.comp
                (AddMonoidHom.flip
                  (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
                (of (fun i => A i) ai))
            ax)
          (of (fun i => A i) bi))
      bx
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
⊢ ↑(AddMonoidHom.comp (AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) (of (fun i => A i) ai)) ax =
    ↑(AddMonoidHom.comp
          (AddMonoidHom.flip
            (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
          (of (fun i => A i) ai))
      ax
refine DirectSum.addHom_ext' (fun bi ↦ AddMonoidHom.ext (fun bx ↦ ?_))
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
bi : ι
bx : A bi
ci : ι
cx : A ci
⊢ ↑(AddMonoidHom.comp
          (↑(AddMonoidHom.comp
                (↑(AddMonoidHom.comp (AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) (of (fun i => A i) ai)) ax)
                (of (fun i => A i) bi))
            bx)
          (of (fun i => A i) ci))
      cx =
    ↑(AddMonoidHom.comp
          (↑(AddMonoidHom.comp
                (↑(AddMonoidHom.comp
                      (AddMonoidHom.flip
                        (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
                      (of (fun i => A i) ai))
                  ax)
                (of (fun i => A i) bi))
            bx)
          (of (fun i => A i) ci))
      cx
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
bi : ι
bx : A bi
⊢ ↑(AddMonoidHom.comp
          (↑(AddMonoidHom.comp (AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) (of (fun i => A i) ai)) ax)
          (of (fun i => A i) bi))
      bx =
    ↑(AddMonoidHom.comp
          (↑(AddMonoidHom.comp
                (AddMonoidHom.flip
                  (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
                (of (fun i => A i) ai))
            ax)
          (of (fun i => A i) bi))
      bx
refine DirectSum.addHom_ext' (fun ci ↦ AddMonoidHom.ext (fun cx ↦ ?_))
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
bi : ι
bx : A bi
ci : ι
cx : A ci
⊢ ↑(↑(mulHom A) (↑(↑(mulHom A) (↑(of (fun i => A i) ai) ax)) (↑(of (fun i => A i) bi) bx)))
      (↑(of (fun i => A i) ci) cx) =
    ↑(↑(mulHom A) (↑(of (fun i => A i) ai) ax))
      (↑(↑(mulHom A) (↑(of (fun i => A i) bi) bx)) (↑(of (fun i => A i) ci) cx))
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
bi : ι
bx : A bi
ci : ι
cx : A ci
⊢ ↑(AddMonoidHom.comp
          (↑(AddMonoidHom.comp
                (↑(AddMonoidHom.comp (AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) (of (fun i => A i) ai)) ax)
                (of (fun i => A i) bi))
            bx)
          (of (fun i => A i) ci))
      cx =
    ↑(AddMonoidHom.comp
          (↑(AddMonoidHom.comp
                (↑(AddMonoidHom.comp
                      (AddMonoidHom.flip
                        (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
                      (of (fun i => A i) ai))
                  ax)
                (of (fun i => A i) bi))
            bx)
          (of (fun i => A i) ci))
      cx
dsimp only [coe_comp, Function.comp_apply, AddMonoidHom.compHom_apply_apply, flip_apply,
  AddMonoidHom.flipHom_apply]
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
bi : ι
bx : A bi
ci : ι
cx : A ci
⊢ ↑(of A (ai + bi + ci)) (GradedMonoid.GMul.mul (GradedMonoid.GMul.mul ax bx) cx) =
    ↑(of A (ai + (bi + ci))) (GradedMonoid.GMul.mul ax (GradedMonoid.GMul.mul bx cx))
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
bi : ι
bx : A bi
ci : ι
cx : A ci
⊢ ↑(↑(mulHom A) (↑(↑(mulHom A) (↑(of (fun i => A i) ai) ax)) (↑(of (fun i => A i) bi) bx)))
      (↑(of (fun i => A i) ci) cx) =
    ↑(↑(mulHom A) (↑(of (fun i => A i) ai) ax))
      (↑(↑(mulHom A) (↑(of (fun i => A i) bi) bx)) (↑(of (fun i => A i) ci) cx))
simp_rw [mulHom_of_of]
no goals
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
ai : ι
ax : A ai
bi : ι
bx : A bi
ci : ι
cx : A ci
⊢ ↑(of A (ai + bi + ci)) (GradedMonoid.GMul.mul (GradedMonoid.GMul.mul ax bx) cx) =
    ↑(of A (ai + (bi + ci))) (GradedMonoid.GMul.mul ax (GradedMonoid.GMul.mul bx cx))
exact of_eq_of_gradedMonoid_eq (_root_.mul_assoc (GradedMonoid.mk ai ax) ⟨bi, bx⟩ ⟨ci, cx⟩)
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
this :
  AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
sol :
  ↑(↑(↑(AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) a) b) c =
    ↑(↑(↑(AddMonoidHom.flip
                  (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
              a)
          b)
      c
⊢ a * b * c = a * (b * c)
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
this :
  AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
⊢ a * b * c = a * (b * c)
have sol := FunLike.congr_fun (FunLike.congr_fun (FunLike.congr_fun this a) b) c
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
this :
  AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
sol :
  ↑(↑(↑(AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) a) b) c =
    ↑(↑(↑(AddMonoidHom.flip
                  (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
              a)
          b)
      c
aux : ∀ (a b : ⨁ (i : ι), A i), ↑(↑(mulHom A) a) b = a * b
⊢ a * b * c = a * (b * c)
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
this :
  AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
sol :
  ↑(↑(↑(AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) a) b) c =
    ↑(↑(↑(AddMonoidHom.flip
                  (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
              a)
          b)
      c
⊢ a * b * c = a * (b * c)
have aux : ∀ a b, (mulHom A) a b = a * b := fun _ _ ↦ rfl
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
this :
  AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
aux : ∀ (a b : ⨁ (i : ι), A i), ↑(↑(mulHom A) a) b = a * b
sol : a * b * c = a * (b * c)
⊢ a * b * c = a * (b * c)
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
this :
  AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
sol :
  ↑(↑(↑(AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A)) a) b) c =
    ↑(↑(↑(AddMonoidHom.flip
                  (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A))))
              a)
          b)
      c
aux : ∀ (a b : ⨁ (i : ι), A i), ↑(↑(mulHom A) a) b = a * b
⊢ a * b * c = a * (b * c)
simp only [coe_comp, Function.comp_apply, AddMonoidHom.compHom_apply_apply, aux, flip_apply,
  AddMonoidHom.flipHom_apply] at sol
no goals
ι : Type u_1
inst✝³ : DecidableEq ι
A : ι → Type u_2
inst✝² : (i : ι) → AddCommMonoid (A i)
inst✝¹ : AddMonoid ι
inst✝ : GSemiring A
a b c : ⨁ (i : ι), A i
this :
  AddMonoidHom.comp (↑compHom (mulHom A)) (mulHom A) =
    AddMonoidHom.flip (↑(↑compHom flipHom) (AddMonoidHom.comp (↑compHom (AddMonoidHom.flip (mulHom A))) (mulHom A)))
aux : ∀ (a b : ⨁ (i : ι), A i), ↑(↑(mulHom A) a) b = a * b
sol : a * b * c = a * (b * c)
⊢ a * b * c = a * (b * c)
exact sol