The Hecke character \(\psi_d\) and its coefficients

This subsection is about the Gaussian integers, with one exception: the vanishing of \(\lambda_d(p)\) at the primes \(p\mid2d\) is read off from Deuring's identity at those primes. For a natural number \(d\), the Hecke character \(\psi_d\) is \(\psi_d(\alpha)=\left(\frac{N(\alpha)}d\right)u(\alpha)\,\alpha\) on \(\mathbb Z[i]\), where \(u(\alpha)\) is a unit read off \(\alpha\) modulo \(4\) (the primary unit, \(0\) when \(1+i\) divides \(\alpha\)). It is completely multiplicative and takes the value \(1\) on the four units, so the coefficients \(\lambda_d(n)=\frac14\sum_{N(\alpha)=n}\psi_d(\alpha)\) are a sum over the ideals of norm \(n\). For squarefree \(d\equiv1\pmod4\) its coefficients are those of \(C_d\) (Deuring's identity).

These coefficients are multiplicative, by counting the factorizations \(\gamma=\alpha\beta\) with \(N(\alpha)=m\), \(N(\beta)=n\) for coprime \(m,n\). At a prime \(p\equiv1\pmod4\) that does not divide \(d\), the factorization \(p=\pi\bar\pi\) into two non-associate Gaussian primes gives the Hecke relation \(\lambda_d(p^{k+2})=\lambda_d(p)\lambda_d(p^{k+1})-p\lambda_d(p^k)\); at a prime \(p\equiv3\pmod4\) not dividing \(d\), the elements of norm \(p^{k+2}\) are \(p\) times those of norm \(p^k\), which gives \(\lambda_d(p^{k+2})=-p\lambda_d(p^k)\); and at \(2\) and at the primes dividing \(d\) the coefficients of the prime powers vanish. Together, for odd squarefree \(d\), the coefficients are those of an Euler product with local factors \((1-\lambda_d(p)T+pT^2)^{-1}\) at \(p\nmid2d\) and \(1\) at \(p\mid2d\).

Throughout, a pair \((a,b)\in\mathbb Z^2\) is also the Gaussian integer \(a+bi\), with norm \(N(a,b)=a^2+b^2\); \(A_n\) is the set of Gaussian integers of norm \(n\); and \(\left(\frac an\right)\) is the Jacobi symbol as in the Hecke character.

DefinitionGaussian integers as pairs, norms and units#✓

A pair \((a,b)\in\mathbb Z^2\) stands for the Gaussian integer \(a+bi\in\mathbb Z[i]\). The product of pairs is \((a,b)(c,e)=(ac-be,\,ae+bc)\), the conjugate of \((a,b)\) is \((a,-b)\), and the norm is \(N(a,b)=a^2+b^2\). For a natural number \(n\), the norm fibre \(A_n\) is the finite set of pairs of norm \(n\) (all of them have both coordinates in \([-n,n]\)). The units are the four pairs \(U=\{(1,0),(-1,0),(0,1),(0,-1)\}\).

  1. A pair lies in \(A_n\) exactly when its norm is \(n\). \(U\) has four elements and \(A_1=U\).
  2. The map \((a,b)\mapsto a+bi\) from \(\mathbb Z^2\) to \(\mathbb Z[i]\) is a bijection; it carries the product of pairs to the product, the conjugate to the complex conjugate, and \(N(a,b)\) to the norm of \(a+bi\).
  3. If \(\alpha\in A_m\) and \(\beta\in A_n\), then \(\alpha\beta\in A_{mn}\).
  4. For \(e\in U\): \(e\bar e=1\), \(\bar e\in U\), \(\bar{\bar e}=e\) and \(N(e)=1\).
  5. If \(a^2+b^2=1\), then \((a,b)\in U\). A Gaussian integer of norm \(1\) is a unit of \(\mathbb Z[i]\), and its pair lies in \(U\); the elements of \(U\) have norm \(1\) in \(\mathbb Z[i]\).

Proof sketch. (1)–(4) are direct computations; \(A_1=U\) by listing the pairs in \([-1,1]^2\). (5) \(a^2+b^2=1\) forces \(\{|a|,|b|\}=\{0,1\}\); a Gaussian integer \(x\) of norm \(1\) satisfies \(x\bar x=1\).

def normFiber (n : ℕ) : Finset (ℤ × ℤ) :=
  ((Finset.Icc (-(n : ℤ)) n) ×ˢ (Finset.Icc (-(n : ℤ)) n)).filter
    (fun p => p.1 ^ 2 + p.2 ^ 2 = n)
theorem mem_normFiber {n : ℕ} {p : ℤ × ℤ} : p ∈ normFiber n ↔ p.1 ^ 2 + p.2 ^ 2 = n
def gmul (p q : ℤ × ℤ) : ℤ × ℤ := (p.1 * q.1 - p.2 * q.2, p.1 * q.2 + p.2 * q.1)
Used by 9

TheoremFactoring a Gaussian integer along coprime norms#✓

