Snapshot of 25 November 2026. This is the collection as it stood before it was reorganized around the rewritten Lean proof. It is not maintained. Current version: ultronozm.github.io/grh-workbook.

The colength of a Hecke image

November 26, 2026

Prerequisites.

Modules over a discrete valuation ring and the elementary divisor theorem [La, Ch. III, §7]. Chapter 19, Theorem 19.5.1; Chapter 40: edges, the lattices \(H(L)\), and the condition \(\mathrm{LP}\) of Section 40.3. Theorem 37.4.2 of Chapter 37, which states the result of this chapter in the form of [Adr, Thm. 12.18].

Chapter 40 asked, at one edge, for vectors whose pairings are nondegenerate up to \(p^D\) on all but a fraction \(\kappa\) of the dimension. What does that buy for the image of a product of Hecke operators, acting on forms over a whole class set and at several Frobenius orbits at once? The answer is a bound for the colength of the image that is linear in the depth and the denominator, plus a term in \(\sum\kappa_v\). The counting behind it is elementary, and we prove it in a model; the covering lemma that feeds it is stated.

Throughout, \(\mathfrak o\) is a complete discrete valuation ring with uniformizer \(\varpi\) and valuation \(v\), and \(p\in\mathfrak o\) is a nonzero nonunit; in the application \(v(p)=2\). Modules are finitely generated, and \(\operatorname{rk}\) is the rank of a free \(\mathfrak o\)-module.

§41.1. Covering up to a few vectors

Let \(M\) be a free \(\mathfrak o\)-module and \(P\subseteq M\) a submodule. For an integer \(E\ge0\) and a real \(g\ge0\) we say that \(p^EM\subseteq P\) up to \(g\) vectors if there is a set \(C\subseteq M\) with at most \(g\) elements and \(p^EM\subseteq P+\mathfrak oC\). If \(P\) has full rank, write \(P=\bigoplus_i\varpi^{\varepsilon_i}\mathfrak oh_i\) for a basis \((h_i)\) of \(M\), with exponents \(\varepsilon_i\).

