The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V11. Fields and Galois theory

Mathlib.FieldTheory.Finite.Basic

90 declarations and 2 deprecated aliases. Mathlib docs · Source

Finite fields

This file contains basic results about finite fields. Throughout most of this file, K denotes a finite field and q is notation for the cardinality of K.

See RingTheory.IntegralDomain for the fact that the unit group of a finite field is a cyclic group, as well as the fact that every finite integral domain is a field (Fintype.fieldOfDomain).

Main results

  1. Fintype.card_units: The unit group of a finite field has cardinality q - 1.
  2. sum_pow_units: The sum of x^i, where x ranges over the units of K, is
  • q-1 if q-1 ∣ i
  • 0 otherwise
  1. FiniteField.card: The cardinality q is a power of the characteristic of K. See FiniteField.card' for a variant.

Notation

Throughout most of this file, K denotes a finite field and q is notation for the cardinality of K.

Implementation notes

While Fintype Kˣ can be inferred from Fintype K in the presence of DecidableEq K, in this file we take the Fintype Kˣ argument directly to reduce the chance of typeclass diamonds, as Fintype carries data.

theorem FiniteField.frobeniusAlgEquivOfAlgebraic.congr_simp E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [inst_4 : Algebra.IsAlgebraic K L],
  FiniteField.frobeniusAlgEquivOfAlgebraic K L = FiniteField.frobeniusAlgEquivOfAlgebraic K L

theorem Polynomial.primeSubfieldFinset.congr_simp E1 #

∀ (F : Type u_3) [inst : Field F] (p p_1 : ℕ) (e_p : p = p_1) [inst_1 : Fact (Nat.Prime p)] [inst_2 : CharP F p],
  Polynomial.primeSubfieldFinset F p = Polynomial.primeSubfieldFinset F p_1

theorem Algebra.IsAlgebraic.algEquivEquivAlgHom.congr_simp E1 #

∀ (K : Type u_1) (L : Type u_2) [inst : CommRing K] [inst_1 : IsDomain K] [inst_2 : Field L] [inst_3 : Algebra K L]
  [inst_4 : Module.IsTorsionFree K L] [inst_5 : Algebra.IsAlgebraic K L],
  Algebra.IsAlgebraic.algEquivEquivAlgHom K L = Algebra.IsAlgebraic.algEquivEquivAlgHom K L

theorem ZMod.castHom.congr_simp E1 #

∀ {n m m_1 : ℕ} (e_m : m = m_1) (h : m ∣ n) (R : Type u_2) [inst : Ring R] [inst_1 : CharP R m],
  ZMod.castHom h R = ZMod.castHom ⋯ R

theorem FiniteField.card_image_polynomial_eval E1 #

∀ {R : Type u_2} [inst : CommRing R] [IsDomain R] [inst_2 : DecidableEq R] [inst_3 : Fintype R] {p : Polynomial R},
  0 < p.degree → Fintype.card R ≤ p.natDegree * (Finset.image (fun x ↦ Polynomial.eval x p) Finset.univ).card

The cardinality of a field is at most n times the cardinality of the image of a degree n polynomial

theorem FiniteField.exists_root_sum_quadratic E1 #

∀ {R : Type u_2} [inst : CommRing R] [IsDomain R] [inst_2 : Fintype R] {f g : Polynomial R},
  f.degree = 2 → g.degree = 2 → Fintype.card R % 2 = 1 → ∃ a b, Polynomial.eval a f + Polynomial.eval b g = 0

If f and g are quadratic polynomials, then the f.eval a + g.eval b = 0 has a solution.

theorem FiniteField.prod_univ_units_id_eq_neg_one E1 #

∀ {K : Type u_1} [inst : CommRing K] [IsDomain K] [inst_2 : Fintype Kˣ], ∏ x, x = -1

theorem FiniteField.card_cast_subgroup_card_ne_zero E1 #

∀ {K : Type u_1} [inst : Ring K] [NoZeroDivisors K] [Nontrivial K] (G : Subgroup Kˣ) [inst_3 : Fintype ↥G],
  ↑(Fintype.card ↥G) ≠ 0

theorem FiniteField.sum_subgroup_units_eq_zero E1 #

∀ {K : Type u_1} [inst : Ring K] [NoZeroDivisors K] {G : Subgroup Kˣ} [inst_2 : Fintype ↥G], G ≠ ⊥ → ∑ x, ↑↑x = 0

The sum of a nontrivial subgroup of the units of a field is zero.

