Gauss's point count on \(y^2=x^3-x\)

For a prime \(p\equiv1\pmod4\), the number of solutions of \(y^2=x^3-x\) over \(\mathbb F_p\) is \(p+2A\), where \(p=A^2+B^2\) and \(-(A+Bi)\) is congruent to \(1\) modulo \(2+2i\). The proof here goes through a quartic Jacobi sum. Since \(\mathbb Z[i]\) contains a primitive fourth root of unity, there is a character \(\chi\) of \(\mathbb F_p\) of order \(4\) with values in \(\mathbb Z[i]\); its square is the quadratic character. The point count is \(p\) plus the sum of \(\chi(x^3-x)^2\), which the substitution \(t=x^2\) turns into \(J+\bar J\) for the Jacobi sum \(J=J(\chi,\chi^2)\). Then \(J\bar J=p\), and pairing \(t\) with \(t^{-1}\) in the sum defining \(J\) shows \(J\equiv-1\pmod{2+2i}\).

In the form used by Deuring's identity, the count says that \(p-\#\{y^2=x^3-x\}\) is \(\frac14\sum_{N(\alpha)=p}u(\alpha)\alpha\): the Gaussian integers of norm \(p\) are the four associates of \(\pi\) and of \(\bar\pi\) for \(\pi=A+Bi\), and the primary unit picks out \(-\pi\) and \(-\bar\pi\).

Throughout, \(p\) is a prime, \(\left(\frac{\cdot}{p}\right)\) the quadratic character of \(\mathbb F_p\) (with value \(0\) at \(0\)), and \(\bar z\) the complex conjugate of \(z\in\mathbb Z[i]\).

TheoremQuartic characters of \(\mathbb F_p\) with values in \(\mathbb Z[i]\)#✓

A multiplicative character of \(\mathbb F_p\) with values in \(\mathbb Z[i]\) is a map \(\chi:\mathbb F_p\to\mathbb Z[i]\) with \(\chi(1)=1\), \(\chi(ab)=\chi(a)\chi(b)\) and \(\chi(0)=0\); characters form a group under pointwise multiplication, with identity the character that is \(1\) on \(\mathbb F_p^\times\). For a prime \(p\), \(\left(\frac{\cdot}{p}\right)\) is the quadratic character of \(\mathbb F_p\) (with value \(0\) at \(0\)), and \(\bar z\) is the complex conjugate of \(z\in\mathbb Z[i]\).

  1. \(i\in\mathbb Z[i]\) satisfies \(i^2=-1\) and is a primitive fourth root of unity.
  2. If \(u\in\mathbb Z[i]\) and \(u^4=1\), then \(u\in\{1,-1,i,-i\}\), \(\bar u=u^3\), and \(2+2i\) divides \(2(u-1)\).
  3. If \(p\ne2\) is prime, then \(2\ne0\) in \(\mathbb F_p\).
  4. If \(p\equiv1\pmod4\) is prime, there is a multiplicative character of \(\mathbb F_p\) with values in \(\mathbb Z[i]\) of order \(4\).
  5. Let \(p\) be prime and \(\chi\) a character of order \(4\). Then \(\chi^4=1\); \(\chi(a)^4=1\) for \(a\ne0\); \(\overline{\chi(a)}=\chi(a)^3\) and \(\chi(a)^6=\chi(a)^2\) for every \(a\); \(\chi(-1)^2=1\); \(\chi(t^{-1})=\chi(t)^3\) for \(t\ne0\); \(\chi\), \(\chi^2\) and \(\chi^3\) are not the identity; \(\chi^{-1}=\chi^3\) and \((\chi^2)^{-1}=\chi^2\).
  6. If moreover \(p\ne2\), then \(\chi(a)^2=\left(\frac ap\right)\) for every \(a\in\mathbb F_p\).

Proof sketch. (1) \(i^2=-1\ne1\) and \(i^4=1\), and \(i^1,i^2,i^3\ne1\).

(2) \(N(u)^4=1\) forces \(N(u)=1\), so \(u\) is one of the four units; check (2) for each.

(3) \(\mathbb F_p\) has characteristic \(p\ne2\).

(4) \(\mathbb F_p^\times\) is cyclic of order \(p-1\), divisible by \(4\), and \(\mathbb Z[i]\) contains the primitive fourth root of unity \(i\) (1); so a character of order exactly \(4\) exists.

