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 / V10. Commutative algebra II: valuations, Dedekind domains, local algebra

Mathlib.RingTheory.Spectrum.Prime.Topology

167 declarations. Mathlib docs · Source

The Zariski topology on the prime spectrum of a commutative (semi)ring

Conventions

We denote subsets of (semi)rings with s, s', etc... whereas we denote subsets of prime spectra with t, t', etc...

Inspiration/contributors

The contents of this file draw inspiration from https://github.com/ramonfmir/lean-scheme which has contributions from Ramon Fernandez Mir, Kevin Buzzard, Kenny Lau, and Chris Hughes (on an earlier repository).

Main definitions

  • PrimeSpectrum.zariskiTopology: the Zariski topology on the prime spectrum, whose closed sets are zero loci (zeroLocus).

  • PrimeSpectrum.basicOpen: the complement of the zero locus of a single element. The basicOpens form a topological basis of the Zariski topology: PrimeSpectrum.isTopologicalBasis_basic_opens.

  • PrimeSpectrum.comap: the continuous map between prime spectra induced by a ring homomorphism.

  • IsLocalRing.closedPoint: the maximal ideal of a local ring is the unique closed point in its prime spectrum.

Main results

  • PrimeSpectrum.instSpectralSpace: every prime spectrum is a spectral space, i.e. it is quasi-compact, sober (in particular T0), quasi-separated, and its compact open subsets form a topological basis.

  • PrimeSpectrum.discreteTopology_iff_finite_and_krullDimLE_zero: the prime spectrum of a commutative semiring is discrete iff it is finite and the semiring has zero Krull dimension or is trivial.

  • PrimeSpectrum.localization_comap_range, PrimeSpectrum.localization_comap_isEmbedding: localization at a submonoid of a commutative semiring induces an embedding between the prime spectra, with range consisting of prime ideals disjoint from the submonoid.

  • PrimeSpectrum.localization_away_comap_range: for localization away from an element, the range of the embedding is the basicOpen associated to the element.

  • PrimeSpectrum.comap_isEmbedding_of_surjective: a surjective ring homomorphism between commutative semirings induces an embedding between the prime spectra.

  • PrimeSpectrum.isClosedEmbedding_comap_of_surjective: a surjective ring homomorphism between commutative rings induces a closed embedding between the prime spectra.

  • PrimeSpectrum.primeSpectrumProdHomeo: the prime spectrum of a product semiring is homeomorphic to the disjoint union of the prime spectra.

  • PrimeSpectrum.stableUnderSpecialization_range_iff: the range of PrimeSpectrum.comap _ is closed iff it is stable under specialization.

  • PrimeSpectrum.denseRange_comap_iff_minimalPrimes, PrimeSpectrum.denseRange_comap_iff_ker_le_nilRadical: the range of comap f is dense iff it contains all minimal primes, iff the kernel of f is contained in the nilradical.

  • PrimeSpectrum.isClosedMap_comap_of_isIntegral: comap f is a closed map if f is integral.

  • PrimeSpectrum.isIntegral_of_isClosedMap_comap_mapRingHom: f : R →+* S is integral if comap (Polynomial.mapRingHom f : R[X] →+* S[X]) is a closed map.

In the prime spectrum of a commutative semiring:

  • PrimeSpectrum.isClosed_iff_zeroLocus_radical_ideal, PrimeSpectrum.isRadical_vanishingIdeal, PrimeSpectrum.zeroLocus_eq_iff, PrimeSpectrum.vanishingIdeal_anti_mono_iff: closed subsets correspond to radical ideals.

  • PrimeSpectrum.isClosed_singleton_iff_isMaximal: closed points correspond to maximal ideals.

  • PrimeSpectrum.isIrreducible_iff_vanishingIdeal_isPrime: irreducible closed subsets correspond to prime ideals.

  • minimalPrimes.equivIrreducibleComponents: irreducible components correspond to minimal primes.

  • PrimeSpectrum.mulZeroAddOneEquivClopens: clopen subsets correspond to pairs of elements that add up to 1 and multiply to 0 in the semiring.

  • PrimeSpectrum.isIdempotentElemEquivClopens: (if the semiring is a ring) clopen subsets correspond to idempotents in the ring.

The comap of a surjective ring homomorphism is a closed embedding between the prime spectra.

The specialization order

We endow PrimeSpectrum R with a partial order, where x ≤ y if and only if y ∈ closure {x}.

instance PrimeSpectrum.zariskiTopology E3 #

{R : Type u} → [inst : CommSemiring R] → TopologicalSpace (PrimeSpectrum R)

The Zariski topology on the prime spectrum of a commutative (semi)ring is defined via the closed sets of the topology: they are exactly those sets that are the zero locus of a subset of the ring.

theorem PrimeSpectrum.isOpen_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] (U : Set (PrimeSpectrum R)), IsOpen U ↔ ∃ s, Uᶜ = PrimeSpectrum.zeroLocus s

theorem PrimeSpectrum.isClosed_iff_zeroLocus E1 #

∀ {R : Type u} [inst : CommSemiring R] (Z : Set (PrimeSpectrum R)), IsClosed Z ↔ ∃ s, Z = PrimeSpectrum.zeroLocus s

theorem PrimeSpectrum.isClosed_iff_zeroLocus_ideal E1 #

∀ {R : Type u} [inst : CommSemiring R] (Z : Set (PrimeSpectrum R)), IsClosed Z ↔ ∃ I, Z = PrimeSpectrum.zeroLocus ↑I

theorem PrimeSpectrum.isClosed_iff_zeroLocus_radical_ideal E3 #

∀ {R : Type u} [inst : CommSemiring R] (Z : Set (PrimeSpectrum R)),
  IsClosed Z ↔ ∃ I, I.IsRadical ∧ Z = PrimeSpectrum.zeroLocus ↑I

theorem PrimeSpectrum.isClosed_zeroLocus E1 #

∀ {R : Type u} [inst : CommSemiring R] (s : Set R), IsClosed (PrimeSpectrum.zeroLocus s)

theorem PrimeSpectrum.zeroLocus_vanishingIdeal_eq_closure E1 #

∀ {R : Type u} [inst : CommSemiring R] (t : Set (PrimeSpectrum R)),
  PrimeSpectrum.zeroLocus ↑(PrimeSpectrum.vanishingIdeal t) = closure t

theorem PrimeSpectrum.vanishingIdeal_closure E1 #

∀ {R : Type u} [inst : CommSemiring R] (t : Set (PrimeSpectrum R)),
  PrimeSpectrum.vanishingIdeal (closure t) = PrimeSpectrum.vanishingIdeal t

