The Stacks project, tag 0FRN, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/0FRN
Internal hom for sheaves of differential graded modules
We are going to need the sheafified version of the construction in Section 24.14. Let \((\mathcal{C}, \mathcal{O})\), \(\mathcal{A}\), \(\mathcal{M}\), \(\mathcal{L}\) be as in Section 24.14. Then we define \[\SheafHom^{dg}_\mathcal{A}(\mathcal{M}, \mathcal{L}) = \SheafHom^{gr}_\mathcal{A}(\mathcal{M}, \mathcal{L}) = \bigoplus\nolimits_{n \in \mathbf{Z}} \SheafHom^n_\mathcal{A}(\mathcal{M}, \mathcal{L})\] as a graded \(\mathcal{O}\)-module, see Section 24.7. In other words, a section \(f\) of the \(n\)th graded piece \(\SheafHom^n_\mathcal{A}(\mathcal{L}, \mathcal{M})\) over \(U\) is a map of right \(\mathcal{A}_U\)-module map \(\mathcal{L}|_U \to \mathcal{M}|_U\) homogeneous of degree \(n\). For such \(f\) we set \[\text{d}(f) = \text{d}_\mathcal{M}|_U \circ f - (-1)^n f \circ \text{d}_\mathcal{L}|_U\] To make sense of this we think of \(\text{d}_\mathcal{M}|_U\) and \(\text{d}_\mathcal{L}|_U\) as graded \(\mathcal{O}_U\)-module maps and we use composition of graded \(\mathcal{O}_U\)-module maps. It is clear that \(\text{d}(f)\) is homogeneous of degree \(n + 1\) as a graded \(\mathcal{O}_U\)-module map. Using the exact same computation as in Section 24.14 we see that \(\text{d}(f)\) is \(\mathcal{A}_U\)-linear.
As in Section 24.14 there is a composition map \[\SheafHom^{dg}_\mathcal{A}(\mathcal{L}, \mathcal{M}) \otimes_\mathcal{O} \SheafHom^{dg}_\mathcal{A}(\mathcal{K}, \mathcal{L}) \longrightarrow \SheafHom^{dg}_\mathcal{A}(\mathcal{K}, \mathcal{M})\] where the left hand side is the tensor product of differential graded \(\mathcal{O}\)-modules defined in Section 24.15. This map is given by the composition map \[\SheafHom^m(\mathcal{L}, \mathcal{M}) \otimes_\mathcal{O} \SheafHom^n(\mathcal{K}, \mathcal{L}) \longrightarrow \SheafHom^{n + m}(\mathcal{K}, \mathcal{M})\] defined by simple composition (locally). Using the exact same computation as in Section 24.14 on local sections we see that the composition map is a morphism of differential graded \(\mathcal{O}\)-modules.
With these definitions we have \[\Hom_{\textit{Mod}^{dg}(\mathcal{A})}(\mathcal{L}, \mathcal{M}) = \Gamma(\mathcal{C}, \SheafHom^{dg}_\mathcal{A}(\mathcal{L}, \mathcal{M}))\] as graded \(R\)-modules compatible with composition.