Documentation

TauCeti.NumberTheory.Multiquadratic.Prime.Discriminants

Prime discriminants #

The genus-field layer of the multiquadratic roadmap uses the prime discriminants -4, 8, -8, and p* = (-1)^((p - 1) / 2) p for odd primes p. The files PrimeDiscriminant and EvenPrimeDiscriminant develop the odd and 2-adic pieces separately; this file packages them into one predicate and one radicand map for later genus-field constructions.

For an odd prime discriminant the radicand is the discriminant itself. For an even prime discriminant D ∈ {-4, 8, -8}, the radicand is D / 4, so the three even cases give -1, 2, and -2.

Main definitions and results #

The prime discriminants: the even prime discriminants -4, 8, -8, together with the odd prime discriminants p* for odd natural primes p.

Equations
Instances For

    Every even prime discriminant is a prime discriminant.

    @[simp]

    The discriminant -4 is a prime discriminant.

    @[simp]

    The discriminant 8 is a prime discriminant.

    @[simp]

    The discriminant -8 is a prime discriminant.

    The odd prime discriminant attached to an odd natural prime is a prime discriminant.

    The absolute value of a prime discriminant is greater than one.

    An odd prime discriminant is not one of the even prime discriminants.

    The squarefree radicand attached to a prime discriminant. In the even cases this divides by 4; in the odd cases the discriminant is already squarefree and is used as its own radicand.

    Equations
    Instances For

      The defining equation for the prime-discriminant radicand.

      The prime-discriminant radicand of -4 is -1.

      The prime-discriminant radicand of -8 is -2.

      @[simp]

      The radicand attached to an even prime discriminant is its even-prime radicand.

      @[simp]

      The radicand attached to an odd prime discriminant is the discriminant itself.

      A prime discriminant is either its own radicand, or four times its radicand in the even cases.

      @[simp]

      A prime discriminant and its squarefree radicand have the same sign.

      Away from 2, divisibility of an integer is the same as divisibility of its associated prime-discriminant radicand. In the even-prime cases the two differ by the square factor 4; in all other cases they are equal. Not a simp lemma: the right-hand side is again of the form (q : ℤ) ∣ _, so as a rewrite rule it matches its own output and loops.

      theorem TauCeti.Multiquadratic.forall_not_dvd_primeDiscriminant_iff_radicand {q : ℕ} [Fact (Nat.Prime q)] {ι : Type u_1} (D : ι → ℤ) (hq : q ≠ 2) :
      (∀ (i : ι), ¬↑q ∣ D i) ↔ ∀ (i : ι), ¬↑q ∣ primeDiscriminantRadicand (D i)

      Away from 2, an indexed family of integers and its associated prime-discriminant radicands have the same unramifiedness condition at q.

      The radicand attached to a prime discriminant is nonzero.

      The radicand attached to a prime discriminant is squarefree.

      The radicand attached to a prime discriminant is not a rational square.

      An odd prime discriminant has odd radicand congruent to 1 modulo 4.

      An even prime discriminant has radicand congruent to 3 or 2 modulo 4.

      A prime discriminant is either even, or its associated radicand is congruent to 1 modulo 4.

      The only prime discriminant whose radicand has absolute value 1 is -4. This is the small exceptional case in the radicand map: the odd prime-discriminant radicands have prime absolute value, and the other even prime-discriminant radicands have absolute value 2.

      Among prime discriminants, radicand -1 comes only from the even prime discriminant -4.

      Among prime discriminants, radicand 2 comes only from the even prime discriminant 8.

      Among prime discriminants, radicand -2 comes only from the even prime discriminant -8.

      The radicand map is injective on prime discriminants. This is the bookkeeping that lets later genus-field code pass between a list of prime discriminants and the corresponding multiquadratic radicands without identifying two different quadratic factors.

      For a family of prime discriminants, injectivity is unchanged after replacing each discriminant by its multiquadratic radicand.

      The prime under a prime discriminant #

      A prime discriminant is, up to sign, a power of a single rational prime: p for the odd prime discriminant p*, and 2 for each of -4, 8, -8. That prime is the one ramifying in the quadratic field the discriminant belongs to, so the map below is what turns a prime-discriminant factorization of a fundamental discriminant into the list of ramified primes.

      The rational prime lying under a prime discriminant D, when IsPrimeDiscriminant D: p for the odd prime discriminant p*, and 2 for the even prime discriminants -4, 8, -8. That the value really is prime under that hypothesis is prime_primeDiscriminantPrime.

      The definition is total: on an integer that is not a prime discriminant it returns the junk value D.natAbs (unless D is one of -4, 8, -8), which need not be prime — for instance primeDiscriminantPrime 9 = 9.

      Equations
      Instances For

        The defining if expression for primeDiscriminantPrime. The body of primeDiscriminantPrime is not @[expose]d, so downstream files rewrite with this lemma — or with the evaluation lemmas below — rather than unfolding the definition.

        @[simp]

        The prime under an even prime discriminant is 2.

        @[simp]

        The prime under the odd prime discriminant p* is p.

        The prime under a prime discriminant is a natural prime.

        The prime under a prime discriminant divides it.

        A prime discriminant has exactly one prime divisor. A natural prime divides a prime discriminant precisely when it is the prime under it. This is what makes the prime-discriminant factorization of a fundamental discriminant a list of ramified primes without repetition.

        The prime under a prime discriminant determines it, provided the two discriminants are not two distinct even prime discriminants (all three of which lie over 2).

        primeDiscriminantPrime is injective on a set of prime discriminants containing at most one even prime discriminant.

        A prime discriminant is nonzero.

        A product of prime discriminants is nonzero.

        A product of the absolute values of prime discriminants is nonzero.

        The absolute value of a product of prime discriminants is a nonzero level.

        An even prime discriminant is coprime to every odd prime discriminant.

        Distinct prime discriminants are coprime, provided they are not two distinct even prime discriminants; the proviso is necessary, since -4, 8 and -8 all lie over 2.

        For a family of prime discriminants with at most one even member, the least common multiple of their absolute values is the absolute value of their product.