Documentation

Mathlib.FieldTheory.PrimeField

Prime fields #

A prime field is a field that does not contain any nontrivial subfield. Prime fields are ℚ in characteristic 0 and ZMod p in characteristic p with p a prime number. Any field K contains a unique prime field: it is the smallest field contained in K.

Results #

The smallest subfield of a field of characteristic 0 is (the image of) ℚ.

noncomputable def Subfield.botEquivRat (K : Type u_1) [Field K] [CharZero K] :

Equivalence between the smallest subfield of a field of characteristic 0 and ℚ.

Equations
Instances For

    The smallest subfield of a field of characteristic p is (the image of) ZMod p. Note that the fact that the field K is of characteristic p is stated by the fact that it is ZMod p-algebra.

    @[deprecated Subfield.bot_eq_of_zmod_algebra (since := "2026-10-03")]

    Alias of Subfield.bot_eq_of_zmod_algebra.


    The smallest subfield of a field of characteristic p is (the image of) ZMod p. Note that the fact that the field K is of characteristic p is stated by the fact that it is ZMod p-algebra.

    noncomputable def Subfield.botEquivZMod (K : Type u_1) [Field K] (p : ℕ) [Fact (Nat.Prime p)] [Algebra (ZMod p) K] :

    Equivalence between the smallest subfield of a field of characteristic p and ZMod p.

    Equations
    Instances For
      @[simp]
      theorem Subfield.botEquivZMod_symm_apply {K : Type u_1} [Field K] (p : ℕ) [Fact (Nat.Prime p)] [Algebra (ZMod p) K] [Algebra (ZMod p) ↥⊥] (x : ZMod p) :
      (botEquivZMod K p).symm x = (algebraMap (ZMod p) ↥⊥) x
      theorem Subfield.coe_botEquivZMod_symm_apply {K : Type u_1} [Field K] (p : ℕ) [Fact (Nat.Prime p)] [Algebra (ZMod p) K] (x : ZMod p) :
      ↑((botEquivZMod K p).symm x) = (algebraMap (ZMod p) K) x