theorem PrimeSpectrum.closure_singleton E1 #

∀ {R : Type u} [inst : CommSemiring R] (x : PrimeSpectrum R), closure {x} = PrimeSpectrum.zeroLocus ↑x.asIdeal

theorem PrimeSpectrum.isClosed_singleton_iff_isMaximal E3 #

∀ {R : Type u} [inst : CommSemiring R] (x : PrimeSpectrum R), IsClosed {x} ↔ x.asIdeal.IsMaximal

theorem PrimeSpectrum.isRadical_vanishingIdeal E3 #

∀ {R : Type u} [inst : CommSemiring R] (s : Set (PrimeSpectrum R)), (PrimeSpectrum.vanishingIdeal s).IsRadical

theorem PrimeSpectrum.zeroLocus_eq_iff E3 #

∀ {R : Type u} [inst : CommSemiring R] {I J : Ideal R},
  PrimeSpectrum.zeroLocus ↑I = PrimeSpectrum.zeroLocus ↑J ↔ I.radical = J.radical

theorem PrimeSpectrum.vanishingIdeal_anti_mono_iff E3 #

∀ {R : Type u} [inst : CommSemiring R] {s t : Set (PrimeSpectrum R)},
  IsClosed t → (s ⊆ t ↔ PrimeSpectrum.vanishingIdeal t ≤ PrimeSpectrum.vanishingIdeal s)

theorem PrimeSpectrum.vanishingIdeal_strict_anti_mono_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] {s t : Set (PrimeSpectrum R)},
  IsClosed s → IsClosed t → (s ⊂ t ↔ PrimeSpectrum.vanishingIdeal t < PrimeSpectrum.vanishingIdeal s)

def PrimeSpectrum.closedsEmbedding E1 #

(R : Type u_1) → [inst : CommSemiring R] → (TopologicalSpace.Closeds (PrimeSpectrum R))ᵒᵈ ↪o Ideal R

The antitone order embedding of closed subsets of Spec R into ideals of R.

theorem PrimeSpectrum.t1Space_iff_isField E1 #

∀ {R : Type u} [inst : CommSemiring R] [IsDomain R], T1Space (PrimeSpectrum R) ↔ IsField R

theorem PrimeSpectrum.isIrreducible_zeroLocus_iff_of_radical E1 #

∀ {R : Type u} [inst : CommSemiring R] (I : Ideal R),
  I.IsRadical → (IsIrreducible (PrimeSpectrum.zeroLocus ↑I) ↔ I.IsPrime)

theorem PrimeSpectrum.isIrreducible_zeroLocus_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] (I : Ideal R), IsIrreducible (PrimeSpectrum.zeroLocus ↑I) ↔ I.radical.IsPrime

theorem PrimeSpectrum.isIrreducible_iff_vanishingIdeal_isPrime E3 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  IsIrreducible s ↔ (PrimeSpectrum.vanishingIdeal s).IsPrime

theorem PrimeSpectrum.vanishingIdeal_isIrreducible E1 #

∀ {R : Type u} [inst : CommSemiring R], PrimeSpectrum.vanishingIdeal '' {s | IsIrreducible s} = {P | P.IsPrime}

theorem PrimeSpectrum.vanishingIdeal_isClosed_isIrreducible E1 #

∀ {R : Type u} [inst : CommSemiring R],
  PrimeSpectrum.vanishingIdeal '' {s | IsClosed s ∧ IsIrreducible s} = {P | P.IsPrime}

theorem PrimeSpectrum.irreducibleSpace_iff_isPrime_nilradical E1 #

∀ {R : Type u} [inst : CommSemiring R], IrreducibleSpace (PrimeSpectrum R) ↔ (nilradical R).IsPrime

instance PrimeSpectrum.irreducibleSpace E0 #

∀ {R : Type u} [inst : CommSemiring R] [IsDomain R], IrreducibleSpace (PrimeSpectrum R)

instance PrimeSpectrum.quasiSober E0 #

∀ {R : Type u} [inst : CommSemiring R], QuasiSober (PrimeSpectrum R)

instance PrimeSpectrum.instQuasiSoberElemZeroLocus E0 #

∀ {R : Type u} [inst : CommSemiring R] (I : Set R), QuasiSober ↑(PrimeSpectrum.zeroLocus I)

instance PrimeSpectrum.compactSpace E0 #

∀ {R : Type u} [inst : CommSemiring R], CompactSpace (PrimeSpectrum R)

The prime spectrum of a commutative (semi)ring is a compact topological space.

theorem PrimeSpectrum.discreteTopology_iff_finite_and_krullDimLE_zero E3 #

∀ {R : Type u} [inst : CommSemiring R],
  DiscreteTopology (PrimeSpectrum R) ↔ Finite (PrimeSpectrum R) ∧ Ring.KrullDimLE 0 R

The prime spectrum of a commutative semiring has discrete Zariski topology iff it is finite and the semiring has Krull dimension zero or is trivial.

theorem PrimeSpectrum.discreteTopology_iff_finite_isMaximal_and_sInf_le_nilradical E1 #

∀ {R : Type u} [inst : CommSemiring R],
  DiscreteTopology (PrimeSpectrum R) ↔ Finite ↑{I | I.IsMaximal} ∧ sInf {I | I.IsMaximal} ≤ nilradical R

The prime spectrum of a semiring has discrete Zariski topology iff there are only finitely many maximal ideals and their intersection is contained in the nilradical.

theorem PrimeSpectrum.discreteTopology_of_toLocalization_surjective E1 #

∀ {R : Type u} [inst : CommSemiring R],
  Function.Surjective ⇑(PrimeSpectrum.toPiLocalization R) → DiscreteTopology (PrimeSpectrum R)

theorem PrimeSpectrum.continuous_comap E2 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S),
  Continuous (PrimeSpectrum.comap f)

theorem PrimeSpectrum.localization_comap_injective E1 #

∀ {R : Type u} (S : Type v) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] (M : Submonoid R)
  [IsLocalization M S], Function.Injective (PrimeSpectrum.comap (algebraMap R S))

theorem PrimeSpectrum.localization_comap_range E3 #

∀ {R : Type u} (S : Type v) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] (M : Submonoid R)
  [IsLocalization M S], Set.range (PrimeSpectrum.comap (algebraMap R S)) = {p | Disjoint ↑M ↑p.asIdeal}

theorem PrimeSpectrum.localization_comap_isInducing E1 #

∀ {R : Type u} (S : Type v) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] (M : Submonoid R)
  [IsLocalization M S], Topology.IsInducing (PrimeSpectrum.comap (algebraMap R S))

