The Fourier identity for the Hecke character
The functional equation of a periodic twist needs the finite Fourier transform \(\hat c\) of the coefficient function \(c\) to be supported on \((1+i)\mathbb Z[i]\) and to equal a constant multiple of \(c\) there. For the finite part \(\omega_d\) of the Hecke character, on \((\mathbb Z/4d)^2\), this subsection proves it with the constant \(4d(1+i)\left(\frac2d\right)\) for every odd squarefree \(d\equiv1\pmod4\).
The Chinese remainder theorem splits \(\hat\omega_d\) into a 2-part, a sum over \((\mathbb Z/4)^2\) of the primary unit against fourth roots of unity, and an odd part, a sum over \((\mathbb Z/d)^2\) of the Jacobi symbol of the norm against \(d\)-th roots of unity. The 2-part is a finite table: \(4(1+i)u(\mu)\) at \((1+i)\mu\), and \(0\) off \((1+i)\mathbb Z[i]\). The odd part is multiplicative in \(d\), and at an odd prime \(p\) it is the two-dimensional quadratic Gauss sum \(\sum_{x,y}\chi(x^2+y^2)e(xn_1+yn_2)=p\,\chi(n_1^2+n_2^2)\), which follows from the one-variable quadratic Gauss sum by completing the square.
Throughout, \(\left(\frac an\right)\) is the Jacobi symbol as in the Hecke character, and \(N(\nu)=\nu_1^2+\nu_2^2\).
TheoremThe Fourier transform of \(\omega_d\) splits into a 2-part and an odd part#✓
For \(\nu\in\mathbb Z^2\) and a natural number \(d\) define the 2-part and the odd part $\(G_2(\nu)=\sum_{a\in\{0,1,2,3\}^2}u(a)\,e^{2\pi i(a_1\nu_1+a_2\nu_2)/4},\qquad G_d(\nu)=\sum_{b\in\{0,\dots,d-1\}^2}\left(\frac{b_1^2+b_2^2}d\right)e^{2\pi i(b_1\nu_1+b_2\nu_2)/d},\)$ with \(u\) the primary unit. Let \(\omega_d\) be the finite part of the Hecke character on \((\mathbb Z/4d)^2\) and \(\hat\omega_d\) its Fourier transform as in the functional equation of a periodic twist, with \(M=4d\).
- If \(d\) is odd, the map \((a,b)\mapsto(da+4b)\bmod4d\) is injective on \(\{0,1,2,3\}\times\{0,\dots,d-1\}\).
- If \(d\) is odd and \(g:\mathbb Z\to\mathbb C\) satisfies \(g(x)=g(x\bmod4d)\) for every \(x\), then \(\sum_{j=0}^{4d-1}g(j)=\sum_{a=0}^{3}\sum_{b=0}^{d-1}g(da+4b)\).
- \(e^{2\pi in}=1\) for every integer \(n\). If \(M\ne0\), then \(e^{2\pi i(A+kMn)/M}=e^{2\pi iA/M}\) for \(A\in\mathbb C\) and integers \(k,n\). For an integer \(x\) and a natural number \(M\), \(x\bmod M=x-qM\), where \(q\) and \(x\bmod M\) are the quotient and the remainder of Euclidean division of \(x\) by \(M\) (\(q=0\) and \(x\bmod M=x\) when \(M=0\)).
- If \(d\equiv1\pmod4\), then \(\hat\omega_d(\nu)=G_2(\nu)\,G_d(\nu)\) for every \(\nu\in\mathbb Z^2\).
Proof sketch. (1) \(4\) and \(d\) are coprime (Chinese remainder theorem). (2) By (1) and counting, the map of (1) is a bijection onto \(\{0,\dots,4d-1\}\). (3) Direct.
(4) The summand of \(\hat\omega_d(\nu)\) is \(4d\)-periodic in each coordinate (by (3)), so (2) may be applied in both coordinates: \(j=da+4b\). Then \(N(j)\equiv16N(b)\pmod d\) and \(\left(\frac{16}d\right)=1\), so \(\left(\frac{N(j)}d\right)=\left(\frac{N(b)}d\right)\); \(j\equiv da\equiv a\pmod4\) as \(d\equiv1\pmod4\), so \(u(j)=u(a)\); and \((da+4b)\cdot\nu/(4d)=a\cdot\nu/4+b\cdot\nu/d\). The double sum factors.
noncomputable def g2Sum (ν : ℤ × ℤ) : ℂ :=
∑ a : Fin 4 × Fin 4, unitOf ((((a.1 : ℕ) : ℤ) : ZMod 4), (((a.2 : ℕ) : ℤ) : ZMod 4)) *
cexp (2 * π * I * (((a.1 : ℕ) : ℂ) * ν.1 + ((a.2 : ℕ) : ℂ) * ν.2) / 4)
noncomputable def oddSum (d : ℕ) (ν : ℤ × ℤ) : ℂ :=
∑ b : Fin d × Fin d, (jacobiSym (((b.1 : ℕ) : ℤ) ^ 2 + ((b.2 : ℕ) : ℤ) ^ 2) d : ℂ) *
cexp (2 * π * I * (((b.1 : ℕ) : ℂ) * ν.1 + ((b.2 : ℕ) : ℂ) * ν.2) / d)
theorem crt_injective {d : ℕ} (hd : Odd d) :
Function.Injective fun x : Fin 4 × Fin d =>
((d * x.1 + 4 * x.2) % (4 * d) : ℕ)
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
ZInQKernel/Contrib/HeckeFE/Basic.lean:443
Uses 3 · Used by 3
TheoremThe 2-part of the Fourier transform#✓
For \(k\in\mathbb Z/4\) let \(i^k\in\mathbb Z[i]\) be \(i\) raised to the least residue of \(k\). For \(n\in(\mathbb Z/4)^2\) put $\(g_2(n)=\sum_{a\in\{0,1,2,3\}^2}u_G(a)\,i^{a_1n_1+a_2n_2}\in\mathbb Z[i],\)$ with \(u_G\) the \(\mathbb Z[i]\)-valued primary unit. Let \(G_2\) be the 2-part of the factorization.
- \(e^{2\pi im/4}=i^{m\bmod4}\) for every integer \(m\).
- For every \(\nu\in\mathbb Z^2\), \(G_2(\nu)\) is the image in \(\mathbb C\) of \(g_2(\nu\bmod4)\).
- For all \(m_1,m_2\in\mathbb Z/4\), \(g_2(m_1-m_2,\,m_1+m_2)=4(1+i)\,u_G(m_1,m_2)\); and \(g_2(n_1,n_2)=0\) whenever the least residue of \(n_1+n_2\) is odd.
Proof sketch. (1) \(e^{2\pi i/4}=i\) and \(i^4=1\). (2) Termwise by (1) and primary unit (1). (3) A finite computation in \(\mathbb Z[i]\) over the \(16\) values of \(n\) and the \(16\) terms of each sum.
def iPow (k : ZMod 4) : GaussianInt := (⟨0, 1⟩ : GaussianInt) ^ k.val
theorem cexp_two_pi_I_div_four (m : ℤ) :
cexp (2 * π * I * m / 4) = ((iPow (m : ZMod 4) : GaussianInt) : ℂ)
def g2G (n : ZMod 4 × ZMod 4) : GaussianInt :=
∑ a : Fin 4 × Fin 4, unitG ((((a.1 : ℕ) : ℤ) : ZMod 4), (((a.2 : ℕ) : ℤ) : ZMod 4)) *
iPow ((((a.1 : ℕ) : ℤ) : ZMod 4) * n.1 + (((a.2 : ℕ) : ℤ) : ZMod 4) * n.2)
def iPow (k : ZMod 4) : GaussianInt := (⟨0, 1⟩ : GaussianInt) ^ k.val
ZInQKernel/Contrib/HeckeFE/Basic.lean:1311
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
ZInQKernel/Contrib/HeckeFE/Basic.lean:1072
Uses 2 · Used by 1
TheoremQuadratic Gauss sums over \(\mathbb F_p\) in one and two variables#✓
Let \(p\) be a prime, \(\chi\) the quadratic character of \(\mathbb F_p\) with complex values (\(\chi(0)=0\)), \(e(t)=e^{2\pi i\tilde t/p}\) for \(t\in\mathbb F_p\) with \(\tilde t\) any integer representing \(t\), and \(g=\sum_{t\in\mathbb F_p}\chi(t)e(t)\) the quadratic Gauss sum.
- \(\chi\) is quadratic (every value of \(\chi\) is \(0\), \(1\) or \(-1\)), and \(\chi\) is not the trivial character if \(p\ne2\). \(\chi(0)=0\); \(\chi(t)^2=1\) for \(t\ne0\); \(\chi(w^{-1})=\chi(w)\) for every \(w\). For every integer \(m\), the Jacobi symbol \(\left(\frac mp\right)\) is \(\chi(m\bmod p)\).
- If \(p\ne2\), then \(\sum_t\chi(t)e(tm)=\chi(m)\,g\) for every \(m\in\mathbb F_p\).
- If \(p\ne2\) and \(t\ne0\), then \(\sum_xe(tx^2)=\chi(t)\,g\).
- If \(p\ne2\) and \(t\ne0\), then \(\sum_xe(tx^2+nx)=e\bigl(-n^2/(4t)\bigr)\sum_xe(tx^2)\) for every \(n\in\mathbb F_p\).
- If \(p\ne2\), then \(g^2=\chi(-1)\,p\) and \(g\ne0\).
- (The two-dimensional quadratic Gauss sum.) If \(p\ne2\), then for all \(n_1,n_2\in\mathbb F_p\) $\(\sum_{x,y\in\mathbb F_p}\chi(x^2+y^2)\,e(xn_1+yn_2)=p\,\chi(n_1^2+n_2^2).\)$
Proof sketch. (1) Properties of the quadratic character; for \(w\ne0\), \(\chi(w^{-1})\chi(w)=1\) and \(\chi(w)^2=1\). For prime \(p\) the Jacobi symbol is the Legendre symbol.
(2) For \(m\ne0\), the Gauss sum of \(\chi\) with the additive character \(t\mapsto e(tm)\) is \(\chi(m)^{-1}g\), and \(\chi(m)^{-1}=\chi(m)\); for \(m=0\) the sum \(\sum_t\chi(t)\) vanishes as \(\chi\) is nontrivial.
(3) The number of \(x\) with \(x^2=s\) is \(1+\chi(s)\), so \(\sum_xe(tx^2)=\sum_s(1+\chi(s))e(ts)\); the sum of \(e(ts)\) over \(s\) is \(0\), and (2) evaluates the rest.
(4) Complete the square: \(tx^2+nx=t\bigl(x+n/(2t)\bigr)^2-n^2/(4t)\), and shift \(x\).
(5) The standard evaluation of the square of a quadratic Gauss sum; \(g\ne0\) because \(\chi(-1)p\ne0\).
(6) By (2) and (5), \(\chi(m)=g^{-1}\sum_t\chi(t)e(tm)\) for every \(m\). Insert this for \(m=x^2+y^2\), exchange the sums, and separate the variables. For \(t\ne0\) each inner sum is evaluated by (4) and (3), giving \(\chi(t)^2g^2e\bigl(-(n_1^2+n_2^2)/(4t)\bigr)\); the term \(t=0\) vanishes. Substitute \(w=-1/(4t)\), use (2) once more, and simplify with (5) and \(\chi(-1)^2=1\).
noncomputable abbrev chiC (p : ℕ) [Fact p.Prime] : MulChar (ZMod p) ℂ :=
(quadraticChar (ZMod p)).ringHomComp (Int.castRingHom ℂ)
noncomputable abbrev gP (p : ℕ) [Fact p.Prime] : ℂ := gaussSum (chiC p) ZMod.stdAddChar
theorem chiC_isQuadratic : (chiC p).IsQuadratic
noncomputable abbrev chiC (p : ℕ) [Fact p.Prime] : MulChar (ZMod p) ℂ :=
(quadraticChar (ZMod p)).ringHomComp (Int.castRingHom ℂ)
ZInQKernel/Contrib/HeckeFE/Basic.lean:1654
Used by 1
TheoremThe odd part of the Fourier transform#✓
Let \(G_d\) be the odd part of the factorization. The odd Gauss sum identity holds for a natural number \(d\) if $\(G_d(\nu)=d\left(\frac{\nu_1^2+\nu_2^2}d\right)\qquad\text{for every }\nu\in\mathbb Z^2.\)$
- The identity holds for every odd prime \(p\), and for \(d=1\).
- Let \(m,n\) be coprime. The map \((a,b)\mapsto(na+mb)\bmod mn\) is injective on \(\{0,\dots,m-1\}\times\{0,\dots,n-1\}\). If moreover \(m,n>0\) and \(g:\mathbb Z\to\mathbb C\) satisfies \(g(x)=g(x\bmod mn)\) for every \(x\), then \(\sum_{j=0}^{mn-1}g(j)=\sum_{a=0}^{m-1}\sum_{b=0}^{n-1}g(na+mb)\).
- If \(m,n>0\) are coprime and the identity holds for \(m\) and for \(n\), it holds for \(mn\).
- If the identity holds for every odd prime, it holds for every odd squarefree \(d\).
Proof sketch. (1) For \(d=p\), identify \(\{0,\dots,p-1\}^2\) with \(\mathbb F_p^2\); the Jacobi symbols become the quadratic character \(\chi\) of \(\mathbb F_p\), and the identity is the two-dimensional quadratic Gauss sum (quadratic Gauss sums (6), with (1) there). For \(d=1\) both sides are \(1\).
(2) The Chinese remainder theorem, and a bijection by counting.
(3) Apply (2) in both coordinates: \(b=n b'+m b''\). Then \(e^{2\pi i\,b\cdot\nu/(mn)}= e^{2\pi i\,b'\cdot\nu/m}e^{2\pi i\,b''\cdot\nu/n}\); \(N(b)\equiv n^2N(b')\pmod m\) with \(\left(\frac{n^2}m\right)=1\), and likewise modulo \(n\); and the Jacobi symbol is multiplicative in its denominator. So \(G_{mn}(\nu)=G_m(\nu)G_n(\nu)\), and the right sides multiply in the same way.
(4) Induction over the factorization of \(d\): a squarefree prime power is a prime, odd because \(d\) is; \(d=1\) is (1); a product of coprime factors is (3); \(d=0\) is not odd.
def OddGauss (d : ℕ) : Prop :=
∀ ν : ℤ × ℤ, oddSum d ν = d * (jacobiSym (ν.1 ^ 2 + ν.2 ^ 2) d : ℂ)
theorem oddGauss_prime (hp2 : p ≠ 2) : OddGauss p
theorem oddGauss_one : OddGauss 1
noncomputable def oddSum (d : ℕ) (ν : ℤ × ℤ) : ℂ :=
∑ b : Fin d × Fin d, (jacobiSym (((b.1 : ℕ) : ℤ) ^ 2 + ((b.2 : ℕ) : ℤ) ^ 2) d : ℂ) *
cexp (2 * π * I * (((b.1 : ℕ) : ℂ) * ν.1 + ((b.2 : ℕ) : ℂ) * ν.2) / d)
ZInQKernel/Contrib/HeckeFE/Basic.lean:1192
def OddGauss (d : ℕ) : Prop :=
∀ ν : ℤ × ℤ, oddSum d ν = d * (jacobiSym (ν.1 ^ 2 + ν.2 ^ 2) d : ℂ)
ZInQKernel/Contrib/HeckeFE/Basic.lean:1356
Uses 2 · Used by 2
TheoremThe Fourier identity for \(\omega_d\)#✓
Let \(\omega_d\) be the finite part of the Hecke character on \((\mathbb Z/4d)^2\). The Fourier identity holds for \(d\) if \(\omega_d\) satisfies the Fourier relation of the functional equation of a periodic twist, with \(M=4d\) and constant $\(\kappa=4d\,(1+i)\left(\frac2d\right).\)$ That is, \(\hat\omega_d((1+i)\mu)=4d(1+i)\left(\frac2d\right)\omega_d(\mu)\) for every \(\mu\in\mathbb Z^2\), and \(\hat\omega_d(\nu)=0\) whenever \(\nu_1+\nu_2\) is odd.
If \(d\equiv1\pmod4\) and the odd Gauss sum identity holds for \(d\), then the Fourier identity holds for \(d\).
Proof sketch. \(\hat\omega_d(\nu)=G_2(\nu)G_d(\nu)\) (the factorization (4)), and \(G_2(\nu)\) is the image of \(g_2(\nu\bmod4)\) (the 2-part (2)). For \(\nu=(1+i)\mu\): \(g_2=4(1+i)u(\mu)\) (the 2-part (3)), and \(G_d(\nu)=d\left(\frac{N(\nu)}d\right)=d\left(\frac{2N(\mu)}d\right) =d\left(\frac2d\right)\left(\frac{N(\mu)}d\right)\) since \(N((1+i)\mu)=2N(\mu)\); the product is \(4d(1+i)\left(\frac2d\right)\omega_d(\mu)\) by the Hecke character (1). If \(\nu_1+\nu_2\) is odd, \(g_2(\nu\bmod4)=0\) by the 2-part (3).
def CdFourier (d : ℕ) : Prop :=
FourierRel (4 * d) (cdChar d) (4 * d * (1 + I) * (jacobiSym 2 d : ℂ))
theorem cdFourier_of_oddGauss {d : ℕ} (hd4 : d % 4 = 1) (hO : OddGauss d) : CdFourier d
def FourierRel (M : ℕ) (c : ZMod M × ZMod M → ℂ) (κ : ℂ) : Prop :=
(∀ μ : ℤ × ℤ, fourierHat M c (μ.1 - μ.2, μ.1 + μ.2) = κ * c ((μ.1 : ZMod M), (μ.2 : ZMod M))) ∧
(∀ ν : ℤ × ℤ, Odd (ν.1 + ν.2) → fourierHat M c ν = 0)
ZInQKernel/Contrib/HeckeFE/Basic.lean:624
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))
ZInQKernel/Contrib/HeckeFE/Basic.lean:452
def OddGauss (d : ℕ) : Prop :=
∀ ν : ℤ × ℤ, oddSum d ν = d * (jacobiSym (ν.1 ^ 2 + ν.2 ^ 2) d : ℂ)
ZInQKernel/Contrib/HeckeFE/Basic.lean:1356
def CdFourier (d : ℕ) : Prop :=
FourierRel (4 * d) (cdChar d) (4 * d * (1 + I) * (jacobiSym 2 d : ℂ))
ZInQKernel/Contrib/HeckeFE/Basic.lean:713
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.