Remark.  [ca-0018]

For a commutative ring \(R\), the algebra structure is equivalently an \(R\)-module structure on an associative ring \(A\) with identity, with the same addition, such that \[ r \bullet (x * y) = (r \bullet x) * y = x * (r \bullet y) \qquad (r \in R,\ x,y \in A). \] This is the formulation of [jadczyk2019notes, Definition 1.6, p. 4]. Both formulations require associativity and an identity.

The corresponding Mathlib constructions are Algebra.toModule and Algebra.ofModule. Mathlib also permits semirings; under the ring hypotheses here, the two formulations describe the same structures.