theorem PrimeSpectrum.localization_comap_isEmbedding E3 #

∀ {R : Type u} (S : Type v) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] (M : Submonoid R)
  [IsLocalization M S], Topology.IsEmbedding (PrimeSpectrum.comap (algebraMap R S))

theorem PrimeSpectrum.comap_isInducing_of_surjective E1 #

∀ {R : Type u} (S : Type v) [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S),
  Function.Surjective ⇑f → Topology.IsInducing (PrimeSpectrum.comap f)

theorem PrimeSpectrum.isEmbedding_comap_of_surjective E1 #

∀ {R : Type u} (S : Type v) [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S),
  Function.Surjective ⇑f → Topology.IsEmbedding (PrimeSpectrum.comap f)

The embedding has closed range if the domain (and therefore the codomain) is a ring, see PrimeSpectrum.isClosedEmbedding_comap_of_surjective. On the other hand, comap (Nat.castRingHom (ZMod 2)) does not have closed range.

def PrimeSpectrum.homeomorphOfRingEquiv E1 #

{R : Type u} →
  {S : Type v} → [inst : CommSemiring R] → [inst_1 : CommSemiring S] → R ≃+* S → PrimeSpectrum R ≃ₜ PrimeSpectrum S

Homeomorphism between prime spectra induced by an isomorphism of semirings.

theorem PrimeSpectrum.isHomeomorph_comap_of_bijective E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] {f : R →+* S},
  Function.Bijective ⇑f → IsHomeomorph (PrimeSpectrum.comap f)

theorem PrimeSpectrum.comap_singleton_isClosed_of_surjective E1 #

∀ {R : Type u} (S : Type v) [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  Function.Surjective ⇑f → ∀ (x : PrimeSpectrum S), IsClosed {x} → IsClosed {PrimeSpectrum.comap f x}

theorem PrimeSpectrum.comap_quotientMk_bijective_of_le_nilradical E1 #

∀ {R : Type u} [inst : CommRing R] {I : Ideal R},
  I ≤ nilradical R → Function.Bijective (PrimeSpectrum.comap (Ideal.Quotient.mk I))

theorem PrimeSpectrum.isClosed_range_comap_of_surjective E1 #

∀ {R : Type u} (S : Type v) [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  Function.Surjective ⇑f → IsClosed (Set.range (PrimeSpectrum.comap f))

theorem PrimeSpectrum.isClosedEmbedding_comap_of_surjective E3 #

∀ {R : Type u} (S : Type v) [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  Function.Surjective ⇑f → Topology.IsClosedEmbedding (PrimeSpectrum.comap f)

theorem PrimeSpectrum.primeSpectrumProd_symm_inl E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] (x : PrimeSpectrum R),
  (PrimeSpectrum.primeSpectrumProd R S).symm (Sum.inl x) = PrimeSpectrum.comap (RingHom.fst R S) x

theorem PrimeSpectrum.primeSpectrumProd_symm_inr E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] (x : PrimeSpectrum S),
  (PrimeSpectrum.primeSpectrumProd R S).symm (Sum.inr x) = PrimeSpectrum.comap (RingHom.snd R S) x

theorem PrimeSpectrum.range_comap_fst E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S],
  Set.range (PrimeSpectrum.comap (RingHom.fst R S)) = PrimeSpectrum.zeroLocus ↑(RingHom.ker (RingHom.fst R S))

theorem PrimeSpectrum.range_comap_snd E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S],
  Set.range (PrimeSpectrum.comap (RingHom.snd R S)) = PrimeSpectrum.zeroLocus ↑(RingHom.ker (RingHom.snd R S))

theorem PrimeSpectrum.isClosedEmbedding_comap_fst E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S],
  Topology.IsClosedEmbedding (PrimeSpectrum.comap (RingHom.fst R S))

theorem PrimeSpectrum.isClosedEmbedding_comap_snd E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S],
  Topology.IsClosedEmbedding (PrimeSpectrum.comap (RingHom.snd R S))

def PrimeSpectrum.primeSpectrumProdHomeo E3 #

{R : Type u} →
  {S : Type v} →
    [inst : CommSemiring R] → [inst_1 : CommSemiring S] → PrimeSpectrum (R × S) ≃ₜ PrimeSpectrum R ⊕ PrimeSpectrum S

The prime spectrum of R × S is homeomorphic to the disjoint union of PrimeSpectrum R and PrimeSpectrum S.

def PrimeSpectrum.basicOpen E3 #

{R : Type u} → [inst : CommSemiring R] → R → TopologicalSpace.Opens (PrimeSpectrum R)

basicOpen r is the open subset containing all prime ideals not containing r.

theorem PrimeSpectrum.mem_basicOpen E0 #

∀ {R : Type u} [inst : CommSemiring R] (f : R) (x : PrimeSpectrum R), x ∈ PrimeSpectrum.basicOpen f ↔ f ∉ x.asIdeal

theorem PrimeSpectrum.isOpen_basicOpen E1 #

∀ {R : Type u} [inst : CommSemiring R] {a : R}, IsOpen ↑(PrimeSpectrum.basicOpen a)

theorem PrimeSpectrum.basicOpen_eq_zeroLocus_compl E0 #

∀ {R : Type u} [inst : CommSemiring R] (r : R), ↑(PrimeSpectrum.basicOpen r) = (PrimeSpectrum.zeroLocus {r})ᶜ

theorem PrimeSpectrum.basicOpen_one E0 #

∀ {R : Type u} [inst : CommSemiring R], PrimeSpectrum.basicOpen 1 = ⊤

theorem PrimeSpectrum.basicOpen_zero E0 #

∀ {R : Type u} [inst : CommSemiring R], PrimeSpectrum.basicOpen 0 = ⊥

theorem PrimeSpectrum.basicOpen_le_basicOpen_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] (f g : R),
  PrimeSpectrum.basicOpen f ≤ PrimeSpectrum.basicOpen g ↔ f ∈ (Ideal.span {g}).radical

theorem PrimeSpectrum.basicOpen_le_basicOpen_iff_algebraMap_isUnit E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] {f g : R} [inst_2 : Algebra R S]
  [IsLocalization.Away f S], PrimeSpectrum.basicOpen f ≤ PrimeSpectrum.basicOpen g ↔ IsUnit ((algebraMap R S) g)

theorem PrimeSpectrum.basicOpen_mul E1 #

∀ {R : Type u} [inst : CommSemiring R] (f g : R),
  PrimeSpectrum.basicOpen (f * g) = PrimeSpectrum.basicOpen f ⊓ PrimeSpectrum.basicOpen g

theorem PrimeSpectrum.basicOpen_mul_le_left E1 #

