Stacks project reader · Cohomology on Sites · Search · Suggestions (AI)

The Stacks project, tag 08J7, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/08J7

Internal hom in the derived category

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(L, M\) be objects of \(D(\mathcal{O})\). We would like to construct an object \(R\SheafHom(L, M)\) of \(D(\mathcal{O})\) such that for every third object \(K\) of \(D(\mathcal{O})\) there exists a canonical bijection \[\begin{equation} \Hom_{D(\mathcal{O})}(K, R\SheafHom(L, M)) = \Hom_{D(\mathcal{O})}(K \otimes_\mathcal{O}^\mathbf{L} L, M) \end{equation}\] Observe that this formula defines \(R\SheafHom(L, M)\) up to unique isomorphism by the Yoneda lemma (Categories, Lemma 4.3.5).

To construct such an object, choose a K-injective complex of \(\mathcal{O}\)-modules \(\mathcal{I}^\bullet\) representing \(M\) and any complex of \(\mathcal{O}\)-modules \(\mathcal{L}^\bullet\) representing \(L\). Then we set \[R\SheafHom(L, M) = \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet)\] where the right hand side is the complex of \(\mathcal{O}\)-modules constructed in Section 21.34. This is well defined by Lemma 21.34.7. We get a functor \[D(\mathcal{O})^{opp} \times D(\mathcal{O}) \longrightarrow D(\mathcal{O}), \quad (K, L) \longmapsto R\SheafHom(K, L)\] As a prelude to proving (21.35.0.1) we compute the cohomology groups of \(R\SheafHom(K, L)\).

Lemma 21.35.1 (08JA) official page ↗

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(L, M\) be objects of \(D(\mathcal{O})\). For every object \(U\) of \(\mathcal{C}\) we have \[H^0(U, R\SheafHom(L, M)) = \Hom_{D(\mathcal{O}_U)}(L|_U, M|_U)\] and we have \(H^0(\mathcal{C}, R\SheafHom(L, M)) = \Hom_{D(\mathcal{O})}(L, M)\).

Proof. Choose a K-injective complex \(\mathcal{I}^\bullet\) of \(\mathcal{O}\)-modules representing \(M\) and a K-flat complex \(\mathcal{L}^\bullet\) representing \(L\). Then \(\SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet)\) is K-injective by Lemma 21.34.8. Hence we can compute cohomology over \(U\) by simply taking sections over \(U\) and the result follows from Lemma 21.34.6.

Lemma 21.35.2 (08J9) official page ↗

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(K, L, M\) be objects of \(D(\mathcal{O})\). With the construction as described above there is a canonical isomorphism \[R\SheafHom(K, R\SheafHom(L, M)) = R\SheafHom(K \otimes_\mathcal{O}^\mathbf{L} L, M)\] in \(D(\mathcal{O})\) functorial in \(K, L, M\) which recovers (21.35.0.1) on taking \(H^0(\mathcal{C}, -)\).

Proof. Choose a K-injective complex \(\mathcal{I}^\bullet\) representing \(M\) and a K-flat complex of \(\mathcal{O}\)-modules \(\mathcal{L}^\bullet\) representing \(L\). For any complex of \(\mathcal{O}\)-modules \(\mathcal{K}^\bullet\) we have \[\SheafHom^\bullet(\mathcal{K}^\bullet, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet)) = \SheafHom^\bullet( \text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet), \mathcal{I}^\bullet)\] by Lemma 21.34.1. Note that the left hand side represents \(R\SheafHom(K, R\SheafHom(L, M))\) (use Lemma 21.34.8) and that the right hand side represents \(R\SheafHom(K \otimes_\mathcal{O}^\mathbf{L} L, M)\). This proves the displayed formula of the lemma. Taking global sections and using Lemma 21.35.1 we obtain (21.35.0.1).

