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 / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.RingTheory.Nullstellensatz

24 declarations. Mathlib docs · Source

Nullstellensatz

This file establishes a version of Hilbert's classical Nullstellensatz for MvPolynomials. The main statement of the theorem is MvPolynomial.vanishingIdeal_zeroLocus_eq_radical.

The statement is in terms of new definitions vanishingIdeal and zeroLocus. Mathlib already has versions of these in terms of the prime spectrum of a ring, but those are not well-suited for expressing this result. Suggestions for better ways to state this theorem or organize things are welcome.

The machinery around vanishingIdeal and zeroLocus is also minimal, I only added lemmas directly needed in this proof, since I'm not sure if they are the right approach.

def MvPolynomial.zeroLocus E1 #

{k : Type u_1} →
  (K : Type u_2) →
    [inst : Field k] → [inst_1 : Field K] → [Algebra k K] → {σ : Type u_3} → Ideal (MvPolynomial σ k) → Set (σ → K)

Set of points that are zeroes of all polynomials in an ideal

theorem MvPolynomial.mem_zeroLocus_iff E0 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  {I : Ideal (MvPolynomial σ k)} {x : σ → K}, x ∈ MvPolynomial.zeroLocus K I ↔ ∀ p ∈ I, (MvPolynomial.aeval x) p = 0

theorem MvPolynomial.zeroLocus_anti_mono E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  {I J : Ideal (MvPolynomial σ k)}, I ≤ J → MvPolynomial.zeroLocus K J ⊆ MvPolynomial.zeroLocus K I

theorem MvPolynomial.zeroLocus_bot E0 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3},
  MvPolynomial.zeroLocus K ⊥ = ⊤

theorem MvPolynomial.zeroLocus_top E0 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3},
  MvPolynomial.zeroLocus K ⊤ = ⊥

def MvPolynomial.vanishingIdeal E1 #

(k : Type u_1) →
  {K : Type u_2} →
    [inst : Field k] → [inst_1 : Field K] → [Algebra k K] → {σ : Type u_3} → Set (σ → K) → Ideal (MvPolynomial σ k)

Ideal of polynomials with common zeroes at all elements of a set

theorem MvPolynomial.mem_vanishingIdeal_iff E0 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  {V : Set (σ → K)} {p : MvPolynomial σ k}, p ∈ MvPolynomial.vanishingIdeal k V ↔ ∀ x ∈ V, (MvPolynomial.aeval x) p = 0

theorem MvPolynomial.vanishingIdeal_anti_mono E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  {A B : Set (σ → K)}, A ⊆ B → MvPolynomial.vanishingIdeal k B ≤ MvPolynomial.vanishingIdeal k A

theorem MvPolynomial.vanishingIdeal_empty E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3},
  MvPolynomial.vanishingIdeal k ∅ = ⊤

theorem MvPolynomial.le_vanishingIdeal_zeroLocus E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  (I : Ideal (MvPolynomial σ k)), I ≤ MvPolynomial.vanishingIdeal k (MvPolynomial.zeroLocus K I)

theorem MvPolynomial.zeroLocus_vanishingIdeal_le E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  (V : Set (σ → K)), V ⊆ MvPolynomial.zeroLocus K (MvPolynomial.vanishingIdeal k V)

theorem MvPolynomial.zeroLocus_vanishingIdeal_galoisConnection E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3},
  GaloisConnection (MvPolynomial.zeroLocus K) (MvPolynomial.vanishingIdeal k)

theorem MvPolynomial.le_zeroLocus_iff_le_vanishingIdeal E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  {V : Set (σ → K)} {I : Ideal (MvPolynomial σ k)}, V ⊆ MvPolynomial.zeroLocus K I ↔ I ≤ MvPolynomial.vanishingIdeal k V

theorem MvPolynomial.zeroLocus_span E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  (S : Set (MvPolynomial σ k)), MvPolynomial.zeroLocus K (Ideal.span S) = {x | ∀ p ∈ S, (MvPolynomial.aeval x) p = 0}

theorem MvPolynomial.mem_vanishingIdeal_singleton_iff E0 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3} (x : σ → K)
  (p : MvPolynomial σ k), p ∈ MvPolynomial.vanishingIdeal k {x} ↔ (MvPolynomial.aeval x) p = 0

instance MvPolynomial.instIsPrimeVanishingIdealSingletonForallSet E0 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3} {x : σ → K},
  (MvPolynomial.vanishingIdeal k {x}).IsPrime

instance MvPolynomial.instIsMaximalVanishingIdealSingletonForallSet E0 #

∀ {K : Type u_2} [inst : Field K] {σ : Type u_3} {x : σ → K}, (MvPolynomial.vanishingIdeal K {x}).IsMaximal

theorem MvPolynomial.radical_le_vanishingIdeal_zeroLocus E1 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  (I : Ideal (MvPolynomial σ k)), I.radical ≤ MvPolynomial.vanishingIdeal k (MvPolynomial.zeroLocus K I)

def MvPolynomial.pointToPoint E1 #

{k : Type u_1} →
  {K : Type u_2} →
    [inst : Field k] → [inst_1 : Field K] → [Algebra k K] → {σ : Type u_3} → (σ → K) → PrimeSpectrum (MvPolynomial σ k)

The point in the prime spectrum associated to a given point

theorem MvPolynomial.vanishingIdeal_pointToPoint E0 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  (V : Set (σ → K)), PrimeSpectrum.vanishingIdeal (MvPolynomial.pointToPoint '' V) = MvPolynomial.vanishingIdeal k V

theorem MvPolynomial.pointToPoint_zeroLocus_le E1 #

∀ {K : Type u_2} [inst : Field K] {σ : Type u_3} (I : Ideal (MvPolynomial σ K)),
  MvPolynomial.pointToPoint '' MvPolynomial.zeroLocus K I ⊆ PrimeSpectrum.zeroLocus ↑I

theorem MvPolynomial.isMaximal_iff_eq_vanishingIdeal_singleton E1 #

∀ {K : Type u_2} [inst : Field K] {σ : Type u_3} [IsAlgClosed K] [Finite σ] {I : Ideal (MvPolynomial σ K)},
  I.IsMaximal ↔ ∃ x, I = MvPolynomial.vanishingIdeal K {x}

theorem MvPolynomial.vanishingIdeal_zeroLocus_eq_radical E3 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  [IsAlgClosed K] [Finite σ] (I : Ideal (MvPolynomial σ k)),
  MvPolynomial.vanishingIdeal k (MvPolynomial.zeroLocus K I) = I.radical

Main statement of the Nullstellensatz

theorem MvPolynomial.IsPrime.vanishingIdeal_zeroLocus E0 #

∀ {k : Type u_1} {K : Type u_2} [inst : Field k] [inst_1 : Field K] [inst_2 : Algebra k K] {σ : Type u_3}
  [IsAlgClosed K] [Finite σ] (P : Ideal (MvPolynomial σ k)) [h : P.IsPrime],
  MvPolynomial.vanishingIdeal k (MvPolynomial.zeroLocus K P) = P