∀ {R : Type u} [inst : CommSemiring R] (f g : R), PrimeSpectrum.basicOpen (f * g) ≤ PrimeSpectrum.basicOpen f

theorem PrimeSpectrum.basicOpen_mul_le_right E1 #

∀ {R : Type u} [inst : CommSemiring R] (f g : R), PrimeSpectrum.basicOpen (f * g) ≤ PrimeSpectrum.basicOpen g

theorem PrimeSpectrum.basicOpen_pow E0 #

∀ {R : Type u} [inst : CommSemiring R] (f : R) (n : ℕ),
  0 < n → PrimeSpectrum.basicOpen (f ^ n) = PrimeSpectrum.basicOpen f

theorem PrimeSpectrum.le_basicOpen_pow E1 #

∀ {R : Type u} [inst : CommSemiring R] (r : R) (n : ℕ), PrimeSpectrum.basicOpen r ≤ PrimeSpectrum.basicOpen (r ^ n)

theorem PrimeSpectrum.isTopologicalBasis_basic_opens E3 #

∀ {R : Type u} [inst : CommSemiring R],
  TopologicalSpace.IsTopologicalBasis (Set.range fun r ↦ ↑(PrimeSpectrum.basicOpen r))

theorem PrimeSpectrum.isBasis_basic_opens E1 #

∀ {R : Type u} [inst : CommSemiring R], TopologicalSpace.Opens.IsBasis (Set.range PrimeSpectrum.basicOpen)

theorem PrimeSpectrum.basicOpen_eq_bot_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] (f : R), PrimeSpectrum.basicOpen f = ⊥ ↔ IsNilpotent f

theorem PrimeSpectrum.localization_away_comap_range E3 #

∀ {R : Type u} [inst : CommSemiring R] (S : Type v) [inst_1 : CommSemiring S] [inst_2 : Algebra R S] (r : R)
  [IsLocalization.Away r S], Set.range (PrimeSpectrum.comap (algebraMap R S)) = ↑(PrimeSpectrum.basicOpen r)

theorem PrimeSpectrum.localization_away_isOpenEmbedding E1 #

∀ {R : Type u} [inst : CommSemiring R] (S : Type v) [inst_1 : CommSemiring S] [inst_2 : Algebra R S] (r : R)
  [IsLocalization.Away r S], Topology.IsOpenEmbedding (PrimeSpectrum.comap (algebraMap R S))

theorem PrimeSpectrum.isCompact_basicOpen E1 #

∀ {R : Type u} [inst : CommSemiring R] (f : R), IsCompact ↑(PrimeSpectrum.basicOpen f)

theorem PrimeSpectrum.comap_basicOpen E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S) (x : R),
  (TopologicalSpace.Opens.comap { toFun := PrimeSpectrum.comap f, continuous_toFun := ⋯ }) (PrimeSpectrum.basicOpen x) =
    PrimeSpectrum.basicOpen (f x)

theorem PrimeSpectrum.iSup_basicOpen_eq_top_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] {ι : Type u_1} {f : ι → R},
  ⨆ i, PrimeSpectrum.basicOpen (f i) = ⊤ ↔ Ideal.span (Set.range f) = ⊤

theorem PrimeSpectrum.iSup_basicOpen_eq_top_iff' E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set R}, ⨆ i ∈ s, PrimeSpectrum.basicOpen i = ⊤ ↔ Ideal.span s = ⊤

theorem PrimeSpectrum.isLocalization_away_iff_atPrime_of_basicOpen_eq_singleton E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] {f : R}
  {p : PrimeSpectrum R},
  (PrimeSpectrum.basicOpen f).carrier = {p} → (IsLocalization.Away f S ↔ IsLocalization.AtPrime S p.asIdeal)

theorem PrimeSpectrum.range_comap_algebraMap_localization_compl_eq_range_comap_quotientMk E1 #

∀ {R : Type u_1} [inst : CommRing R] (c : R),
  (Set.range (PrimeSpectrum.comap (algebraMap (Polynomial R) (Polynomial (Localization.Away c)))))ᶜ =
    Set.range (PrimeSpectrum.comap (Polynomial.mapRingHom (Ideal.Quotient.mk (Ideal.span {c}))))

instance PrimeSpectrum.instQuasiSeparatedSpace E0 #

∀ {R : Type u} [inst : CommSemiring R], QuasiSeparatedSpace (PrimeSpectrum R)

theorem PrimeSpectrum.comap_evalRingHom_basicOpen E1 #

∀ {ι : Type u_1} {R : ι → Type u_2} [inst : (i : ι) → CommRing (R i)] [inst_1 : DecidableEq ι] (i : ι) (f : R i),
  PrimeSpectrum.comap (Pi.evalRingHom R i) '' ↑(PrimeSpectrum.basicOpen f) = ↑(PrimeSpectrum.basicOpen (Pi.single i f))

theorem PrimeSpectrum.sigmaToPi_mk_basicOpen E1 #

∀ {ι : Type u_1} {R : ι → Type u_2} [inst : (i : ι) → CommRing (R i)] [inst_1 : DecidableEq ι] (i : ι) (f : R i),
  PrimeSpectrum.sigmaToPi R '' Sigma.mk i '' ↑(PrimeSpectrum.basicOpen f) = ↑(PrimeSpectrum.basicOpen (Pi.single i f))

theorem PrimeSpectrum.isOpenEmbedding_sigmaToPi E1 #

∀ {ι : Type u_1} (R : ι → Type u_2) [inst : (i : ι) → CommRing (R i)],
  Topology.IsOpenEmbedding (PrimeSpectrum.sigmaToPi R)

def PrimeSpectrum.sigmaToPiHomeo E1 #

{ι : Type u_3} →
  (R : ι → Type u_4) →
    [inst : (i : ι) → CommRing (R i)] → [Finite ι] → (i : ι) × PrimeSpectrum (R i) ≃ₜ PrimeSpectrum ((i : ι) → R i)

If ι is finite, the disjoint union of the prime spectra of the R i is homeomorphic to the prime spectrum of the product.

theorem PrimeSpectrum.sigmaToPiHomeo_apply E0 #

∀ {ι : Type u_1} {R : ι → Type u_2} [inst : (i : ι) → CommRing (R i)] [inst_1 : Finite ι]
  (p : (i : ι) × PrimeSpectrum (R i)), (PrimeSpectrum.sigmaToPiHomeo R) p = PrimeSpectrum.sigmaToPi R p

theorem PrimeSpectrum.toPiLocalization_surjective_of_discreteTopology E1 #