Lemma 21.35.3 (08JB) official page ↗

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(K, L\) be objects of \(D(\mathcal{O})\). The construction of \(R\SheafHom(K, L)\) commutes with restrictions, i.e., for every object \(U\) of \(\mathcal{C}\) we have \(R\SheafHom(K|_U, L|_U) = R\SheafHom(K, L)|_U\).

Proof. This is clear from the construction and Lemma 21.20.1.

Lemma 21.35.4 (08JC) official page ↗

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. The bifunctor \(R\SheafHom(- , -)\) transforms distinguished triangles into distinguished triangles in both variables.

Proof. This follows from the observation that the assignment \[(\mathcal{L}^\bullet, \mathcal{M}^\bullet) \longmapsto \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{M}^\bullet)\] transforms a termwise split short exact sequences of complexes in either variable into a termwise split short exact sequence. Details omitted.

Lemma 21.35.5 (0A97) official page ↗

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(K, L, M\) be objects of \(D(\mathcal{O})\). There is a canonical morphism \[R\SheafHom(L, M) \otimes_\mathcal{O}^\mathbf{L} K \longrightarrow R\SheafHom(R\SheafHom(K, L), M)\] in \(D(\mathcal{O})\) functorial in \(K, L, M\).

Proof. Choose a K-injective complex \(\mathcal{I}^\bullet\) representing \(M\), a K-injective complex \(\mathcal{J}^\bullet\) representing \(L\), and a K-flat complex \(\mathcal{K}^\bullet\) representing \(K\). The map is defined using the map \[\text{Tot}(\SheafHom^\bullet(\mathcal{J}^\bullet, \mathcal{I}^\bullet) \otimes_\mathcal{O} \mathcal{K}^\bullet) \longrightarrow \SheafHom^\bullet(\SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{J}^\bullet), \mathcal{I}^\bullet)\] of Lemma 21.34.5. By our particular choice of complexes the left hand side represents \(R\SheafHom(L, M) \otimes_\mathcal{O}^\mathbf{L} K\) and the right hand side represents \(R\SheafHom(R\SheafHom(K, L), M)\). We omit the proof that this is functorial in all three objects of \(D(\mathcal{O})\).

Lemma 21.35.6 (0A98) official page ↗

Slogan: Composition on RSheafHom.

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Given \(K, L, M\) in \(D(\mathcal{O})\) there is a canonical morphism \[R\SheafHom(L, M) \otimes_\mathcal{O}^\mathbf{L} R\SheafHom(K, L) \longrightarrow R\SheafHom(K, M)\] in \(D(\mathcal{O})\).

Proof. Choose a K-injective complex \(\mathcal{I}^\bullet\) representing \(M\), a K-injective complex \(\mathcal{J}^\bullet\) representing \(L\), and any complex of \(\mathcal{O}\)-modules \(\mathcal{K}^\bullet\) representing \(K\). By Lemma 21.34.2 there is a map of complexes \[\text{Tot}\left( \SheafHom^\bullet(\mathcal{J}^\bullet, \mathcal{I}^\bullet) \otimes_\mathcal{O} \SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{J}^\bullet) \right) \longrightarrow \SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{I}^\bullet)\] The complexes of \(\mathcal{O}\)-modules \(\SheafHom^\bullet(\mathcal{J}^\bullet, \mathcal{I}^\bullet)\), \(\SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{J}^\bullet)\), and \(\SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{I}^\bullet)\) represent \(R\SheafHom(L, M)\), \(R\SheafHom(K, L)\), and \(R\SheafHom(K, M)\). If we choose a K-flat complex \(\mathcal{H}^\bullet\) and a quasi-isomorphism \(\mathcal{H}^\bullet \to \SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{J}^\bullet)\), then there is a map \[\text{Tot}\left( \SheafHom^\bullet(\mathcal{J}^\bullet, \mathcal{I}^\bullet) \otimes_\mathcal{O} \mathcal{H}^\bullet \right) \longrightarrow \text{Tot}\left( \SheafHom^\bullet(\mathcal{J}^\bullet, \mathcal{I}^\bullet) \otimes_\mathcal{O} \SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{J}^\bullet) \right)\] whose source represents \(R\SheafHom(L, M) \otimes_\mathcal{O}^\mathbf{L} R\SheafHom(K, L)\). Composing the two displayed arrows gives the desired map. We omit the proof that the construction is functorial.

