The Stacks project, tag 0A8X, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/0A8X
Hom complexes
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(\mathcal{L}^\bullet\) and \(\mathcal{M}^\bullet\) be two complexes of \(\mathcal{O}\)-modules. We construct a complex of \(\mathcal{O}\)-modules \(\SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{M}^\bullet)\). Namely, for each \(n\) we set \[\SheafHom^n(\mathcal{L}^\bullet, \mathcal{M}^\bullet) = \prod\nolimits_{n = p + q} \SheafHom_\mathcal{O}(\mathcal{L}^{-q}, \mathcal{M}^p)\] It is a good idea to think of \(\SheafHom^n\) as the sheaf of \(\mathcal{O}\)-modules of all \(\mathcal{O}\)-linear maps from \(\mathcal{L}^\bullet\) to \(\mathcal{M}^\bullet\) (viewed as graded \(\mathcal{O}\)-modules) which are homogeneous of degree \(n\). In this terminology, we define the differential by the rule \[\text{d}(f) = \text{d}_\mathcal{M} \circ f - (-1)^n f \circ \text{d}_\mathcal{L}\] for \(f \in \SheafHom^n_\mathcal{O}(\mathcal{L}^\bullet, \mathcal{M}^\bullet)\). We omit the verification that \(\text{d}^2 = 0\). This construction is a special case of Differential Graded Algebra, Example 22.26.6. It follows immediately from the construction that we have \[\begin{equation} H^n(\Gamma(U, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{M}^\bullet))) = \Hom_{K(\mathcal{O}_U)}(\mathcal{L}^\bullet|_U, \mathcal{M}^\bullet[n]|_U) \end{equation}\] for all \(n \in \mathbf{Z}\) and every \(U \in \Ob(\mathcal{C})\). Similarly, we have \[\begin{equation} H^n(\Gamma(\mathcal{C}, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{M}^\bullet))) = \Hom_{K(\mathcal{O})}(\mathcal{L}^\bullet, \mathcal{M}^\bullet[n]) \end{equation}\] for the complex of global sections.
Lemma 21.34.1 (0A90) official page ↗
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Given complexes \(\mathcal{K}^\bullet, \mathcal{L}^\bullet, \mathcal{M}^\bullet\) of \(\mathcal{O}\)-modules there is an isomorphism \[\SheafHom^\bullet(\mathcal{K}^\bullet, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{M}^\bullet)) = \SheafHom^\bullet(\text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet), \mathcal{M}^\bullet)\] of complexes of \(\mathcal{O}\)-modules functorial in \(\mathcal{K}^\bullet, \mathcal{L}^\bullet, \mathcal{M}^\bullet\).
Proof. Omitted. Hint: This is proved in exactly the same way as More on Algebra, Lemma 15.73.1.
Lemma 21.34.2 (0A91) official page ↗
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Given complexes \(\mathcal{K}^\bullet, \mathcal{L}^\bullet, \mathcal{M}^\bullet\) of \(\mathcal{O}\)-modules there is a canonical morphism \[\text{Tot}\left( \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{M}^\bullet) \otimes_\mathcal{O} \SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{L}^\bullet) \right) \longrightarrow \SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{M}^\bullet)\] of complexes of \(\mathcal{O}\)-modules.
Proof. Omitted. Hint: This is proved in exactly the same way as More on Algebra, Lemma 15.73.3.
Lemma 21.34.3 (0BYT) official page ↗
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Given complexes \(\mathcal{K}^\bullet, \mathcal{L}^\bullet, \mathcal{M}^\bullet\) of \(\mathcal{O}\)-modules there is a canonical morphism \[\text{Tot}\left( \mathcal{K}^\bullet \otimes_\mathcal{O} \SheafHom^\bullet(\mathcal{M}^\bullet, \mathcal{L}^\bullet) \right) \longrightarrow \SheafHom^\bullet(\mathcal{M}^\bullet, \text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet))\] of complexes of \(\mathcal{O}\)-modules functorial in all three complexes.
Proof. Omitted. Hint: This is proved in exactly the same way as More on Algebra, Lemma 15.73.4.
Lemma 21.34.4 (0A93) official page ↗
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Given complexes \(\mathcal{K}^\bullet, \mathcal{L}^\bullet, \mathcal{M}^\bullet\) of \(\mathcal{O}\)-modules there is a canonical morphism \[\mathcal{K}^\bullet \longrightarrow \SheafHom^\bullet(\mathcal{L}^\bullet, \text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet))\] of complexes of \(\mathcal{O}\)-modules functorial in both complexes.
Proof. Omitted. Hint: This is proved in exactly the same way as More on Algebra, Lemma 15.73.5.
Lemma 21.34.5 (0A92) official page ↗
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Given complexes \(\mathcal{K}^\bullet, \mathcal{L}^\bullet, \mathcal{M}^\bullet\) of \(\mathcal{O}\)-modules there is a canonical morphism \[\text{Tot}(\SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{M}^\bullet) \otimes_\mathcal{O} \mathcal{K}^\bullet) \longrightarrow \SheafHom^\bullet(\SheafHom^\bullet(\mathcal{K}^\bullet, \mathcal{L}^\bullet), \mathcal{M}^\bullet)\] of complexes of \(\mathcal{O}\)-modules functorial in all three complexes.
Proof. Omitted. Hint: This is proved in exactly the same way as More on Algebra, Lemma 15.73.6.
Lemma 21.34.6 (0A94) official page ↗
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(L\) and \(M\) be objects of \(D(\mathcal{O})\). Let \(\mathcal{I}^\bullet\) be a K-injective complex of \(\mathcal{O}\)-modules representing \(M\). Let \(\mathcal{L}^\bullet\) be a complex of \(\mathcal{O}\)-modules representing \(L\). Then \[H^0(\Gamma(U, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet))) = \Hom_{D(\mathcal{O}_U)}(L|_U, M|_U)\] for all \(U \in \Ob(\mathcal{C})\). Similarly, \(H^0(\Gamma(\mathcal{C}, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet))) = \Hom_{D(\mathcal{O})}(L, M)\).
Proof. We have \[\begin{align*} H^0(\Gamma(U, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet))) & = \Hom_{K(\mathcal{O}_U)}(\mathcal{L}^\bullet|_U, \mathcal{I}^\bullet|_U) \\ & = \Hom_{D(\mathcal{O}_U)}(L|_U, M|_U) \end{align*}\] The first equality is (21.34.0.1). The second equality is true because \(\mathcal{I}^\bullet|_U\) is K-injective by Lemma 21.20.1. The proof of the last equation is similar except that it uses (21.34.0.2).
Lemma 21.34.7 (0A95) official page ↗
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \((\mathcal{I}')^\bullet \to \mathcal{I}^\bullet\) be a quasi-isomorphism of K-injective complexes of \(\mathcal{O}\)-modules. Let \((\mathcal{L}')^\bullet \to \mathcal{L}^\bullet\) be a quasi-isomorphism of complexes of \(\mathcal{O}\)-modules. Then \[\SheafHom^\bullet(\mathcal{L}^\bullet, (\mathcal{I}')^\bullet) \longrightarrow \SheafHom^\bullet((\mathcal{L}')^\bullet, \mathcal{I}^\bullet)\] is a quasi-isomorphism.
Proof. Let \(M\) be the object of \(D(\mathcal{O})\) represented by \(\mathcal{I}^\bullet\) and \((\mathcal{I}')^\bullet\). Let \(L\) be the object of \(D(\mathcal{O})\) represented by \(\mathcal{L}^\bullet\) and \((\mathcal{L}')^\bullet\). By Lemma 21.34.6 we see that the sheaves \[H^0(\SheafHom^\bullet(\mathcal{L}^\bullet, (\mathcal{I}')^\bullet)) \quad\text{and}\quad H^0(\SheafHom^\bullet((\mathcal{L}')^\bullet, \mathcal{I}^\bullet))\] are both equal to the sheaf associated to the presheaf \[U \longmapsto \Hom_{D(\mathcal{O}_U)}(L|_U, M|_U)\] Thus the map is a quasi-isomorphism.
Lemma 21.34.8 (0A96) official page ↗
Let \((\mathcal{C}, \mathcal{O})\) be a ringed site. Let \(\mathcal{I}^\bullet\) be a K-injective complex of \(\mathcal{O}\)-modules. Let \(\mathcal{L}^\bullet\) be a K-flat complex of \(\mathcal{O}\)-modules. Then \(\SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet)\) is a K-injective complex of \(\mathcal{O}\)-modules.
Proof. Namely, if \(\mathcal{K}^\bullet\) is an acyclic complex of \(\mathcal{O}\)-modules, then \[\begin{align*} \Hom_{K(\mathcal{O})}(\mathcal{K}^\bullet, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet)) & = H^0(\Gamma(\mathcal{C}, \SheafHom^\bullet(\mathcal{K}^\bullet, \SheafHom^\bullet(\mathcal{L}^\bullet, \mathcal{I}^\bullet)))) \\ & = H^0(\Gamma(\mathcal{C}, \SheafHom^\bullet(\text{Tot}( \mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet), \mathcal{I}^\bullet))) \\ & = \Hom_{K(\mathcal{O})}( \text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet), \mathcal{I}^\bullet) \\ & = 0 \end{align*}\] The first equality by (21.34.0.2). The second equality by Lemma 21.34.1. The third equality by (21.34.0.2). The final equality because \(\text{Tot}(\mathcal{K}^\bullet \otimes_\mathcal{O} \mathcal{L}^\bullet)\) is acyclic because \(\mathcal{L}^\bullet\) is K-flat (Definition 21.17.2) and because \(\mathcal{I}^\bullet\) is K-injective.