∀ (R : Type u) [inst : CommSemiring R] [DiscreteTopology (PrimeSpectrum R)],
  Function.Surjective ⇑(PrimeSpectrum.toPiLocalization R)

theorem PrimeSpectrum.maximalSpectrumToPiLocalization_surjective_of_discreteTopology E1 #

∀ (R : Type u) [inst : CommSemiring R] [DiscreteTopology (PrimeSpectrum R)],
  Function.Surjective ⇑(MaximalSpectrum.toPiLocalization R)

def MaximalSpectrum.toPiLocalizationEquiv E1 #

(R : Type u) → [inst : CommSemiring R] → [DiscreteTopology (PrimeSpectrum R)] → R ≃ₐ[R] MaximalSpectrum.PiLocalization R

If the prime spectrum of a commutative semiring R has discrete Zariski topology, then R is canonically isomorphic to the product of its localizations at the (finitely many) maximal ideals.

theorem MaximalSpectrum.toPiLocalizationEquiv_apply E0 #

∀ (R : Type u) [inst : CommSemiring R] [inst_1 : DiscreteTopology (PrimeSpectrum R)] (x : R),
  (MaximalSpectrum.toPiLocalizationEquiv R) x = (algebraMap R (MaximalSpectrum.PiLocalization R)) x

theorem MaximalSpectrum.toPiLocalizationEquiv_apply_apply E0 #

∀ (R : Type u) [inst : CommSemiring R] [inst_1 : DiscreteTopology (PrimeSpectrum R)] (x : R) (I : MaximalSpectrum R),
  (MaximalSpectrum.toPiLocalizationEquiv R) x I = (algebraMap R (Localization.AtPrime I.asIdeal)) x

theorem PrimeSpectrum.discreteTopology_iff_toPiLocalization_surjective E1 #

∀ {R : Type u_1} [inst : CommSemiring R],
  DiscreteTopology (PrimeSpectrum R) ↔ Function.Surjective ⇑(PrimeSpectrum.toPiLocalization R)

theorem PrimeSpectrum.discreteTopology_iff_toPiLocalization_bijective E1 #

∀ {R : Type u_1} [inst : CommSemiring R],
  DiscreteTopology (PrimeSpectrum R) ↔ Function.Bijective ⇑(PrimeSpectrum.toPiLocalization R)

theorem PrimeSpectrum.toPiLocalization_bijective E1 #

∀ {R : Type u} [inst : CommSemiring R] [DiscreteTopology (PrimeSpectrum R)],
  Function.Bijective ⇑(PrimeSpectrum.toPiLocalization R)

def PrimeSpectrum.toPiLocalizationEquiv E1 #

(R : Type u) → [inst : CommSemiring R] → [DiscreteTopology (PrimeSpectrum R)] → R ≃ₐ[R] PrimeSpectrum.PiLocalization R

If the prime spectrum of a commutative semiring R has discrete Zariski topology, then R is canonically isomorphic to the product of its localizations at the (finitely many) prime ideals.

theorem PrimeSpectrum.toPiLocalizationEquiv_apply E0 #

∀ (R : Type u) [inst : CommSemiring R] [inst_1 : DiscreteTopology (PrimeSpectrum R)] (x : R),
  (PrimeSpectrum.toPiLocalizationEquiv R) x = (algebraMap R (PrimeSpectrum.PiLocalization R)) x

theorem PrimeSpectrum.toPiLocalizationEquiv_apply_apply E0 #

∀ (R : Type u) [inst : CommSemiring R] [inst_1 : DiscreteTopology (PrimeSpectrum R)] (x : R) (I : PrimeSpectrum R),
  (PrimeSpectrum.toPiLocalizationEquiv R) x I = (algebraMap R (Localization I.asIdeal.primeCompl)) x

theorem PrimeSpectrum.le_iff_mem_closure E1 #

∀ {R : Type u} [inst : CommSemiring R] (x y : PrimeSpectrum R), x ≤ y ↔ y ∈ closure {x}

theorem PrimeSpectrum.le_iff_specializes E1 #

∀ {R : Type u} [inst : CommSemiring R] (x y : PrimeSpectrum R), x ≤ y ↔ x ⤳ y

def PrimeSpectrum.nhdsOrderEmbedding E1 #

{R : Type u} → [inst : CommSemiring R] → PrimeSpectrum R ↪o Filter (PrimeSpectrum R)

nhds as an order embedding.

theorem PrimeSpectrum.nhdsOrderEmbedding_apply E0 #

∀ {R : Type u} [inst : CommSemiring R] (x : PrimeSpectrum R), PrimeSpectrum.nhdsOrderEmbedding x = nhds x

instance PrimeSpectrum.instT0Space E0 #

∀ {R : Type u} [inst : CommSemiring R], T0Space (PrimeSpectrum R)

instance PrimeSpectrum.instPrespectralSpace E0 #

∀ {R : Type u} [inst : CommSemiring R], PrespectralSpace (PrimeSpectrum R)

instance PrimeSpectrum.instSpectralSpace E3 #

∀ {R : Type u} [inst : CommSemiring R], SpectralSpace (PrimeSpectrum R)

def PrimeSpectrum.localizationMapOfSpecializes E1 #

{R : Type u} →
  [inst : CommSemiring R] →
    {x y : PrimeSpectrum R} → x ⤳ y → Localization.AtPrime y.asIdeal →+* Localization.AtPrime x.asIdeal

If x specializes to y, then there is a natural map from the localization of y to the localization of x.

theorem PrimeSpectrum.isClosed_image_of_stableUnderSpecialization E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S)
  (Z : Set (PrimeSpectrum S)),
  IsClosed Z → StableUnderSpecialization (PrimeSpectrum.comap f '' Z) → IsClosed (PrimeSpectrum.comap f '' Z)

theorem PrimeSpectrum.isClosed_range_of_stableUnderSpecialization E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S),
  StableUnderSpecialization (Set.range (PrimeSpectrum.comap f)) → IsClosed (Set.range (PrimeSpectrum.comap f))

theorem PrimeSpectrum.stableUnderSpecialization_range_iff E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] {f : R →+* S},
  StableUnderSpecialization (Set.range (PrimeSpectrum.comap f)) ↔ IsClosed (Set.range (PrimeSpectrum.comap f))

theorem PrimeSpectrum.stableUnderSpecialization_image_iff E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S)
  (Z : Set (PrimeSpectrum S)),
  IsClosed Z → (StableUnderSpecialization (PrimeSpectrum.comap f '' Z) ↔ IsClosed (PrimeSpectrum.comap f '' Z))

