∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : Monoid R] [inst_1 : NonUnitalNonAssocSemiring A]
  [inst_2 : DistribMulAction R A] [inst_3 : Star A] [inst_4 : NonUnitalNonAssocSemiring B]
  [inst_5 : DistribMulAction R B] [inst_6 : Star B] (f : A →ₙₐ[R] B)
  (h : ∀ (a : A), f.toFun (star a) = star (f.toFun a)), ⇑{ toNonUnitalAlgHom := f, map_star' := h } = ⇑f