Stacks project reader · More on Algebra · Search · Suggestions (AI)

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

Derived hom

Let \(R\) be a ring. The derived hom we will define in this section is a functor \[D(R)^{opp} \times D(R) \longrightarrow D(R),\quad (K, L) \longmapsto R\Hom_R(K, L)\] This is an internal hom in the derived category of \(R\)-modules in the sense that it is characterized by the formula \[\begin{equation} \Hom_{D(R)}(K, R\Hom_R(L, M)) = \Hom_{D(R)}(K \otimes_R^\mathbf{L} L, M) \end{equation}\] for objects \(K, L, M\) of \(D(R)\). Note that this formula characterizes the objects up to unique isomorphism by the Yoneda lemma. A construction can be given as follows. Choose a K-injective complex \(I^\bullet\) of \(R\)-modules representing \(M\), choose a complex \(L^\bullet\) representing \(L\), and set \[R\Hom_R(L, M) = \Hom^\bullet(L^\bullet, I^\bullet)\] with notation as in Section 15.73. A generalization of this construction is discussed in Differential Graded Algebra, Section 22.31. From (15.73.0.1) and Derived Categories, Lemma 13.31.2 that we have \[\begin{equation} H^n(R\Hom_R(L, M)) = \Hom_{D(R)}(L, M[n]) \end{equation}\] for all \(n \in \mathbf{Z}\). In particular, the object \(R\Hom_R(L, M)\) of \(D(R)\) is well defined, i.e., independent of the choice of the K-injective complex \(I^\bullet\).

Lemma 15.75.1 (0A65) official page ↗

Let \(R\) be a ring. Let \(K, L, M\) be objects of \(D(R)\). There is a canonical isomorphism \[R\Hom_R(K, R\Hom_R(L, M)) = R\Hom_R(K \otimes_R^\mathbf{L} L, M)\] in \(D(R)\) functorial in \(K, L, M\) which recovers (15.75.0.1) by taking \(H^0\).

Proof. Choose a K-injective complex \(I^\bullet\) representing \(M\) and a K-flat complex of \(R\)-modules \(L^\bullet\) representing \(L\). For any complex of \(R\)-modules \(K^\bullet\) we have \[\Hom^\bullet(K^\bullet, \Hom^\bullet(L^\bullet, I^\bullet)) = \Hom^\bullet(\text{Tot}(K^\bullet \otimes_R L^\bullet), I^\bullet)\] by Lemma 15.73.1. The lemma follows by the definition of \(R\Hom\) and because \(\text{Tot}(K^\bullet \otimes_R L^\bullet)\) represents the derived tensor product.

Lemma 15.75.2 (0A66) official page ↗

Let \(R\) be a ring. Let \(P^\bullet\) be a bounded above complex of projective \(R\)-modules. Let \(L^\bullet\) be a complex of \(R\)-modules. Then \(R\Hom_R(P^\bullet, L^\bullet)\) is represented by the complex \(\Hom^\bullet(P^\bullet, L^\bullet)\).

Proof. By (15.73.0.1) and Derived Categories, Lemma 13.19.8 the cohomology groups of the complex are “correct”. Hence if we choose a quasi-isomorphism \(L^\bullet \to I^\bullet\) with \(I^\bullet\) a K-injective complex of \(R\)-modules then the induced map \[\Hom^\bullet(P^\bullet, L^\bullet) \longrightarrow \Hom^\bullet(P^\bullet, I^\bullet)\] is a quasi-isomorphism. As the right hand side is our definition of \(R\Hom_R(P^\bullet, L^\bullet)\) we win.

Lemma 15.75.3 (0A67) official page ↗

Let \(R\) be a ring. Let \(K, L, M\) be objects of \(D(R)\). There is a canonical morphism \[R\Hom_R(L, M) \otimes_R^\mathbf{L} K \longrightarrow R\Hom_R(R\Hom_R(K, L), M)\] in \(D(R)\) functorial in \(K, L, M\).

Proof. Choose a K-injective complex \(I^\bullet\) representing \(M\), a K-injective complex \(J^\bullet\) representing \(L\), and a K-flat complex \(K^\bullet\) representing \(K\). The map is defined using the map \[\text{Tot}(\Hom^\bullet(J^\bullet, I^\bullet) \otimes_R K^\bullet) \longrightarrow \Hom^\bullet(\Hom^\bullet(K^\bullet, J^\bullet), I^\bullet)\] of Lemma 15.73.6. We omit the proof that this is functorial in all three objects of \(D(R)\).

Lemma 15.75.4 (0A8J) official page ↗

Let \(R\) be a ring. Given \(K, L, M\) in \(D(R)\) there is a canonical morphism \[R\Hom_R(L, M) \otimes_R^\mathbf{L} R\Hom_R(K, L) \longrightarrow R\Hom_R(K, M)\] in \(D(R)\) functorial in \(K, L, M\).

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

Lemma 15.75.5 (0BYN) official page ↗

Let \(R\) be a ring. Given complexes \(K, L, M\) in \(D(R)\) there is a canonical morphism \[K \otimes_R^\mathbf{L} R\Hom_R(M, L) \longrightarrow R\Hom_R(M, K \otimes_R^\mathbf{L} L)\] in \(D(R)\) functorial in \(K\), \(L\), \(M\).

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

Lemma 15.75.6 (0A6B) official page ↗

Let \(R\) be a ring. Given complexes \(K, L\) in \(D(R)\) there is a canonical morphism \[K \longrightarrow R\Hom_R(L, K \otimes_R^\mathbf{L} L)\] in \(D(R)\) functorial in both \(K\) and \(L\).

Proof. This is a special case of Lemma 15.75.5 but we will also prove it directly. Choose a K-flat complex \(K^\bullet\) representing \(K\) and any complex \(L^\bullet\) representing \(L\). Choose a quasi-isomorphism \(\text{Tot}(K^\bullet \otimes_R L^\bullet) \to J^\bullet\) where \(J^\bullet\) is K-injective. Then we use the map \[K^\bullet \to \Hom^\bullet(L^\bullet, \text{Tot}(K^\bullet \otimes_R L^\bullet)) \to \Hom^\bullet(L^\bullet, J^\bullet)\] where the first map is the map from Lemma 15.73.5.