theorem PrimeSpectrum.isQuotientMap_of_specializingMap E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] {f : R →+* S},
  Function.Surjective (PrimeSpectrum.comap f) →
    SpecializingMap (PrimeSpectrum.comap f) → Topology.IsQuotientMap (PrimeSpectrum.comap f)

If f : Spec S → Spec R is specializing and surjective, the topology on Spec R is the quotient topology induced by f.

theorem PrimeSpectrum.isQuotientMap_of_generalizingMap E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] {f : R →+* S},
  Function.Surjective (PrimeSpectrum.comap f) →
    GeneralizingMap (PrimeSpectrum.comap f) → Topology.IsQuotientMap (PrimeSpectrum.comap f)

If f : Spec S → Spec R is generalizing and surjective, the topology on Spec R is the quotient topology induced by f.

theorem PrimeSpectrum.vanishingIdeal_range_comap E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S),
  PrimeSpectrum.vanishingIdeal (Set.range (PrimeSpectrum.comap f)) = (RingHom.ker f).radical

theorem PrimeSpectrum.closure_range_comap E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S),
  closure (Set.range (PrimeSpectrum.comap f)) = PrimeSpectrum.zeroLocus ↑(RingHom.ker f)

theorem PrimeSpectrum.denseRange_comap_iff_ker_le_nilRadical E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S),
  DenseRange (PrimeSpectrum.comap f) ↔ RingHom.ker f ≤ nilradical R

theorem PrimeSpectrum.denseRange_comap_iff_minimalPrimes E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S),
  DenseRange (PrimeSpectrum.comap f) ↔
    ∀ (I : Ideal R) (h : I ∈ minimalPrimes R), { asIdeal := I, isPrime := ⋯ } ∈ Set.range (PrimeSpectrum.comap f)

def PrimeSpectrum.pointsEquivIrreducibleCloseds E1 #

(R : Type u) → [inst : CommSemiring R] → PrimeSpectrum R ≃o (TopologicalSpace.IrreducibleCloseds (PrimeSpectrum R))ᵒᵈ

Zero loci of prime ideals are closed irreducible sets in the Zariski topology and any closed irreducible set is a zero locus of some prime ideal.

def PrimeSpectrum.zeroLocusEquivIrreducibleCloseds E1 #

{R : Type u} →
  [inst : CommSemiring R] →
    (I : Set R) → ↑(PrimeSpectrum.zeroLocus I) ≃o (TopologicalSpace.IrreducibleCloseds ↑(PrimeSpectrum.zeroLocus I))ᵒᵈ

Zero loci of prime ideals are closed irreducible sets in the Zariski topology and any closed irreducible set is a zero locus of some prime ideal.

theorem PrimeSpectrum.stableUnderSpecialization_singleton E1 #

∀ {R : Type u} [inst : CommSemiring R] {x : PrimeSpectrum R}, StableUnderSpecialization {x} ↔ x.asIdeal.IsMaximal

theorem PrimeSpectrum.stableUnderGeneralization_singleton E1 #

∀ {R : Type u} [inst : CommSemiring R] {x : PrimeSpectrum R},
  StableUnderGeneralization {x} ↔ x.asIdeal ∈ minimalPrimes R

theorem PrimeSpectrum.isCompact_isOpen_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  IsCompact s ∧ IsOpen s ↔ ∃ t, (PrimeSpectrum.zeroLocus ↑t)ᶜ = s

theorem PrimeSpectrum.isCompact_isOpen_iff_ideal E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  IsCompact s ∧ IsOpen s ↔ ∃ I, I.FG ∧ (PrimeSpectrum.zeroLocus ↑I)ᶜ = s

theorem PrimeSpectrum.basicOpen_eq_zeroLocus_of_mul_add E1 #

∀ {R : Type u} [inst : CommSemiring R] (e f : R),
  e * f = 0 → e + f = 1 → ↑(PrimeSpectrum.basicOpen e) = PrimeSpectrum.zeroLocus {f}

theorem PrimeSpectrum.zeroLocus_eq_basicOpen_of_mul_add E1 #

∀ {R : Type u} [inst : CommSemiring R] (e f : R),
  e * f = 0 → e + f = 1 → PrimeSpectrum.zeroLocus {e} = ↑(PrimeSpectrum.basicOpen f)

theorem PrimeSpectrum.isClopen_basicOpen_of_mul_add E1 #

∀ {R : Type u} [inst : CommSemiring R] (e f : R), e * f = 0 → e + f = 1 → IsClopen ↑(PrimeSpectrum.basicOpen e)

theorem PrimeSpectrum.basicOpen_injOn_isIdempotentElem E1 #

∀ {R : Type u} [inst : CommSemiring R], Set.InjOn PrimeSpectrum.basicOpen {e | IsIdempotentElem e}

theorem PrimeSpectrum.exists_mul_eq_zero_add_eq_one_basicOpen_eq_of_isClopen E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  IsClopen s → ∃ e f, e * f = 0 ∧ e + f = 1 ∧ s = ↑(PrimeSpectrum.basicOpen e) ∧ sᶜ = ↑(PrimeSpectrum.basicOpen f)

theorem PrimeSpectrum.exists_idempotent_basicOpen_eq_of_isClopen E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  IsClopen s → ∃ e, IsIdempotentElem e ∧ s = ↑(PrimeSpectrum.basicOpen e)

theorem PrimeSpectrum.existsUnique_idempotent_basicOpen_eq_of_isClopen E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  IsClopen s → ∃! e, IsIdempotentElem e ∧ s = ↑(PrimeSpectrum.basicOpen e)

theorem PrimeSpectrum.isClopen_iff_mul_add E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  IsClopen s ↔ ∃ e f, e * f = 0 ∧ e + f = 1 ∧ s = ↑(PrimeSpectrum.basicOpen e)

theorem PrimeSpectrum.isClopen_iff_mul_add_zeroLocus E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  IsClopen s ↔ ∃ e f, e * f = 0 ∧ e + f = 1 ∧ s = PrimeSpectrum.zeroLocus {e}

def PrimeSpectrum.mulZeroAddOneEquivClopens E3 #

{R : Type u} →
  [inst : CommSemiring R] → { e // e.1 * e.2 = 0 ∧ e.1 + e.2 = 1 } ≃o TopologicalSpace.Clopens (PrimeSpectrum R)

Clopen subsets in the prime spectrum of a commutative semiring are in order-preserving bijection with pairs of elements with product 0 and sum 1. (By definition, (e₁, f₁) ≤ (e₂, f₂) iff e₁ * e₂ = e₁.) Both elements in such pairs must be idempotents, but there may exists idempotents that do not form such pairs (does not have a "complement"). For example, in the semiring {0, 0.5, 1} with ⊔ as + and ⊓ as *, 0.5 has no complement.

theorem PrimeSpectrum.isRetrocompact_zeroLocus_compl E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set R}, s.Finite → IsRetrocompact (PrimeSpectrum.zeroLocus s)ᶜ

