{R : Type u_2} →
  {M : Type u_5} →
    {N : Type u_6} →
      [inst : Semiring R] →
        [inst_1 : AddMonoid M] →
          [inst_2 : AddMonoid N] →
            AddMonoidAlgebra (AddMonoidAlgebra R M) N ≃+* AddMonoidAlgebra (AddMonoidAlgebra R N) M