Problem 41.1.1. Let \(P\) have full rank. Then \(p^EM\subseteq P\) up to \(g\) vectors exactly when \(\#\{i:\varepsilon_i>Ev(p)\}\le g\).

Problem 41.1.2. Let \(P\) have full rank and \(\tau\ge0\). Then \(P\cap p^\tau M=\bigoplus_i\varpi^{\max(\varepsilon_i,\tau v(p))}\mathfrak oh_i\), so \(\operatorname{length}(M/(P\cap p^\tau M))=\sum_i\max(\varepsilon_i,\tau v(p))\).

Problem 41.1.3. Let \(P\) have full rank, let \(\tau\ge0\) and \(S\ge1\) be integers, and suppose that \(p^{\tau+\beta S}M\subseteq P\) up to \(g_\beta\) vectors for every \(\beta\ge0\). Then \[\operatorname{length}\bigl(M/(P\cap p^\tau M)\bigr)\le v(p)\Bigl(\tau\operatorname{rk}M+S\sum_{\beta\ge0}g_\beta\Bigr).\]

§41.2. Elementary symmetric functions

For real numbers \(\kappa_v\ge0\), \(v\in\mathcal V\), let \(e_j(\kappa)=\sum_{U\subseteq\mathcal V,\,\lvert U\rvert=j}\prod_{v\in U}\kappa_v\).

Problem 41.2.1. \(e_j(\kappa)\le(\sum_v\kappa_v)^j/j!\) for every \(j\ge0\).

Problem 41.2.2. For \(0\le\Sigma\le1\), \(\sum_{\beta\ge0}\Sigma^{\beta+1}/(\beta+1)!=e^\Sigma-1\le2\Sigma\). The inequality \(e^\Sigma-1\le2\Sigma\) fails for \(\Sigma=1.26\).

Problem 41.2.3. Let \(m\ge1\) and \(\Sigma=m\sum_v\kappa_v\le1\). In Problem 41.1.3 suppose \(g_\beta\le\operatorname{rk}M\,m^{\beta+1}e_{\beta+1}(\kappa)\) for every \(\beta\). Then \[\operatorname{length}\bigl(M/(P\cap p^\tau M)\bigr)\le v(p)\operatorname{rk}M\,(\tau+2S\Sigma).\]

§41.3. Hecke operators on a tensor product

Here is the mechanism in a model. Let \(\mathcal V\) be a finite set, \(M_v\) free \(\mathfrak o\)-modules for \(v\in\mathcal V\), and \(M=\bigotimes_{v\in\mathcal V}M_v\). Let \(Y_v\) be an endomorphism of \(M_v\), and \(y_v\) the endomorphism of \(M\) acting by \(Y_v\) on the factor \(M_v\) and by the identity on the others. Suppose that for each \(v\) there are an integer \(E_v\ge0\) and a real \(\kappa_v\ge0\) with \[p^{E_v}M_v\subseteq Y_vM_v\quad\text{up to }\kappa_v\operatorname{rk}M_v\text{ vectors}.\]

Problem 41.3.1. For \(m\ge1\), \(p^{mE_v}M_v\subseteq Y_v^mM_v\) up to \(m\kappa_v\operatorname{rk}M_v\) vectors.

Problem 41.3.2. For submodules \(A_v,B_v\subseteq M_v\), the image of \(\bigotimes_v(A_v+B_v)\) in \(M\) is the sum, over \(U\subseteq\mathcal V\), of the images of \(\bigotimes_{v\notin U}A_v\otimes\bigotimes_{v\in U}B_v\).

Fix \(m\ge1\), integers \(0\le S_v\le S\), and put \[N=\sum_{U\subseteq\mathcal V}\Bigl(\prod_{v\notin U}y_v^m\Bigr)\Bigl(p^{\sum_{v\in U}S_v}M\Bigr),\qquad \tau=m\sum_{v}E_v .\] So \(N\) is spanned by the images of products of Hecke operators, where each orbit not used is replaced by a scalar \(p^{S_v}\).

Problem 41.3.3. For every \(\beta\ge0\), \(p^{\tau+\beta S}M\subseteq N\) up to \(\operatorname{rk}M\,m^{\beta+1}e_{\beta+1}(\kappa)\) vectors. Also \(p^{\sum_vS_v}M\subseteq N\).

Problem 41.3.4. If \(M=\bigoplus_cM^{(c)}\) is a direct sum of such tensor products, with the same \(\mathcal V\), \(E_v\), \(\kappa_v\), \(m\) and \(S_v\), and \(y_v\) acts on each summand as above, then Problem 41.3.3 holds for \(M\).

Problem 41.3.5. Let \(\mathfrak o=\mathbb Z_p\), \(\mathcal V=\{1,2\}\), \(M_v=\mathbb Z_p^4\), \(Y_v=\operatorname{diag}(1,1,1,p^5)\), \(E_v=0\), \(\kappa_v=1/4\), \(m=1\) and \(S_v=2\). Then the exponents of \(N\) in \(M\) are \(0\) (nine times), \(2\) (six times) and \(4\) (once), so \(\operatorname{length}(M/N)=16\). The bounds of Problem 41.3.3 are \(8\) for \(\beta=0\) and \(1\) for \(\beta=1\); Problem 41.1.3 gives \(\operatorname{length}(M/N)\le18\), and Problem 41.2.3, with \(\Sigma=1/2\), gives \(32\).

The count \(\operatorname{rk}M\,m^{\beta+1}e_{\beta+1}(\kappa)\) is the number of basis vectors that are bad at \(\beta+1\) orbits at once. A vector bad at only \(\beta\) orbits is rescued by the scalars \(p^{S_v}\) there, at the cost \(\beta S\) in depth.

§41.4. Forms on a class set

At one prime \(p\), let \(\mathcal V\) be a finite set of Frobenius orbits. For each \(v\in\mathcal V\) take the data of Chapter 40: \(W_v\), \(K_v\), a rank \(k\), a type \(r\) of edges, a representation \(V_v\) with lattices \(H_v(L)\) for \(W_v\)-lattices \(L\subset K_v^k\), and the normalizing exponent \(A_v\), with \(p^{A_v}H_v(L'')\subseteq H_v(L)\) for every edge (Problem 40.2.3). A tuple is a family \(L=(L_v)_v\) of lattices, and \(H(L)=\bigotimes_vH_v(L_v)\). Let \(\Gamma\) be a group acting on tuples through homomorphisms \(\Gamma\to\mathrm{GL}_k(K_v)\), and \(\chi\colon\Gamma\to\mathfrak o^\times\) a character. A form is a function \(F\) on tuples with \(F(L)\in H(L)\) and \(F(\gamma L)=\chi(\gamma)\,\gamma F(L)\); write \(M\) for the \(\mathfrak o\)-module of forms. Assume that \(\Gamma\) has finitely many orbits on tuples, with representatives \(L^{(1)},\dots,L^{(h)}\), and that the stabilizer in \(\Gamma\) of every tuple is trivial.

Problem 41.4.1. \(F\mapsto(F(L^{(c)}))_c\) is an isomorphism \(M\cong\bigoplus_cH(L^{(c)})\). Hence \(M\) is free of rank \(h\prod_v\dim V_v\).

The normalized Hecke operator at \(v\) is \[(y_vF)(L)=p^{A_v}\sum_{L''}F(L_{v\to L''}),\] the sum over the \(r\)-edges \((L''\subset L_v)\), where \(L_{v\to L''}\) is \(L\) with \(L_v\) replaced by \(L''\). For \(\mathcal V\) a single orbit, \(k=2\), \(r=1\) and \(\nu=1\), this is the operator \(Y=p^kT\) of Chapter 19, with \(k\) there the degree.

Problem 41.4.2. \(y_v\) maps \(M\) into itself, and \(y_uy_v=y_vy_u\) for all \(u,v\in\mathcal V\).

In this setting the forms are not a tensor product over the orbits on which the \(y_v\) act factorwise, since \(y_v\) moves a tuple to its neighbours. The formalization proves the covering of Section 41.3 directly.

Theorem 41.4.1 (colength of the Hecke image). In the setting above, let \(\mathcal V'\subseteq\mathcal V\), let \(m\ge1\), \(D\ge0\), \(c_*\ge0\), integers \(t_v\ge0\) and \(0\le S_v\le S\), and reals \(0\le\kappa_v\le1\), and suppose that \(\mathrm{LP}(r;t_v,D,\kappa_v,c_*)\) holds at every \(v\in\mathcal V'\). Put \[N=\sum_{U\subseteq\mathcal V'}\Bigl(\prod_{v\in\mathcal V'\setminus U}y_v^m\Bigr)\Bigl(p^{\sum_{v\in U}S_v}M\Bigr),\qquad \tau=m\sum_{v\in\mathcal V'}(t_v+D+1),\qquad \Sigma=m\sum_{v\in\mathcal V'}\kappa_v .\]

