{M : Type u_1} →
  {ι : Type u_2} →
    {R : Type u_3} →
      [inst : AddMonoid M] →
        [inst_1 : DecidableEq ι] →
          [inst_2 : AddMonoid ι] →
            [inst_3 : CommSemiring R] → (f : M →+ ι) → GradedAlgebra (AddMonoidAlgebra.gradeBy R ⇑f)