Documentation

TauCeti.NumberTheory.Multiquadratic.Prime.Discriminant.Basic

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

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 #

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.

Equations
Instances For

    The defining if expression for the odd prime discriminant.

    @[simp]

    If p ≡ 1 (mod 4), its odd prime discriminant is p.

    @[simp]

    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.

    @[simp]

    The absolute value of the odd prime discriminant is the underlying natural number.

    @[simp]

    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.

    @[simp]

    The odd prime discriminant divides an integer exactly when p does.

    @[simp]

    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.

    theorem TauCeti.Multiquadratic.forall_not_dvd_oddPrimeDiscriminant_iff {ι : Type u_1} (p : ι → ℕ) {q : ℤ} :
    (∀ (i : ι), ¬q ∣ oddPrimeDiscriminant (p i)) ↔ ∀ (i : ι), ¬q ∣ ↑(p i)

    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.

    @[simp]

    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.