theorem PrimeSpectrum.isRetrocompact_zeroLocus_compl_of_fg E1 #

∀ {R : Type u} [inst : CommSemiring R] {I : Ideal R}, I.FG → IsRetrocompact (PrimeSpectrum.zeroLocus ↑I)ᶜ

theorem PrimeSpectrum.isRetrocompact_basicOpen E1 #

∀ {R : Type u} [inst : CommSemiring R] {f : R}, IsRetrocompact ↑(PrimeSpectrum.basicOpen f)

theorem PrimeSpectrum.isConstructible_basicOpen E1 #

∀ {R : Type u} [inst : CommSemiring R] {f : R}, Topology.IsConstructible ↑(PrimeSpectrum.basicOpen f)

theorem PrimeSpectrum.isClosedMap_comap_of_isIntegral E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  f.IsIntegral → IsClosedMap (PrimeSpectrum.comap f)

theorem PrimeSpectrum.isClosed_comap_singleton_of_isIntegral E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  f.IsIntegral → ∀ (x : PrimeSpectrum S), IsClosed {x} → IsClosed {PrimeSpectrum.comap f x}

theorem PrimeSpectrum.closure_image_comap_zeroLocus E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) (I : Ideal S),
  closure (PrimeSpectrum.comap f '' PrimeSpectrum.zeroLocus ↑I) = PrimeSpectrum.zeroLocus ↑(Ideal.comap f I)

theorem PrimeSpectrum.isIntegral_of_isClosedMap_comap_mapRingHom E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  IsClosedMap (PrimeSpectrum.comap (Polynomial.mapRingHom f)) → f.IsIntegral

theorem Algebra.IsIntegral.comap_surjective E1 #

∀ (R : Type u_1) (S : Type u_2) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
  [Algebra.IsIntegral R S] [FaithfulSMul R S], Function.Surjective (PrimeSpectrum.comap (algebraMap R S))

theorem RingHom.IsIntegral.comap_surjective E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] {f : R →+* S},
  f.IsIntegral → Function.Injective ⇑f → Function.Surjective (PrimeSpectrum.comap f)

def Ideal.minimalPrimes.equivIrreducibleComponents E3 #

{R : Type u} →
  [inst : CommSemiring R] →
    (I : Ideal R) → ↑I.minimalPrimes ≃o (↑(irreducibleComponents ↑(PrimeSpectrum.zeroLocus ↑I)))ᵒᵈ

Zero loci of minimal prime ideals over I are irreducible components in zeroLocus I and any irreducible component is a zero locus of some minimal prime ideal.

def minimalPrimes.equivIrreducibleComponents E3 #

(R : Type u) → [inst : CommSemiring R] → ↑(minimalPrimes R) ≃o (↑(irreducibleComponents (PrimeSpectrum R)))ᵒᵈ

Zero loci of minimal prime ideals of R are irreducible components in Spec R and any irreducible component is a zero locus of some minimal prime ideal.

theorem PrimeSpectrum.vanishingIdeal_irreducibleComponents E1 #

∀ (R : Type u) [inst : CommSemiring R],
  PrimeSpectrum.vanishingIdeal '' irreducibleComponents (PrimeSpectrum R) = minimalPrimes R

theorem PrimeSpectrum.zeroLocus_minimalPrimes E1 #

∀ (R : Type u) [inst : CommSemiring R],
  PrimeSpectrum.zeroLocus ∘ SetLike.coe '' minimalPrimes R = irreducibleComponents (PrimeSpectrum R)

theorem PrimeSpectrum.vanishingIdeal_mem_minimalPrimes E1 #

∀ {R : Type u} [inst : CommSemiring R] {s : Set (PrimeSpectrum R)},
  PrimeSpectrum.vanishingIdeal s ∈ minimalPrimes R ↔ closure s ∈ irreducibleComponents (PrimeSpectrum R)

theorem PrimeSpectrum.zeroLocus_ideal_mem_irreducibleComponents E1 #

∀ {R : Type u} [inst : CommSemiring R] {I : Ideal R},
  PrimeSpectrum.zeroLocus ↑I ∈ irreducibleComponents (PrimeSpectrum R) ↔ I.radical ∈ minimalPrimes R

def IsLocalRing.closedPoint E3 #

(R : Type u) → [inst : CommSemiring R] → [IsLocalRing R] → PrimeSpectrum R

The closed point in the prime spectrum of a local ring.

instance IsLocalRing.instOrderTopPrimeSpectrum E0 #

(R : Type u) → [inst : CommSemiring R] → [IsLocalRing R] → OrderTop (PrimeSpectrum R)

instance IsLocalRing.instBoundedOrderPrimeSpectrumOfIsDomain E0 #

(R : Type u) → [inst : CommSemiring R] → [IsLocalRing R] → [IsDomain R] → BoundedOrder (PrimeSpectrum R)

theorem IsLocalRing.PrimeSpectrum.asIdeal_top E0 #

∀ (R : Type u) [inst : CommSemiring R] [inst_1 : IsLocalRing R], ⊤.asIdeal = IsLocalRing.maximalIdeal R

theorem IsLocalRing.isLocalHom_iff_comap_closedPoint E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : IsLocalRing R] {S : Type v} [inst_2 : CommSemiring S]
  [inst_3 : IsLocalRing S] (f : R →+* S),
  IsLocalHom f ↔ PrimeSpectrum.comap f (IsLocalRing.closedPoint S) = IsLocalRing.closedPoint R

theorem IsLocalRing.comap_closedPoint E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : IsLocalRing R] {S : Type v} [inst_2 : CommSemiring S]
  [inst_3 : IsLocalRing S] (f : R →+* S) [IsLocalHom f],
  PrimeSpectrum.comap f (IsLocalRing.closedPoint S) = IsLocalRing.closedPoint R

theorem IsLocalRing.specializes_closedPoint E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : IsLocalRing R] (x : PrimeSpectrum R), x ⤳ IsLocalRing.closedPoint R

theorem IsLocalRing.closedPoint_mem_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : IsLocalRing R] (U : TopologicalSpace.Opens (PrimeSpectrum R)),
  IsLocalRing.closedPoint R ∈ U ↔ U = ⊤

theorem IsLocalRing.closed_point_mem_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : IsLocalRing R] {U : TopologicalSpace.Opens (PrimeSpectrum R)},
  IsLocalRing.closedPoint R ∈ U ↔ U = ⊤

