Lemma 56.5.3. Let $X$ be a scheme proper over a field $k$. Let $K \in D^ b_{\textit{Coh}}(\mathcal{O}_ X)$ and let $E$ in $D(\mathcal{O}_ X)$ be perfect. Then $\sum _{i \in \mathbf{Z}} \dim _ k \mathop{\mathrm{Ext}}\nolimits ^ i_ X(E, K) < \infty$.

Proof. This follows for example by combining Derived Categories of Schemes, Lemmas 36.11.7 and 36.18.2. Alternative proof: combine Derived Categories of Schemes, Lemmas 36.11.6 and 36.11.3. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).