# Zariski topology

In algebraic geometry and commutative algebra, the **Zariski topology** is a topology which is primarily defined by its closed sets. It is very different from topologies which are commonly used in the real or complex analysis; in particular, it is not Hausdorff.^{[1]} This topology was introduced primarily by Oscar Zariski and later generalized for making the set of prime ideals of a commutative ring a topological space, called the spectrum of the ring.

The Zariski topology allows tools from topology to be used to study algebraic varieties, even when the underlying field is not a topological field. This is one of the basic ideas of scheme theory, which allows one to build general algebraic varieties by gluing together affine varieties in a way similar to that in manifold theory, where manifolds are built by gluing together charts, which are open subsets of real affine spaces.

The Zariski topology of an algebraic variety is the topology whose closed sets are the algebraic subsets of the variety.^{[1]} In the case of an algebraic variety over the complex numbers, the Zariski topology is thus coarser than the usual topology, as every algebraic set is closed for the usual topology.

The generalization of the Zariski topology to the set of prime ideals of a commutative ring follows from Hilbert's Nullstellensatz, that establishes a bijective correspondence between the points of an affine variety defined over an algebraically closed field and the maximal ideals of the ring of its regular functions. This suggests defining the Zariski topology on the set of the maximal ideals of a commutative ring as the topology such that a set of maximal ideals is closed if and only if it is the set of all maximal ideals that contain a given ideal. Another basic idea of Grothendieck's scheme theory is to consider as *points*, not only the usual points corresponding to maximal ideals, but also all (irreducible) algebraic varieties, which correspond to prime ideals. Thus the **Zariski topology** on the set of prime ideals (spectrum) of a commutative ring is the topology such that a set of prime ideals is closed if and only if it is the set of all prime ideals that contain a fixed ideal.

In classical algebraic geometry (that is, the part of algebraic geometry in which one does not use schemes, which were introduced by Grothendieck around 1960), the Zariski topology is defined on algebraic varieties.^{[2]} The Zariski topology, defined on the points of the variety, is the topology such that the closed sets are the algebraic subsets of the variety. As the most elementary algebraic varieties are affine and projective varieties, it is useful to make this definition more explicit in both cases. We assume that we are working over a fixed, algebraically closed field *k* (in classical geometry *k* is almost always the complex numbers).

where *S* is any set of polynomials in *n* variables over *k*. It is a straightforward verification to show that:

(these notations are not standard) is equal to the intersection with *X* of *V(S)*.

This establishes that the above equation, clearly a generalization of the previous one, defines the Zariski topology on any affine variety.

The projective Zariski topology is defined for projective algebraic sets just as the affine one is defined for affine algebraic sets, by taking the subspace topology. Similarly, it may be shown that this topology is defined intrinsically by sets of elements of the projective coordinate ring, by the same formula as above.

A very useful fact about these topologies is that we may exhibit a basis for them consisting of particularly simple elements, namely the *D*(*f*) for individual polynomials (or for projective varieties, homogeneous polynomials) *f*. Indeed, that these form a basis follows from the formula for the intersection of two Zariski-closed sets given above (apply it repeatedly to the principal ideals generated by the generators of (*S*)). These are called *distinguished* or *basic* open sets.

By Hilbert's basis theorem and some elementary properties of Noetherian rings, every affine or projective coordinate ring is Noetherian. As a consequence, affine or projective spaces with the Zariski topology are Noetherian topological spaces, which implies that any closed subset of these spaces is compact.

However, except for finite algebraic sets, no algebraic set is ever a Hausdorff space. In the old topological literature "compact" was taken to include the Hausdorff property, and this convention is still honored in algebraic geometry; therefore compactness in the modern sense is called "quasicompactness" in algebraic geometry. However, since every point (*a _{1}*, ...,

*a*) is the zero set of the polynomials

_{n}*x*-

_{1}*a*, ...,

_{1}*x*-

_{n}*a*, points are closed and so every variety satisfies the

_{n}*T*axiom.

_{1}In modern algebraic geometry, an algebraic variety is often represented by its associated scheme, which is a topological space (equipped with additional structures) that is locally homeomorphic to the spectrum of a ring.^{[3]} The *spectrum of a commutative ring* *A*, denoted Spec(*A*), is the set of the prime ideals of *A*, equipped with the **Zariski topology**, for which the closed sets are the sets

To see the connection with the classical picture, note that for any set *S* of polynomials (over an algebraically closed field), it follows from Hilbert's Nullstellensatz that the points of *V*(*S*) (in the old sense) are exactly the tuples (*a _{1}*, ...,

*a*) such that the ideal generated by the polynomials

_{n}*x*-

_{1}*a*, ...,

_{1}*x*-

_{n}*a*contains

_{n}*S*; moreover, these are maximal ideals and by the "weak" Nullstellensatz, an ideal of any affine coordinate ring is maximal if and only if it is of this form. Thus,

*V*(

*S*) is "the same as" the maximal ideals containing

*S*. Grothendieck's innovation in defining Spec was to replace maximal ideals with all prime ideals; in this formulation it is natural to simply generalize this observation to the definition of a closed set in the spectrum of a ring.

Another way, perhaps more similar to the original, to interpret the modern definition is to realize that the elements of *A* can actually be thought of as functions on the prime ideals of *A*; namely, as functions on Spec *A*. Simply, any prime ideal *P* has a corresponding residue field, which is the field of fractions of the quotient *A*/*P*, and any element of *A* has a reflection in this residue field. Furthermore, the elements that are actually in *P* are precisely those whose reflection vanishes at *P*. So if we think of the map, associated to any element *a* of *A*:

("evaluation of *a*"), which assigns to each point its reflection in the residue field there, as a function on Spec *A* (whose values, admittedly, lie in different fields at different points), then we have

More generally, *V*(*I*) for any ideal *I* is the common set on which all the "functions" in *I* vanish, which is formally similar to the classical definition. In fact, they agree in the sense that when *A* is the ring of polynomials over some algebraically closed field *k*, the maximal ideals of *A* are (as discussed in the previous paragraph) identified with *n*-tuples of elements of *k*, their residue fields are just *k*, and the "evaluation" maps are actually evaluation of polynomials at the corresponding *n*-tuples. Since as shown above, the classical definition is essentially the modern definition with only maximal ideals considered, this shows that the interpretation of the modern definition as "zero sets of functions" agrees with the classical definition where they both make sense.

Just as Spec replaces affine varieties, the Proj construction replaces projective varieties in modern algebraic geometry. Just as in the classical case, to move from the affine to the projective definition we need only replace "ideal" by "homogeneous ideal", though there is a complication involving the "irrelevant maximal ideal," which is discussed in the cited article.

The most dramatic change in the topology from the classical picture to the new is that points are no longer necessarily closed; by expanding the definition, Grothendieck introduced generic points, which are the points with maximal closure, that is the minimal prime ideals. The closed points correspond to maximal ideals of *A*. However, the spectrum and projective spectrum are still *T _{0}* spaces: given two points

*P*,

*Q*, which are prime ideals of

*A*, at least one of them, say

*P*, does not contain the other. Then

*D*(

*Q*) contains

*P*but, of course, not

*Q*.

Just as in classical algebraic geometry, any spectrum or projective spectrum is (quasi)compact, and if the ring in question is Noetherian then the space is a Noetherian space. However, these facts are counterintuitive: we do not normally expect open sets, other than connected components, to be compact, and for affine varieties (for example, Euclidean space) we do not even expect the space itself to be compact. This is one instance of the geometric unsuitability of the Zariski topology. Grothendieck solved this problem by defining the notion of properness of a scheme (actually, of a morphism of schemes), which recovers the intuitive idea of compactness: Proj is proper, but Spec is not.