theorem IsLocalRing.PrimeSpectrum.comap_residue E0 #

∀ (T : Type u) [inst : CommRing T] [inst_1 : IsLocalRing T] (x : PrimeSpectrum (IsLocalRing.ResidueField T)),
  PrimeSpectrum.comap (IsLocalRing.residue T) x = IsLocalRing.closedPoint T

theorem IsLocalRing.isClosed_singleton_closedPoint E1 #

∀ (R : Type u) [inst : CommSemiring R] [inst_1 : IsLocalRing R], IsClosed {IsLocalRing.closedPoint R}

theorem PrimeSpectrum.topologicalKrullDim_eq_ringKrullDim E1 #

∀ (R : Type u) [inst : CommSemiring R], topologicalKrullDim (PrimeSpectrum R) = ringKrullDim R

theorem PrimeSpectrum.basicOpen_eq_zeroLocus_of_isIdempotentElem E1 #

∀ {R : Type u} [inst : CommRing R] (e : R),
  IsIdempotentElem e → ↑(PrimeSpectrum.basicOpen e) = PrimeSpectrum.zeroLocus {1 - e}

theorem PrimeSpectrum.zeroLocus_eq_basicOpen_of_isIdempotentElem E1 #

∀ {R : Type u} [inst : CommRing R] (e : R),
  IsIdempotentElem e → PrimeSpectrum.zeroLocus {e} = ↑(PrimeSpectrum.basicOpen (1 - e))

theorem PrimeSpectrum.isClopen_iff E0 #

∀ {R : Type u} [inst : CommRing R] {s : Set (PrimeSpectrum R)},
  IsClopen s ↔ ∃ e, IsIdempotentElem e ∧ s = ↑(PrimeSpectrum.basicOpen e)

theorem PrimeSpectrum.isClopen_iff_zeroLocus E1 #

∀ {R : Type u} [inst : CommRing R] {s : Set (PrimeSpectrum R)},
  IsClopen s ↔ ∃ e, IsIdempotentElem e ∧ s = PrimeSpectrum.zeroLocus {e}

def PrimeSpectrum.isIdempotentElemEquivClopens E3 #

{R : Type u} → [inst : CommRing R] → { e // IsIdempotentElem e } ≃o TopologicalSpace.Clopens (PrimeSpectrum R)

Clopen subsets in the prime spectrum of a commutative ring are in 1-1 correspondence with idempotent elements in the ring.

theorem PrimeSpectrum.basicOpen_isIdempotentElemEquivClopens_symm E1 #

∀ {R : Type u} [inst : CommRing R] (s : TopologicalSpace.Clopens (PrimeSpectrum R)),
  PrimeSpectrum.basicOpen ↑(PrimeSpectrum.isIdempotentElemEquivClopens.symm s) = s.toOpens

theorem PrimeSpectrum.coe_isIdempotentElemEquivClopens_apply E0 #

∀ {R : Type u} [inst : CommRing R] (e : { e // IsIdempotentElem e }),
  ↑(PrimeSpectrum.isIdempotentElemEquivClopens e) = ↑(PrimeSpectrum.basicOpen ↑e)

theorem PrimeSpectrum.isIdempotentElemEquivClopens_apply_toOpens E1 #

∀ {R : Type u} [inst : CommRing R] (e : { e // IsIdempotentElem e }),
  (PrimeSpectrum.isIdempotentElemEquivClopens e).toOpens = PrimeSpectrum.basicOpen ↑e

theorem PrimeSpectrum.isIdempotentElemEquivClopens_mul E1 #

∀ {R : Type u} [inst : CommRing R] (e₁ e₂ : ↑{e | IsIdempotentElem e}),
  PrimeSpectrum.isIdempotentElemEquivClopens ⟨↑e₁ * ↑e₂, ⋯⟩ =
    PrimeSpectrum.isIdempotentElemEquivClopens e₁ ⊓ PrimeSpectrum.isIdempotentElemEquivClopens e₂

theorem PrimeSpectrum.isIdempotentElemEquivClopens_one_sub E1 #

∀ {R : Type u} [inst : CommRing R] (e : ↑{e | IsIdempotentElem e}),
  PrimeSpectrum.isIdempotentElemEquivClopens ⟨1 - ↑e, ⋯⟩ = (PrimeSpectrum.isIdempotentElemEquivClopens e)ᶜ

theorem PrimeSpectrum.isIdempotentElemEquivClopens_symm_inf E1 #

∀ {R : Type u} [inst : CommRing R] (s₁ s₂ : TopologicalSpace.Clopens (PrimeSpectrum R)),
  PrimeSpectrum.isIdempotentElemEquivClopens.symm (s₁ ⊓ s₂) =
    ⟨↑(PrimeSpectrum.isIdempotentElemEquivClopens.symm s₁) * ↑(PrimeSpectrum.isIdempotentElemEquivClopens.symm s₂), ⋯⟩

theorem PrimeSpectrum.isIdempotentElemEquivClopens_symm_compl E1 #

∀ {R : Type u} [inst : CommRing R] (s : TopologicalSpace.Clopens (PrimeSpectrum R)),
  PrimeSpectrum.isIdempotentElemEquivClopens.symm sᶜ = ⟨1 - ↑(PrimeSpectrum.isIdempotentElemEquivClopens.symm s), ⋯⟩

theorem PrimeSpectrum.isIdempotentElemEquivClopens_symm_top E1 #

∀ {R : Type u} [inst : CommRing R], PrimeSpectrum.isIdempotentElemEquivClopens.symm ⊤ = ⟨1, ⋯⟩

theorem PrimeSpectrum.isIdempotentElemEquivClopens_symm_bot E1 #

∀ {R : Type u} [inst : CommRing R], PrimeSpectrum.isIdempotentElemEquivClopens.symm ⊥ = ⟨0, ⋯⟩

theorem PrimeSpectrum.isIdempotentElemEquivClopens_symm_sup E1 #

∀ {R : Type u} [inst : CommRing R] (s₁ s₂ : TopologicalSpace.Clopens (PrimeSpectrum R)),
  PrimeSpectrum.isIdempotentElemEquivClopens.symm (s₁ ⊔ s₂) =
    ⟨↑(PrimeSpectrum.isIdempotentElemEquivClopens.symm s₁) + ↑(PrimeSpectrum.isIdempotentElemEquivClopens.symm s₂) -
        ↑(PrimeSpectrum.isIdempotentElemEquivClopens.symm s₁) * ↑(PrimeSpectrum.isIdempotentElemEquivClopens.symm s₂),
      ⋯⟩