theorem FiniteField.sum_subgroup_units E0 #

∀ {K : Type u_1} [inst : Ring K] [NoZeroDivisors K] {G : Subgroup Kˣ} [inst_2 : Fintype ↥G]
  [inst_3 : Decidable (G = ⊥)], ∑ x, ↑↑x = if G = ⊥ then 1 else 0

The sum of a subgroup of the units of a field is 1 if the subgroup is trivial and 1 otherwise

theorem FiniteField.sum_subgroup_pow_eq_zero E0 #

∀ {K : Type u_1} [inst : CommRing K] [NoZeroDivisors K] {G : Subgroup Kˣ} [inst_2 : Fintype ↥G] {k : ℕ},
  k ≠ 0 → k < Fintype.card ↥G → ∑ x, ↑↑x ^ k = 0

theorem FiniteField.pow_card_sub_one_eq_one E1 #

∀ {K : Type u_1} [inst : GroupWithZero K] [inst_1 : Fintype K] (a : K), a ≠ 0 → a ^ (Fintype.card K - 1) = 1

theorem FiniteField.pow_card E1 #

∀ {K : Type u_1} [inst : GroupWithZero K] [inst_1 : Fintype K] (a : K), a ^ Fintype.card K = a

theorem FiniteField.pow_card_pow E1 #

∀ {K : Type u_1} [inst : GroupWithZero K] [inst_1 : Fintype K] (n : ℕ) (a : K), a ^ Fintype.card K ^ n = a

instance FiniteField.instGrindPowIdentity E0 #

∀ {K : Type u_1} [inst : Field K] [inst_1 : Fintype K], Lean.Grind.PowIdentity K (Fintype.card K)

theorem FiniteField.card E3 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (p : ℕ) [CharP K p], ∃ n, Nat.Prime p ∧ Fintype.card K = p ^ ↑n

The cardinality q is a power of the characteristic of K.

theorem FiniteField.card' E3 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K], ∃ p, CharP K p ∧ ∃ n, Nat.Prime p ∧ Fintype.card K = p ^ ↑n

theorem FiniteField.isPrimePow_card E1 #

∀ (K : Type u_1) [Field K] [inst : Fintype K], IsPrimePow (Fintype.card K)

theorem FiniteField.cast_card_eq_zero E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K], ↑(Fintype.card K) = 0

theorem FiniteField.forall_pow_eq_one_iff E0 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (i : ℕ), (∀ (x : Kˣ), x ^ i = 1) ↔ Fintype.card K - 1 ∣ i

theorem FiniteField.sum_pow_units E3 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] [inst_2 : DecidableEq K] (i : ℕ),
  ∑ x, ↑x ^ i = if Fintype.card K - 1 ∣ i then -1 else 0

The sum of x ^ i as x ranges over the units of a finite field of cardinality q is equal to 0 unless (q - 1) ∣ i, in which case the sum is q - 1.

theorem FiniteField.sum_pow_lt_card_sub_one E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K], ∀ i < Fintype.card K - 1, ∑ x, x ^ i = 0

The sum of x ^ i as x ranges over a finite field of cardinality q is equal to 0 if i < q - 1.

def FiniteField.frobeniusAlgHom E1 #

(K : Type u_1) →
  (R : Type u_2) → [inst : Field K] → [Fintype K] → [inst_2 : CommRing R] → [inst_3 : Algebra K R] → R →ₐ[K] R

If R is an algebra over a finite field K, the Frobenius K-algebra endomorphism of R is given by raising every element of R to its #K-th power.

theorem FiniteField.frobeniusAlgHom_apply E0 #

∀ (K : Type u_1) (R : Type u_2) [inst : Field K] [inst_1 : Fintype K] [inst_2 : CommRing R] [inst_3 : Algebra K R]
  (x : R), (FiniteField.frobeniusAlgHom K R) x = x ^ Fintype.card K

theorem FiniteField.coe_frobeniusAlgHom E0 #

∀ (K : Type u_1) (R : Type u_2) [inst : Field K] [inst_1 : Fintype K] [inst_2 : CommRing R] [inst_3 : Algebra K R],
  ⇑(FiniteField.frobeniusAlgHom K R) = fun x ↦ x ^ Fintype.card K

def FiniteField.frobeniusAlgEquiv E1 #