(5) Each identity follows from \(\chi(a)^4=1\) for \(a\ne0\), (2) for the conjugate, and the definition of the order.

(6) Both sides vanish at \(0\). Let \(g\) generate \(\mathbb F_p^\times\). Then \(\left(\frac gp\right)=-1\), since \(g^{(p-1)/2}\ne1\); and \(\chi(g)^2=-1\), since \((\chi(g)^2)^2=1\) while \(\chi(g)^2=1\) would make \(\chi^2\) the identity on every power of \(g\). Every \(a\ne0\) is a power \(g^n\), and both sides equal \((-1)^n\).

def gI : GaussianInt := ⟨0, 1⟩
theorem gI_sq : gI ^ 2 = -1
theorem isPrimitiveRoot_gI : IsPrimitiveRoot gI 4
Sources
Used by 3

TheoremThe point count of \(y^2=x^3-x\) as a quartic Jacobi sum#✓

For multiplicative characters \(\chi,\varphi\) of \(\mathbb F_p\) with values in \(\mathbb Z[i]\) (as in quartic characters), the Jacobi sum is \(J(\chi,\varphi)=\sum_{t\in\mathbb F_p}\chi(t)\varphi(1-t)\). For a prime \(p\), \(\left(\frac{\cdot}{p}\right)\) is the quadratic character of \(\mathbb F_p\).

  1. If \(p\ne2\) is prime, then \(\#\{(x,y)\in\mathbb F_p^2:y^2=x^3-x\}=p+\sum_{x\in\mathbb F_p}\left(\frac{x^3-x}p\right)\).

In (2)–(5), \(p\) is prime and \(\chi\) is a character of order \(4\).

  1. If \(p\ne2\), then for every \(F:\mathbb F_p\to\mathbb Z[i]\), \(\sum_xF(x^2)=\sum_t(1+\chi(t)^2)F(t)\).
  2. If \(p\ne2\), then \(\sum_x\chi(x^3-x)^2=J(\chi,\chi^2)+J(\chi^3,\chi^2)\).
  3. \(J(\chi^3,\chi^2)=\overline{J(\chi,\chi^2)}\).
  4. \(J(\chi,\chi^2)\,\overline{J(\chi,\chi^2)}=p\).

Proof sketch. (1) A value \(x\) contributes \(1+\left(\frac{x^3-x}p\right)\) solutions \(y\).

(2) The number of \(x\) with \(x^2=t\) is \(1+\left(\frac tp\right)=1+\chi(t)^2\) (quartic characters (6)).

(3) \(x^3-x=x\cdot(-1)\cdot(1-x^2)\) and \(\chi(-1)^2=1\), so \(\chi(x^3-x)^2=\chi(x^2)\chi(1-x^2)^2\). Apply (2) to \(F(t)=\chi(t)\chi(1-t)^2\): \((1+\chi(t)^2)\chi(t)\chi(1-t)^2=\chi(t)\chi^2(1-t)+\chi^3(t)\chi^2(1-t)\).

(4) Termwise, \(\overline{\chi(a)}=\chi(a)^3\) and \(\chi(a)^6=\chi(a)^2\).

(5) In \(\mathbb C\): for nontrivial characters \(\chi,\varphi\) of \(\mathbb F_p\) with \(\chi\varphi\) nontrivial, \(J(\chi,\varphi)J(\chi^{-1},\varphi^{-1})=p\) (a standard identity). Here \(\chi\), \(\chi^2\) and \(\chi^3\) are nontrivial, \(\chi^{-1}=\chi^3\) and \((\chi^2)^{-1}=\chi^2\), so the left side is \(J(\chi,\chi^2)J(\chi^3,\chi^2)\), which is the claim by (4). The embedding \(\mathbb Z[i]\to\mathbb C\) is injective, so the identity holds in \(\mathbb Z[i]\).

theorem card_cubic_eq (hp2 : p ≠ 2) :
    (Nat.card {xy : ZMod p × ZMod p // xy.2 ^ 2 = xy.1 ^ 3 - xy.1} : ℤ) =
      p + ∑ x : ZMod p, quadraticChar (ZMod p) (x ^ 3 - x)
theorem sum_sq_comp (hp2 : p ≠ 2) (F : ZMod p → GaussianInt) :
    ∑ x : ZMod p, F (x ^ 2) = ∑ t : ZMod p, (1 + χ t ^ 2) * F t
theorem sum_chi_sq_cubic (hp2 : p ≠ 2) :
    ∑ x : ZMod p, χ (x ^ 3 - x) ^ 2 = jacobiSum χ (χ ^ 2) + jacobiSum (χ ^ 3) (χ ^ 2)
Sources
Uses 1 · Used by 2

TheoremThe quartic Jacobi sum is \(-1\) modulo \(2+2i\)#✓

Let \(p\equiv1\pmod4\) be prime, \(\chi\) a multiplicative character of \(\mathbb F_p\) with values in \(\mathbb Z[i]\) of order \(4\) (quartic characters), and \(J(\chi,\chi^2)\) the Jacobi sum.

  1. \(\chi(-1)\,\chi(2)^2=1\).
  2. \(2+2i\) divides \(J(\chi,\chi^2)+1\) in \(\mathbb Z[i]\).

Proof sketch. (1) As \(p\equiv1\pmod4\), \(-1=r^2\) for some \(r\in\mathbb F_p\); then \(2r=(1+r)^2\) and \(1+r\ne0\) (else \(r=-1\) and \(2=0\)). So \(\chi(-1)\chi(2)^2=\chi(r)^2\chi(2)^2=\chi(2r)^2=\chi(1+r)^4=1\).

(2) Put \(f(t)=\chi(t)\chi(1-t)^2\), so \(J(\chi,\chi^2)=\sum_tf(t)\). Then \(f(0)=f(1)=0\) and \(f(-1)=\chi(-1)\chi(2)^2=1\) by (1). Let \(X=\mathbb F_p\setminus\{0,1,-1\}\), a set of \(p-3\) elements. For \(t\in X\): \(f(t)^4=1\); \(f(t^{-1})=f(t)\), from \(1-t^{-1}=(-1)(1-t)t^{-1}\), \(\chi(t^{-1})=\chi(t)^3\) and \(\chi(-1)^2=1\); and \(t\mapsto t^{-1}\) maps \(X\) to itself with no fixed point, since \(t^2=1\) forces \(t=\pm1\). Pairing \(t\) with \(t^{-1}\), the sum \(\sum_{t\in X}(f(t)-1)\) is a sum of terms \(2(f(t)-1)\), each divisible by \(2+2i\) by quartic characters (2). Finally, with \(p-1=4k\), $\(J(\chi,\chi^2)+1=\sum_{t\in X}(f(t)-1)+(p-3)+2=\sum_{t\in X}(f(t)-1)+4k,\)$ and \(2+2i\) divides \(4=(2+2i)(1-i)\).

theorem chi_neg_one_mul_chi_two_sq (hp1 : p % 4 = 1) : χ (-1) * χ 2 ^ 2 = 1
theorem two_add_two_i_dvd_jacobi_add_one (hp1 : p % 4 = 1) :
    twoTwoI ∣ jacobiSum χ (χ ^ 2) + 1
Sources
Uses 2 · Used by 1

TheoremGauss's theorem on the points of \(y^2=x^3-x\)#✓

Let \(p\equiv1\pmod4\) be prime. There are integers \(A,B\) with $\(A^2+B^2=p,\qquad A\text{ odd},\qquad B\equiv A+1\pmod4,\)$ such that $\(\#\{(x,y)\in\mathbb F_p^2:y^2=x^3-x\}=p+2A.\)$ The congruences say that \(-(A+Bi)\equiv1\pmod{2+2i}\).

Proof sketch. Take a character \(\chi\) of order \(4\) (quartic characters (4)) and write \(J(\chi,\chi^2)=A+Bi\).

Norm. \(J\bar J=p\) (the quartic Jacobi sum (5)) gives \(A^2+B^2=p\).

Congruences. By the congruence (2), \(J+1=(2+2i)(c_1+c_2i)\) for some integers \(c_1,c_2\), so \(A+1=2c_1-2c_2\) and \(B=2c_1+2c_2\). Hence \(A+1\) is even and \(B-A-1=4c_2\).

Count. By the quartic Jacobi sum (1), the count is \(p+\sum_x\left(\frac{x^3-x}p\right)\). By quartic characters (6), each term is \(\chi(x^3-x)^2\), and by the quartic Jacobi sum (3) and (4) the sum is \(J+\bar J=2A\).

theorem gauss_jacobi (hp1 : p % 4 = 1) :
    ∃ A B : ℤ, A ^ 2 + B ^ 2 = p ∧ (A + 1) % 2 = 0 ∧ (B - A - 1) % 4 = 0 ∧
      (Nat.card {xy : ZMod p × ZMod p // xy.2 ^ 2 = xy.1 ^ 3 - xy.1} : ℤ) = p + 2 * A
Uses 3 · Used by 1

DefinitionGauss's point count on \(y^2=x^3-x\)#✓

Gauss's point count is the following assertion. For every prime \(p\equiv1\pmod4\), $\(p-\#\{(x,y)\in\mathbb F_p^2:y^2=x^3-x\}=\frac14\sum_{\alpha\in A_p}u(\alpha)\,\alpha,\)$ where \(A_p\) is the set of Gaussian integers of norm \(p\) and \(u\) the primary unit. The left side is the coefficient \(c_1(p)\) of \(L(C_1,s)\), and the right side is the Hecke coefficient \(\lambda_1(p)\). It is proved.

def GaussPointCount : Prop :=
  ∀ p : ℕ, p.Prime → p % 4 = 1 →
    (p : ℂ) - (Nat.card {xy : ZMod p × ZMod p // xy.2 ^ 2 = xy.1 ^ 3 - xy.1} : ℂ) =
      (1 / 4) * ∑ q ∈ normFiber p, unitOf ((q.1 : ZMod 4), (q.2 : ZMod 4)) * gz 0 0 q
Sources
Uses 2 · Used by 7

TheoremGauss's point count holds#✓

For a Gaussian integer \(\alpha\) let \(P(\alpha)=\psi_1(\alpha)+\psi_1(\bar\alpha)\), with \(\psi_1\) the Hecke character for \(d=1\), that is \(\psi_1(\alpha)=u(\alpha)\alpha\).

  1. \(P(-\alpha)=P(\alpha)\) and \(P(\bar\alpha)=P(\alpha)\).
  2. If \(\alpha=x+yi\) with \(x\equiv1\), \(y\equiv0\pmod4\) or \(x\equiv3\), \(y\equiv2\pmod4\), then \(P(\alpha)=2x\).
  3. Gauss's point count holds.

Proof sketch. (1) \(\psi_1(-\alpha)=\psi_1(\alpha)\) (Hecke character (3)) and \(\overline{-\alpha}=-\bar\alpha\); conjugation swaps the two terms.

(2) Both \(x+yi\) and \(x-yi\) satisfy the hypothesis of primary unit (5), so \(u=1\) at both, and \(P(\alpha)=\alpha+\bar\alpha\).

(3) Let \(p\equiv1\pmod4\) be prime and take \(A,B\) from Gauss's theorem; put \(a=|A|\), \(b=|B|\), so \(a^2+b^2=p\), and \(\pi_0=a+bi\). By the Gaussian primes above a split prime (g) and the invariance of \(\psi_1\) under units, \(\sum_{\alpha\in A_p}\psi_1(\alpha)=4\psi_1(\pi_0)+4\psi_1(\bar\pi_0)=4P(\pi_0)\). According to the signs of \(A\) and \(B\), \(\pi_0\) is one of \(\pm(-A-Bi)\) and \(\pm\overline{(-A-Bi)}\), so \(P(\pi_0)=P(-A-Bi)\) by (1). From \(A\) odd and \(B\equiv A+1\pmod4\): \(-A\equiv1\), \(-B\equiv0\) or \(-A\equiv3\), \(-B\equiv2\pmod4\), so \(P(-A-Bi)=-2A\) by (2). Hence \(\frac14\sum_{A_p}u(\alpha)\alpha=-2A\), while \(p-\#\{y^2=x^3-x\}=p-(p+2A)=-2A\) by Gauss's theorem.

noncomputable def psiPair (z : ℤ × ℤ) : ℂ := psi 1 z + psi 1 (conjZ z)
theorem psiPair_neg (z : ℤ × ℤ) : psiPair (gmul (-1, 0) z) = psiPair z
theorem psiPair_conj (z : ℤ × ℤ) : psiPair (conjZ z) = psiPair z
Sources
Uses 5 · Used by 3
6 fully proved

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.