Let \(m,n>0\) be coprime natural numbers. Pairs and Gaussian integers are identified as in Gaussian integers as pairs, and \(\gcd\) in \(\mathbb Z[i]\) is the greatest common divisor computed by the Euclidean algorithm.

  1. If \(\gamma\in\mathbb Z[i]\) has norm \(mn\), then \(N(\gcd(\gamma,m))=m\).
  2. For every \(y\in A_{mn}\) there are exactly four pairs \((\alpha,\beta)\in A_m\times A_n\) with \(\alpha\beta=y\).

Proof sketch. (1) Let \(D=\gcd(\gamma,m)\) and \(E=\gcd(\gamma,n)\). Since \(D\) divides \(m\) and \(\gamma\), \(N(D)\) divides \(m^2\) and \(mn\), hence \(m\) by coprimality; likewise \(N(E)\) divides \(n\). Writing \(D\) and \(E\) as \(\mathbb Z[i]\)-combinations of \(\gamma,m\) and of \(\gamma,n\) and using \(mn=\gamma\bar\gamma\) shows \(\gamma\mid DE\), so \(mn\mid N(D)N(E)\). With \(N(D)\le m\) and \(N(E)\le n\) this forces \(N(D)N(E)=mn\); if \(N(D)<m\), then \(N(D)N(E)<mn\).

(2) Let \(D=\gcd(y,m)\), so \(N(D)=m\) by (1), and \(Q=y/D\), so \(N(Q)=n\). For each unit \(e\), the pair \((eD,\bar eQ)\) is a solution, and distinct units give distinct solutions since \(D\ne0\). Conversely, if \(\alpha\beta=y\) with \(N(\alpha)=m\), then \(\alpha\mid m\) (as \(\alpha\bar\alpha=m\)) and \(\alpha\mid y\), so \(D=\alpha c\) with \(N(c)=1\): \(c\) is a unit, \(\alpha=D\bar c\) and \(\beta=cQ\).

theorem norm_gcd_eq {γ : GaussianInt} {m n : ℕ} (hm : 0 < m) (hn : 0 < n) (hmn : Nat.Coprime m n)
    (hγ : γ.norm = (m * n : ℕ)) :
    (EuclideanDomain.gcd γ (m : GaussianInt)).norm = m
theorem card_mul_fiber {m n : ℕ} (hm : 0 < m) (hn : 0 < n) (hmn : Nat.Coprime m n)
    {y : ℤ × ℤ} (hy : y ∈ normFiber (m * n)) :
    ((normFiber m ×ˢ normFiber n).filter fun x => gmul x.1 x.2 = y).card = 4
Uses 1 · Used by 1

TheoremGaussian integers whose norm is a prime power#✓

Notation of Gaussian integers as pairs: \(A_n\) is the set of Gaussian integers of norm \(n\).

  1. If \(n\equiv3\pmod4\), then \(A_n\) is empty.
  2. Let \(p\equiv3\pmod4\) be prime. If \(p\mid a^2+b^2\) for integers \(a,b\), then \(p\mid a\) and \(p\mid b\). For every \(k\ge0\), \(A_{p^{k+2}}=\{p\beta:\beta\in A_{p^k}\}\).
  3. A Gaussian integer whose norm is a prime number is a prime element of \(\mathbb Z[i]\).
  4. Let \(p>0\) be a natural number, \(z\) a Gaussian integer of norm \(p\), \(n\) a natural number and \(f:\mathbb Z^2\to\mathbb C\). Then $\(\sum_{\beta\in A_n}f(z\beta)=\sum_{\gamma\in A_{pn},\ z\mid\gamma}f(\gamma).\)$

Proof sketch. (1) Squares are \(0\) or \(1\) modulo \(4\), so \(a^2+b^2\not\equiv3\).

(2) If \(p\nmid b\), then \((ab^{-1})^2\equiv-1\pmod p\), but \(-1\) is not a square modulo a prime \(p\equiv3\pmod4\). So \(p\mid b\), and then \(p\mid a\). For \(\gamma\in A_{p^{k+2}}\) both coordinates are divisible by \(p\), and \(\gamma/p\in A_{p^k}\); conversely \(N(p\beta)=p^2N(\beta)\).

(3) A unit has norm \(1\), so a Gaussian integer \(x\) of prime norm is not a unit; if \(x=yz\), then \(N(y)N(z)\) is prime, so \(y\) or \(z\) has norm \(1\) and is a unit. So \(x\) is irreducible, hence prime, as \(\mathbb Z[i]\) is a principal ideal domain.

(4) \(z\ne0\). The map \(\beta\mapsto z\beta\) sends \(A_n\) into the elements of \(A_{pn}\) divisible by \(z\), with inverse \(\gamma\mapsto\gamma/z\).

theorem normFiber_eq_empty_of_mod_four_eq_three {n : ℕ} (hn : n % 4 = 3) : normFiber n = ∅
theorem dvd_of_dvd_sq_add_sq {p : ℕ} (hp : p.Prime) (hp3 : p % 4 = 3) {a b : ℤ}
    (h : (p : ℤ) ∣ a ^ 2 + b ^ 2) : (p : ℤ) ∣ a ∧ (p : ℤ) ∣ b
theorem normFiber_inert {p : ℕ} (hp : p.Prime) (hp3 : p % 4 = 3) (k : ℕ) :
    normFiber (p ^ (k + 2)) =
      (normFiber (p ^ k)).image fun r : ℤ × ℤ => ((p : ℤ) * r.1, (p : ℤ) * r.2)
