The category of affine schemes has affine schemes as objects and morphisms of schemes as arrows. The contravariant functor gives an equivalence
with the opposite of the category of commutative rings. Precisely, every ring homomorphism corresponds to a unique map , and every morphism of schemes between affine schemes arises this way.[ref]
For example, , , induces the squaring map of affine lines. A map from to instead corresponds to a -algebra map , expressing a rational point. A Cartesian product of affine -schemes corresponds to a tensor product of commutative algebras: . Reversing arrows explains why geometric products become algebraic coproducts.
The category of commutative rings, often written , has commutative rings with identity as objects and identity-preserving ring homomorphisms as morphisms. Composition and identity morphisms are the usual composition and identity maps. Including the zero ring makes it a terminal object; the integers form an initial object because a unique ring homomorphism sends to .
For example, a ring homomorphism is completely determined by the image of , which can be any element of . In algebraic geometry, applying the spectrum of a ring reverses arrows: a ring homomorphism induces . Thus the category of affine schemes is equivalent to the opposite of the category of commutative rings.[ref]
A quotient object of an object of a category is represented by an epimorphism . Two such arrows represent the same quotient if an isomorphism satisfies . A quotient is therefore an arrow out of , considered up to this equivalence, rather than an arbitrary smaller-looking object.
In the Category of sets, this recovers surjective maps and quotient sets by equivalence relations. In the category of groups, quotient groups arise from normal subgroups. Quotients can be ordered by factorization: means that identifies at least as much as .
General epimorphisms need not be surjective maps of underlying sets. In the category of commutative rings, is an epimorphism: two unital ring maps out of agreeing on agree on inverses and hence on every rational. Some uses therefore restrict quotient objects to regular epimorphisms, namely arrows realized as coequalizers; the intended convention should be stated.