# mathlibdocumentation

field_theory.chevalley_warning

# The Chevalley–Warning theorem #

This file contains a proof of the Chevalley–Warning theorem. Throughout most of this file, K denotes a finite field and q is notation for the cardinality of K.

## Main results #

1. Let f be a multivariate polynomial in finitely many variables (X s, s : σ) such that the total degree of f is less than (q-1) times the cardinality of σ. Then the evaluation of f on all points of σ → K (aka K^σ) sums to 0. (sum_mv_polynomial_eq_zero)
2. The Chevalley–Warning theorem (char_dvd_card_solutions). Let f i be a finite family of multivariate polynomials in finitely many variables (X s, s : σ) such that the sum of the total degrees of the f i is less than the cardinality of σ. Then the number of common solutions of the f i is divisible by the characteristic of K.

## Notation #

• K is a finite field
• q is notation for the cardinality of K
• σ is the indexing type for the variables of a multivariate polynomial ring over K
theorem mv_polynomial.sum_mv_polynomial_eq_zero {K : Type u_1} {σ : Type u_2} [fintype K] [field K] [fintype σ] [decidable_eq σ] (f : K) (h : f.total_degree < - 1) * ) :
finset.univ.sum (λ (x : σ → K), f) = 0
theorem char_dvd_card_solutions_family {K : Type u_1} {σ : Type u_2} [fintype K] [field K] [fintype σ] [decidable_eq K] [decidable_eq σ] (p : ) [ p] {ι : Type u_3} {s : finset ι} {f : ι → } (h : s.sum (λ (i : ι), (f i).total_degree) < ) :
p fintype.card {x // ∀ (i : ι), i s (f i) = 0}

The Chevalley–Warning theorem. Let (f i) be a finite family of multivariate polynomials in finitely many variables (X s, s : σ) over a finite field of characteristic p. Assume that the sum of the total degrees of the f i is less than the cardinality of σ. Then the number of common solutions of the f i is divisible by p.

theorem char_dvd_card_solutions {K : Type u_1} {σ : Type u_2} [fintype K] [field K] [fintype σ] [decidable_eq K] [decidable_eq σ] (p : ) [ p] {f : K} (h : f.total_degree < ) :
p fintype.card {x // f = 0}

The Chevalley–Warning theorem. Let f be a multivariate polynomial in finitely many variables (X s, s : σ) over a finite field of characteristic p. Assume that the total degree of f is less than the cardinality of σ. Then the number of solutions of f is divisible by p. See char_dvd_card_solutions_family for a version that takes a family of polynomials f i.