Status: proved in the Lean formalization [Lean]. The proof of (a) first covers \(p^{D+1}\) times a depth-\(t\) lattice of forms by Hecke images at the orbits of any \(U\), up to \(\prod_{v\in U}\kappa_v\operatorname{rk}M\) vectors. For this it uses the isomorphism of Problem 41.4.1, the isolated vectors of the condition \(\mathrm{LP}\), which make \(y_v\) of a form concentrated at a source almost concentrated at one target, and the witnesses and tests of (iii) there. It then counts as in Section 41.3. We have not followed the proof of this covering lemma. Part (b) follows from (a) by the problems below. The corresponding statement in [Adr] is [Adr, Thm. 12.18], recalled in Theorem 37.4.2.

Problem 41.4.3. Part (a) of Theorem 41.4.1 implies the length bound in part (b).

Problem 41.4.4. Let \(M'\subseteq M\) be saturated, that is, \(M\cap(M'\otimes\mathrm{Frac}\,\mathfrak o)=M'\). Then \(p^\tau M\cap M'=p^\tau M'\), and \(M'/(Q\cap M')\) injects into \(M/Q\) for every submodule \(Q\subseteq M\).

The formalization uses two integral structures, \(M\subseteq M^{\rm na}\), on the forms at a prime; Theorem 41.4.1 is proved for \(M^{\rm na}\) and transferred.

Problem 41.4.5. Let \(p^{s}M^{\rm na}\subseteq M\subseteq M^{\rm na}\), both stable under the \(y_v\), and write \(N(\cdot)\) for the module \(N\) built from each. If \(p^EM^{\rm na}\subseteq N(M^{\rm na})\) up to \(g\) vectors, then \(p^{E+s}M\subseteq N(M)\) up to \(g\) vectors. Hence Theorem 41.4.1 holds for \(M\) with \(\tau\) replaced by \(\tau+s\).

With \(s=e_p\), \(D=D_p\), and the real depths \(t_v\) of Chapter 37 replaced by \(\lceil t_v\rceil\), this is the exponent \(\tau(p)=e_p+m\sum_v(\lceil t_v\rceil+D_p+1)\) of Chapter 37, and \(2S\Sigma\), with \(S=\max_vS_v\), is the term \(\mathrm{io}(p)=2\Sigma(p)\max_vS_v\) there. In the formalization the local lattice of the source at a served place \(w\mid p\) is \(N\cap p^{\lceil\tau(p)\rceil}M\cap V^{\rm ram}\), and Theorem 41.4.1(b), with \(M'=M\cap V^{\rm ram}\), is Theorem 37.4.2.

Problem 41.4.6. Let \(P\subseteq M\) have full rank and \(p^EM\subseteq P\). Then \(\operatorname{length}(M/P)\le v(p)E\operatorname{rk}M\). Over \(W\), where \(v(p)=1\), with \(M=H(L)\) and \(P=S(L)\) on the tree of Chapter 19 with \(Q>d\), where \(d\) is the degree, Theorem 19.5.1 gives \(E=\lfloor\log_pd\rfloor\); for \(p=d=5\) and \(Q=25\) the bound is \(6\), and the true loss is \(4\).

Problem 41.4.7. Let \(\operatorname{rk}M=8\), \(v(p)=2\), \(m=2\), one served orbit with \(\kappa=1/8\) and \(S=3\). Then \(\Sigma=1/4\), \(2S\Sigma=3/2\), and the bound of Theorem 41.4.1(b) is \(16\tau+24\), as in Problem 37.4.2.

The colength is paid once per prime: it is the price \(\tau(p)+\mathrm{io}(p)\) of recording, as a change of lattice, the gain that the chain of lifts makes on \(N\). The gain itself is a separate statement about the lifts.

In the Lean formalization 1. In [Lean] “\(p^EM\subseteq P\) up to \(g\) vectors” is AllButLE. Theorem 41.4.1 is SelectionLemmas.Conclusion1, proved as LatticeSystems.theta_kernel_expansion from the covering lemma RestJ, itself built from JDelta and JRank (Problem 41.4.1), JSmith (the condition \(\mathrm{LP}\) at one orbit), JStep1 (isolation) and JLocal (the product over orbits). The module \(N\) is prodIdeal, and \(y_v\) is GAtP.yv. Problem 41.2.3 is floor_scaled_esymmOn_le_sum_pow with the summation in core; Problem 41.4.5 is core and coreT; the version at a place is FormalGroupSystem.LemmaVVolumeGeneral, proved by stmt6G, and it gives the lattice clause of LinkG.

Hints

§41.1

41.1.1

For one direction take \(C\) among the \(h_i\); for the other, count the generators of \((p^EM+P)/P\).

41.1.2

\(p^\tau M\) is diagonal in every basis of \(M\).

41.1.3

Problems 41.1.1 and 41.1.2; count each exponent by the levels \(\tau+\beta S\) it exceeds.

§41.2

41.2.1

Expand \((\sum_v\kappa_v)^j\).

41.2.2

Convexity of \(e^\Sigma-1-2\Sigma\).

41.2.3

Problems 41.2.1 and 41.2.2.

§41.3

41.3.1

Induction on \(m\), keeping the vectors \(Y_v^iC\).

41.3.3

Problems 41.3.1 and 41.3.2 with \(A_v=Y_v^mM_v\); treat the terms by the size of \(U\).

41.3.5

Work in the basis \(e_i\otimes e_j\); each of the four generators of \(N\) is diagonal.

§41.4

41.4.1

Trivial stabilizers make the extension from the representatives well defined.

41.4.2

\(\gamma\) maps the edges into \(L_v\) to the edges into \(\gamma L_v\); for integrality use Problem 40.2.3.

41.4.3

Problems 41.1.3 and 41.2.3; if \(S=0\), then \(N=M\).

41.4.5

\(p^sN(M^{\rm na})\subseteq N(M)\).

41.4.6

Problems 41.1.1 and 41.1.2, and Problem 37.4.1.

References

[Adr] J. Adriazola, The Alpöge proof of the Riemann hypothesis, manuscript, revised 24 November 2026, https://github.com/jimjamzola/RH-Alpoge-Reconstruction.

[La] S. Lang, Algebra, revised 3rd ed., Graduate Texts in Mathematics 211, Springer, 2002.

[Lean] The Lean community, riemann-hypothesis, a Lean formalization of Alpöge’s argument, https://github.com/leanprover-community/riemann-hypothesis.