Uses 1 · Used by 4

TheoremThe Gaussian primes above a split prime#✓

Notation of Gaussian integers as pairs: \(A_n\) is the set of Gaussian integers of norm \(n\) and \(U\) the set of the four units.

Let \(p\equiv1\pmod4\) be prime and \(a,b\) natural numbers with \(a^2+b^2=p\); put \(\pi=a+bi\). Then: (a) \(a\ne0\), \(b\ne0\) and \(a\ne b\); (b) \(N(\pi)=N(\bar\pi)=p\); (c) \(\bar\pi\nmid\pi\); (d) \(\pi\) and \(\bar\pi\) are prime elements of \(\mathbb Z[i]\); (e) \(p=\pi\bar\pi\); (f) every \(\gamma\in\mathbb Z[i]\) with \(p\mid N(\gamma)\) is divisible by \(\pi\) or by \(\bar\pi\), and by both exactly when \(p\mid\gamma\); (g) for every \(f:\mathbb Z^2\to\mathbb C\), $\(\sum_{\alpha\in A_p}f(\alpha)=\sum_{e\in U}f(e\pi)+\sum_{e\in U}f(e\bar\pi).\)$

Proof sketch. (a) \(a=0\) or \(b=0\) makes \(p\) a square; \(a=b\) makes \(p=2a^2\) even. (b), (e) Direct. (c) If \(\bar\pi\mid\pi\), equal norms make the quotient a unit; each of the four units contradicts (a). (d) By norm fibres at primes (3). (f) \(\pi\) divides \(p\mid N(\gamma)=\gamma\bar\gamma\), so \(\pi\mid\gamma\) or \(\pi\mid\bar\gamma\), the latter meaning \(\bar\pi\mid\gamma\). If both divide \(\gamma\), then, being non-associate primes by (c), their product \(p\) does; the converse is (e). (g) By (f) every element of \(A_p\) is \(e\pi\) or \(e\bar\pi\) with \(N(e)=1\), so \(e\in U\); the two sets \(U\pi\) and \(U\bar\pi\) are disjoint by (c), and \(e\mapsto e\pi\) is injective.

def piZ (a b : ℕ) : ℤ × ℤ := ((a : ℤ), (b : ℤ))
theorem split_ne : a ≠ 0 ∧ b ≠ 0 ∧ a ≠ b
theorem norm_piZ : (piZ a b).1 ^ 2 + (piZ a b).2 ^ 2 = p
Uses 2 · Used by 2

DefinitionThe primary unit of a Gaussian integer modulo 4#✓

For \((a,b)\in(\mathbb Z/4)^2\) the primary unit \(u(a,b)\in\{0,\pm1,\pm i\}\) is given by the table $\(u(a,b)=\begin{cases}1&(a,b)\in\{(1,0),(3,2)\},\\-1&(a,b)\in\{(3,0),(1,2)\},\\ i&(a,b)\in\{(0,3),(2,1)\},\\-i&(a,b)\in\{(0,1),(2,3)\},\\0&\text{otherwise.}\end{cases}\)$ The same table with values in \(\mathbb Z[i]\) defines \(u_G(a,b)\). For a Gaussian integer \(\alpha=x+yi\), \(u(\alpha)\) means \(u(x\bmod4,\,y\bmod4)\). For each \(\alpha\) with \(x+y\) odd, the table lists the unit \(u\) with \(u\alpha\equiv1\pmod{2+2i}\); this description is motivation only, and only the facts below are used.

  1. \(u(a,b)\) is the image of \(u_G(a,b)\) in \(\mathbb C\).
  2. \(u_G\) is multiplicative for the Gaussian product modulo \(4\): for all \(a,b,c,e\in\mathbb Z/4\), \(u_G(ac-be,\,ae+bc)=u_G(a,b)\,u_G(c,e)\).
  3. If the least residues of \(a\) and \(b\) have even sum, then \(u(a,b)=0\).
  4. If \(2(a^2+b^2)=0\) in \(\mathbb Z/4\), then \(u_G(a,b)=0\).
  5. If \(x\equiv1\) and \(y\equiv0\pmod4\), or \(x\equiv3\) and \(y\equiv2\pmod4\), then \(u(x+yi)=1\).

Proof sketch. Each statement is a finite check over the residues modulo \(4\) (\(256\) cases for (2)).

def unitOf (t : ZMod 4 × ZMod 4) : ℂ :=
  if t = (1, 0) ∨ t = (3, 2) then 1
  else if t = (3, 0) ∨ t = (1, 2) then -1
  else if t = (0, 3) ∨ t = (2, 1) then I
  else if t = (0, 1) ∨ t = (2, 3) then -I
  else 0
def unitG (t : ZMod 4 × ZMod 4) : GaussianInt :=
  if t = (1, 0) ∨ t = (3, 2) then 1
  else if t = (3, 0) ∨ t = (1, 2) then -1
  else if t = (0, 3) ∨ t = (2, 1) then ⟨0, 1⟩
  else if t = (0, 1) ∨ t = (2, 3) then ⟨0, -1⟩
  else 0
