∀ {ι : Type u_2} (R : Type u_3) (A : ι → Type u_1) [inst : CommSemiring R] [inst_1 : (i : ι) → AddCommMonoid (A i)]
  [inst_2 : (i : ι) → Module R (A i)] [inst_3 : AddMonoid ι] [inst_4 : DirectSum.GSemiring A]
  [inst_5 : DirectSum.GAlgebra R A] [inst_6 : DecidableEq ι] (r : R) (x : DirectSum ι fun i => A i),
  { toFun := ⇑((DirectSum.of A 0).comp DirectSum.GAlgebra.toFun), map_one' := ⋯, map_mul' := ⋯, map_zero' := ⋯,
          map_add' := ⋯ }
        r *
      x =
    x *
      { toFun := ⇑((DirectSum.of A 0).comp DirectSum.GAlgebra.toFun), map_one' := ⋯, map_mul' := ⋯, map_zero' := ⋯,
          map_add' := ⋯ }
        r