Skip to the content.
← The mathematical definition Index Next: Z-module example →

Recall

Formal definition cited in this section, gathered here for quick reference (full citation in the Bibliography):

The same “data, then axioms” build used for Group and Ring applies here:

structure Module (R : Type) (Rg : Ring R) (M : Type) where
  addGrp : CommGroup M
  smul : R  M  M
  smul_add :  (r : R) (m n : M), smul r (addGrp.op m n) = addGrp.op (smul r m) (smul r n)
  add_smul :  (r s : R) (m : M), smul (Rg.addGrp.op r s) m = addGrp.op (smul r m) (smul s m)
  smul_smul :  (r s : R) (m : M), smul (Rg.mul r s) m = smul r (smul s m)
  one_smul :  m : M, smul Rg.one m = m

Field by field:

Mathematical reading. Module R Rg M is the type of left $R$-module structures on the abelian group $M$. The data is an action $R \times M \to M$, $(r,m)\mapsto r\cdot m$. The four axioms say precisely that the curried map $\rho(r)(m) = r\cdot m$ is a ring homomorphism from $R$ into the ring of endomorphisms of $(M,+)$: the additive maps $M \to M$, under pointwise addition and composition. smul_add says each $\rho(r)$ is itself additive (a homomorphism $M \to M$ of abelian groups). add_smul and smul_smul say $\rho$ preserves $+$ and $\times$. And one_smul says $\rho(1)$ is the identity map on $M$. So a module over $R$ is exactly an abelian group $M$ equipped with a ring homomorphism from $R$ into its own ring of endomorphisms. The ring $R$ enters as an explicit parameter, not as extra bundled data on $M$, because a module is always a module over some already-fixed ring.

Read more: Mathlib’s Module (Mathlib.Algebra.Module.Defs) is much more general. It is universe-polymorphic, stated for Semiring rather than just Ring, and integrated with the whole Mathlib.LinearAlgebra.* hierarchy (bases, dimension, tensor products); see Chapter 13. For the classical theory, any standard module-theory or homological-algebra text (e.g. Dummit & Foote’s chapters on modules, or Weibel’s An Introduction to Homological Algebra for the deeper theory) covers the same axioms from the ground up.

References

Full citations in the Bibliography. Formal definitions are gathered in Recall, above.


← The mathematical definition Index Next: Z-module example →
Try Lean
Lean playground · v1.4.18