theorem unitOf_eq_unitG (t : ZMod 4 × ZMod 4) : unitOf t = ((unitG t : GaussianInt) : ℂ)
Used by 9

DefinitionThe Hecke character \(\psi_d\)#✓

For an integer \(a\) and a natural number \(n\), \(\left(\frac an\right)\) is the Jacobi symbol: the product of the Legendre symbols \(\left(\frac ap\right)\) over the prime factors \(p\) of \(n\) counted with multiplicity, where \(\left(\frac a2\right)\) is \(1\) for odd \(a\) and \(0\) for even \(a\), and the empty product (for \(n=0,1\)) is \(1\). Let \(d\) be a natural number and \(u\) the primary unit. Gaussian integers are pairs as in Gaussian integers as pairs. The Hecke character \(\psi_d\) is the function on \(\mathbb Z[i]\) $\(\psi_d(\alpha)=\left(\frac{N(\alpha)}{d}\right)u(\alpha)\,\alpha .\)$ Its finite part is the function \(\omega_d\) on \((\mathbb Z/4d)^2\) $\(\omega_d(x)=\left(\frac{\tilde x_1^2+\tilde x_2^2}{d}\right)u(\tilde x_1\bmod4,\ \tilde x_2\bmod4),\)$ where \(\tilde x_1,\tilde x_2\in\{0,\dots,4d-1\}\) are the least residues of the coordinates of \(x\).

  1. If \(d\ne0\), then \(\omega_d(\alpha\bmod4d)=\left(\frac{N(\alpha)}{d}\right)u(\alpha)\) for every \(\alpha\in\mathbb Z^2\); so \(\psi_d(\alpha)=\omega_d(\alpha\bmod4d)\,\alpha\).
  2. \(\psi_d(\alpha\beta)=\psi_d(\alpha)\,\psi_d(\beta)\) for all \(\alpha,\beta\in\mathbb Z[i]\).
  3. \(\psi_d(1)=\psi_d(-1)=\psi_d(i)=\psi_d(-i)=1\). Hence \(\psi_d(i\alpha)=\psi_d(-\alpha)=\psi_d(\alpha)\), and \(\psi_d(e\alpha)=\psi_d(\alpha)\) for every unit \(e\).
  4. If \(p\equiv1\pmod4\) is prime and \(p\nmid d\), then \(\psi_d(p)=p\).

Proof sketch. (1) The Jacobi symbol depends on its numerator modulo \(d\), and \(u\) on residues modulo \(4\); both are determined modulo \(4d\).

(2) The norm is multiplicative, the Jacobi symbol is multiplicative in its numerator, \(u\) is multiplicative (primary unit (1), (2)), and so is \(\alpha\mapsto\alpha\).

(3) \(\left(\frac1d\right)=1\), and the table gives \(u(1)=1\), \(u(-1)=-1\), \(u(i)=-i\), \(u(-i)=i\), so \(u(e)e=1\) for each unit. The rest follows from (2).

(4) \(\left(\frac{p^2}{d}\right)=1\) because \(p\) is coprime to \(d\), and \(u(p)=u(1,0)=1\) because \(p\equiv1\pmod4\).

noncomputable def psi (d : ℕ) (p : ℤ × ℤ) : ℂ :=
  (jacobiSym (p.1 ^ 2 + p.2 ^ 2) d : ℂ) * unitOf ((p.1 : ZMod 4), (p.2 : ZMod 4)) * gz 0 0 p
noncomputable def cdChar (d : ℕ) (x : ZMod (4 * d) × ZMod (4 * d)) : ℂ :=
  (jacobiSym ((x.1.val : ℤ) ^ 2 + (x.2.val : ℤ) ^ 2) d : ℂ) *
    unitOf (((x.1.val : ℤ) : ZMod 4), ((x.2.val : ℤ) : ZMod 4))
theorem cdChar_intCast {d : ℕ} [NeZero d] (p : ℤ × ℤ) :
    cdChar d ((p.1 : ZMod (4 * d)), (p.2 : ZMod (4 * d))) =
      (jacobiSym (p.1 ^ 2 + p.2 ^ 2) d : ℂ) * unitOf ((p.1 : ZMod 4), (p.2 : ZMod 4))
Uses 2 · Used by 10

DefinitionThe coefficients of the Hecke L-series \(L(\psi_d,s)\)#✓

For natural numbers \(d\) and \(n\) the Hecke coefficient is $\(\lambda_d(n)=\frac14\sum_{\alpha\in A_n}\left(\frac{N(\alpha)}{d}\right)u(\alpha)\,\alpha =\frac14\sum_{\alpha\in A_n}\psi_d(\alpha),\)$ with \(A_n\) the Gaussian integers of norm \(n\), \(u\) the primary unit and \(\psi_d\) the Hecke character. The factor \(\frac14\) accounts for the four generators of each ideal of \(\mathbb Z[i]\); the Dirichlet series with these coefficients is the Hecke L-series \(L(\psi_d,s)\) (motivation only; no L-series of a Hecke character is defined here).

  1. \(\lambda_d(0)=0\) and \(\lambda_d(1)=1\).
  2. For all natural numbers \(d\) and \(p\), \(\lambda_d(p)=\left(\frac pd\right)\lambda_1(p)\).