Lemma 21.35.7 (0BYU) official page ↗

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Given \(K, L, M\) in \(D(\mathcal{O})\) there is a canonical morphism \[K \otimes_\mathcal{O}^\mathbf{L} R\SheafHom(M, L) \longrightarrow R\SheafHom(M, K \otimes_\mathcal{O}^\mathbf{L} L)\] in \(D(\mathcal{O})\) functorial in \(K, L, M\).

Proof. Choose a K-flat complex \(\mathcal{K}^\bullet\) representing \(K\), and a K-injective complex \(\mathcal{I}^\bullet\) representing \(L\), and choose any complex of \(\mathcal{O}\)-modules \(\mathcal{M}^\bullet\) representing \(M\). Choose a quasi-isomorphism \(\text{Tot}(\mathcal{K}^\bullet \otimes_{\mathcal{O}_X} \mathcal{I}^\bullet) \to \mathcal{J}^\bullet\) where \(\mathcal{J}^\bullet\) is K-injective. Then we use the map \[\text{Tot}\left( \mathcal{K}^\bullet \otimes_\mathcal{O} \SheafHom^\bullet(\mathcal{M}^\bullet, \mathcal{I}^\bullet) \right) \to \SheafHom^\bullet(\mathcal{M}^\bullet, \text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{I}^\bullet)) \to \SheafHom^\bullet(\mathcal{M}^\bullet, \mathcal{J}^\bullet)\] where the first map is the map from Lemma 21.34.3.

Lemma 21.35.8 (0A99) official page ↗

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Given \(K, L\) in \(D(\mathcal{O})\) there is a canonical morphism \[K \longrightarrow R\SheafHom(L, K \otimes_\mathcal{O}^\mathbf{L} L)\] in \(D(\mathcal{O})\) functorial in both \(K\) and \(L\).

Proof. Choose a K-flat complex \(\mathcal{K}^\bullet\) representing \(K\) and any complex of \(\mathcal{O}\)-modules \(\mathcal{L}^\bullet\) representing \(L\). Choose a K-injective complex \(\mathcal{J}^\bullet\) and a quasi-isomorphism \(\text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet) \to \mathcal{J}^\bullet\). Then we use \[\mathcal{K}^\bullet \to \SheafHom^\bullet(\mathcal{L}^\bullet, \text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet)) \to \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{J}^\bullet)\] where the first map comes from Lemma 21.34.4.

Lemma 21.35.9 (08JD) official page ↗

Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(L\) be an object of \(D(\mathcal{O})\). Set \(L^\vee = R\SheafHom(L, \mathcal{O})\). For \(M\) in \(D(\mathcal{O})\) there is a canonical map \[\begin{equation} M \otimes^\mathbf{L}_\mathcal{O} L^\vee \longrightarrow R\SheafHom(L, M) \end{equation}\] which induces a canonical map \[H^0(\mathcal{C}, M \otimes_\mathcal{O}^\mathbf{L} L^\vee) \longrightarrow \Hom_{D(\mathcal{O})}(L, M)\] functorial in \(M\) in \(D(\mathcal{O})\).

Proof. The map (21.35.9.1) is a special case of Lemma 21.35.6 using the identification \(M = R\SheafHom(\mathcal{O}, M)\).

Remark 21.35.10 (0B6D) official page ↗

