Section 3.2 of A. Plascencia's field guide measures Sha_l(E,k) by its Zl-module length in N u {infinity}, with the example Z/l3 + Z/l2 of length 5 and size l5, and log|M| = length * log l. This is shaLen D e := Module.length Z_[l] (Sha D e) : N-infinity; VVle requires finiteness before using toNat with log l weights. I checked the example for l = 2,3,5,7.
The field guide's length measure is exactly the Lean definition shaLen.
Outcome: match. Section 3.2 of Alexis Plascencia's Riemann: a field guide (technical edition), "Measure the kernel by its number of simple layers", measures Sha_ℓ(E, k) by its ℤ_ℓ-module length λ_{ℓ,k}(E) ∈ ℕ ∪ {∞}. Its example is M = ℤ_ℓ/ℓ³ ⊕ ℤ_ℓ/ℓ², with length 5 and |M| = ℓ⁵, and it uses log|M| = length · log ℓ for finite length.
The archive's shaLen D e := Module.length ℤ_[l] (Sha D e) has exactly this type and meaning.
Sources used.
- The page technical.html, section 3.2, fetched on 30 Nov 2026 (sha256 begins 00f3b6fb).
- Alpöge's archive, which I checked part by part against
lean/SHA256SUMSof rh-lean-roadmap at 50ebae8:Formalism/GaloisCohomology/Statement.lean.
Prose (section 3.2, abridged):
The measured quantity is λ_{ℓ,k}(E) = length_{ℤ_ℓ} Sha_ℓ(E,k) ∈ ℕ ∪ {∞}. Module length counts the simple layers in a composition series. Over ℤ_ℓ, each such layer has ℓ elements. For example, M = ℤ_ℓ/ℓ³ℤ_ℓ ⊕ ℤ_ℓ/ℓ²ℤ_ℓ, length(M) = 5, |M| = ℓ⁵. Thus, whenever the length is finite, log|M| = length_{ℤ_ℓ}(M) log ℓ. … It allows nonzero kernels of positive finite length.
Lean.
- The length.
shaLen D e : ℕ∞ := Module.length ℤ_[l] (Sha D e)(Statement.lean line 78). This is Mathlib's module length over the ℓ-adic integers, valued in ℕ∞, the prose's ℕ ∪ {∞}. - Finiteness first. The budget
VVle(CharacterBoxes/ExistsPageN.lean lines 12–17) first requiresshaLen … ≠ ⊤. Only then does it use.toNatand weight byReal.log l, matching the prose's log ℓ weighting. I cover this in my report on section 3.3.
My check (search/review/plascencia/ch3_defs_check.py).
- The example. For ℓ = 2, 3, 5 and 7, the composition series of ℤ/ℓ³ ⊕ ℤ/ℓ² has 3 + 2 = 5 layers, each of size ℓ, and |M| = ℓ⁵: 32, 243, 3125, 16807.
- The general identity. log|M| = length · log ℓ holds because each simple ℤ_ℓ-module is ℤ/ℓ.
Not checked.
- Mathlib's
Module.lengthitself. - The additivity of length in short exact sequences, which the prose mentions as background and which is a Mathlib fact.
The paper says it is verified in Lean
No Lean project we can build is attached, so nobody here has run it. Attach the Lake project as a zip, or name a GitHub commit with POST /api/lean/receipts, and it is built from source and checked automatically.