Odd prime discriminants #
The genus-field layer of the multiquadratic roadmap uses prime discriminants rather than
bare squarefree radicands. For an odd prime p, the associated prime discriminant is
pwhenp ≡ 1 (mod 4);-pwhenp ≡ 3 (mod 4).
This file records that elementary normalization as a small arithmetic API. The even prime
discriminants -4, 8, and -8 are deliberately left to the later quadratic-discriminant
packaging; the odd-prime case is the reusable piece needed to turn the roadmap's odd ramified
primes into radicands p* satisfying p* ≡ 1 (mod 4).
Main definitions and results #
TauCeti.Multiquadratic.oddPrimeDiscriminant: the integerpifp % 4 = 1, and-potherwise.TauCeti.Multiquadratic.oddPrimeDiscriminant_natAbs: its absolute value isp.TauCeti.Multiquadratic.prime_oddPrimeDiscriminant: it is a prime integer.TauCeti.Multiquadratic.dvd_oddPrimeDiscriminant_iff: divisibility byp*is the same as divisibility byp.TauCeti.Multiquadratic.oddPrimeDiscriminant_mod_four_eq_one: for oddp, it is1 mod 4.TauCeti.Multiquadratic.oddPrimeDiscriminant_eq_neg_one_pow_pred_div_two_mul: the standard formulap* = (-1)^((p-1)/2) p.TauCeti.Multiquadratic.oddPrimeDiscriminant_eq_neg_one_pow_div_two_mul: the equivalent formulap* = (-1)^(p/2) p.
The odd prime discriminant p*: p when p % 4 = 1 and -p otherwise (so the value is
-p for every p with p % 4 ≠ 1, including even inputs). The p ≡ 3 (mod 4) reading of the
second case is the intended one for odd primes. The primality hypothesis is not part of the
definition so that the expression rewrites by computation; the API below supplies the
prime-specific facts.
Instances For
If p ≡ 1 (mod 4), its odd prime discriminant is p.
If p ≠ 1 (mod 4), its odd prime discriminant is -p. For an odd prime this is the
p ≡ 3 (mod 4) case.
If p ≡ 3 (mod 4), its odd prime discriminant is -p.
The absolute value of the odd prime discriminant is the underlying natural number.
The odd prime discriminant is nonzero exactly when p is nonzero.
The odd prime discriminant of a natural prime is a prime integer.
The odd prime discriminant of a squarefree natural number is squarefree.
The odd prime discriminant divides an integer exactly when p does.
An integer divides an odd prime discriminant exactly when it divides the underlying natural number. This form is convenient when checking the unramifiedness side of the splitting law.
An integer does not divide an odd prime discriminant exactly when it does not divide the underlying natural number. The negated form is convenient for the unramifiedness side of the splitting law.
Family form of unramifiedness for odd prime discriminants: an integer divides none of
the p i* exactly when it divides none of the underlying p i.
The odd prime discriminant of an odd natural number is odd.
For an odd p, the odd prime discriminant is congruent to 1 modulo 4.
The odd prime discriminant is always either p or -p.
The sign of the odd prime discriminant is controlled by p mod 4.
The odd prime discriminant is negative exactly in the p ≡ 3 (mod 4) case.
The odd prime discriminant in the standard notation p* = (-1)^(p/2) p.
The odd prime discriminant in the standard notation
p* = (-1)^((p - 1)/2) p.