
In algebra, a prime ideal is a subset of a ring that shares many important properties of a prime number in the ring of integers. The prime ideals for the integers are the sets that contain all the multiples of a given prime number, together with the zero ideal.
Primitive ideals are prime, and prime ideals are both primary and semiprime.
An ideal P of a commutative ring R is prime if it has the following two properties:
This generalizes the following property of prime numbers, known as Euclid's lemma: if p is a prime number and if p divides a product ab of two integers, then p divides a or p divides b. We can therefore say
The set of prime ideals of a commutative ring R is known as its (prime) spectrum and is denoted . Depending on context, this terminology and notation are also used to refer to the set of prime ideals equipped with additional structures, a topology and a sheaf of rings, that make it a geometric object known as an affine scheme.
An equivalent and potentially easier to understand definition is as follows.
Let R be commutative ring. A proper ideal I of R is prime if it has the following property:
This property is mathematically equivalent to the standard definition used above as it was derived using the contrapositive.
The introduction of prime ideals in algebraic number theory was a major step forward: it was realized that the important property of unique factorisation expressed in the fundamental theorem of arithmetic does not hold in every ring of algebraic integers, but a substitute was found when Richard Dedekind replaced elements by ideals and prime elements by prime ideals; see Dedekind domain.
Prime ideals play an important role in classical algebraic geometry, where affine algebraic sets are defined as the zero sets of ideals in polynomial rings. If the ideal of polynomials corresponding to an algebraic set is prime, then the algebraic set is an (irreducible) affine variety, meaning that it is not the union of two smaller algebraic sets. In the modern abstract approach to algebraic geometry, prime ideals are particularly important: by starting with an arbitrary commutative ring and endowing its set of prime ideals (its prime spectrum, ) with additional structures: (1) a topology (the Zariski topology) and (2) a sheaf of rings for each of the open sets under this topology (its structure sheaf), one can construct a (locally) ringed space known as an affine scheme. Patching together compatible affine schemes then gives rise to a generalization of an algebraic variety, known as a scheme. By expanding its scope beyond the traditional setting of polynomial rings over algebraically closed fields, the theory of schemes has vastly extended the reach of algebraic geometry, most notably allowing its tools to be applied to the study of algebraic number theory and Diophantine equations (an area known as arithmetic geometry).
Consider a commutative ring and its spectrum From this modern geometric perspective, a prime ideal is simultaneously considered to be a point in the spectrum (i.e., ) and a subset of the ring (i.e., ). To avoid confusion (for 'psychological reasons', as one well-known textbook puts it), distinct symbols like and are often used to represent a prime ideal in these dual roles, even though they are, logically speaking, the same entity. In fact, much like a "function" on the space a ring element can be evaluated at a prime ideal being assigned the value in the field of fractions of As a result,
The notion of a prime ideal can be generalized to noncommutative rings by using the commutative definition "ideal-wise". Wolfgang Krull advanced this idea in 1928. The following content can be found in texts such as Goodearl's and Lam's. If R is a (possibly noncommutative) ring and P is a proper ideal of R, we say that P is prime if for any two ideals A and B of R:
It can be shown that this definition is equivalent to the commutative one in commutative rings. It is readily verified that if an ideal of a noncommutative ring R satisfies the commutative definition of prime, then it also satisfies the noncommutative version. An ideal P satisfying the commutative definition of prime is sometimes called a completely prime ideal to distinguish it from other merely prime ideals in the ring. Completely prime ideals are prime ideals, but the converse is not true. For example, the zero ideal in the ring of n × n matrices over a field is a prime ideal, but it is not completely prime.
This is close to the historical point of view of ideals as ideal numbers, as for the ring "A is contained in P" is another way of saying "P divides A", and the unit ideal R represents unity.
Equivalent formulations of the ideal P ≠ R being prime include the following properties:
Prime ideals in commutative rings are characterized by having multiplicatively closed complements in R, and with slight modification, a similar characterization can be formulated for prime ideals in noncommutative rings. A nonempty subset S ⊆ R is called an m-system if for any a and b in S, there exists r in R such that arb is in S. The following item can then be added to the list of equivalent conditions above:
Prime ideals can frequently be produced as maximal elements of certain collections of ideals. For example: