The set Spec(R) of prime ideals of a commutative ring, naturally equipped with the Zariski topology.
Let R be a commutative ring. A prime ideal of R is a proper ideal p⊊R such that whenever ab∈p (with a,b∈R), then a∈p or b∈p.
The prime spectrum of R is the set
Spec(R):={p⊂R∣p is a prime ideal}.
An element p∈Spec(R) is called a point of Spec(R).
In commutative algebra one usually studies Spec(R) together with the Zariski topology; this turns Spec(R) into a topological space whose basic opens are closely related to localizations. For a point p∈Spec(R), the associated local data are the localization Rp and its residue field κ(p).
Examples
A field has a one-point spectrum. If k is a field, the only prime ideal is (0), so Spec(k)={(0)}.
The spectrum of the integers. In R=Z, the prime ideals are (0) and (p) for primes p. Thus
Spec(Z)={(0)}∪{(p)∣pprime}.
Under the Zariski topology, the point (0) is a generic point whose closure is all of Spec(Z).
The spectrum of a polynomial ring in one variable. Let k be a field and R=k[x]. Then (0) is prime, and every nonzero prime ideal is generated by an irreducible polynomial. So
Spec(k[x])={(0)}∪{(f)∣f∈k[x]irreducible}.
If k is algebraically closed, the maximal ideals are precisely (x−a), and MaxSpec(k[x]) can be identified with the affine line over k.
A commutative ring is a ringR such that ab=ba for all a,b∈R.
The Zariski topology on Spec(R) is the topology for which the sets V(I) are precisely the closed subsets, i.e. a subset Z⊆Spec(R) is closed if and only if Z=V(I) for some ideal I.
As a set, S−1R can be constructed from pairs (r,s)∈R×S modulo the equivalence relation
(r,s)∼(r′,s′)⟺∃t∈S such that t(rs′−r′s)=0 in R.
Write the class of (r,s) as sr. Addition and multiplication are defined by
sr+s′r′=ss′rs′+r′s,sr⋅s′r′=ss′rr′.
The canonical map is ι(r)=1r.
If 0∈S, then ι(0) is invertible, hence 1=0 in S−1R; in this case S−1R is the zero ring.
Universal property
The localization is characterized by the following universal mapping property:
If A is any commutative ring and φ:R→A is a ring homomorphism such that φ(s) is a unit of A for every s∈S, then there exists a unique ring homomorphism φ:S−1R→A with φ∘ι=φ. Explicitly,
Let R be a commutative ring. A maximal ideal of R is a proper ideal m⊊R such that there is no ideal strictly between m and R; equivalently, R/m is a field.
The maximal spectrum of R is the set
MaxSpec(R):={m⊂R∣m is a maximal ideal}.
There is always an inclusion MaxSpec(R)⊆Spec(R) (see prime spectrum), since every maximal ideal is prime. One typically topologizes MaxSpec(R) by the subspace topology induced from the Zariski topology on \operatorname{Spec}(R). Concretely, for an ideal I⊆R the corresponding closed subset of MaxSpec(R) is
V(I)∩MaxSpec(R)={m∈MaxSpec(R)∣I⊆m}.
A point m∈MaxSpec(R) has residue field R/m, which agrees with the residue field at m.
The integers. For R=Z, the maximal ideals are exactly (p) for primes p. Thus
MaxSpec(Z)={(p)∣pprime},
which is Spec(Z) with the generic point (0) removed.
Polynomial rings over an algebraically closed field. If k is algebraically closed and R=k[x1,…,xn], then the Nullstellensatz identifies maximal ideals with points a=(a1,…,an)∈kn via
a⟷(x1−a1,…,xn−an).
In this sense, MaxSpec(k[x1,…,xn]) recovers affine n-space over k as a set, and its induced topology is the classical Zariski topology on kn.