| ← Direct sums | Index |
Key points. A module is an abelian group with a scalar action
satisfying four axioms, equivalently a ring homomorphism into the ring of
the group’s own endomorphisms. A submodule is a membership predicate plus
closure proofs, a linear map is a function preserving + and the scalar
action, and a direct sum’s five/four axioms each split, via congr 1,
into one independent fact per summand.
Socratic questions.
- A module is called “an abelian group with a scalar action,” but also
“a ring homomorphism into the group’s own endomorphism ring.” Are
these two descriptions actually saying the same thing? Yes — a
scalar action assigning
r ↦ (m ↦ r • m)to each ring element is exactly a function fromRinto the (additive, composable) mapsM → M; the four module axioms are precisely what make that assignment respectR’s own+and×, i.e. a ring homomorphism. Same fact, two vocabularies. Submoduleis defined by a membership predicate plus closure proofs, not by “a subset.” Why does that distinction matter in Lean specifically? Because a bareSet Mcarries no evidence of closure — any subset could be handed over, checked or not. Bundling the closure proofs into the structure means a term of typeSubmodule Rg Modis, by construction, already verified closed under+and the scalar action; there is no separate step where that gets forgotten or skipped.-
congr 1split a direct sum’s group axioms into one fact per summand. What would go wrong trying to provedirectSumModule’s axioms without it, working with the pair as a single opaque value? Nothing would be wrong, exactly, but every axiom would need its own ad-hoc unfolding of what equality of pairs means —congr 1names the one fact (a product’s equality is checked componentwise) that makes all five/four proofs uniform instead of five/four bespoke arguments. - Prove that the identity function is a linear map: for any
Mod : Module R Rg M, constructidLinearMap : LinearMap Rg Mod ModwithtoFun := id. - Prove that linear maps compose: given
f : LinearMap Rg ModM ModNandg : LinearMap Rg ModN ModP, constructLinearMap Rg ModM ModPwithtoFun := g.toFun ∘ f.toFun. (This, together with Exercise 1 and associativity of function composition, is what makes $R$-modules and $R$-linear maps a category. This is the payoff that Chapter 1 promised.) - Verify
intSmul(defined above) satisfiesModule’s four axioms againstintRing, at least forone_smulandsmul_add— by induction on the integer scalar, in the style of Chapter 4. - Define the submodule of multiples of a fixed integer
d : Int(generalizingevenSubmodule, which is the cased = 2), and check that the three closure proofs generalize verbatim with2replaced byd.
Solutions: Appendix, Chapter 10.
Next
Continue to Chapter 11: Quivers and path algebras, which returns to path algebras. Once $kQ$ has been constructed, observe that representations of $Q$ are exactly modules over $kQ$; this is what ties this chapter directly to the next.
| ← Direct sums | Index | Table of contents | Ch. 11: Path Algebras → |