Let \(f : (\Sh(\mathcal{C}), \mathcal{O}_\mathcal{C}) \to (\Sh(\mathcal{D}), \mathcal{O}_\mathcal{D})\) be a morphism of ringed topoi. Let \(K, L\) be objects of \(D(\mathcal{O}_\mathcal{C})\). We claim there is a canonical map \[Rf_*R\SheafHom(L, K) \longrightarrow R\SheafHom(Rf_*L, Rf_*K)\] Namely, by (21.35.0.1) this is the same thing as a map \(Rf_*R\SheafHom(L, K) \otimes_{\mathcal{O}_\mathcal{D}}^\mathbf{L} Rf_*L \to Rf_*K\). For this we can use the composition \[Rf_*R\SheafHom(L, K) \otimes_{\mathcal{O}_\mathcal{D}}^\mathbf{L} Rf_*L \to Rf_*(R\SheafHom(L, K) \otimes_{\mathcal{O}_\mathcal{C}}^\mathbf{L} L) \to Rf_*K\] where the first arrow is the relative cup product (Remark 21.19.7) and the second arrow is \(Rf_*\) applied to the canonical map \(R\SheafHom(L, K) \otimes_{\mathcal{O}_\mathcal{C}}^\mathbf{L} L \to K\) coming from Lemma 21.35.6 (with \(\mathcal{O}_\mathcal{C}\) in one of the spots).

Remark 21.35.11 (08JF) official page ↗

Let \(h : (\Sh(\mathcal{C}), \mathcal{O}) \to (\Sh(\mathcal{C}'), \mathcal{O}')\) be a morphism of ringed topoi. Let \(K, L\) be objects of \(D(\mathcal{O}')\). We claim there is a canonical map \[Lh^*R\SheafHom(K, L) \longrightarrow R\SheafHom(Lh^*K, Lh^*L)\] in \(D(\mathcal{O})\). Namely, by (21.35.0.1) proved in Lemma 21.35.2 such a map is the same thing as a map \[Lh^*R\SheafHom(K, L) \otimes^\mathbf{L} Lh^*K \longrightarrow Lh^*L\] The source of this arrow is \(Lh^*(\SheafHom(K, L) \otimes^\mathbf{L} K)\) by Lemma 21.18.4 hence it suffices to construct a canonical map \[R\SheafHom(K, L) \otimes^\mathbf{L} K \longrightarrow L.\] For this we take the arrow corresponding to \[\text{id} : R\SheafHom(K, L) \longrightarrow R\SheafHom(K, L)\] via (21.35.0.1).

Remark 21.35.12 (08JG) official page ↗

Suppose that \[\xymatrix{ (\Sh(\mathcal{C}'), \mathcal{O}_{\mathcal{C}'}) \ar[r]_h \ar[d]_{f'} & (\Sh(\mathcal{C}), \mathcal{O}_\mathcal{C}) \ar[d]^f \\ (\Sh(\mathcal{D}'), \mathcal{O}_{\mathcal{D}'}) \ar[r]^g & (\Sh(\mathcal{D}), \mathcal{O}_\mathcal{D}) }\] is a commutative diagram of ringed topoi. Let \(K, L\) be objects of \(D(\mathcal{O}_\mathcal{C})\). We claim there exists a canonical base change map \[Lg^*Rf_*R\SheafHom(K, L) \longrightarrow R(f')_*R\SheafHom(Lh^*K, Lh^*L)\] in \(D(\mathcal{O}_{\mathcal{D}'})\). Namely, we take the map adjoint to the composition \[\begin{align*} L(f')^*Lg^*Rf_*R\SheafHom(K, L) & = Lh^*Lf^*Rf_*R\SheafHom(K, L) \\ & \to Lh^*R\SheafHom(K, L) \\ & \to R\SheafHom(Lh^*K, Lh^*L) \end{align*}\] where the first arrow uses the adjunction mapping \(Lf^*Rf_* \to \text{id}\) and the second arrow is the canonical map constructed in Remark 21.35.11.