Documentation

Mathlib.NumberTheory.FundamentalDiscriminant

Fundamental discriminants #

A fundamental discriminant is an integer D ≡ 0, 1 mod 4 that is primitive, i.e. not a proper square multiple of a smaller discriminant. These are exactly the discriminants of quadratic fields.

The definition and the results below are elementary arithmetic on ℤ, so this file is kept independent of the theory of quadratic fields.

Main definitions #

Main results #

D is a fundamental discriminant: it is a discriminant (D ≡ 0, 1 mod 4) and primitive, i.e. D / 4 ≢ 0, 1 mod 4 when 4 ∣ D, and no odd prime square divides D.

Equations
Instances For
    theorem Int.isFundamentalDiscr_def {D : ℤ} :
    D.IsFundamentalDiscr ↔ (D % 4 = 0 ∨ D % 4 = 1) ∧ (∀ (x : ℤ), D = 4 * x → ¬4 ∣ x ∧ x % 4 ≠ 1) ∧ ∀ (p : ℕ), Nat.Prime p → Odd p → ¬↑p ^ 2 ∣ D
    theorem Int.isFundamentalDiscr_iff_squarefree {D : ℤ} :
    D.IsFundamentalDiscr ↔ D % 4 = 1 ∧ Squarefree D ∨ D % 4 = 0 ∧ Squarefree (D / 4) ∧ (D / 4 % 4 = 2 ∨ D / 4 % 4 = 3)

    D is a fundamental discriminant if and only if either D ≡ 1 mod 4 and D is squarefree, or D = 4 * d with d squarefree and d ≡ 2, 3 mod 4.

    theorem Int.isFundamentalDiscr_iff_forall_prime {D : ℤ} :
    D.IsFundamentalDiscr ↔ (D % 4 = 0 ∨ D % 4 = 1) ∧ ∀ (p : ℕ), Nat.Prime p → ¬∃ (e : ℤ), D = ↑p ^ 2 * e ∧ (e % 4 = 0 ∨ e % 4 = 1)

    Prime-by-prime characterisation of fundamental discriminants, uniform in p. Unlike the definition, which singles out p = 2, the second clause is the same for every prime.