In this section we present a beautiful proof of Theorem 4.1.7 using algebraic identities satisfied by sums of ``roots of unity''. The objects we introduce in the proof are of independent interest, and provide a powerful tool to prove higher-degree analogues of quadratic reciprocity. (For more on higher reciprocity see [#!ireland-rosen!#]. See also Section 6 of [#!ireland-rosen!#] on which the proof below is modeled.)
is a primitive th root of unity (this follows from the identity ). For the rest of this section, we fix an odd prime and the primitive th root of unity.
sage: K.<zeta> = CyclotomicField(5) sage: zeta^5 1 sage: 1/zeta -zeta^3 - zeta^2 - zeta - 1
Note that is implicit in the definition of . If we were to change , then the Gauss sum associated to would be different. The definition of also depends on our choice of ; we've chosen , but could have chosen a different and then could be different.
sage: def gauss_sum(a,p): ... K.<zeta> = CyclotomicField(p) ... return sum(legendre_symbol(n,p) * zeta^(a*n) for n in range(p)) sage: g2 = gauss_sum(2,5); g2 2*zeta^3 + 2*zeta^2 + 1 sage: g2.complex_embedding() -2.23606797749979 + 0.000000000000000333066907387547*I sage: g2^2 5Here is initially output as a polynomial in , so there is no loss of precision. The complex_embedding command shows some embedding of into the complex numbers, which is only correct to about the first 15 digits. Note that , so .
Figure 4.1 illustrates the Gauss sum for . The Gauss sum is obtained by adding the points on the unit circle, with signs as indicated, to obtain the real number . This suggests the following proposition, whose proof will require some work.
sage: [gauss_sum(a, 7)^2 for a in range(1,7)] [-7, -7, -7, -7, -7, -7] sage: [gauss_sum(a, 13)^2 for a in range(1,13)] [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13]
In order to prove the proposition, we introduce a few lemmas.
with . We have , so and
is a surjective homomorphism of groups. Thus half the elements of map to and half map to (the subgroup that maps to has index ). Since , the sum (4.4.1) is 0 .
Here we use that multiplication by is an automorphism of . Finally, multiply both sides by and use that .
We have enough lemmas to prove Proposition 4.4.5.
where the last step follows from Proposition 4.2.1 and that . Thus
Since , we have , so by Lemma 4.4.10,
and the proposition is proved.