(K : Type u_1) →
  (R : Type u_2) →
    [inst : Field K] →
      [Fintype K] →
        [inst_2 : CommRing R] → [inst_3 : Algebra K R] → (p : ℕ) → [ExpChar R p] → [PerfectRing R p] → R ≃ₐ[K] R

If R is a perfect ring and an algebra over a finite field K, the Frobenius K-algebra endomorphism of R is an automorphism.

theorem FiniteField.frobeniusAlgEquiv_symm_apply E0 #

∀ (K : Type u_1) (R : Type u_2) [inst : Field K] [inst_1 : Fintype K] [inst_2 : CommRing R] [inst_3 : Algebra K R]
  (p : ℕ) [inst_4 : ExpChar R p] [inst_5 : PerfectRing R p] (b : R),
  (FiniteField.frobeniusAlgEquiv K R p).symm b = Function.surjInv ⋯ b

theorem FiniteField.frobeniusAlgEquiv_apply E0 #

∀ (K : Type u_1) (R : Type u_2) [inst : Field K] [inst_1 : Fintype K] [inst_2 : CommRing R] [inst_3 : Algebra K R]
  (p : ℕ) [inst_4 : ExpChar R p] [inst_5 : PerfectRing R p] (a : R),
  (FiniteField.frobeniusAlgEquiv K R p) a = a ^ Fintype.card K

def FiniteField.frobeniusAlgEquivOfAlgebraic E1 #

(K : Type u_1) →
  [inst : Field K] →
    [Fintype K] → (L : Type u_3) → [inst_2 : Field L] → [inst_3 : Algebra K L] → [Algebra.IsAlgebraic K L] → Gal(L/K)

If L/K is an algebraic extension of a finite field, the Frobenius K-algebra endomorphism of L is an automorphism.

theorem FiniteField.frobeniusAlgEquivOfAlgebraic_apply E0 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [inst_4 : Algebra.IsAlgebraic K L] (a : L), (FiniteField.frobeniusAlgEquivOfAlgebraic K L) a = a ^ Fintype.card K

theorem FiniteField.frobeniusAlgEquivOfAlgebraic_symm_apply E0 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [inst_4 : Algebra.IsAlgebraic K L] (b : L),
  (FiniteField.frobeniusAlgEquivOfAlgebraic K L).symm b = Function.surjInv ⋯ b

theorem FiniteField.coe_frobeniusAlgEquivOfAlgebraic E0 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [inst_4 : Algebra.IsAlgebraic K L], ⇑(FiniteField.frobeniusAlgEquivOfAlgebraic K L) = fun x ↦ x ^ Fintype.card K

theorem FiniteField.coe_frobeniusAlgEquivOfAlgebraic_iterate E0 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [inst_4 : Algebra.IsAlgebraic K L] (n : ℕ),
  (⇑(FiniteField.frobeniusAlgEquivOfAlgebraic K L))^[n] = fun x ↦ x ^ Fintype.card K ^ n

theorem FiniteField.orderOf_frobeniusAlgHom E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [Finite L], orderOf (FiniteField.frobeniusAlgHom K L) = Module.finrank K L

theorem FiniteField.orderOf_frobeniusAlgEquivOfAlgebraic E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [inst_4 : Finite L], orderOf (FiniteField.frobeniusAlgEquivOfAlgebraic K L) = Module.finrank K L

theorem FiniteField.bijective_frobeniusAlgHom_pow E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [Finite L], Function.Bijective fun n ↦ FiniteField.frobeniusAlgHom K L ^ ↑n

theorem FiniteField.bijective_frobeniusAlgEquivOfAlgebraic_pow E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [inst_4 : Finite L], Function.Bijective fun n ↦ FiniteField.frobeniusAlgEquivOfAlgebraic K L ^ ↑n

instance FiniteField.instIsCyclicAlgEquivOfFinite E0 #

∀ (K : Type u_4) (L : Type u_5) [Finite L] [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L], IsCyclic Gal(L/K)

theorem FiniteField.minpoly_frobeniusAlgHom E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K] (L : Type u_3) [inst_2 : Field L] [inst_3 : Algebra K L]
  [Finite L], minpoly K (FiniteField.frobeniusAlgHom K L).toLinearMap = Polynomial.X ^ Module.finrank K L - 1

theorem FiniteField.roots_X_pow_card_sub_X E1 #

∀ (K : Type u_1) [inst : Field K] [inst_1 : Fintype K],
  (Polynomial.X ^ Fintype.card K - Polynomial.X).roots = Finset.univ.val

theorem FiniteField.frobenius_pow E1 #

∀ {K : Type u_1} [inst : Field K] [inst_1 : Fintype K] {p : ℕ} [inst_2 : Fact (Nat.Prime p)] [inst_3 : CharP K p]
  {n : ℕ}, Fintype.card K = p ^ n → frobenius K p ^ n = 1

theorem FiniteField.Polynomial.expand_card E1 #

∀ {K : Type u_1} [inst : Field K] [inst_1 : Fintype K] (f : Polynomial K),
  (Polynomial.expand K (Fintype.card K)) f = f ^ Fintype.card K

theorem ZMod.sq_add_sq E1 #

∀ (p : ℕ) [hp : Fact (Nat.Prime p)] (x : ZMod p), ∃ a b, a ^ 2 + b ^ 2 = x

theorem Nat.sq_add_sq_zmodEq E1 #

∀ (p : ℕ) [Fact (Nat.Prime p)] (x : ℤ), ∃ a b, a ≤ p / 2 ∧ b ≤ p / 2 ∧ ↑a ^ 2 + ↑b ^ 2 ≡ x [ZMOD ↑p]

If p is a prime natural number and x is an integer number, then there exist natural numbers a ≤ p / 2 and b ≤ p / 2 such that a ^ 2 + b ^ 2 ≡ x [ZMOD p]. This is a version of ZMod.sq_add_sq with estimates on a and b.

theorem Nat.sq_add_sq_modEq E1 #

∀ (p : ℕ) [Fact (Nat.Prime p)] (x : ℕ), ∃ a b, a ≤ p / 2 ∧ b ≤ p / 2 ∧ a ^ 2 + b ^ 2 ≡ x [MOD p]

If p is a prime natural number and x is a natural number, then there exist natural numbers a ≤ p / 2 and b ≤ p / 2 such that a ^ 2 + b ^ 2 ≡ x [MOD p]. This is a version of ZMod.sq_add_sq with estimates on a and b.

theorem CharP.sq_add_sq E1 #

∀ (R : Type u_3) [inst : Ring R] [IsDomain R] (p : ℕ) [NeZero p] [CharP R p] (x : ℤ), ∃ a b, ↑a ^ 2 + ↑b ^ 2 = ↑x

theorem ZMod.pow_totient E0 #

∀ {n : ℕ} (x : (ZMod n)ˣ), x ^ n.totient = 1

The Fermat-Euler totient theorem. Nat.ModEq.pow_totient is an alternative statement of the same theorem.

theorem Nat.ModEq.pow_totient E3 #

∀ {x n : ℕ}, x.Coprime n → x ^ n.totient ≡ 1 [MOD n]

The Fermat-Euler totient theorem. ZMod.pow_totient is an alternative statement of the same theorem.

instance ZMod.instSubsingletonSubfield E0 #

∀ {p : ℕ} [inst : Fact (Nat.Prime p)], Subsingleton (Subfield (ZMod p))

theorem ZMod.fieldRange_castHom_eq_bot E1 #

∀ {K : Type u_1} (p : ℕ) [inst : Fact (Nat.Prime p)] [inst_1 : DivisionRing K] [inst_2 : CharP K p],
  (ZMod.castHom ⋯ K).fieldRange = ⊥

theorem ZMod.pow_card E0 #

∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (x : ZMod p), x ^ p = x

A variation on Fermat's little theorem. See ZMod.pow_card_sub_one_eq_one

theorem ZMod.pow_card_pow E0 #

∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {n : ℕ} (x : ZMod p), x ^ p ^ n = x

theorem ZMod.frobenius_zmod E0 #

∀ (p : ℕ) [inst : Fact (Nat.Prime p)], frobenius (ZMod p) p = RingHom.id (ZMod p)

theorem ZMod.card_units E1 #

∀ (p : ℕ) [inst : Fact (Nat.Prime p)], Fintype.card (ZMod p)ˣ = p - 1

theorem ZMod.units_pow_card_sub_one_eq_one E1 #

∀ (p : ℕ) [inst : Fact (Nat.Prime p)] (a : (ZMod p)ˣ), a ^ (p - 1) = 1

Fermat's Little Theorem: for every unit a of ZMod p, we have a ^ (p - 1) = 1.

theorem ZMod.pow_card_sub_one_eq_one E3 #

∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {a : ZMod p}, a ≠ 0 → a ^ (p - 1) = 1

Fermat's Little Theorem: for all nonzero a : ZMod p, we have a ^ (p - 1) = 1.

