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 pOdd 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.