Suggested expansion of tag 01KI
Lemma 26.21.1 (01KI): the tag on this site · official page ↗
The text in the AI-integrated edition
Lemma
The diagonal morphism of a morphism between affines is closed.
Proof. The diagonal morphism associated to the morphism \(\Spec(S) \to \Spec(R)\) is the morphism on spectra corresponding to the ring map \(S \otimes_R S \to S\), \(a \otimes b \mapsto ab\). This map is clearly surjective, so \(S \cong S \otimes_R S/J\) for some ideal \(J \subset S \otimes_R S\). Hence \(\Delta\) is a closed immersion according to Example 26.8.1.
Against the Stacks text (with the corrections)
--- Stacks (corrected)
+++ AI-integrated edition
@@ -0,0 +1,58 @@
+\label{lemma-diagonal-identities}
+\begin{reference}
+\cite[(5.3.1), Propositions 5.3.2 and 5.3.15, and Corollaries 5.3.4 and
+5.3.12]{EGA1}
+\end{reference}
+Let $X$, $Y$, and $T$ be schemes over $S$.
+\begin{enumerate}
+\item If $f : T \to X$ and $g : T \to Y$ are morphisms over $S$, then
+$$
+(f, g) = (f \times_S g) \circ \Delta_{T/S}.
+$$
+\item Via the canonical isomorphism
+$$
+(X \times_S Y) \times_S (X \times_S Y) \cong
+(X \times_S X) \times_S (Y \times_S Y),
+$$
+we have
+$$
+\Delta_{X \times_S Y/S} = \Delta_{X/S} \times_S \Delta_{Y/S}.
+$$
+\item If $S' \to S$ is a morphism, then the base change of
+$\Delta_{X/S}$ to $S'$ is $\Delta_{X_{S'}/S'}$ via the canonical
+isomorphism
+$$
+(X \times_S X)_{S'} \cong X_{S'} \times_{S'} X_{S'}.
+$$
+\item If $f : X \to Y$ is a morphism over $S$ and $S' \to S$ is a
+morphism, then via the canonical isomorphism
+$$
+(X \times_S Y)_{S'} \cong X_{S'} \times_{S'} Y_{S'},
+$$
+the base change of the graph morphism
+$$
+\Gamma_f = (\text{id}_X, f) : X \longrightarrow X \times_S Y
+$$
+is the graph morphism
+$$
+\Gamma_{f_{S'}} = (\text{id}_{X_{S'}}, f_{S'}) :
+X_{S'} \longrightarrow X_{S'} \times_{S'} Y_{S'}.
+$$
+\item If $f : X \to Y$ is a morphism over $S$, then
+$$
+(f \times_S f) \circ \Delta_{X/S} = \Delta_{Y/S} \circ f.
+$$
+\end{enumerate}
+\end{lemma}
+
+\begin{proof}
+All five assertions follow from the universal property of fibre products.
+For (1), the two composites with the projections to $X$ and $Y$ are $f$ and
+$g$. For (2), the four composites with the projections to $X$, $X$, $Y$,
+and $Y$ agree. For (3), both composites with the projections to $X_{S'}$
+are the identity. For (4), the two composites with the projections to
+$X_{S'}$ and $Y_{S'}$ are $\text{id}_{X_{S'}}$ and $f_{S'}$. For (5),
+composing either side with either projection to $Y$ gives $f$.
+\end{proof}
+
+\begin{lemma}
From the AI-integrated Stacks edition (KokunoYumeto/unofficial-stacks-project-ai-drafts, commit 80b6208b). Corrections found by OpenAI Codex, GPT-5.6 Sol at effort Ultra, while translating the Stacks project into Chinese, Japanese, Korean and French, and integrated by GPT-6 Astra at effort Ultra; additions written mostly by GPT-6 Astra at effort Ultra, some by GPT-5.6 Sol at effort Ultra and checked by GPT-6 Astra, as that repository states. Shown here by the Stacks project reader (AI-produced by Claude Opus 5.5, Anthropic, at effort max).