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 / V30. Combinatorics

Mathlib.Combinatorics.Nullstellensatz

3 declarations and 1 deprecated aliases. Mathlib docs · Source

Alon's Combinatorial Nullstellensatz

This is a formalization of Noga Alon's Combinatorial Nullstellensatz. It follows [Alon_1999].

We consider a family S : σ → Finset R of finite subsets of a domain R and a multivariate polynomial f in MvPolynomial σ R. The combinatorial Nullstellensatz gives combinatorial constraints for the vanishing of f at any x : σ → R such that x s ∈ S s for all s.

  • MvPolynomial.eq_zero_of_eval_zero_at_prod_finset : if f vanishes at any such point and f.degreeOf s < #(S s) for all s, then f = 0.

  • combinatorial_nullstellensatz_exists_linearCombination If f vanishes at every such point, then it can be written as a linear combination f = linearCombination (MvPolynomial σ R) (fun i ↦ ∏ r ∈ S i, (X i - C r)) h, for some h : σ →₀ MvPolynomial σ R such that ((∏ r ∈ S s, (X i - C r)) * h i).totalDegree ≤ f.totalDegree for all s.

  • combinatorial_nullstellensatz_exists_eval_ne_zero a multi-index t : σ →₀ ℕ such that t s < #(S s) for all s, f.totalDegree = t.degree and f.coeff t ≠ 0, there exists a point x : σ → R such that x s ∈ S s for all s and f.eval s ≠ 0.

TODO

  • Applications
  • relation with Schwartz–Zippel lemma, as in [Rote_2023]

References

  • [Alon, Combinatorial Nullstellensatz][Alon_1999]

  • [Rote, The Generalized Combinatorial Lasoń-Alon-Zippel-Schwartz Nullstellensatz Lemma][Rote_2023]

theorem MonomialOrder.lex.congr_simp E1 #

∀ {σ : Type u_1} [inst : LinearOrder σ] [inst_1 : WellFoundedGT σ], MonomialOrder.lex = MonomialOrder.lex

theorem MvPolynomial.combinatorial_nullstellensatz_exists_linearCombination E1 #

∀ {R : Type u_1} [inst : CommRing R] {σ : Type u_2} [Finite σ] [IsDomain R] (S : σ → Finset R),
  (∀ (i : σ), (S i).Nonempty) →
    ∀ (f : MvPolynomial σ R),
      (∀ (x : σ → R), (∀ (i : σ), x i ∈ S i) → (MvPolynomial.eval x) f = 0) →
        ∃ h,
          (∀ (i : σ), ((∏ s ∈ S i, (MvPolynomial.X i - MvPolynomial.C s)) * h i).totalDegree ≤ f.totalDegree) ∧
            f =
              (Finsupp.linearCombination (MvPolynomial σ R) fun i ↦ ∏ r ∈ S i, (MvPolynomial.X i - MvPolynomial.C r)) h

The Combinatorial Nullstellensatz.

If f vanishes at every point x : σ → R such that x s ∈ S s for all s, then it can be written as a linear combination f = linearCombination (MvPolynomial σ R) (fun i ↦ (∏ r ∈ S i, (X i - C r))) h, for some h : σ →₀ MvPolynomial σ R such that ((∏ r ∈ S s, (X i - C r)) * h i).totalDegree ≤ f.totalDegree for all s.

[Alon_1999], theorem 1.

theorem MvPolynomial.combinatorial_nullstellensatz_exists_eval_ne_zero E1 #

∀ {R : Type u_1} [inst : CommRing R] {σ : Type u_2} [Finite σ] [IsDomain R] (f : MvPolynomial σ R) (t : σ →₀ ℕ),
  f.coeff t ≠ 0 →
    f.totalDegree = Finsupp.degree t →
      ∀ (S : σ → Finset R), (∀ (i : σ), t i < (S i).card) → ∃ s, (∀ (i : σ), s i ∈ S i) ∧ (MvPolynomial.eval s) f ≠ 0

The Combinatorial Nullstellensatz.

Given a multi-index t : σ →₀ ℕ such that t s < #(S s) for all s, f.totalDegree = t.degree and f.coeff t ≠ 0, there exists a point x : σ → R such that x s ∈ S s for all s and f.eval s ≠ 0.

[Alon_1999], theorem 2

Deprecated aliases

NameNew nameSince
MvPolynomial.combinatorial_nullstellensatz_exists_eval_nonzeroMvPolynomial.combinatorial_nullstellensatz_exists_eval_ne_zero2026-10-13