The Stacks project, tag 01LZ, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/01LZ
Affine n-space
As an application of the relative spectrum we define affine \(n\)-space over a base scheme \(S\) as follows. For any integer \(n \geq 0\) we can consider the quasi-coherent sheaf of \(\mathcal{O}_S\)-algebras \(\mathcal{O}_S[T_1, \ldots, T_n]\). It is quasi-coherent because as a sheaf of \(\mathcal{O}_S\)-modules it is just the direct sum of copies of \(\mathcal{O}_S\) indexed by multi-indices.
Definition 27.5.1 (01M0) official page ↗
Let \(S\) be a scheme and \(n \geq 0\). The scheme \[\mathbf{A}^n_S = \underline{\Spec}_S(\mathcal{O}_S[T_1, \ldots, T_n])\] over \(S\) is called affine \(n\)-space over \(S\). If \(S = \Spec(R)\) is affine then we also call this affine \(n\)-space over \(R\) and we denote it \(\mathbf{A}^n_R\).
Note that \(\mathbf{A}^n_R = \Spec(R[T_1, \ldots, T_n])\). For any morphism \(g : S' \to S\) of schemes we have \(g^*\mathcal{O}_S[T_1, \ldots, T_n] = \mathcal{O}_{S'}[T_1, \ldots, T_n]\) and hence \(\mathbf{A}^n_{S'} = S' \times_S \mathbf{A}^n_S\) is the base change. Therefore an alternative definition of affine \(n\)-space is the formula \[\mathbf{A}^n_S = S \times_{\Spec(\mathbf{Z})} \mathbf{A}^n_{\mathbf{Z}}.\] Also, a morphism from an \(S\)-scheme \(f : X \to S\) to \(\mathbf{A}^n_S\) is given by a homomorphism of \(\mathcal{O}_S\)-algebras \(\mathcal{O}_S[T_1, \ldots, T_n] \to f_*\mathcal{O}_X\). This is clearly the same thing as giving the images of the \(T_i\). In other words, a morphism from \(X\) to \(\mathbf{A}^n_S\) over \(S\) is the same as giving \(n\) elements \(h_1, \ldots, h_n \in \Gamma(X, \mathcal{O}_X)\).