Proof sketch. (1) \(A_0=\{0\}\), whose term is \(0\). \(A_1\) is the set of the four units, on which \(\psi_d=1\) (Hecke character (3)), so the sum is \(4\).

(2) Every \(\alpha\in A_p\) has \(N(\alpha)=p\), so the symbol \(\left(\frac{N(\alpha)}d\right)\) is the constant \(\left(\frac pd\right)\); and \(\left(\frac{N(\alpha)}1\right)=1\).

noncomputable def heckeCoeff (d n : ℕ) : ℂ :=
  (1 / 4) * ∑ p ∈ normFiber n,
    (jacobiSym (p.1 ^ 2 + p.2 ^ 2) d : ℂ) * unitOf ((p.1 : ZMod 4), (p.2 : ZMod 4)) * gz 0 0 p
theorem heckeCoeff_eq_sum_psi (d n : ℕ) :
    heckeCoeff d n = (1 / 4) * ∑ p ∈ normFiber n, psi d p
theorem heckeCoeff_zero (d : ℕ) : heckeCoeff d 0 = 0
Uses 3 · Used by 8

DefinitionDeuring's identity for \(C_d\)#✓

For natural numbers \(d\) and \(n\) let \(c_d(n)\) be the coefficients of the standard Euler product of \(C_d\) and \(\lambda_d(n)\) the Hecke coefficients. Deuring's identity holds for \(d\) if $\(c_d(n)=\lambda_d(n)\qquad\text{for every }n\ge1.\)$ It says that \(L(C_d,s)\) and the Hecke L-series \(L(\psi_d,s)\) have the same coefficients; it is proved below for every squarefree \(d\equiv1\pmod4\), from Gauss's point count.

If \(d\) is odd and squarefree, then \(c_d(n)=a_n(C_d)\) for every \(n\ge1\), where \(a_n(C_d)\) are the Dirichlet coefficients of \(L(C_d,s)\) as in the coefficients at prime powers.

Proof sketch. Both are the product over \(p^k\parallel n\) of the coefficient of \(T^k\) in \(P_{d,p}(T)^{-1}\): the first by definition, the second by every coefficient (2).

def DeuringCd (d : ℕ) : Prop :=
  ∀ n : ℕ, n ≠ 0 → ((ZInQ.Literature.cdCoeff d n : ℤ) : ℂ) = heckeCoeff d n
theorem cdCoeff_eq_LFunction {d : ℕ} (hd : Odd d) (hsq : Squarefree d) {n : ℕ} (hn : n ≠ 0) :
    ZInQ.Literature.cdCoeff d n = (ZInQ.shortCurve (-(d : ℚ) ^ 2)).LFunction n
Uses 4 · Used by 6

TheoremDeuring's identity at the primes \(2\), \(p\mid d\) and \(p\equiv3\pmod4\)#✓

Let \(c_d(n)\) be the coefficients of the standard Euler product, \(\lambda_d(n)\) the Hecke coefficients, and for a prime \(p\) let \(\left(\frac{\cdot}{p}\right)\) be the quadratic character of \(\mathbb F_p\) (with value \(0\) at \(0\)).

  1. If \(p\equiv3\pmod4\) is prime and \(d\) is a natural number, then \(\sum_{x\in\mathbb F_p}\left(\frac{x^3-d^2x}p\right)=0\).
  2. Under the same hypotheses, \(\#\{(x,y)\in\mathbb F_p^2:y^2=x^3-d^2x\}=p\).
  3. If \(d\) is odd and squarefree, \(p\equiv3\pmod4\) is prime and \(p\nmid d\), then \(c_d(p)=0\).
  4. Under the hypotheses of (3), \(c_d(p)=\lambda_d(p)\).
  5. If \(d\) is odd and squarefree and \(p\) is a prime dividing \(d\), then \(c_d(p)=\lambda_d(p)\).
  6. If \(d\) is odd and squarefree, then \(c_d(2)=\lambda_d(2)\).

Proof sketch. (1) The substitution \(x\mapsto-x\) multiplies each term by \(\left(\frac{-1}p\right)=-1\), so the sum equals its negative.

(2) A value \(x\) contributes \(1+\left(\frac{x^3-d^2x}p\right)\) solutions \(y\); sum over \(x\) and use (1).

(3) \(p\nmid2d\), so \(c_d(p)\) is \(p\) minus the number of affine solutions (deuring identity and the coefficients at primes), which is \(0\) by (2).

(4) \(A_p\) is empty since \(p\equiv3\pmod4\) (norm fibres at primes (1)), so \(\lambda_d(p)=0\); and \(c_d(p)=0\) by (3).

(5) \(c_d(p)=0\) since \(p\mid2d\) (the coefficients at primes). For \(\alpha\in A_p\), \(\left(\frac{N(\alpha)}d\right)=\left(\frac pd\right)=0\) since \(p\) and \(d\) have the common factor \(p\); so \(\lambda_d(p)=0\).

(6) \(c_d(2)=0\) since \(2\mid2d\). For \(\alpha=(a,b)\in A_2\), \(a^2+b^2\equiv2\pmod4\), and the table of the primary unit gives \(u(\alpha)=0\) for these residues; so \(\lambda_d(2)=0\).

theorem sum_quadraticChar_cd_eq_zero {p : ℕ} [Fact p.Prime] (hp : p % 4 = 3) (d : ℕ) :
    ∑ x : ZMod p, quadraticChar (ZMod p) (x ^ 3 - (d : ZMod p) ^ 2 * x) = 0
theorem card_cd_affine_of_mod_four_eq_three {p : ℕ} [Fact p.Prime] (hp : p % 4 = 3) (d : ℕ) :
    Nat.card {xy : ZMod p × ZMod p // xy.2 ^ 2 = xy.1 ^ 3 - (d : ZMod p) ^ 2 * xy.1} = p
theorem cdCoeff_prime_of_mod_four_eq_three {d p : ℕ} (hd : Odd d) (hsq : Squarefree d)
    [hpp : Fact p.Prime] (hp : p % 4 = 3) (hpd : ¬ p ∣ d) : ZInQ.Literature.cdCoeff d p = 0
Uses 5 · Used by 2

TheoremThe Hecke coefficients at the primes that do not split#✓

Let \(\lambda_d(n)\) be the Hecke coefficients.

  1. For every natural number \(d\) and every \(m\ge1\), \(\lambda_d(2^m)=0\).
  2. If \(d\) is odd, \(p\) is a prime dividing \(d\) and \(m\ge1\), then \(\lambda_d(p^m)=0\).
  3. If \(d\) is odd and squarefree and \(p\) is a prime with \(p\mid2d\), then \(\lambda_d(p)=0\).
  4. If \(p\equiv3\pmod4\) is prime, \(p\nmid d\) and \(k\ge0\), then \(\lambda_d(p^{k+2})=-p\,\lambda_d(p^k)\).

Proof sketch. (1) If \(N(\alpha)=a^2+b^2\) is even, then \(a+b\) is even and \(u(\alpha)=0\) (primary unit (3)), so every term vanishes.

(2) For \(\alpha\in A_{p^m}\), \(p^m\) and \(d\) have the common factor \(p\), so \(\left(\frac{N(\alpha)}d\right)=\left(\frac{p^m}d\right)=0\).

(3) By Deuring's identity at the small primes (5) and (6), \(\lambda_d(p)\) equals the coefficient \(c_d(p)\) of \(L(C_d,s)\) at \(p\), which is \(0\) for \(p\mid2d\) (the coefficients at primes).

(4) By norm fibres at primes (2), \(A_{p^{k+2}}=\{p\beta:\beta\in A_{p^k}\}\), and \(\beta\mapsto p\beta\) is injective. By the Hecke character (2), \(\psi_d(p\beta)=\psi_d(p)\psi_d(\beta)\), and \(\psi_d(p)=\left(\frac{p^2}d\right)u(p)\,p=-p\): the symbol is \(1\) as \(p\nmid d\), and \(u(p)=u(3,0)=-1\) as \(p\equiv3\pmod4\).

theorem heckeCoeff_two_pow (d : ℕ) {m : ℕ} (hm : 1 ≤ m) : heckeCoeff d (2 ^ m) = 0
theorem heckeCoeff_pow_of_dvd {d p : ℕ} (hd : Odd d) (hp : p.Prime) (hpd : p ∣ d) {m : ℕ}
    (hm : 1 ≤ m) : heckeCoeff d (p ^ m) = 0
theorem heckeCoeff_prime_of_dvd {d p : ℕ} (hd : Odd d) (hsq : Squarefree d) (hp : p.Prime)
    (h : p ∣ 2 * d) : heckeCoeff d p = 0
Uses 6 · Used by 2

TheoremThe Hecke coefficients are multiplicative#✓

For a natural number \(d\), the Hecke coefficients are multiplicative if \(\lambda_d(mn)=\lambda_d(m)\lambda_d(n)\) for all coprime natural numbers \(m,n\), where \(\lambda_d\) are the Hecke coefficients.

For every natural number \(d\) the Hecke coefficients are multiplicative.

Proof sketch. If \(m=0\), coprimality forces \(n=1\), and \(\lambda_d(1)=1\) (Hecke coefficients (1)); likewise if \(n=0\). Let \(m,n>0\). Expand \(\bigl(\sum_{A_m}\psi_d\bigr)\bigl(\sum_{A_n}\psi_d\bigr)\) as a sum over \(A_m\times A_n\) of \(\psi_d(\alpha)\psi_d(\beta)=\psi_d(\alpha\beta)\) (Hecke character (2)). Multiplication maps \(A_m\times A_n\) into \(A_{mn}\) (Gaussian integers as pairs (3)) with fibres of exactly four elements (coprime norms (2)), so the product equals \(4\sum_{A_{mn}}\psi_d\). Dividing by \(16\) gives \(\lambda_d(m)\lambda_d(n)=\lambda_d(mn)\).

def HeckeMult (d : ℕ) : Prop :=
  ∀ m n : ℕ, Nat.Coprime m n → heckeCoeff d (m * n) = heckeCoeff d m * heckeCoeff d n
theorem heckeMult (d : ℕ) : HeckeMult d
Uses 4 · Used by 3

TheoremThe Hecke relation at prime powers#✓

Let \(d\) be a natural number and \(\lambda_d\) the Hecke coefficients.

  • The Hecke relation at the split primes holds for \(d\) if for every prime \(p\equiv1\pmod4\) with \(p\nmid d\) and every \(k\ge0\), $\(\lambda_d(p^{k+2})=\lambda_d(p)\lambda_d(p^{k+1})-p\,\lambda_d(p^k).\)$
  • The Hecke relation at all primes holds for \(d\) if for every prime \(p\) and every \(k\ge0\), $\(\lambda_d(p^{k+2})=\lambda_d(p)\lambda_d(p^{k+1})-b_p\,\lambda_d(p^k),\qquad b_p=\begin{cases}0&p\mid2d,\\p&p\nmid2d.\end{cases}\)$

  • The Hecke relation at the split primes holds for every natural number \(d\).

  • If \(d\) is odd and squarefree and the Hecke relation at the split primes holds for \(d\), then the Hecke relation at all primes holds for \(d\).

Proof sketch. (1) Let \(p\equiv1\pmod4\), \(p\nmid d\). Write \(p=a^2+b^2\) (Fermat) and \(\pi=a+bi\). By the Gaussian primes above a split prime (g) and the invariance of \(\psi_d\) under units (Hecke character (3)), \(\sum_{A_p}\psi_d=4\psi_d(\pi)+4\psi_d(\bar\pi)\). By multiplicativity of \(\psi_d\) and norm fibres at primes (4), \(\psi_d(\pi)\sum_{A_{p^{k+1}}}\psi_d\) is the sum of \(\psi_d\) over the elements of \(A_{p^{k+2}}\) divisible by \(\pi\), and likewise for \(\bar\pi\). Every element of \(A_{p^{k+2}}\) is divisible by \(\pi\) or \(\bar\pi\), by both exactly when it is divisible by \(p\) (the Gaussian primes above a split prime (f)), and the elements divisible by \(p\) are \(p\delta\), \(\delta\in A_{p^k}\) (norm fibres at primes (4) with \(z=p\), of norm \(p^2\)), with \(\psi_d(p\delta)=p\,\psi_d(\delta)\) (Hecke character (4)). Inclusion–exclusion gives $\(\Bigl(\sum_{A_p}\psi_d\Bigr)\Bigl(\sum_{A_{p^{k+1}}}\psi_d\Bigr) =4\Bigl(\sum_{A_{p^{k+2}}}\psi_d+p\sum_{A_{p^k}}\psi_d\Bigr),\)$ and dividing by \(16\) gives the relation.

(2) Let \(p\) be prime. If \(p\mid2d\), then \(\lambda_d(p)=0\) and \(\lambda_d(p^{k+2})=0\) (non-split primes (3), and (1) for \(p=2\) or (2) for \(p\mid d\)), so both sides vanish. If \(p\nmid2d\) and \(p\equiv1\pmod4\), this is the hypothesis. If \(p\equiv3\pmod4\), then \(\lambda_d(p)=0\) because \(A_p\) is empty (norm fibres at primes (1)), and non-split primes (4) gives the relation.

def HeckePrimePowSplit (d : ℕ) : Prop :=
  ∀ p : ℕ, p.Prime → p % 4 = 1 → ¬ p ∣ d → ∀ k : ℕ,
    heckeCoeff d (p ^ (k + 2)) = heckeCoeff d p * heckeCoeff d (p ^ (k + 1)) -
      (p : ℂ) * heckeCoeff d (p ^ k)
theorem heckePrimePowSplit (d : ℕ) : HeckePrimePowSplit d
def HeckePrimePow (d : ℕ) : Prop :=
  ∀ p : ℕ, p.Prime → ∀ k : ℕ, heckeCoeff d (p ^ (k + 2)) =
    heckeCoeff d p * heckeCoeff d (p ^ (k + 1)) -
      (if p ∣ 2 * d then 0 else (p : ℂ)) * heckeCoeff d (p ^ k)
Uses 5 · Used by 3

LemmaInverses of quadratic power series#✓

For a power series \(\varphi\) with constant coefficient \(1\), \(\varphi^{-1}\) is its inverse in the ring of formal power series, and \([T^k]\) takes the coefficient of \(T^k\).

  1. For complex \(a,b\), the coefficients \(\psi_k=[T^k]\,(1-aT+bT^2)^{-1}\) satisfy \(\psi_0=1\), \(\psi_1=a\) and \(\psi_{k+2}=a\psi_{k+1}-b\psi_k\) for every \(k\ge0\).
  2. Let \(f:R\to S\) be a homomorphism of commutative rings and \(\varphi\) a power series over \(R\) with constant coefficient \(1\). Applying \(f\) to the coefficients of \(\varphi^{-1}\) gives the inverse of the series obtained by applying \(f\) to the coefficients of \(\varphi\).
  3. For complex \(\varepsilon,b,q\) with \(\varepsilon^2=1\) and every \(k\ge0\), $\([T^k]\,(1-\varepsilon bT+qT^2)^{-1}=\varepsilon^k\,[T^k]\,(1-bT+qT^2)^{-1}.\)$

Proof sketch. (1) Compare coefficients in \((1-aT+bT^2)\cdot(1-aT+bT^2)^{-1}=1\).

(2) The image of \(\varphi^{-1}\) is a left inverse of the image of \(\varphi\), and the inverse of a series with constant coefficient \(1\) is unique.

(3) Induction on \(k\), proving the statement for \(k\) and \(k+1\) together: both sides satisfy the recursion of (1) with \(a=\varepsilon b\), since \(\varepsilon^{k+2}=\varepsilon^k\); the cases \(k=0,1\) are \(\psi_0=1\) and \(\psi_1=\varepsilon b\).

theorem coeff_inv_quadratic (a b : ℂ) :
    let ψ := PowerSeries.invOfUnit (((1 - Polynomial.C a * Polynomial.X +
      Polynomial.C b * Polynomial.X ^ 2 : Polynomial ℂ)) : PowerSeries ℂ) 1
    PowerSeries.coeff 0 ψ = 1 ∧ PowerSeries.coeff 1 ψ = a ∧
      ∀ k : ℕ, PowerSeries.coeff (k + 2) ψ =
        a * PowerSeries.coeff (k + 1) ψ - b * PowerSeries.coeff k ψ
theorem map_invOfUnit_one {R S : Type*} [CommRing R] [CommRing S] (f : R →+* S)
    (φ : PowerSeries R) (h : PowerSeries.constantCoeff φ = 1) :
    PowerSeries.map f (PowerSeries.invOfUnit φ 1) =
      PowerSeries.invOfUnit (PowerSeries.map f φ) 1
theorem coeff_twist_quadratic (ε b q : ℂ) (hε : ε ^ 2 = 1) (k : ℕ) :
    PowerSeries.coeff k (PowerSeries.invOfUnit (((1 - Polynomial.C (ε * b) * Polynomial.X +
      Polynomial.C q * Polynomial.X ^ 2 : Polynomial ℂ)) : PowerSeries ℂ) 1) =
    ε ^ k * PowerSeries.coeff k (PowerSeries.invOfUnit (((1 - Polynomial.C b * Polynomial.X +
      Polynomial.C q * Polynomial.X ^ 2 : Polynomial ℂ)) : PowerSeries ℂ) 1)
Used by 3

TheoremThe Euler product of \(L(\psi_d,s)\)#✓

For natural numbers \(d\) and \(p\), the Hecke Euler polynomial is the complex polynomial $\(H_{d,p}(T)=\begin{cases}1&p\mid2d,\\1-\lambda_d(p)T+pT^2&p\nmid2d,\end{cases}\)$ with \(\lambda_d\) the Hecke coefficients. The Hecke coefficients have the Euler product for \(d\) if for every \(n\ge1\) $\(\lambda_d(n)=\prod_{p^k\parallel n}[T^k]\,H_{d,p}(T)^{-1}.\)$

  1. If \(d\) is odd and squarefree, the Hecke coefficients are multiplicative and the Hecke relation at all primes holds for \(d\), then the Euler product holds for \(d\).
  2. If \(d\) is odd and squarefree, the Euler product holds for \(d\).

Proof sketch. (1) Multiplicativity and \(\lambda_d(1)=1\) write \(\lambda_d(n)\) as the product of \(\lambda_d(p^k)\) over \(p^k\parallel n\), so it suffices to show \(\lambda_d(p^k)=[T^k]H_{d,p}(T)^{-1}\). Put \(b_p=0\) for \(p\mid2d\) and \(b_p=p\) otherwise. Then \(H_{d,p}=1-\lambda_d(p)T+b_pT^2\) in both cases, since \(\lambda_d(p)=0\) for \(p\mid2d\) (non-split primes (3)). The coefficients of \((1-\lambda_d(p)T+b_pT^2)^{-1}\) satisfy \(\psi_0=1\), \(\psi_1=\lambda_d(p)\) and \(\psi_{k+2}=\lambda_d(p)\psi_{k+1}-b_p\psi_k\) (quadratic power series (1)), as do \(\lambda_d(p^k)\) by the Hecke relation; induction on \(k\).

(2) By (1): the Hecke coefficients are multiplicative for every \(d\), the Hecke relation at the split primes holds for every \(d\), and for odd squarefree \(d\) it extends to all primes (the Hecke relation (1), (2)).

noncomputable def heckeEulerPoly (d p : ℕ) : Polynomial ℂ :=
  if p ∣ 2 * d then 1
  else 1 - Polynomial.C (heckeCoeff d p) * Polynomial.X + Polynomial.C (p : ℂ) * Polynomial.X ^ 2
def HeckeEuler (d : ℕ) : Prop :=
  ∀ n : ℕ, n ≠ 0 → heckeCoeff d n = n.factorization.prod fun p k =>
    PowerSeries.coeff k (PowerSeries.invOfUnit ((heckeEulerPoly d p : Polynomial ℂ) :
      PowerSeries ℂ) 1)
theorem heckeEuler_of_mult_primePow {d : ℕ} (hd : Odd d) (hsq : Squarefree d) (hM : HeckeMult d)
    (hP : HeckePrimePow d) : HeckeEuler d
Uses 5 · Used by 4
14 fully proved

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.