theorem ZMod.pow_card_sub_one E1 #

∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (a : ZMod p), a ^ (p - 1) = if a ≠ 0 then 1 else 0

theorem ZMod.orderOf_units_dvd_card_sub_one E1 #

∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (u : (ZMod p)ˣ), orderOf u ∣ p - 1

theorem ZMod.orderOf_dvd_card_sub_one E1 #

∀ {p : ℕ} [inst : Fact (Nat.Prime p)] {a : ZMod p}, a ≠ 0 → orderOf a ∣ p - 1

theorem ZMod.expand_card E1 #

∀ {p : ℕ} [inst : Fact (Nat.Prime p)] (f : Polynomial (ZMod p)), (Polynomial.expand (ZMod p) p) f = f ^ p

theorem Int.ModEq.pow_card_sub_one_eq_one E1 #

∀ {p : ℕ}, Nat.Prime p → ∀ {n : ℤ}, IsCoprime n ↑p → n ^ (p - 1) ≡ 1 [ZMOD ↑p]

Fermat's Little Theorem: for all a : ℤ coprime to p, we have a ^ (p - 1) ≡ 1 [ZMOD p].

theorem Int.prime_dvd_pow_sub_one E1 #

∀ {p : ℕ}, Nat.Prime p → ∀ {n : ℤ}, IsCoprime n ↑p → ↑p ∣ n ^ (p - 1) - 1

theorem Int.ModEq.pow_prime_eq_self E1 #

∀ {p : ℕ}, Nat.Prime p → ∀ (n : ℤ), n ^ p ≡ n [ZMOD ↑p]

theorem Int.prime_dvd_pow_self_sub E1 #

∀ {p : ℕ}, Nat.Prime p → ∀ (n : ℤ), ↑p ∣ n ^ p - n

theorem Int.ModEq.pow_eq_pow E1 #

∀ {p x y : ℕ}, Nat.Prime p → p - 1 ∣ x - y → y ≤ x → 0 < y → ∀ (n : ℤ), n ^ x ≡ n ^ y [ZMOD ↑p]

theorem Nat.ModEq.pow_card_sub_one_eq_one E1 #

∀ {p : ℕ}, Nat.Prime p → ∀ {n : ℕ}, n.Coprime p → n ^ (p - 1) ≡ 1 [MOD p]

Fermat's Little Theorem: for all n : ℕ coprime to p, we have n ^ (p - 1) ≡ 1 [MOD p].

theorem Nat.pow_card_sub_one_sub_one_mod_card E1 #

∀ {p : ℕ}, Nat.Prime p → ∀ {n : ℕ}, n.Coprime p → (n ^ (p - 1) - 1) % p = 0

Fermat's Little Theorem: for all n : ℕ coprime to p, we have (n ^ (p - 1) - 1) % p = 0.

theorem pow_pow_modEq_one E1 #

∀ (p m a : ℕ), (1 + p * a) ^ p ^ m ≡ 1 [MOD p ^ m]

theorem mem_bot_iff_intCast E0 #

∀ (p : ℕ) [Fact (Nat.Prime p)] (K : Type u_4) [inst : DivisionRing K] [CharP K p] {x : K}, x ∈ ⊥ ↔ ∃ n, ↑n = x

theorem Subfield.card_bot E1 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [Fact (Nat.Prime p)] [CharP F p], Nat.card ↥⊥ = p

def Polynomial.primeSubfieldFinset E1 #

(F : Type u_3) → [inst : Field F] → (p : ℕ) → [Fact (Nat.Prime p)] → [CharP F p] → Finset F

The prime subfield ⊥ : Subfield F as a Finset F.

theorem Polynomial.mem_primeSubfieldFinset E0 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [inst_1 : Fact (Nat.Prime p)] [inst_2 : CharP F p] {x : F},
  x ∈ Polynomial.primeSubfieldFinset F p ↔ x ∈ ⊥

theorem Polynomial.coe_primeSubfieldFinset E0 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [inst_1 : Fact (Nat.Prime p)] [inst_2 : CharP F p],
  ↑(Polynomial.primeSubfieldFinset F p) = ↑⊥

primeSubfieldFinset, coerced to a Set, equals the ⊥ subfield coerced to a Set.

theorem Polynomial.card_primeSubfieldFinset E0 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [inst_1 : Fact (Nat.Prime p)] [inst_2 : CharP F p],
  (Polynomial.primeSubfieldFinset F p).card = p

