Structured proof · Unit 137
lemma one_prime_first_order
hm). Let a \colon H \to \mathbb{Z}/m be a homomorphism (\mathbb{Z}/m written multiplicatively; a(p) also denotes its additive value), B an additive map from integer-valued functions on \mathbb{Z}/m to R with B(f)\cdot \rho(p) = B(x \mapsto f(x - a(p))) for all f and p \in H (hB), \mathcal{A} a subring of R containing every \rho(g) (hρ) and every B(f) (h\mathcal{A}), A a type and ac : A \to R a function whose values commute with every element of \mathcal{A} (hc). Let \Psi, L \in R, \gamma \in \Gamma and n, k \in \mathbb{N} satisfy: \sum_{p\in H} \rho(p^{-1})\Psi \rho(p) = n (hΨ); \rho(p)\cdot B(1) = B(1) for p \in H, 1 the constant function (hX); L\cdot B(1) = 0 (h); L\cdot \rho(g) = L for all g \in \Gamma (hL); multiplication by |\Gamma | is injective on R (tf); k\cdot \operatorname{Tr}_a(\gamma) = k in \mathbb{Z}/m, \operatorname{Tr}_a \colon \Gamma \to \mathbb{Z}/m the transfer of a (hn). Then there is F \in \mathcal{A} such that (i) for every g \in \Gamma there is Z \in R with \sigma(n\cdot F\cdot(\rho(g) - 1)) = \sigma((\sum_{g'\in \Gamma } \rho(g'))\cdot Z) and L\cdot Z = 0; and (ii) for all t, t' \in A and r \in R: if B(f(\cdot - k) - f)\cdot ac(t) = \operatorname{weightedSum}(\rho |_H, a)(f(\cdot - k) - f)\cdot ac(t') for every f \colon \mathbb{Z}/m \to \mathbb{Z}, and \operatorname{weightedSum}(\rho, \operatorname{Tr}_a)(f)\cdot ac(t') = (\rho(\gamma) - 1)\cdot \operatorname{weightedSum}(\rho, \operatorname{Tr}_a)(f)\cdot r for every f, then (2k)\cdot \sigma(F)\sigma(ac(t)) = (2k)\cdot \sigma(\sum_{g\in \Gamma } \rho(g))\sigma(r).hΨ and hX this gives (\sum \rho)\Psi B(1) = n\cdot T\cdot B(1), whence (i) with Z_g built from the H-components of g\cdot \widehat{\eta}, and L\cdot Z_g = 0 by tf. For (ii), the weight f(x) = -v(x)(v(x)+k) has f(x-k) - f(x) \equiv 2k\cdot v(x); conjugation sums weights over the cosets into the transfer, and k\cdot \operatorname{Tr}_a(\gamma) = k closes the computation modulo m.Let T = \sum_{\eta \in \Gamma /H} \rho(\widehat{\eta}), \widehat{\eta} the chosen representative of the coset \eta.
Let U = \sum_{\eta \in \Gamma /H} \rho(\widehat{\eta}^{-1}).
Let v \colon \mathbb{Z}/m \to \mathbb{Z} send a residue to its representative of least absolute value.
Uses
ZMod.valMinAbs For g, x \in \Gamma let w(g, x) = r^{-1}\cdot gx \in H, r the chosen representative of the coset
gxH: the component in H ofgxwith respect to the representatives.Uses
QuotientGroup.eq For every f \colon H \to \mathbb{Z} and x \in \Gamma: T\cdot(\sum_{p\in H} f(p)\rho(p))\cdot \rho(x^{-1}) = \sum_{g\in \Gamma } f(w(g, x))\rho(g); expand the product into a double sum over (\eta, p) and substitute the bijection (\eta, p) \mapsto \widehat{\eta} p x^{-1}, whose inverse is g \mapsto (coset of
gx, w(g, x)).Lean states
T * (∑ p, f p • ρ p) * ρ x⁻¹ = ∑ g, f (w g x) • ρ g(\sum_{g\in \Gamma } \rho(g))\cdot(\Psi \cdot B(1)) = n\cdot T\cdot B(1): multiply
hΨby T on the left and B(1) on the right, usehX(\rho(p)B(1) = B(1)), substitute p \mapsto p^{-1} in H, and use step 5 with f = 1, x = 1 (T\cdot \sum_{p\in H} \rho(p) = \sum_{g\in \Gamma } \rho(g)).Lean states
(∑ g, ρ g) * (Ψ * B 1) = n • T * B 1Usesstep 5
F \in \mathcal{A}: the \rho(g) and B(-v) lie in \mathcal{A} (
hρ, h\mathcal{A}), which is closed under sums and products.For g \in \Gamma take Z_g = \Psi \cdot B(1)\cdot \sum_{\eta \in \Gamma /H} v(a(w(g, \widehat{\eta})))\cdot \rho(\widehat{\eta}^{-1}); its first property is step 8.
Usesstep 4
L\cdot Z_g = 0: multiplying step 6 by L on the left,
hLgives L\cdot(\sum \rho) = |\Gamma |\cdot L and L\cdot T = [\Gamma :H]\cdot L, and h gives L\cdot B(1) = 0; so |\Gamma |\cdot(L\cdot \Psi \cdot B(1)) = 0, and L\cdot \Psi \cdot B(1) = 0 because |\Gamma | is regular on R (tf).Usesstep 6
For (ii), given the two hypotheses
h₁andh₂the identity is the chain (2k)\cdot \sigma(F)\sigma(ac(t)) = -\sigma(\operatorname{weightedSum}(\rho, \operatorname{Tr}_a)((2k)v)\cdot ac(t')) (step 9) = -\sigma((\rho(\gamma) - 1)\cdot \operatorname{weightedSum}(\rho, \operatorname{Tr}_a)((2k)v)\cdot r) (h₂for f = (2k)v) = (2k)\cdot \sigma(\sum \rho)\sigma(r) (step 10).
Property (i): \sigma(n\cdot F\cdot(\rho(g) - 1)) = \sigma((\sum_{g'} \rho(g'))\cdot Z_g).
By step 6, (\sum \rho)\cdot Z_g = n\cdot T\cdot B(1)\cdot \sum_\eta v(a(w(g, \widehat{\eta})))\rho(\widehat{\eta}^{-1}); on the other side expand F\cdot \rho(g) = T\cdot B(-v)\cdot \sum_\eta \rho(\widehat{\eta}^{-1}g) and substitute along the permutation of \Gamma /H induced by g, writing \widehat{\eta}^{-1}g as w(g, \widehat{\eta})\cdot(representative)^{-1}.
Each B(-v)\cdot \rho(w) with w \in H equals B(x \mapsto -v(x - a(w))) (
hB), and after \sigma this is \sigma(B(-v)) + v(a(w))\cdot \sigma(B(1)) because v(x - y) \equiv v(x) - v(y) mod m and \sigma kills m (map_eq_of_weights_modEq); the terms \sigma(B(-v)) cancel against -F and the rest is n\cdot T\cdot B(1)\cdot \sum_\eta v(a(w(g, \widehat{\eta})))\rho(\widehat{\eta}^{-1}).
First link of (ii): (2k)\cdot \sigma(F)\sigma(ac(t)) = -\sigma(\operatorname{weightedSum}(\rho, \operatorname{Tr}_a)((2k)v)\cdot ac(t')).
\sigma(T\cdot \operatorname{weightedSum}(\rho |_H, a)(v)\cdot U) = \sigma(\operatorname{weightedSum}(\rho, \operatorname{Tr}_a)(v)): by step 5 the left side is \sigma of \sum_{g\in \Gamma } (\sum_\eta v(a(w(g, \widehat{\eta}))))\rho(g), and \sum_\eta a(w(g, \widehat{\eta})) is the transfer \operatorname{Tr}_a(g) (its defining product over the cosets), so the integer weights agree modulo m and \sigma identifies the two (
map_eq_of_weights_modEq).Lean states
σ (T * weightedSum (ρ.comp H.subtype) a v * U) = σ (weightedSum ρ a.transfer v)Usesstep 5,
weightedSumunit 137,map_eq_of_weights_modEqunit 137,MonoidHom.transfer_def Apply
h₁to f(x) = -v(x)(v(x) + k): then f(x - k) - f(x) \equiv 2k\cdot v(x) mod m (as v(x - k) \equiv v(x) - k), so after \sigma: B((2k)v)\cdot ac(t) = \operatorname{weightedSum}(\rho |_H, a)((2k)v)\cdot ac(t'). Multiply by T on the left and U on the right, move ac(t) past U (hc, U \in \mathcal{A}) and use 9.1 and F = T\cdot B(-v)\cdot U.
Last link of (ii): -\sigma((\rho(\gamma) - 1)\cdot \operatorname{weightedSum}(\rho, \operatorname{Tr}_a)((2k)v)\cdot r) = (2k)\cdot \sigma(\sum \rho)\sigma(r): by
mul_weightedSum, \rho(\gamma)\cdot \operatorname{weightedSum}(\rho, \operatorname{Tr}_a)(f) = \operatorname{weightedSum}(\rho, \operatorname{Tr}_a)(f(\cdot - \operatorname{Tr}_a(\gamma))); the weights (2k)(v(x - \operatorname{Tr}_a(\gamma)) - v(x)) are \equiv -2k\cdot \operatorname{Tr}_a(\gamma) \equiv -2k mod m byhn, so the difference is \sigma(-2k\cdot \sum_g \rho(g)).Uses
mul_weightedSumunit 137,map_eq_of_weights_modEqunit 137,weightedSumunit 137