The Stacks project, tag 0FLS, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/0FLS
The structure sheaf on the fibre product
Let \(X, Y, S, a, b, p, q, f\) be as in the introduction to Derived Categories of Schemes, Section 36.23. Picture: \[\xymatrix{ & X \times_S Y \ar[ld]^p \ar[rd]_q \ar[dd]^f \\ X \ar[rd]_a & & Y \ar[ld]^b \\ & S }\] Then we have a canonical map \[can : p^{-1}\mathcal{O}_X \otimes_{f^{-1}\mathcal{O}_S} q^{-1}\mathcal{O}_Y \longrightarrow \mathcal{O}_{X \times_S Y}\] which is not an isomorphism in general.
For example, let \(S = \Spec(\mathbf{R})\), \(X = \Spec(\mathbf{C})\), and \(Y = \Spec(\mathbf{C})\). Then \(X \times_S Y = \Spec(\mathbf{C}) \amalg \Spec(\mathbf{C})\) is a discrete space with two points and the sheaves \(p^{-1}\mathcal{O}_X\), \(q^{-1}\mathcal{O}_Y\) and \(f^{-1}\mathcal{O}_S\) are the constant sheaves with values \(\mathbf{C}\), \(\mathbf{C}\), and \(\mathbf{R}\). Hence the source of \(can\) is the constant sheaf with value \(\mathbf{C} \otimes_\mathbf{R} \mathbf{C}\) on the discrete space with two points. Thus its global sections have dimension \(8\) as an \(\mathbf{R}\)-vector space whereas taking global sections of the target of \(can\) we obtain \(\mathbf{C} \times \mathbf{C}\) which has dimension \(4\) as an \(\mathbf{R}\)-vector space.
Another example is the following. Let \(k\) be an algebraically closed field. Consider \(S = \Spec(k)\), \(X = \mathbf{A}^1_k\), and \(Y = \mathbf{A}^1_k\). Then for \(U \subset X \times_S Y = \mathbf{A}^2_k\) nonempty open the images \(p(U) \subset X = \mathbf{A}^1_k\) and \(q(U) \subset \mathbf{A}^1_k\) are open and the reader can show that \[\left( p^{-1}\mathcal{O}_X \otimes_{f^{-1}\mathcal{O}_S} q^{-1}\mathcal{O}_Y \right)(U) = \mathcal{O}_X(p(U)) \otimes_k \mathcal{O}_Y(q(U))\] This is not equal to \(\mathcal{O}_{X \times_S Y}(U)\) if \(U\) is the complement of an irreducible curve \(C\) in \(X \times_S Y = \mathbf{A}^2_k\) such that both \(p|_C\) and \(q|_C\) are nonconstant.
Returning to the general case, let \(z = (x, y, s, \mathfrak p)\) be a point of \(X \times_S Y\) as in Schemes, Lemma 26.17.5. Then on stalks at \(z\) the map \(can\) gives the map \[can_z : \mathcal{O}_{X, x} \otimes_{\mathcal{O}_{S, s}} \mathcal{O}_{Y, y} \longrightarrow \mathcal{O}_{X \times_S Y, z}\] This is a flat ring homomorphism as the target is a localization of the source (details omitted; hint reduce to the case that \(X\), \(Y\), and \(S\) are affine). Observe that the source is in general not a local ring, and this gives another way to see that \(can\) is not an isomorphism in general.
More generally, suppose we have an \(\mathcal{O}_X\)-module \(\mathcal{F}\) and an \(\mathcal{O}_Y\)-module \(\mathcal{G}\). Then there is a canonical map \[\begin{align*} & p^{-1}\mathcal{F} \otimes_{f^{-1}\mathcal{O}_S} q^{-1}\mathcal{G} \\ & = p^{-1}(\mathcal{F} \otimes_{\mathcal{O}_X} \mathcal{O}_X) \otimes_{f^{-1}\mathcal{O}_S} q^{-1}(\mathcal{O}_Y \otimes_{\mathcal{O}_Y} \mathcal{G}) \\ & = p^{-1}\mathcal{F} \otimes_{p^{-1}\mathcal{O}_X} p^{-1}\mathcal{O}_X \otimes_{f^{-1}\mathcal{O}_S} q^{-1}\mathcal{O}_Y \otimes_{q^{-1}\mathcal{O}_Y} q^{-1}\mathcal{G} \\ & \xrightarrow{can} p^{-1}\mathcal{F} \otimes_{q^{-1}\mathcal{O}_X} \mathcal{O}_{X \times_S Y} \otimes_{q^{-1}\mathcal{O}_Y} q^{-1}\mathcal{G} \\ & = p^{-1}\mathcal{F} \otimes_{q^{-1}\mathcal{O}_X} \mathcal{O}_{X \times_S Y} \otimes_{\mathcal{O}_{X \times_S Y}} \mathcal{O}_{X \times_S Y} \otimes_{q^{-1}\mathcal{O}_Y} q^{-1}\mathcal{G} \\ & = p^*\mathcal{F} \otimes_{\mathcal{O}_{X \times_S Y}} q^*\mathcal{G} \end{align*}\] which is rarely an isomorphism.