def Subfield.fintypeBot E1 #

(F : Type u_3) → [inst : Field F] → (p : ℕ) → [Fact (Nat.Prime p)] → [CharP F p] → Fintype ↥⊥

The prime subfield is finite.

theorem Subfield.natCard_bot E1 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [Fact (Nat.Prime p)] [CharP F p], Nat.card ↥⊥ = p

theorem Subfield.fintypeCard_bot E1 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [Fact (Nat.Prime p)] [CharP F p] [inst_3 : Fintype ↥⊥], Fintype.card ↥⊥ = p

theorem Polynomial.primeSubfieldFinset_eq_univ E0 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [inst_1 : Fact (Nat.Prime p)] [inst_2 : CharP F p] [Subsingleton (Subfield F)]
  [inst_4 : Fintype F], Polynomial.primeSubfieldFinset F p = Finset.univ

theorem Subfield.roots_X_pow_char_sub_X_bot E1 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [Fact (Nat.Prime p)] [CharP F p] [inst_3 : Fintype ↥⊥],
  (Polynomial.X ^ p - Polynomial.X).roots = Finset.univ.val

theorem Polynomial.splits_X_pow_char_sub_X E1 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [Fact (Nat.Prime p)] [CharP F p], (Polynomial.X ^ p - Polynomial.X).Splits

theorem Polynomial.roots_X_pow_char_sub_X E1 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [inst_1 : Fact (Nat.Prime p)] [inst_2 : CharP F p],
  (Polynomial.X ^ p - Polynomial.X).roots = (Polynomial.primeSubfieldFinset F p).val

theorem Subfield.mem_bot_iff_pow_eq_self E0 #

∀ (F : Type u_3) [inst : Field F] (p : ℕ) [Fact (Nat.Prime p)] [CharP F p] {x : F}, x ∈ ⊥ ↔ x ^ p = x

theorem FiniteField.isSquare_of_char_two E1 #

∀ {F : Type u_3} [inst : Field F] [Finite F], ringChar F = 2 → ∀ (a : F), IsSquare a

In a finite field of characteristic 2, all elements are squares.

theorem FiniteField.exists_nonsquare E1 #

∀ {F : Type u_3} [inst : Field F] [Finite F], ringChar F ≠ 2 → ∃ a, ¬IsSquare a

In a finite field of odd characteristic, not every element is a square.

theorem FiniteField.even_card_iff_char_two E1 #

∀ {F : Type u_3} [inst : Field F] [inst_1 : Fintype F], ringChar F = 2 ↔ Fintype.card F % 2 = 0

The finite field F has even cardinality iff it has characteristic 2.

theorem FiniteField.even_card_of_char_two E1 #

∀ {F : Type u_3} [inst : Field F] [inst_1 : Fintype F], ringChar F = 2 → Fintype.card F % 2 = 0

theorem FiniteField.odd_card_of_char_ne_two E1 #

∀ {F : Type u_3} [inst : Field F] [inst_1 : Fintype F], ringChar F ≠ 2 → Fintype.card F % 2 = 1

theorem FiniteField.pow_dichotomy E1 #

∀ {F : Type u_3} [inst : Field F] [inst_1 : Fintype F],
  ringChar F ≠ 2 → ∀ {a : F}, a ≠ 0 → a ^ (Fintype.card F / 2) = 1 ∨ a ^ (Fintype.card F / 2) = -1

If F has odd characteristic, then for nonzero a : F, we have that a ^ (#F / 2) = ±1.

theorem FiniteField.unit_isSquare_iff E0 #

∀ {F : Type u_3} [inst : Field F] [inst_1 : Fintype F],
  ringChar F ≠ 2 → ∀ (a : Fˣ), IsSquare a ↔ a ^ (Fintype.card F / 2) = 1

A unit a of a finite field F of odd characteristic is a square if and only if a ^ (#F / 2) = 1.

theorem FiniteField.isSquare_iff E0 #

∀ {F : Type u_3} [inst : Field F] [inst_1 : Fintype F],
  ringChar F ≠ 2 → ∀ {a : F}, a ≠ 0 → (IsSquare a ↔ a ^ (Fintype.card F / 2) = 1)

A non-zero a : F is a square if and only if a ^ (#F / 2) = 1.

Deprecated aliases

NameNew nameSince
FiniteField.expand_cardFiniteField.Polynomial.expand_card2026-05-11
Subfield.splits_botPolynomial.splits_X_pow_char_sub_X2026-11-15