Documentation

Mathlib.RingTheory.Spectrum.Prime.Topology

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 #

Main results #

In the prime spectrum of a commutative semiring:

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.

Equations

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

    Equations
      Instances For

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

        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.

        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.

        @[deprecated "RingHom.specComap and PrimeSpectrum.comap were unified,so this lemma is now a no-op." (since := "2025-12-10")]
        theorem PrimeSpectrum.comap_apply {R : Type u} {S : Type v} [CommSemiring R] [CommSemiring S] (f : R โ†’+* S) (x : PrimeSpectrum S) :
        comap f x = comap f x
        @[deprecated PrimeSpectrum.localization_comap_injective (since := "2025-12-10")]

        Alias of PrimeSpectrum.localization_comap_injective.

        @[deprecated PrimeSpectrum.localization_comap_range (since := "2025-12-10")]

        Alias of PrimeSpectrum.localization_comap_range.

        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.

        Homeomorphism between prime spectra induced by an isomorphism of semirings.

        Equations
          Instances For

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

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

            Equations
              Instances For

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

                Equations
                  Instances For
                    @[simp]
                    theorem PrimeSpectrum.basicOpen_pow {R : Type u} [CommSemiring R] (f : R) (n : โ„•) (hn : 0 < n) :
                    theorem PrimeSpectrum.eq_biUnion_of_isOpen {R : Type u} [CommSemiring R] {s : Set (PrimeSpectrum R)} (hs : IsOpen s) :
                    s = โ‹ƒ (r : R), โ‹ƒ (_ : โ†‘(basicOpen r) โІ s), โ†‘(basicOpen r)
                    theorem PrimeSpectrum.comap_basicOpen {R : Type u} {S : Type v} [CommSemiring R] [CommSemiring S] (f : R โ†’+* S) (x : R) :
                    (TopologicalSpace.Opens.comap { toFun := comap f, continuous_toFun := โ‹ฏ }) (basicOpen x) = basicOpen (f x)
                    theorem PrimeSpectrum.iSup_basicOpen_eq_top_iff {R : Type u} [CommSemiring R] {ฮน : Type u_1} {f : ฮน โ†’ R} :
                    โจ† (i : ฮน), basicOpen (f i) = โŠค โ†” Ideal.span (Set.range f) = โŠค

                    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.

                    Equations
                      Instances For

                        The specialization order #

                        We endow PrimeSpectrum R with a partial order, where x โ‰ค y if and only if y โˆˆ closure {x}.

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

                        Equations
                          Instances For

                            If f : Spec S โ†’ Spec R is specializing and surjective, the topology on Spec R is the quotient topology induced by 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.denseRange_comap_iff_minimalPrimes {R : Type u_1} {S : Type u_2} [CommSemiring R] [CommSemiring S] (f : R โ†’+* S) :
                            DenseRange (comap f) โ†” โˆ€ (I : Ideal R) (h : I โˆˆ minimalPrimes R), { asIdeal := I, isPrime := โ‹ฏ } โˆˆ Set.range (comap f)

                            Stacks Tag 00FL

                            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.

                            Equations
                              Instances For

                                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.

                                Equations
                                  Instances For
                                    theorem PrimeSpectrum.basicOpen_eq_zeroLocus_of_mul_add {R : Type u} [CommSemiring R] (e f : R) (mul : e * f = 0) (add : e + f = 1) :
                                    โ†‘(basicOpen e) = zeroLocus {f}
                                    theorem PrimeSpectrum.zeroLocus_eq_basicOpen_of_mul_add {R : Type u} [CommSemiring R] (e f : R) (mul : e * f = 0) (add : e + f = 1) :
                                    zeroLocus {e} = โ†‘(basicOpen f)
                                    theorem PrimeSpectrum.isClopen_basicOpen_of_mul_add {R : Type u} [CommSemiring R] (e f : R) (mul : e * f = 0) (add : e + f = 1) :
                                    IsClopen โ†‘(basicOpen e)
                                    theorem PrimeSpectrum.isClopen_iff_mul_add {R : Type u} [CommSemiring R] {s : Set (PrimeSpectrum R)} :
                                    IsClopen s โ†” โˆƒ (e : R) (f : R), e * f = 0 โˆง e + f = 1 โˆง s = โ†‘(basicOpen e)

                                    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.

                                    Equations
                                      Instances For
                                        @[deprecated RingHom.IsIntegral.comap_surjective (since := "2025-12-10")]

                                        Alias of RingHom.IsIntegral.comap_surjective.

                                        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.

                                        Equations
                                          Instances For

                                            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.

                                            Equations
                                              Instances For

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

                                                Equations
                                                  Instances For

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

                                                    Equations
                                                      Instances For
                                                        theorem PrimeSpectrum.isIdempotentElemEquivClopens_mul {R : Type u} [CommRing R] (eโ‚ eโ‚‚ : โ†‘{e : R | IsIdempotentElem e}) :
                                                        isIdempotentElemEquivClopens โŸจโ†‘eโ‚ * โ†‘eโ‚‚, โ‹ฏโŸฉ = isIdempotentElemEquivClopens eโ‚ โŠ“ isIdempotentElemEquivClopens eโ‚‚