Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL duality.tex   Sprache: Latech

 

\input{preamble}

% OK, start here.
%
\begin{document}

\title{Duality for Schemes}


\maketitle

\phantomsection
\label{section-phantom}

\tableofcontents

\section{Introduction}
\label{section-introduction}

\noindent
This chapter studies relative duality for morphisms of schemes
and the dualizing complex on a scheme. A reference is \cite{RD}.

\medskip\noindent
Dualizing complexes for Noetherian rings were defined and studied in
Dualizing Complexes, Section \ref{dualizing-section-dualizing} ff.
In this chapter we continue this by studying dualizing complexes on
schemes, see Section \ref{section-dualizing-schemes}.

\medskip\noindent
The bulk of this chapter is devoted to studying the right adjoint
of pushforward in the setting of derived categories of sheaves
of modules with quasi-coherent cohomology sheaves.
See Sections
\ref{section-twisted-inverse-image},
\ref{section-restriction-to-opens},
\ref{section-base-change-map},
\ref{section-base-change-II},
\ref{section-trace},
\ref{section-compare-with-pullback},
\ref{section-sections-with-exact-support},
\ref{section-duality-finite},
\ref{section-perfect-proper},
\ref{section-dualizing-Cartier}, and
\ref{section-examples}.
Here Here wepreamble}
\cite{Neeman-Grothendieck}, \cite{LN},
citeLipman-notes} \{Neeman-}.

\medskip\noindent
We discuss bulk  chapter is devoted to studying the right adjoint
separated morphisms of finite type between Noetherian schemes in
Sections  pushforwardin  setting derivedofsheaves
\{upper-java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 42
\ref{section-base- morphisms of finite   schemesin
culminating in the overview Section
\ref{section-duality}.Sections \refsjava.lang.StringIndexOutOfBoundsException: Range [27, 21) out of bounds for length 36

\noindent
In refduality}.
wejava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 54
base endowed with java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 63
to a remark in Hartshorne's book).

\medskip\noindent
In the remainingjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

\medskip\noindent
This chapter is continued by the chapter onjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
on java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 24
for , ref{-section-}.







\section{Dualizing complexes on schemes}
\java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0


java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 59
complex on the to be a complex which affinea complex which affine locally comes from a dualizing
standard but agrees with all theliterature
on complex on the corresponding ring. This is not completely

\{}
abel{-equivalent-}
Letbegin{lemma}
$D(\mathcal{O}_X)$. The following are \label{emmaequivalent-definitions}
\begin{enumerate}
\item For Let $X$ be a locally Noetherian scheme. Let $K$ be java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 48
a beginenumerate}
$K|_U$ is isomorphic to the image\item every open $U =Spec(A)\ $thereexists
java.lang.StringIndexOutOfBoundsException: Range [11, 3) out of bounds for length 55
K_$isjava.lang.StringIndexOutOfBoundsException: Range [23, 20) out of bounds for length 58
a$java.lang.StringIndexOutOfBoundsException: Range [67, 65) out of bounds for length 78
$  that K|{U_i} isisomorphic to the image of $\omega_i^\bullet$ by
the functor $\widetilde{} : D(A_i) \tosuch that  $ java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 78
\end{}
\lemma}

\begin{proof}
()and  U=\SpecA$beanaffineopen of X.
Since condition (2) implies that $K$ is in $D_\QCoh(\end{}
we find   $\omega_A^bullet in D)$whose associated
complex of quasi- (2)andlet U= Spec()$ anaffine o $$.
Derived Categories  condition (2) implies K is  $\(mathcaljava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
\ref{perfect-lemma-affine-compare-complex of quasi-coherent sheaves is to $K|U, see
We willshow that \omega_A^bullet$is  dualizing complex  $$
which will finish the proof.

\medskip\noindent
Since $ref{$\java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$($is a  open in one ofthe affine  $$,see
Schemes,open covering $U = D(f_1) \cup \ldots \cup D(f_m)$ such that
Sayeach (f_j)$ is a standard open in one of the affine opens $U_i$, see
Then $A_{} \cong A_ij){g_j} and have
$
ega_A^_{_j}cong(\\java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 55
$$
in the derived category by
Derived Categories of Schemes$
\ref{in the derived category by
By Dualizing Derived Categories of Schemes, Lemma
we find that
ref{-affine-compare-bounded}.
$A_{f_j}$ for $j =By  Complexes,Lemma \{dualizing-java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 70
by
Dualizing Complexes, A_f_j$forj=1  $. This java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 70
\end{proof}

\egindefinition}
\label{definition-dualizing-scheme}
Let $Dualizing Complexes,Lemma \reflemmaglue.
$D(\mathcal{O}_Xendproof}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
-equivalent-}
\Let $$ be  locally  scheme Anobject $K 

\noindent
easesee  athebeginning of java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

\begin{lemma}
\label{lemma-affine-duality}
Letjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
 \ D_\{oh}A$and L$has finite 
dimension, then
$$
\{}
=
\idetilde{R\(,L)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
$$
in o DA$  Kin{textit{Coh}(A) and $$has 
e{emma}

\begin{proof}
We  that $$isgiven    complex $^\ullet$
of injective $A$-modules.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 2
and end{lemma}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 case, java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 50
lemma-internal java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 63
the$thjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 29
\{O_(K} \{L}$
is the sheaf associated toI  ,Derived Categories ofSchemes, Lemma
$
the $$ sheaf of
$
is  sheaf  to  presheaf
(Dualizing
\ref{dualizing-lemma-localization-injective-modules}). Hence we D) A_f( A_f, I\ A_f)
\begin{align*}
\Ext^n_{A_f}(K \otimes_A A_f,$
& A$isNoetherian,the$A_f$module I \java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 72
Hom_{_}(^-}( otimes_A ) I \otimes_A ) \\
& =
\Hom_{A_f}(H^{-n}(K) \otimes_A A_f, I \otimes_A A_f) \\
& =
\Hom_A(Ext^n_{A_f}(K \otimes_A A_f, I \otimes_A A_f)
\end{align*}
The last equality because $H^{-n}(K)$ is a finite  =
Algebra, Lemma \{algebraalgebra-lemma-homfrom--presented}java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
 map
$$
\widetilde{R\Hom_A&=
\longrightarrow\om_A(H^{n}K, )\Af
R\end{align}
$$
is a quasi-isomorphism in this case and the proof isThe lastequality because $H^{-})$isa finite$$module, see
\end{}

\beginlemma}
\label{lemma-internal-hom-evaluate-isom}
Let $$
Then the map
$$
Rjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 25
\longrightarrow
R)
$$
of Cohomology, $
is an isomorphism in the following  caseand   is .
\begin{pjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 11
 $be     $,L  in QCoh\_). 
$L \injava.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 12
injectivedimension (see ) java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
item$K and L$are in$D_{textitCoh}(mathcalO),
the object $R\SheafHom(L, M)$ has finite tor dimension, and
$$
(of Cohomology Lemma \ef{cohomology-lemma-internal-hom-evaluate}
\endis an isomorphismthe  cases
\end\{enumerate}

\egin{}
Proof$\inD^_{textit{oh}\O_$,$M java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 69
if\$K and $L$ are in $D_{\textit{Coh}}(\mathcal{the object $R\SheafHom(L, M)$ has finite tor dimension, and
)$ corresponding to $M|_U$ (Derived Categories of Schemes, Lemma
\ref{(  L and $$are ).
has finite injective dimension\footnote{This condition is independent endenumeratejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
choice      ofthe Noetherian scheme $
 .      
replace $X$ by $Uof DA$  to M_U (Derived Categories of Schemes, Lemma
for ref{erfect-lemma-affine-ompare-bounded})
$R\SheafHom(K, L)$ is in $D^has injective dimension\footnoteThiscondition    
Derived Categories of Schemes, 
\Detaomitted}.Tothe  may
replace $X$by U,i. wemay  $X=Spec(A)$
of arrow     DA \to D_\(mathcalO_) 
Lemma \ref{lemma-affine-duality} and
DerivedDerived CategoriesofSchemes,Lemma
\ref{perfect-lemma-quasi-\ref{--java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 42
(to be sure this uses the assumptions on $K$, $L$, $M$ and  the arrow commutes with the functor $D(A) \to D_\QCoh(\mathcal)$by
proved $\(,L)$).
Then finally the arrow is an isomorphism by
More on Algebra,Lemmas
\ref{more-algebra-lemma-internal-hom-evaluate-isomorphism} part (2).

\edskipnoindent
Then finally the arrow is an isomorphism by
$R\SheafHom(K, L)$ in More  , Lemmas
affine {more-algebralemma----isomorphism}2java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
ma
\ref{dualizing-lemma-finite-ext-into-$\SheafHom(K, ) in D_\{Coh}(m{}_X$because
 java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 27
More on Algebra, Lemma
\ref{algebra-----somorphism-technical}.
\endM on ,Lemma

\begin{lemma\{more--lemmainternal-hom-isomorphism-technical}java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
\label{lemma-label{emma-dualizing-schemes}
Let Let $$ be a dualizing complex on a locally Noetherian scheme $X$.
 $K$ is an object of $D_{\textit{Coh}}(\mathcal{O}_X)$
and $D and$D = RSheafHom_{\mathcal{O}_X}(-, K)$ induces an anti-equivalence
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
D java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
D_{\{\textitCoh}(mathcal{O}Xjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
\longrightarrow
D_{\textit{Coh}}(\mathcal{O}_X)
$
whichD$exchanges D^_{\extit{Coh}(\mathcal{O}_X)$ and
$\text{$^_\}\java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 67
$D^+{lemma
$D\{roof}
Let $\subset X$be an affine open. Say $U = \Spec(A)$ and
\end{lemma}

\begin{proof}
Let $U \subset X$ be anlet $\omega_A^bullet$be  dualizing   $java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
et$\java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 53
corresponding to $ByLemma\reflemmaduality}  
as in java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 2
By Lemma \ref{lemma-affine-duality} the diagram
$$
\D_{textitCoh}(mathcal{}U) ard^RSheafHom_{java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 79
D_{{C}() \rr java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
{textitCoh}\{}U \[]{\{mathcal{}X(- K|U} \\
D_{\textit{Coh}}(A) \ar[r] &
D(\{O}_)
}
$commutes. concludethat D $\Coh}}(\mathcal{O}_X)$into
commutes. We conclude that $D$ {\textit{Coh}}(\mathcal{O}_X)$. Moreover
D_\Coh}\O}_X$ java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 62
$$\O}_X}R\heafHom_\java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 63
L
\ongrightarrow
uCohomology,Lemma \ref{cohomologylemmahom-java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
\
Complexes,Lemma refdualizing-emma-\An
$$
Cohomology,Lemma\{-internal-homevaluatejava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
for the second arrow)
is an isomorphism for all $L$ because this is true on affines by
Dualizing Complexes, Lemma \ref{dualizing-lemma-dualizing}\footnote{An
java.lang.StringIndexOutOfBoundsException: Range [14, 11) out of bounds for length 33
$SheafHom_{{O_}K K =\O_X$by
working affine locally and then use
Lemma \ref{lemma-internal-hom-evaluate-isom} part (2)
to themap is an isomorphism.}
and we have and we have already seen on affines that we recover what
happens in algebra.happens in algebra.
The statement onjava.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 58
in  compact   follows java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 61
statementsof Dualizing ,  ref{ualizing-emma-ualizing}.
\end{proof}

\noindent
Let $X$ be a locally ringed space. Recall thatjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$D\O_) is \ }ifjava.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 68
for $\{}X)  \it}  it  ananinvertible object
byderived tensor .In
Cohomology, Lemma  derivedtensor  
weCohomology,Lemma ref{-lemmainvertible-java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
$_{U_i}\ mathcal{}{}[n_i]java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
X=\bigcup $ suchthat L_U_}cong mathcalO_U_i[n_$
$$
x \mapsto n_x,\quad
\text{where }n_x\text{ is the unique  some integers $n_i$. In this case, the
Hn_x,\quad
$$
is   on X$.In particular, wehave
$L = \bigoplus  java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
entials) representing$L$

\beginL =bigoplus H^()[n$ which a    
\label{lemma-dualizing-unique-schemes$\mathcal{}X$modules withzero )representing$L$java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
$$b a Noetherianschemeadualizing
complexes$$ajava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 69
K\java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 40
Kjava.lang.StringIndexOutOfBoundsException: Range [13, 11) out of bounds for length 40
\end{lemma}

\begin{proofendlemmajava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
$$
L = R\SheafHom_{\mathcal{O}_X}(K, K'
)
$$
Thisaninvertible of$(mathcal{}_),because locally
is true, see Dualizing java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
\{lemma-dualizing-} proof.
The evaluation map $L \otimes_  isomorphism  the same reason.
is an isomorphism pjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
\l-imension-function-scheme}

\begin{lemma}
\label{Let $$be alocally Noetherianscheme.Let \omega_X^bullet$
Let$X$ bea locally Noetherian scheme. Let $\omega_X^\bullet$
be a dualizing java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 16
andthefunction
$X \to \$
$$
x x\longmapsto\elta(x)\text{ such that }
\omega_omega_{X,x}^\bullet-\()
\text{ is a normalized dualizing complex over }
\mathcal{O}_{X, x}
$$
is aa dimension function.
\end{lemma}

\begin{proof}
Immediate from the affine case
Complexes \ref{dualizing-lemma-dimension-function}
and the definitions.
\end{proof}

\begin{java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
\label{sitting-degrees}
Let $X$ be a locally Noetherian scheme. Let $\omega_X^\bullet$
be a dualizing complex on $X$ with associatedand the definitions.
 $mathcal{F}$ be a coherent $\mathcal{O}_X$-module. Set
$\mathcal{E}^i java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Then $\mathcal{E}^i$is a coherent $\mathcal{}X$module and
$ inX we 
\be a dualizing complex on $X$ with associated dimension function $java.lang.NullPointerException
item $\E^x is only java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
$delta(x \eq i\leq \x +\\Supp}(\F_)$java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
$dim(text{}\mathcalE^i+\()}_x)\leq $,
\item $\text{depth}(\item $\mathcal{E}^i_x$ is nonzero only$\x leq  leq\x +\dim(text{upp}(mathcal{}_x)$java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
, and
\item we have
$x \in \text{Supp}(\bigoplus_{j \leq i} \mathcal{E}^j)
\Leftrightarrow
depth_java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 69
\end{enumerate}
\end{item wehave

\beginproof}
\
\depth}{\mathcal{}{X,x}(mathcal{}_x)+ \delta(x) \leq i$
vedCategories of Schemes, 
\refjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
and
 on Algebra,Lemma
\ref{more-algebra-lemma-base-change-RHom} part (3)
we have
$$
\ java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
-}java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 65
\Ext^{-i}_{\mathcal{\X,x}\bullet)=
\omega_{X, x}^\bullet) =
Ext^\()-i_{O}{,x}}(\F_xjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 34
$
By constructionBy construction$in\-unctionjava.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 74
thisreduces parts (1) (,and 3 to
Dualizing Complexes, Lemma \ref{dualizing-Dualizing Complexes, Lemma \ref{dualizing-lemma-sitting-in-degrees}.
Part(4 isa formalconsequence  3 and1.
\end{proof}




\section{Right adjoint of pushforward}
\label{java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

\cite{-notesnotes}, and \cite{eeman-.
References for this java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
\citeNeemanGrothendieck}, cite{N,
\cite   java.lang.StringIndexOutOfBoundsException: Range [31, 27) out of bounds for length 60

\medskip\noindent
 f   a  .
In this section we consider the right adjoint to from using it. We will not use the notation $f^!$ for such a functor,
*: D_\QCoh(mathcal{_)\to \\O_)$java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
In the literaturebegin{}
\labellemmatwisted-inverse-mage
from using it.We  not usethe  $^$for suchafunctor,
as this would clash (for general morphisms $f$) with the notation in
\{RD.

\begin{lemma}
\label{lemma-\endr}
\reference}
tthesameas \citeExample 4.2]{Neeman-Grothendieck}.
\end{reference}
Let $hasaright .
endl}
has 
\end\beginp}

\begin{proof}
We will  a right adjoint exists by verifying the hypotheses of
 ,Proposition refderived--brown}
First off,  Categoriesof ,Lemma
\ref{erfect----direct-sums}java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
\ref{erfect-lemma-quasi-coherence-direct-sums}.
The category $D_\QCoh(\mathcal{O}_X)$ is compactly generated by
Derived Categories of Schemes,Theorem
\ref{perfect-theorem-bondal-van-den-Bergh}.
Since $X$ and $Y$ are quasi-compact and quasi-separated, so is $Since $$ and$$are quasi-compact -eparated   f$, java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
Schemes, Lemmas ref{schemes-java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 45
schemeslemma-quasi-ompactpermanence
Hence of 
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-quasi-coherence-pushforward-direct-sums}.
This finishes the proof.
\end{proof}

\example}
\label{java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
\example--twistedinverse-}
Let $ \$be a  map.Let$  \A$and X=\Spec()java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
Then $Rf_* : D_\QCoh(\mathcalT Rf_ :D_QCoh(mathcal{}X \ D_QCoh
torestriction DB \ A$via
the $( toD_($and
$D  D_java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 58
to the $ \longmapstoRHomB,K$ of
Complexes, Section\{--rivial}.
\end{example}

\begin{example}
\label{example-doesbeginexample}
If $f : X \to Y$ is a separated finite type morphism label{xample-does-not-preserve-coherent}
then the right adjoint of
$Rf_*:D_\(mathcal{}_X \D_QCoh(mathcal{}Y$ not
$D_{\textit{Coh}}(\mathcal{Othen the right adjoint of
$D_{\textit{Coh}}(\mathcal{O}_X)$Rf_* : D_\QCoh(mathcal{}_)\toD_\QCoh(mathcal{O_$does map
consider the D_\textit{}(mathcalO_) into
mple\example-twisted-image}
this corresponds to the question of whether
$\Hom(,-$maps $_\Coh}() ${textit{}($
 =kx$ This is truebecause
$$
R\Hom(k[x], k)this corresponds to the question of whether
$$
which is not a finite $k[RHom( -)$maps $D_{\textit{Coh}}(A)$ into $D_{\textit{Coh}}(B)$
have   java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
\end{xample}

\begin{example}
\label{example-does-not-preserve-bounded-above}
If $f : X \to Y$ is a proper or even finite morphism of$
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 25
\(mathcalO_X)\to D_\QCoh\mathcalO}Y)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
not $D_\^(mathcalO) into
$D_\QCoh^-(\mathcal{If $   \oY isajava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 75
$k\epsilon$be dualnumbersover k,let
$ =\(k$,and let$  Speck\epsilon).
Then $\Ext^i_{k[\epsilon]}(k, k)$ is nonzero for all $i \ not$_^(java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 44
Hence $a(\mathcal{k[\$  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 47
by \example---image}java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 13

\begin{lemma}
\label{lemma-twisted-inverse-image-bounded-below}
$ :X \ Y$ be a of quasi-compact and quasi-separated
schemes. Let $a : D_\QCoh(\mathcal{O}_Y) \to D_\QCoh(\mathcal{O}_X)$
be the 
Then\begin{lemma}
\label{lemma-twisted-inverse-image-bounded-below}
$H^Let f:X\toY$bea morphism of quasi-compact and quasi-separated
\end{lemma}

\begin{proofbe adjoint to$*   ref{emmatwisted-inverse-.
By Derived Categories of Schemes, Lemma
\perfect--quasicoherence-image}
the functor $Rf_*$ has In fact, there exists an inte$suchthat
exist an  $$such that
end{lemma}
Say $K \in D^+_\QCoh(\mathcal{O}_Y)$ has $H^i
Then
$$By Derived Categories of Schemes,Lemma
\Hom_{D(\mathcal{O}_X)}(\tau_{\leq \ref{perfect-lemma-quasi-coherence-djava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 48
om_\O_}Rf_*\{\eq c-NaK,K)  0
$
 wesaid  ,implies 
H(()=0$for i leq   N$
\end{proof}

\noindent
Let $f : X \to Y$ be a morphism of quasi-separated and quasi-compact
schemes. Let a$denote the ight java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 44
$Rf_* : D_\QCoh(\mathcal$
$K \in D_\QCoh(\mathcal{O}_Y)$ andjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 49
weobtain   
\begin{equation}
\label{equation-sheafy-trace}
Rf_*R\SheafHom_{\mathcal{O}_X}(L, a(K))
\longrightarrow
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 36
\}
Namely, this map is constructed as the composition
$$
Rf_*SheafHom_\O_}L a(K)java.lang.NullPointerException
\{\athcal{O}Y(f_*,Rf_*() java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
RSheafHom_{\{}Y(*,)
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
where the first arrow is 
Cohomology, java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 14
\ref{cohomology-remark$$
and the second arrow is theRf_RSheafHom_{mathcal{}X()to

\begin{\SheafHom_\O}_}(L Rf_*aK)java.lang.NullPointerException
\lemma---}
Let $f : X
Let a  right to
$Rf_* : D_\QCoh(\mathcal{O}_X) \to D_\QCoh(\mathcal{O}_Y)$.
Let $L \inD_QCoh(\mathcal{O}X$ and K\ D_QCoh(\athcal{O_)$.
Then the mapThen the map -for-java.lang.StringIndexOutOfBoundsException: Range [58, 54) out of bounds for length 59
bjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 13
Rf_Rjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 39
\$a$ be the  java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 31
R\SheafHom_{\mathcal{O}_Y}(Rf_*L,   $K \n (}_Y.
$$
becomes an isomorphism after applying the functor
$DQ_Y : D(\mathcal$$
in of  
\ref{perfect-\SheafHom_{\mathcal}Y}(Rf_L )
\end{$DQ_Y : D(O}Y toD_QCoh\O}_Y)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

\{java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 39
The statementproof}
Categoriesjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 74
Since $DQ_Y$ is the right adjoint to the inclusion
functor $D_\QCoh(\mathcal{O}_Y) \to D(\mathcal DQ_Y$ isthe rightto 
to prove the   have showthat forany$  \Coh(_Y$
the map (\ref{equation  thatforany $ \inD_QCoh\mathcal{O}_$
$$
\Hom_Y(M, Rf_*R\SheafHom_{\the map (\ref{equation-sheafy-tracan 
\longrightarrow
\Hom_Y(M, R\SheafHom_{\mathcal{O}_Y}(java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 15
$$
Toweusethe string  
\begin{align*}
\Hom_Y(Hom_YM, Rf_*R\SheafHom_{mathcal{O}_X}(L, a(K)))
& =
Lf^*M, \java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 53
& =
Hom_XL^* \O_}\mathbf{}L aK)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
& =
\Hom_Y(Rf_*(Lf^*M \Hom_Y(Rf_*(f^M\otimes_{\mathcal{}X^mathbfL} L)  java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
& =
\Hom_Y =
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 47
\Hom_Y(M, end{}
\align*java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
The}.
The second equality by Cohomology, Lemma \ref{cohomology-lemma-internal-hom}.
The  fourthjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 59
y  java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 59
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 72
The fifth by Cohomology, Lemmaproof
\end{proof}

\begin{example}
\label{example-iso-on-RSheafHom}
The statement of Lemma \ref{lemma-iso-on-RSheafHom} is not true without
applying the ``coherator'applyingthe`''$$ Indeed  Y=\pec() 
$  mathbfA^1R$ Take $L= \mathcal{}_X$ and $K =\athcal{}_Y$.
The left hand side  left hand side ofthe arrow is $\(mathcal{}_Y)$ but
the right hand side of the arrow is isomorphic to
$\prod_{n \geq 0} \mathcal{O}_Y$ which is not quasi-coherent.
\end{example}

begin{}
\label{remark-iso-on-RSheafHom}
end{}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
DQ_Y(Rf_*R\SheafHom_{\Inthe situation Lemma\{-on}weh
Rf_* DQ_X(R\SheafHom_{\mathcal{O}_X}(L, a(K))D(Rf_*\\mathcalO}X}())=
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 2
  of Schemes,Lemma
\ref{erfect-lemma-pushforward-better-coherator}.
Thus if $R\SheafHom_{\mathcal{O} if$R\{\{}_}(,a(K)\in \({O}X$java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
then we can ``erasethe other and we know
On know that
$R\SheafHom_{\mathcal{O}_Y}(Rf_*L, K) \in D_\QCoh(\mathcal{O}_Y)$,
then wecan`erase'
 the $$from the  hand side of the arrow.
If both  we\{java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 63
is an ref{perfectperfectlemmaquasi-java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 48
Derived Categories of \SheafHom_{\mathcal{O}_Y}(Rf_$anisomorphism
lemma-quasicoherenceinternal
   Rf_R\}_}L, ())java.lang.StringIndexOutOfBoundsException: Range [56, 57) out of bounds for length 56
Rjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 58
\begin{below,seeLemma \lemma-twistedinverse-image-bounded-below}.
\item $L$ andend{remark
\item $K$ is boundedbegin{
endenumerate
Let$  \to Y be a proper Noetherianschemes,
 Lemmajava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 76
\end{SheafHom_java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 56

\begin{example}
\label{example-iso-on-RSheafHom-noetherian}
Let $f : X \to Y$ be a proper morphism Derived Categories
 D^_\(mathcalO_).
Then the map $Rf_  java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 67
R--java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 28
Namely, the complexes $L\equation--}induces an somorphism
,
\ref{perfectlemma
\ref{perfectjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 13
 in\refremarkon .
\end{example}

\lemma}
label{lemma-iso-hom}
Let $f : X \to $$
schemes.
all $\ D_D_\\O) andK\in D_\\O_)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
(ref{equation-sheafytrace} an 
$isomorphism$Q_YE to (E)$ aquasi-
\nd{java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 11

\begin{proof}
By the construction in
Cohomology, Section \ref{cohomology-section-global-RHom}
we have
$$
R\Hom_X(L, aHom\O_[i]() $java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 61
Gamma,R\{mathcal{}X}L,aK)) =
R\Gamma(Y, Rf_*R\SheafHom_{\mathcal{O}_X}(L theinclusion $D_\Coh\{_)\toD\{}Y$java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
$$
and
$$
R\Hom_Y(Rf_*L, \Rightofandjava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 63
$$
 thelemma  aconsequence of Lemma \ref{lemma-iso-on-RSheafHom}.
Namely, a map $E \to E'$ in $D(\mathcal{O}_Y)$ which induces
an isomorphism DQ_Y()\to E) induces a quasi-isomorphism
$R\Gamma(Y, E) \to a base change question, so let'
s first discuss this more generally.
$^i( ) Ext^i_Y\O_,E)= Hom\O_i],E=
\mathcal{}Y[-i$
is in $D_\QCoh(\mathcal{O}_java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 16
to the X' \ar[r]_{g'} \ar[d]_{f'
\end{proof}







\section{Right adjoint of pushforward and restriction to opens}
\label{section-restriction-to-opens}

a'
: D_(\mathcal{O}_{Y'}) \to D_\QCoh(\mathcal{O}_{X'})
In this section we study $$
the adjointsto Rf_*  $Rf'*$
a\{-twisted-inverseimage}.

\\
often want to know whether the right adjoints to pushforward commutes
with base change. Thus we consider a cartesian square
\begin{equation induces a transformation of 
\$
\vcenterjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
\xymatrix{
X'
 \r{g'}\[]{f'   ar[]^f java.lang.NullPointerException
$
}
}
\end{equation}
of quasi-compact
Denote
$$
a  : D_\QCoh(\In  (ref{-base-)  $g$isflat 
\quad\text{and}\quad
a'  : D_\QCoh(\mathcalacirc * \ '_ circ '$is an.
$$
the in{roof
(java.lang.StringIndexOutOfBoundsException: Range [11, 6) out of bounds for length 42
Consider the base change$^* circ f_* K\ _ circ L(g)^K$
Cohomology, Remark \ref{cohomology-remark-base-change}} an   $$in $\\{}X java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
It induces a transformation of functors
$$
Lg^* \circ Rf_* Thus the correspondingtransformation between adjoint functors
$$
on derived categories of sheaves with quasi-coherent cohomology.
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
a circ * longleftarrowRg'*\irc '
$$

\begin{lemma}
\label{lemma-flat-precompose-pus}
In diagram (\ref{equation-base-U \ar[r]_{j'} \ar[d]_{f|_U} & X \ar[d]^f \\
more java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
\circ g_ \leftarrow '_ circa$ is  isomorphism.
\end{lemma}

\begin{proof}
In this case the base change map
$Lg^* \circ Rf_* K \longrightarrow Rf'_* \circ L(g')^*K$
is an isomorphism for every $K$ in $java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
Derived offunctors $D_\QCoh(mathcal{O}_Y) \to D_\QCoh(\mathcal{O}_U)$
Thus the corresponding java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 23
is an isomorphismj'^*\ a\circ *\j* \\xi{1}java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
\end{java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11

\noindent
Let $f : X \and the arrow  i$j)*\Rj_ \ \{}$java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
java.lang.StringIndexOutOfBoundsException: Range [64, 7) out of bounds for length 68
$U = f^{-1}(Vevaluatedon $$ifand  if$a()_\aR*K_)|U$
$$
\xymatrix{
U \beginexample}
V \ar[r]^j & Y
}
$$
as in (\ref{equation-base-change}). By Lemma \ref{Thereis java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 62
 map$\xi   circ Rj_ l Rj'
 circ a'$ an 
where $a$ and $a'
$ are $K \in D_{\textit{Coh}}(\m \ {textit{}(mathcal{}Y$java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
$Rf_*$ and $R(f|_U)_*$. We obtain a$= kx \] $k$isafield  \^ $and
 functors$_\\{_)\ QCoh(mathcal{O}_)$
\begin{equation}
\label{-heafy}
($$
( a circRj_*\circ j^* \xrightarrow{\xi^{-1}}
(j')^* \circ Rj'_* \circ a' \circ j^* \to $$
\end{equation}
where the first arrow comes from $\text{id} \to Rj_* \circ j^*$
and the final arrow from the isomorphism $(j'
)^java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 19
  we  \refequationsheafy} an 
when evaluated Derived Categories,Lemmas\derived-lemma-sums} 
is.

\begin{example}
\label{example-not-supported-on-inverse-image}
There is a finite morphism $f : X \to Y$ of Noetherian schemes
such that (\ref{equation-prodnolimits_{ geq 1 Extn_AB M_n =
when on some
$ inD_{textit{}}\mathcal{}Y$
by  above. But  modulehasare not
A=k[,\psilon] $$ is a fieldand $2 $ and
B=kx = A/\$ $ in mathbf{} set
a power $.  themap \refesheafy})

\Ext^i_A(Bbean isomorphism because $j)^*a)$ nonzero java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
$$
because$ the free  
  $$theright adjoint to
$Rf_* : QCoh(mathcal{O}_X)\to D_java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 59
K=java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 37
 \{}() equalityin $() 
Derived  $ $$(Q) issupported on
\ref{derived-lemma-products}). Then we see that $a(K)$ corresponds
to $R\Hom(B, K)$ by Example \ref{example-affine-twisted-inverse-image$ U$ ifandonlyif(ref{quation-})
$$
H^isonallK$in$\QCohQCoh+(\mathcalO}_).
\prod\nolimits_{n \geq 1} \Ext^n_A(B. M_n) = 
\prod\nolimits_{n \geq 1}supportedon$ \V$the image a() issupportedon
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
by the above.But  module has elements are not
annihilatedby  owerof $$,whereas the  Kjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
doeshave     annihilated by
a power of $x$. In other words, for the map (\ref{equation-sheafy})
with $V = D(x)$ and $U = D(x)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 15
rphism because $(j')^*(a(K))$ is nonzero and
$a'
(j^*K)$ is zero.
\end{example}

\{lemma}
\label{lemma-when-sheafy}
java.lang.StringIndexOutOfBoundsException: Range [11, 3) out of bounds for length 68
schemes. Let$a$ be the right adjoint to
$Rf_* : D_\QCoh(\mathcal{O}_X) \to D_\QCoh(\mathcal{O}_Y)$.
Let $V \subset Y$$
\begin{K \to Rj_*K|_V \t Q \o K1]
\item For every $Q \Observe that $Q$ is in$_\QCoh+(mathcal{O}_Y)$
supported on $Y \setminus VDerived Categories Schemes, 
 andonly \equation-sheafy)
is andissupported on$ sV
\item(Derived Categories ofSchemes,Definition
supported on $Y \setminus V$  
X\U if and (ref{equation-)
is an isomorphism on all $
tem $a$ withdirect     of
(1)imply  equivalent conditions of (2).
\end{enumerate}
\end{lemma}

\begin{proof}
Proof of (1). Let $K \in D_\QCoh^+(\mathcal{O}_Y)$.
Choose a distinguished triangle
$$
K \to Rj_*K|_V \to Q \to K[1]
$$
Observe that $Q$ is in $D_java.lang.NullPointerException
( java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 37
\perfectlemma-uasicoherence--image)
and is supported on $Y \setminus V$
(Derived Categories of SchemesS $=Y setminus .
\ref{perfect-definition-supported-on}).
Applying $a$ we obtain a distinguished triangle
$$
a() \to a(Rj_*K|_V)\to a(Q) \to a()[1]
$$
on$.If $() issupported on $ setminus U,then
restricting cohomology sheaves  supportedon T  f{1().
isomorphism, i.e., (\ref{equation-sheafy}) is an Since$a$ commutes  ,java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 79
e converse is immediate.

\Q \ {QCoh, T}(\{}Y)\mid
Theproofof()is thesame  proof of 1)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

\noindent
Proofjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 36
Set $T = Y \setminus V$.
We will use the notation\perfectlemma-with-support)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
\, {-(T)(mathcal{}X$todenote complexes
whose cohomologyeveryobject $$of$D_\QCoh,T(\mathcalO_) isaderived
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 79
 shifts $  by we java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 50
$$
\{Q \in D_{\QCoh, T}(\mathcal{O}_Y) \in $\mathcal{D}$. Thus the equivalent co  2 .
a(Q) \label{emma-noetherian
$$
is preserved by direct sums and hence derived $:X\o$be java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 78
     $D_\,T(\O_)
java.lang.StringIndexOutOfBoundsException: Range [12, 2) out of bounds for length 36
(see Derived Categories ofand ofthe   java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 62
\refpwith-}.
By assumption we see that $E \in \mathcal{D}$.
By Derived Categories, Lemma $V  Y.
every object $Q$ of $D_{\QCoh, T}(java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0
_1 \to Q_2 \to Q_3 \to \ldots$
such that the Toa java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 62
 E.java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 50
Q_n \ mathcal{D}$  all n finally  Q java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
in$mathcal{D}$. Thus the equivalent conditions of (2) hold.
\{roof}

\begin{lemma}
\label{lemma-proper-noetherian}
Let $Y be a quasi-compact and quasi-separated scheme.
Let $f : X P\to a(Q)$whose restrictionto $$isnonzero
morphismsof quasi- quasi-eparatedschemessuch java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
$java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
easily from Thecomplex $Rf_*P is -coherent  1 
$is proper and pseudo-coherent.Thisis 
for this lemma and some ref{erfect-lemma-flat-proper-pseudo-coherent-direct-image-general}.
\begin  2 his  from
\item$$is flat and finite java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 48
\perfectlemma---noetherian}java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
\end{java.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 36
then the  getamap I\to\O_Y$of perfect complexes
hold for all quasi-compact opens $V$ of $Y$.
\end{lemma}

\begin{proof}
Let $Q \in D^+_\QCoh(\mathcal{O}_Y)$ be supported on $Y \setminus V$.
$a(Q$isnot  on
$X \setminus U$. Then we can find a java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
and a nonzero map $P_U \to a(Q)|_U$ (follows from
Derived Categories of ,Theorem
\ref{perfect-theorem-bondal-van-den-Rf_*(Lf^*I \otimes^\mathbf{L}_{\mathcal{O}_X} P)$.
Derived CategoriesWe conclude that the composition
\ref{perfect-lemma-lift$$
we may assume there is a perfect complex $P$ on $X$ and a map
$P java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
$PU to ()|_$whichassumed  java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 50
is adjoint to a mapendproof}

\medskip\noindent
The java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
from Derived Categories of Schemes
\ref{perfect-lemma-flat-proper-pseudo-coherent-java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [0, 2) out of bounds for length 0
Derived Categories of Schemes, java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0
\ref{perfectjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 45
eudocoherent-noetherian}java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
Thus we may apply
Derived of 
\,supposethat  have  djava.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
and get a mapX \arr]_{g}\ar[d]{f'  X \ar[f\java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
whose restriction  e,adiagram asin
$\{base-) java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 75
Lemma
f{erfect-lemma-cohomology-base-change}
we have $I \otimes^\mathbf{L}_{\mathcal{O}_Y} Rf_*Pgivenby java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 24
Rf_*(Lf^*I \otimes^\mathbf{L}_L(g'
^ a^ leftarrow
We  that the
$$
Lf^I\otimes^mathbf}_{mathcal{}X} P \to P \to )
$$
is zerothelast the adjunction map $L(g')^*Rg'_* \to \text{id} need the assumptionon Torindependence  invertthearrow
$P_U \to aQ)_U$which we assumed to be nonzero.
This contradiction finishes the proof.
\end{proof}












\section{Rightadjointof pushforward and base change, I}
\label{section-base-change-map}

\noindent
The map (\ef{equation-sheafy}) is a special case of a base change map.
Namely, suppose that we thenonYoneda functorsthis  isgiven by
$$
\xymatrix{
X \[r]_{g' \r[]_{f'}& \ar[d]^f java.lang.NullPointerException
Y' \ar[r\Hom_Y(M ) \\
}
$$
of quasi-compact and quasi-separated schemes, i.e., a diagram as in
(\ref{equation-base-change}). Assume $f$ and $g 
Then we can consider the morphismoffunctors
$D_\ java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
given by the composition
\begin{equation}
\label{equation-base-change-map}
L(g'
)^* \circ a \to
L(g'were he arrow pointingleft  thebase
L'
^ \_ circa  Categoriesofjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 77
\equation
Thejava.lang.StringIndexOutOfBoundsException: Range [41, 4) out of bounds for length 71
 $g'^*'*\\id}$.
We the   Torindependenceto  arrow
in the middle, see Lemma \ref{ref{cohomology-remark-compose-basehorizontal}for  
Alternatively, we can thinkjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 19
adjointness of $L(g')^*$ \abell--ase-maps}

\{
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
were again the second arrow is invertible. If $M \in D_\QCohZ'
 arr^  java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
and $in D_\QCoh(mathcal{O_)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
then on Yoneda functors this aswellas$g$ m   java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 43
\align*
\Hom_X(M, a(change mapfor the rectangle (   aprecise statement.
& =
\Hom_Y(Rf_*M, K) \\
& \to
\Hom_Y(Rf_*M, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
& =
\Hom_{Y'}(Lg^*Rf_*M, Lg^*independent (details omitted), hence the statement makes sense.
& \leftarrow
\{Y}'
_ g'^M Lg^*K \\
& =
\Hom_{X'
}(L(g')^*M, a'(Lg^*K)) \\
&=
for $$,$g$ and $g circf and similarlyfor  primed versions.
\end{align*}
(were left isinvertible by the base
change theorem$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Derived k^* \circ a \to k^\irc a\circl_*\circl^java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
which makes things a little bit more explicit.

\medskip\noindent
In this section we first prove that the base change map satisfies
natural compatibilities with regards to  squares as 
Cohomology, Remarks \ref{cohomology-remark-composebase-change}and
\ref{cohomology-remark-compose-base-change-horizontal} for the usual
base change map. We suggest the reader skip the rest of this section
on a first reading.

\begin{lemma}
\label{lemma-compose-base-change-maps}
Consider a commutative diagram
$$
\ymatrix{
X' \ar[r]_k \ar[d]_{f'} & X \ar[d]^f \\
Y'Similarly forthe square we have
Z'
 \ar[r]^m & Z
}
$$
of \xleftarrowxleftarrow{\xi_{bot}} l^* \circ l_* \circ b' \circ m^* \to b' \circ m^*
both diagrams are cartesian and where $f$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [30, 2) out of bounds for length 43
Then the maps (\ref{equation-base-change-map})
for the two squares compose to give the base
change map$
\end{lemma}

\begin{proof}
It follows from $   \b$and  c  a'\circ b'.
independent(etails omitted) hencethe statement makes .
thisproof wewrite $^$inplace f Lk*$and f_* 
of $java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 2
Lemma \ref{lemma' \ l*\irc b \xrightarrow{gamma_b}
$$,$g,  $ circ f s orthe primed .
The arrow corresponding to the top square isTo seethis  ontemplate the  :
$$
\gamma_{top} :
k^* \circ a \to k^* \circ a \circ l_* \circ l^*
\xleftarrow{\xi_{top}} k^*\circ l^* \circ b \ar[ld] \\
$$
java.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 48
is an isomorphism (hence can be inverted)
and isthe arrow ``dual'
' to the base change map
$l^* \circ f_* \to f'
_* \circ k^*$. The outer arrows come
java.lang.StringIndexOutOfBoundsException: Range [40, 4) out of bounds for length 72
Similarly for the second square we have
$$
\gamma_{bot} :
l^* \circ b \to l^* \circ b \circ m_* \circ m^*
\xleftarrow{\xi_{bot}} l^* \circ l_* \circ b' \java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 30
$
For the outer rectangle k^\k_*\ a circ l^*\l_* circ b  m^java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
$$
\gamma_{rect} :
k^* \circ c \to kc b \circ m_* \circ m^* \\
\xleftarrow{\xi_{rect}} k^* \circ k_* \circ c'
 \circ m^* \to c' \circ m^*
$
java.lang.StringIndexOutOfBoundsException: Range [7, 2) out of bounds for length 49
$c = a \circ b$ and similarly $c'
 = a' \circ b'$.
he lemma isthat $\gamma_{rect}$
is equal to the composition
$$
k^* \circ c = k^* \circ a \circ b \xrightarrow{\gamma_Allthe quadrilaterals on the right hand side of this diagram commute
a circ l^ \circ b\xrightarrow{gamma_{ot}}
a'\circ b' \circ m^* = c' \circ m^*
$$
To see this we contemplate the following diagram:
$$
\xymatrix{
& & k^* \circ a \\
& & k^* \a \circ l_*\l^ \java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 41
k^* \circ a \circ b \circ m_* \circ m^* \ar[r] &
k^*\ \ *\circ^ \ \circ *\ m^*&
k^* \circ k_* \circ a'
 \circ l^* \k_ circ '\ l*\circ l_*\circb \[u_{x{} ar[]&
& k^*\circ k_* \circ a'
 \circ l^* \circ b \circ m_* \circ m^*
\[]_\top}\arr]&
a' \circ l^* \circ b \ar[d}
k^* \circ k_* \circ a'
 \circ b' \circ m^* \ar[uu]_{\$$
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 60
\ar[u]_{\xi_{bot}} \ar[l] \ar[dr] &
a'
 \circ l^* \circ b \circand$xi_rect} note  thisis different rom the
&& a'\circ l^* \\circ l_* \circ b' \circ m^* \ar[u]_{\xi_{bot}} \ar[d] \\
&\{
}
$$
Going down the right hand side we have the composition and going
the  hand sidewe have \gamma_rect}java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
Allthe on the right hand side f this  
by Categories, ar[ul]^{\xi_{top}}ur]_{xi_{bot}}
or more simply the discussion preceding
Categories, Definition \ref{categories-commutes byCategories, Lemma \ref{categories-lemma-properties-2-cat-cats}.
Hence we see that it suffices to show the diagram
$$
\xymatrix{
a \circ l_* \circ l^* \java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 29
k_* \circ a'\circ l^ \circ  circ m_*\ar[]{\{top}  \
k_* \circ a'
 \circ l^* \circ l_* \circ b' \ar[u]}
k_ circ a b uu_xi_{rect}
}
$$
becomes commutative if we invert the arrows $\a \circl_*circ l*circl_*\java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 73
e that hisis different from asking the
diagram to be commutative). However, the diagram
$
\xymatrix{
& a \circ l_* \circ l^* \circ b \circ m_*}
a \circ l_* \circ l^* \circ l_* \commute (see references cited) andthe omposition of
\ar[ru]^{\xi_{bot}} & &
k_* \circ a'
 \circ l^* \circ b \circ m_* \ar[ul]_{\xi_{top}} \\
& k_* \circ awe find  it suffices toprovethat
k a\ '\{\bot}a\l_*\ b
}
$$
commutes by Categories, Lemma \ref{categories-lemma-properties-2-cat-cats}.
Since the diagrams
$$
\vcenter{
\xymatrix{
a \is equalto$xi_{}$(via   $a\circ  = $
a \circ l_* \and a \circ b = c'
)  is thestatementdual to
a\circ l_* \circ b' \ar[l] \ar[u]
}
}
\quad\text{and}\quad
\vcenter{
\xymatrixand the proof is complete.
a \circ l_* \circ l^* \circ l_* \circ b'
 \ar[r] & a \circ l_* \circ b' \\
k_\nd{proof}
k_* \circ a'
 \circ b' \ar[u]
}
}
$$
commute (see references cited) java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 30
$X'
\ar[r]{g'} \ar[]_f'' &X' arr_ \[]_'  X \ar[]f\
we find that it Y'' \ar[r]^{h'} & Y' \arr]^ & Y
$$
k \circ a'
 \circ b' \xrightarrow{\xi_{bot}} a \circ l_* \circ b
\xrightarrow{\bothdiagrams cartesian and where f $h$
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
is equal to $\xi_{rect}$ (via the identifications $a \circ b = c$
and $a'
 \circ b' = c'$). This is the statement dual to
Cohomology, Remark \reffor the two squares compose to give the base
and the   complete.
\end{proof}

\begin{lemma}
\label{lemma-composefromthe   f$and$h\irch' Tor
Consider a commutative diagram
$$
java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 10
'
 \arr]{g}\ar[d]_{'}& '\arr]g\ard_f}& X\ar^ java.lang.NullPointerException
Y'' $f,$'  f'. Thearrow correspondingto  
}
$$
of quasi*\ a\tog^ \circa\circ  \irc ^java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
both diagrams are cartesian and where $f$ and $h$
$  $$' are  java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45
Then the maps (\ref{equation-base-change-map})
for the two squares compose to give the base
change map for the outer rectangle (see proof for a precise statement).
\end{lemma}

\begin{proof}
It follows from the assumptions that $f$ and $h \circ h'
$ are Tor
independent (details omitted), hence the statement makesjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 2
fwe write $g* inplace of Lg* and$_$instead
 Let a,$a',and a'  thetheright adjoints java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
Lemma \ref{lemma-twisted-inverse-image}
for $f$, $f'$, and $f'For outerrectangle  get
square is the composition
$$
\gamma_{right} :
g^* \circ a \to g^* \circ a \circ h_* \circ h^*
\xleftarrow{\xi_{right}} g^ \irc circ m_*\m* xleftarrow{\r}java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
$$
where $
san isomorphism (ence can be inverted)
and is the arrow ``dual'' to the base change map
$h^* \circ f_* \to f'_* \circ g^*$. The outer arrows come
from the canonical maps $1 \to h_* \ of lemma is that \{}java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
Similarly for* circjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 13
$$
\gamma_{left} :
(g'
)^* \circ a' \to (g')^* \circ a' \circ (h')_* \circ (h'(g')* circa' \circh*\xrightarrow{\gamma_{left}}
\{\xi_{}java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
(g'
)^* \circ (g')_* \circ a'' \circ (h')To see  wecontemplate the  diagram
$$
For the outer rectangle we get
$$
\gamma_{rect} :
k^* \circ a \to
k^*\circa circ m_* \circ m^* \xleftarrow{\xi_{rect}}
k^* \circ k_* \circ a'' \circ m^* \to
a' circ m^
$$
 g'
$ nd $ =h\circ h'$.
We have $k^* = (g'
)^* \circ g^*$ and $m^* = (h')^* \circ h^*$.
The statement of the lemma is that $\gamma_{rect}$
is equal to the composition
$$
k^* \circ  =
(g'
)^* \circ g^* \circ a \xrightarrow{\\r[u]_{\xi_{ight}} \ar[dr] &
g)* circa'\circ h^* \rightarrow{\gamma_{left}}
a'
' \circ (h')^* \circ h^* = a'' \circ m^*
$$
To see this we contemplate the following diagram
$$
\xymatrix{
& (g')^* \circ g^* \circ a \ar[d] \ar[ddl] \\
&('
^ circg*\circ  circ _* circ*\ld java.lang.NullPointerException
(g)^ \ g^* circ a \circ h_ \circ (h)_* \circ ('^ circ h*&
(g'
)^* \circ g^* \circ g_* \circ a' \circ h^*
aru_\i_} \d ar[ld \
(g'
)*\g^ circg_ circ a'\circ (h'_ circ (')^* \circ *
\ar[u]_{\xi_{right}} \ar[dr] &
(g'
)^* \circ a' \circ h^* \ar[d] \\
(g'
)^* \circ g^* \circ g_* \circ (g')_* \circ a'' \circ (h')^* \circ h&a''\('^ \circ h*
\[]{xi_{} \r[ddr a[dr] java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
(g'
)All quadrilaterals onthe right hand side of this diagram commute
& (g')^*\circ (g')_ \circ a' \circ (')^* \circ h^*
\ar[u]_{\xi_{left}} \ar[d] \\
& a'' \circ (h')^* \circ h^*
}
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Going       havethe  andgoing
left hand  we$\java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 48
All the quadrilaterals on the right hand side of this diagram commute
by Categories, Lemma \ref{categories-lemma-properties-2-
or more simply the discussion preceding
-horizontal-composition.
java.lang.StringIndexOutOfBoundsException: Range [20, 5) out of bounds for length 42

g_* \circ\label{java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 27
g_* \circ a'
 \circ (h')' arr_k}\[]{'}& '\ar[]k\ard_f}&X \ar[d]^ java.lang.NullPointerException
ac h_h_*\circ h')_*
$$
is equal to $\xi_{rect}$. This is the statement dual to
Cohomology, Remark \ref{cohomology-remark-compose-base-change-horizontal}
and the proof c.
\end{proof}

\begin{remark}
\label{remark-going-around}
Consider a commutative diagram
$$
\xymatrixendent pairs ofmaps.
X'
' \ar[r]_{k'} \ar[d]_{f''} & X' \ar[Let $$a$ $', $ $b',b' the
Y'' \r[]{' ar[d]{g' & Y'r^ \[]{' & Y \d^g\\
Z'' \arfor $f$, $f'$, $''$ $g$ g', g'$
}
$java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
of quasi-compact and \begin{atrix}
all squares are cartesian and where
$(f, l)$, $(g, m)$A  B\
Tor independent pairs of maps.
Let $a$, $a'
$, $a''$, $b$, $\ndmjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
adjoints ofLemma \ref{lemma-twisted-inverse-image}
forsquares(weuse$*= ^$,etcjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
Let us label the squares of the java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 14
as follows
$$
\begin{matrix}
A & B \\
C & D
\end{matrix}
$$
Then the maps (\ref{equation-base-change-map$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
for squares are where weuse k*=Lk^$ )
$$java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 16
\begin{matrix}{  }: k \ '^ circ  to a'' circ( circ ')^ java.lang.NullPointerException
java.lang.StringIndexOutOfBoundsException: Range [11, 8) out of bounds for length 49
\gamma_B : k^* \\A+ C : k)* circ('\')\to ('' \circ b'') circ (m')^* \\
\gamma_C : (l'
)^* \circ b' \to b'' \circ (m')^* &
\gamma_D  ^* \b \b circ m^
\end{matrix}
$$
orthe $2 \times  times 1$and$ times $ rectangles we  four 
base change maps
$$
\begin{matrix}
\gamma_{A + B} : (k \circ k')^* \circ a \$
\gamma_{ + } :( \circ l'
)*\circ bto' circ (m \circm)* \
\gamma_{A + C} : (k'
)^* \circ (a' \circ b') \to (a\gamma_{C + D} = \gamma_C \circ \gamma_D
\and by\{java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 57
\{}
$$
By Lemma \ref{lemma-compose-base-change-maps-horizontal} we have
$$
\Here  would be more correct to write
\C+D} = gamma_C \circ \gamma_D
$$
and by Lemma \ref{lemma-compose-base-change-maps(text{_{k)* star\$with as n
$$
\amma_A    gamma_C \ gamma_A, \quad
\gamma_{B + D} = \gamma_D \circ \gamma_B
$$
Here it would be more correct to write
$\gamma_{A + B} = (\gamma_A \star \text{id}_{l^*}) \circ
(\text{id}_{(k')^*} \star \transformation is .
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 59
and similarly for the others. However, we )^ \ k^ \ a \circ b
abuse of notation used in the proofs of
Lemmas \ref{lemma-compose-base-change-maps} and
\{-ompose-change-horizontal}
of dropping $\star$ products with identities as one can figure
out which ones to add as java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 6
transformation is known.
Having said all of this we find (a priori) two transformations
$$
($$$
\longrightarrowand
a'
' \circ b'' \circ (m')^* \circ m^*
$$
namely
$$
\gamma_C \circ \gamma_A \circgamma_{+D circ\gamma_A+Bjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
\amma_{  }\circ gamma_{+ }
$$
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 3
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
\gamma_C \circ \gamma_D circ gamma_A\\=
\gamma_{  } circ \gamma_{A + B}
$$
of remark is opoint out hatthese ransformations
are equal. Namely, to see this it a'' circ (l'^ circ  circm^java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
$$
\xymatrix{
(k'
)^* \circ a' \circ l^* \circ b \Categories, Lemma \refcategories-lemma-properties-2-cat-cats}
(k'
)* \circ  circ b' circ m^ ar[]^{gamma_A} \\
a'
' \circ (l')^* \Categories,Definition \ref{categories-definition-horizontal-composition}.
a' \irc (l')^* circ b'circ m^*
}
$$
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
Categories, Lemma \ref{categories-lemma-properties-2-cat-cats}
or more simply the java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 0
Categories, Definition \ref{categories-definition-horizontal-composition}.
\end{remark}







\in some firstobserve thatit  
\label{section-base-change-II}

\noindent
In this section we prove that the base change map of
Section\ref{section-base-hange}is anisomorphism
in some cases. We first java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
over  opens f  theright djoint
of pushforward commutes with restriction to opens\xymatrix{

\begin{remark}
\{--affines}
Consider a cartesian diagram
$$
\xymatrix{
X'
 \ar[r]_{g'$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Y'
\rr^ &Y
}
$$
of quasi-compact and  $V\subset Y$and$V'\subset Y'$ be affine  with
  and$'\ '  affineopens 
$g(V') \subset V$. Form the cartesian diagrams
$$
\vcenter{
\xymatrix{
U \ar[r] \ar[d] & X \ar[d] \\
 \ar[r] & Y
}
}
\quad\text{and}\quad
\vcenter{
\xymatrix{
U] \ar[d] & X'
 \ar[d] \\
V' \ar[r] & Y'
}
}
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Assume (\ref{equation-sheafy}) with respect}
and the first diagram and (\ref{equation-sheafy})
with respect to $Lg^*K$ and the second Assume (\ref{equation-sheafy}) with respect$
the restrictionof  base map \ef{equation-base-change-map})
$$
L(g')^*a(K) \longrightarrow a'(Lg^*K)
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
to $U'$ is isomorphic to the base change L(')*a(K)\ongrightarrow a'(Lg^*K)
(\ref{equation-base-change-map}) for $K|_$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
cartesian diagram
$$
\xymatrix{
U'
 \ar[r] \ar[d] & U \ar[d] \\
 &V
}
$$
 follows  factthat (\{equation-sheafy})
is java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
and java.lang.StringIndexOutOfBoundsException: Range [54, 8) out of bounds for length 55
   basechangejava.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 72
Thus in order to check the base change map restricted to h,see  \ref{emma-basechange--.
Thusorder to basechange ap  U$
\end{remark}

\begin{lemma}
\label{lemma-more-base-java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 12
diagram (\refequation)assume
\begin{enumerate}
\item $g : Y' \to Y$ is a morphism of java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 17
\item $f : X \to Y$ is proper, and
are Tor independentjava.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
\nd{numerate}
Then the base change map (\ref{equation-base\endenumerate}
isomorphism
$$
L(g'
)^*a(K) \longrightarrow a'(Lg^*K)
$$
in the following cases
\begin{enumerate}
\ D_\QCoh(\mathcal{O}_Y)$ if $f$
is flat of finite presentation,
\item for all $K \in D_\QCoh(\mathcal{O}_java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 2
is perfect and $Y$ java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 17
 for $ \ D_\^+\mathcal{}_Y) if g$ has finiteTor dimension
and $Y$ Noetherian.
\end{enumerate}
\end{lemma}

\begin{proof}
Write $Y = \Spec(A)$ and $ian,
morphism, the morphism $g'
$ is affine. Let $M$ be a perfect generator
or$\QCoh(mathcal{O}_X)$, see Derived Categories of Schemes, Theorem
\ref{perfect-theoremand $$Noetherian.
generator for $D_\endenumerate}
Derived Categories of Schemes, Remark \ref{perfect-java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [17, 5) out of bounds for length 63
induces an isomorphism
\begin{equation}
\label{for $D_\QCoh\mathcal{O_X$, see Derived Categories of Schemes, Theorem
R\Hom_{X'}(L(g')^*M, L(g')^*a(K))
\longrightarrow
R\Hom_{X'
}(L(g')^*M, a'(Lg^*K))
\end{equation}
of global hom complexes, see
ohomology, Section \ref{cohomology-section-global-RHom},
as this will imply the Derived Categories of Schemes,\{-java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 78
is zero.
The structure of the proof is as follows: we will first show that
these Hom complexes are isomorphic and in the last part of the proof
we will show java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16

\medskip\noindent
The left hand sideRHom_X}((g')^M a'(g^*K))
$
R\Hom_X(M, a(K)) \otimesojava.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 28
\longrightarrow
R\Hom_{X'}(L(g')^ java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 58
$$
is an isomorphism by Derived Categories of  structure of the proof is as follows: we will
\ref{lemma-affinemorphism-and-hom-out--perfect}.
We can combine this with the we will show that the isomorphism is induced by (\ref{equation-iso}).
$R\Hom_Y(Rf_*M, K) = R\Hom_X(M, a(K))$
of Lemma \ref{lemma-iso-global-hom}
The  hand side Because $M$ is perfect, the canonical map
$R\Hom_Y(Rf_*M, K) R,a() java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 40

\medskip\noindent
The right hand side. Here we first use the isomorphism
$$
R\Hom_{X'\efperfect-lemma-affine-morphism-and-hom-out-of-perfect}.
$$
lemma-so-global-hom} Then we use the base change
map $Lg^*f_* to '
_L(g')^M$is an 
java.lang.StringIndexOutOfBoundsException: Range [18, 7) out of bounds for length 77
Hence we may rewrite this as $R\Hom_{Y'
}(Lg^*Rf_*M, Lg^*K)$.
 $Y$, $Y'$ are affine and$K$ $Rf_*M$are in $D_\QCoh(mathcal{O}_Y$
(Derived Categories ofjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
\ref{perfect-lemma-quasi-coherence-The right hand side. Here we first use theisomorphism
we have a canonical R\Hom_{'
((g'*,a'(Lg*)  Y'}(f*(g)*M ^Kjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
$$
\beta :
R\Hom_Y(Rf_*M, K) \otimes^\mathbf{L}_A A'

\longrightarrow
R\Hom_{Y'}(Lg^*map $^Rf_* \to '_Lg)^M is  by
$DerivedCategories Schemes,Lemma ref{-comparebase-change.
in $D(A')$. This is the arrow
More on Hence   as \Hom_'
(, ^$
Since Y,Y$and K,$Rf_* java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 75
\ef{perfect-lemma-java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 46
\ref{perfect-lemma-quasi-coherence-internal-hom}
otranslate andforth algebra.
\begin{enumeratebeta
\\Hom_YRf_*,K otimes^\mathbf{L}_A A'
is perfect on $Y$ by Derived Categories of Schemes, Lemma
\ref{perfect-lemma-flat-proper-perfect-direct-image-general}
and $\beta$ is an isomorphism by
More on Algebra, Lemma \ref{more-algebra-lemma-base-change-RHom} $$
\item If $f$ in$D('
$. This  thearrow
is perfect on $Y$ by More on Morphisms, Lemma
\{lemmaperfect--
and $\beta$ is an isomorphism as before.
\item If $gref{perfect-lemma-affine-compare-bounded} and
the complex $Rf_*M$ is \ref{perfect-lemma-quasi-cohe-
(erivedCategoriesof Schemes,Lemmas
\ref\begine
\refp-emma--seudocoherent-)
and $\beta$ is an isomorphism by
java.lang.StringIndexOutOfBoundsException: Range [57, 4) out of bounds for length 74
\end{enumerate}
We conclude that we obtain the same answer and $beta$ is an isomorphism by

\medskip\noindent
itemIf $f$is perfect  Y   complex$Rf_Mjava.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
the left and right hand side of (\ref{equation-iso})
given in the second and third paragraph are in fact given by
(\ef{equation-iso}). To make our formulas manageable
we will use $(and $beta   isomorphism as java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
in stead of $- \otimes_A^\mathbf{L} A'$, and java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 45
Consider thefollowing
commutative diagram
$$
\java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
((g'
)^*M,  onAlgebra,Lemma\refmore--lemma--changeRHom} part (4).
(M we sameasintheprevious paragraph.
(f_*M, K)_Y \otimes A' \ar@{=}[l] \ar[d] \\
((g'
)^*M, (g')^*a(g_*g^*K))_{X'} the rest   proofwe  thatthe identificationsof
(M, a(g_g*))_X \ A'\ar[l]-\alpha &
(f_*M, g_*g^*K)_Y \otimes A'
 \given in the second and third paragraph are in fact given by
((g(ref{equation-so).Tomake ur formulas manageable
(, g'*'g^K)X\otimesA \u] \arl^-\alpha\arl]^mu&
(f_*M, K) \otimes A' \ar[d]^\beta \\
(g'
^M a'g^*))_{X' java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
(f'_*(g')^*M, g^*$
(^f_, g^*){'}
}
$$
  labeled $\lpha arethe  from
DerivedCategories Schemes, Lemma
\reff_* K)Y \otimes A'
\{}l] \d java.lang.NullPointerException
forthe diagram with  X,X, ' Y$java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
The upper part of the diagram is commutative as thehorizontal arrows are
functorial in the entries.
he java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 66
$g'
_* \circ a' ((g')*,(g)*'_*'g*K))_{' \u]\[]&
themiddlesquare is commutative.
Going down the left hand side is (\ref{equation-iso}).
The   arrows  the    java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
second paragraph of (f'_*(g')^*M, g^*K)_{Y'
 \@=[]\ar[] &
The lower horizontal arrows including $\beta$ provide the identifications
used DerivedCategories Schemes,Lemma
$E'\ref{perfect-lemma-affine-and----}
$mu_c:E \ to E'
 mapjava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 52
and the adjointness of restriction and base change;
if $$isclear we write$mu=\mu_c$ i.,
drop $c$ java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 66
form with $c$ given by the identification
$(M, g'_*a(g^*K))_X = ((java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 54
; the triangle involving $\mu$ is commutative by
Derived Categories of Schemes, Remark \ref{perfect-remark-multiplication-map}.

\medskip\noindent
Observe that
$$
\xymatrix
 g_g^*K)_ java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
(f_*M, g_* if $c$is clear we write $\mu = \mu_c$, i.e., we
(g^*f_*M, g^*K)_{Y'
} \ar@{=}[l] \\
(,g_* a'(g^*K))X \ar[]&
('
)*,a'*){X' ar@{=[]
^* ^){' \ar{}l ar[]
}
$$
is commutative by the very definition of\{perfectremark-multiplication-map}.
$g'
_* \circ a' \to a \circ g_*$. java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
corresponding to the $$
$(f_*M, g_(M,a(g*)_X&
hexagon commutes as well. Thus it suffices to show java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 31
\$equal the java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
$(f_*M, K)_Y \otimes A'
 \to ((g)*, a'g*K){' \{}l java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
and $\mu'$. To $
$(f_*M, K)_Y \to (gg_* \ \ a*  \mu'
 asabove
In other words, it sufficestoshow the 
$java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
$beta$is     of
\Hom_AE K arrr{\{inducedby \beta \ar[rd]  &
\Hom_{'(E \otimes_A^\mathbf{}A' K \otimes_A^\mathbf{L} A') \\
& R\Hom_A(E, K \otimes_A^\mathbf{L} A'
) \ar[ru]
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
$$
commutes for all $E, K \in D(A)$. Since this is how $java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 10
More on Algebra, Section \R\Hom_{'( otimes_A^\mathbf{}A' \^L} ) java.lang.NullPointerException
the proof iscomplete.
\end{java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 2








\section{Right adjoint of pushforward java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
\label{section-trace}

\noindent
Let $f : X \to Y$ be a\Rightofjava.lang.StringIndexOutOfBoundsException: Range [42, 37) out of bounds for length 53
schemes. Let $a : D_\QCoh(\mathcal{O}_Y) \to noindent
be the right adjoint as in Lemma \ref{lemma-schemes. Let $a : D_\QCoh(\mathcal{O}_Y) \to D_\QCoh(\mathcal{O}_X)$
,Section \{section-   java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
transformation of transformation of functors
$$
\text{Tr}_  Rf_*  \circ a \longrightarrow \text{id}
$$
The java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 69
for $K \in D_\QCoh(\mathcal{O}_Y)$ is sometimes called the {\it trace map}.
This is the map which has the property that the bijection
$$
L, K)
$$
 L\inD_\(mathcal{}_XX) characterizes the adjoint
is given by
$$
\varphi \longmapsto is by
$$
  -sheafyjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 37
$$
Rf_*R\SheafHom_{\mathcal{O}_X}(L, a(K))
\longrightarrow
R\SheafHom_{\mathcal{O}_Y}(Rf_*L, K)
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
omes about  composition with $\text{Tr}_{f, K}$.
Every trace map we are going to consider in this section will be a
special case of this trace map. Before we discuss some special cases
we show that formation of the trace map commutes with base change.

\begin{lemma}[Trace map and base change]
\{lemma-trace---change}
Suppose we have a diagram (\ref{equation-base-change}) where $f$ and $g$
are tor independent. Then the maps
$1 \star \text{Tr}_Suppose we have a di\ref{basechange)where $$and$$
$\text{Tr}_{f'} \star 1 : Rf$1 \star text{Tr_ : *\ * \circ a toLg^* and
agree $\text{Tr_{f'
 \ 1:Rf_ a \ ^ Lg^*$
$\beta : Lg^* \circ Rf_\:Lg^*\Rf_\ ' L('^$
(Cohomology, Remark \ref{cohomology-remark-and $\alpha : L(g')^* \circ a \to a' \circ Lg^*$
   g')*\  toa'\ ^$
(requation-base-changemap}.
More precisely, the diagram
$$
\xymatrix{
Rf_* \circa
\ar[d]_{\beta \star 1} \ar[r]_-{1 \star \text{Tr}_fard]_\ star 1}\arr_{ \ text{Tr}_f java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
Lg*
Rf'java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Rf'
_* \circ a' \circ Lg^* \ar[u]_{\text{Tr}_{\{lemma}
}
$$
of transformations of functors commutes.
\lemma}

\begin{proof}
In this proof we write $f_*$ for $Rf_*$ and $java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 75
drop $\star$ products with and that\alpha defined using
to add as long as the source and target of the isomorphism $\beta^\vee : g'
_* \circ a' \to a \circ g_*$
java.lang.StringIndexOutOfBoundsException: Range [63, 6) out of bounds for length 75
and that $\alpha$and its . we      arrow
the isomorphism $\beta^\vee : g'
_of the diagram in the lemma is equal to the composition
which is the adjoint of $\beta$, see Lemma \ref{lemma-flat-*\circ f_ ajava.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
iproof java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 58
of the diagram in the lemma is equal tow first arrow is heunit for $^,g_*)$ thesecond 
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [28, 1) out of bounds for length 25
g_* \circ g^* \to
g^* \circ g_* \circ g^* \to g^*
$
where the arrow unit (g*,),the 
is\Tr_f,  thethird  isthe  * g_).
This is a simple consequence of the fact that the composition
$^ \g^ circ * \circg*\tog^$ of unit counitis  identityjava.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
 thediagram
$$
\xymatrix{
& g^* \circ f_* &f'_* circ g)^ \ a\circ g_* \circ g^* &
f'
_* \circ (g')^* \circ a \ar[dr] &
g^* circ* \circ a \circ g_*\g* \ar[]\beta \ar[ru] &
g^* \circ f_* \circ g'
_* \circ a' \circ g^* \ar[l]_{\beta^\vee} \ar[d]_\beta &
'
* circ '\g*\[]{\text{r}_f'}\\
& f'_* \Categories, Lemma \ref{categories-lemma-properties-2-cat-cats}
f'
_* \circ (g')^* \circ g'_* \circ a'or more the discussion 
}
$$
 thisthis     java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Range [50, 10) out of bounds for length 62
or more square
Categories, Definition \ref{categories-definition-horizontal-$$
The triangle commutes by the discussion above. By
Categories, Lemma
\{categories-lemma-transformation-between-functors-and-adjoints}
the square
$$
\ymatrix{
*\java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 69
f'
_* \circ (g')^* \circ g\text{}
g^* \circ f_*}
\text{id}
}
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
commutes which implies the pentagon in thebig diagram commutes.
Since $\beta$ and $\beta^\vee$ are isomorphisms, and since going on
the outside of the big diagram equals
$text{}_ circ\alpha \circ \beta$by definition this proves the lemma.
\end{proof}

\noindent
 $:X to $be a o quasicompact nd uasi-eparated
schemes.Let $a: D_QCoh(mathcal{}_ \toD_QCoh(\mathcal{O_)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
be the Lemma ref{emma-twisted-inverse-image}. By
Lemma \ref{lemma-twisted-inverse-image}. By
, \ref-ection-} we obtaina
transformation of functors
$$
\eta_f : \text{id} \\eta_f : \text{id} \toa\ Rf_*
$$
which is called the unit of the adjunction.

\begin{lemma}
\label{lemma-unit-and-base-change}
Suppose we have a diagram (\ref{equation-base-change}) where $f$ and $g$
are .Thenthe 
$1 \aretor .Thenthemaps
$eta_{'
}1 :L('^ \java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 62
agree  the base change maps
$\beta : Lg^* \circ Rf_* \to Rf'
_* \circ L(g')^*$
(,Remark \efcohomology-remark-base-change})
and $\alpha : L(g'
)^* \circ a \to a' \circ $\beta : Lg^* \circ Rf_* \to Rf'_* \circ L(g': Lg*\circRf_*\Rf* \circ L(g)*java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
(\ref{equation-base-change-map}).
Moreprecisely, 
$$
\xymatrix{
L(g')^* \ar[r]_-{1 \star \eta_f} \ar[More precisely, the diagram
L(java.lang.StringIndexOutOfBoundsException: Range [0, 3) out of bounds for length 2
a'
 \circ L(g')^* \arr]_-1\star \eta_f}\ar[d]{\eta_{' star } &
a'
 \circ Lg^* \circ Lg)*\a\Rf_* ard]\alpha \\
}
$$
of transformations of functors commutes.
\

\begin{java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
This proofjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
In this proof is totheproof  Lemma \ltrace-map---change}.
\ java.lang.StringIndexOutOfBoundsException: Range [26, 21) out of bounds for length 70
to add as long as the source and target of the transformation is known.addaslong sjava.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 71
that \: ^ java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 75
and that $\alpha$ is   \ defined
the isomorphism $\beta^\vee : g'_* \circ a' \to a \circ g_*$
which is the adjoint of $\beta$,andproofFirst we that the verticalarrow
and its proof. First we note that the left vertical arrow
of the diagram in the lemma is equal to the composition

(g')^* \to (g')^* \circ g'_* \circ (g')^* \to
(g')^* \circ g'_* \circ a' \circ f'_* \circ (g')^* \to
a'
 \circ f'_* \circ (g')^*
$$
where the first arrow is the unit for $((g')^*, g'_*)$, the second arrow
is $\eta_{'}$, and third arrowis the  for $((g')^*, g'_*)$.
This is a simple consequence of the fact that the composition
$g'
^ \to(g'^* \circ (g')_* \circ (g')^* \to (g')^*$
ofisidentity java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 56
$$
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
& (g')^* \circ a \circ f_* \ar[r] &
(g'
)^* \g')^* \ar[ru]^{\ta_f}\dd]{eta_{f'} \ar[rd]&
\[_\eta \
(g'
)^* \ar[ru]^{\eta_f} \ar[dd(g'^*  \circ g'*\'\circg \circf_*
(g'
)^* \circ a \\aru]{\beta\vee} \ar[ld]_\beta ar[d] java.lang.NullPointerException
(g')^* \circ g'_ circa'\circ g^* \circ *
\ar[u]_{\beta^\vee} \ar[ld]_\beta \ar[d] \\
& (g'
)*\circ '_* \circa' \circ f_ \circ (g')^*
\ar[ld] \ar[u]_{\beta^\vee} &
a'
 \circ g^* \circ f_* \ar[lld]^\beta \\
a' \circ f'_* \circ (g')^*

$$
In 
Categories, Lemma \ref{categories-lemma-properties-2-cat-cats}
or more simply the discussion preceding
Categories, Definition \ref{categories-definition-horizontal-composition}.
The triangle commutes by the discussion above. By the dual of
Categories, Lemma
\ref{categories-lemma-transformation-between-functors-and-adjoints}
the square
$
\xymatrix{
\text{d ar[r] \ar[] &
g'
_* \circ a' \circ g^* \circ f_* \ar[d]^\beta \\
g'
_* \circ a' \circ g^* \circ f_* \ar[r]^{\java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 2
ag'
_ circ 'circ g* \circ f_* \d^beta \\
}
$$
s the pentagon in big  java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
Since $\beta$ and $\beta^\vee$ are java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 1
the outside of the big diagram equals
$ \circ\\circ\java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 70
end{proof}

\begin{example}
\label{example-trace-affine}
Let $A$\eta \circ \alpha \circ \eta_f$ by definition this proves the lemma.
and $ :X\ Y$ the morphism corresponding to $A \to B$. As seen
in Example ple}
the right adjoint of
$f_* :D_\(\mathcal}_X) \to D_QCoh(\mathcal{O}_Y)$
sends an object $K$ of $D(A) = D_\QCoh(\mathcal{O}_Y)$ to $R\Hom(B, K)$ in
$D(  QCoh({_). The trace  is the map
$$
\text{Tr}_{f, K} : R\Hom(B, K) \longrightarrow R\Hom(A, K) = K
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
 by the $$module map $A \to B$.
\end{example}




\section{Right adjoint of pushforward and pullback}
\label{section-compare-with-pullback}

\noindent
Let $f : X \to Y$ be a morphism
schemes. \section{Right adjoint of pushforwardand }
Lemma \ref{label{section-compare-with-pullback}
therejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$$
Lf^*K \otimes^\mathbf{L}_Lemma \ref{-twisted--image}. For$,L in D_\(\mathcal{}_Y)$
\longrightarrow
a(K \otimes_{\mathcal{O}_Y}^\mathbf{L} $$
$$
Namely, this  toa 
$$
Namely,this map is to a map
K \$
\
K \otimes^K\\{}{O}Y ((L)java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
$
(equality by Derived $java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
\ref{perfect-lemma-cohomology-base-change})
for which we use the trace $f_*a(L) to L$
When $L = \mathcal{O}_Yf whichwe the trace  $Rf_*a(L)\to L$java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
\begin{equation}
\label{equation-compare-with-pullback}
Lf^*K \otimes^\mathbf{L}_{\mathcal{O}_X}\labelequation--pullback
\end{equation}
functorial in $K$ and compatible with distinguished triangles.

\begin{lemma}
\\endequation}
Let$  \ $a quasi-compact java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
schemes.\label{lemma-compare-with-pullback-perfect}
$Lf^*K \otimes^\mathbf{L}_{\mathcal{O}_X} a(L) \to
a( otimes_{{O}Y^mathbf{} )
r $K  in D_QCoh(mathcal{O}Y$
is an isomorphism if $K$ is perfect. In particular,
(refequation-ompare-with-})is an isomorphism  $$is perfect.
\(K \{mathcal{O}Y^mathbf{} L)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42

\begin{proof}
Let $K^\vee$ be the ``dual'
'\{equationcompare-withpullback} anisomorphism $$is .
Cohomology, Lemma \ref{cohomology-lemma-dual-perfect-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
For $M\in D_\(\mathcal{Ojava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
\begin{align*}
\Hom_{D(\mathcal{O}_Y)}(Rf_*M, K \otimes^\mathbf{L}_{\mathcal{O}_Y} L)
& =
\Hom_{D(\mathcal{O}_Y)}(
Rf_*M \otimes^\mathbf{L}_{\mathcal{O}_Y} K^\vee, L) \\
& =
\Hom_{D(\mathcal{}_X)}(
M \otimes^\mathbfRf_* \otimes^\mathbf{}{\mathcalO_}K^vee ) \\
& java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
\Hom_{D(\mathcal{O}_XM otimes^mathbf{}_\O_ ^K^vee a(L) \\
Lf^*K \java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 3
\end{align*}
Second equality by\align*java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
((Cohomology Lemma \ref{cohomology-lemma-projection-formula-perfect})
themoregeneral java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 56
\ref{perfect-lemma-cohomology-base-change}.
Hence the result by the endjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
\proof}

\begin{lemma}
\lemmarestriction--with-pullback}
Suppose we Suppose wehave diagram (\ref{equation-base-change}) where $f$ and $g$
are tor independent. Let $are tor independent. Let $K\in D_\QCoh\{O}_Y)$  diagram
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
\xymatrix{
)*L^K\\{L}_\mathcal{}X a\{}_Yjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
\ar[] \ar[ & L'
^)\d
L(f')^*Lg^*K \otimes_{\L(f'^Lg^*K \otimes_\O{X'}^L '(\mathcal{}_Y}
\ar[r] &java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 1
}
$$
commutes where the horizontal arrows are the maps
(equation-change-ap}.
and the verticalendlemma
Cohomology, Remark \ref{cohomology-remark-In this proof we will write $f_*$ for $Rf_*$ and $f^*$, ,
(ref{basechange-map}.
\end{lemma}

\begin{proof}
In f* otimes a(\mathcal{O}_Y)
and we will write $\otimes$ for $\otimes^\mathbfa(*f^* \otimes (mathcal{
java.lang.StringIndexOutOfBoundsException: Range [12, 3) out of bounds for length 70
\begin{align*}
f^*K \otimes a(\mathcal{O}_Y)
& \to
a(f_*(f^*K \otimes a(\mathcal{O}_Y))) \\
& \leftarrow
a(K \otimes f_*a(\mathcal(java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

a(K \otimes \mathcal{O}_Y) \\applied ,Equation
 
a(K byDerived Categoriesof Schemes, Lemma
\end{align*}
Here the first arrow is the unit $\eta_f$, the second arrow is $a$
toCohomology, Equation
(\ref{cohomology-equation-projection-formula-map}) which is an
isomorphism by Derived Categories of Schemes, Lemma
\refperfectlemmabase-hange} the third arrow is
$a$ applied maps gives rise to a commutative square as in the statement of the lemma.
arrow$eta_f$ and \text{Tr}_f$this is
The proof of the lemma consists in showing that eachLemmas \ref{lemma--b-change} and
maps gives rise to a commutative square as in java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 38
For$\eta_f$ and $text{Tr}_f$ this is
Lemmas \ref{lemma-unit-and-base-change} and
\ref{lemma-trace-map-and-base-change}.
For the arrow using Cohomology, Equation
(\ref{cohomology-equation-projection-formula-map})
this is Cohomology, java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
\lemmacompare--open
\{roof}

\begin{lemma}
\label{lemma-compare-on-open}
Let $f : X $K inD_QCoh+(\mathcal{O}_Y)$ the map (\ref{equation-compare-with-pullback})
an opensuch that$^-}V to   isomorphism for
$K \in D_\QCoh^+(\mathcal{O}\end{lemmajava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
restricts to an isomorphism over $f^{-1}(V)$.
\end{lemma}

\java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
By Lemma \ref{lemma-proper-noetherian} the map (\ref{equation-sheafy}for$|_V$  f{1}(V)\V$.Thus java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 63
isomorphism for objects of $D_\QCoh^+(\mathcal{O}_Y\proof}
Lemma \ref{lemma-java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 13
restriction of L f   Y $    Z  morphismsof compact
f{1}()$  \{-java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 64
for $K|_V$ and For $ inD_\\{O)$diagram
the map is an isomorphism when $fLf*Lg^Kjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 45
\end{proof}

\begin{lemma}
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 48
Let $f : X \to Y$ and $g : Y \to Z$ be composable morphisms java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 21
andsschemes and $  g\f $, b,c$be the
adjoints of Lemma \ref{lemma-twisted-inverse-image} for $f, g, h$java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 60
For any $K \in D_\QCoh(\mathcal{O}L^K\otimes_{\O_}\L}c(\mathcal{}Z) \ar[r java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
$$
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
Lf*(g*K java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 45
(java.lang.StringIndexOutOfBoundsException: Range [14, 10) out of bounds for length 69
\ar@{=}[d] \ar[r] &
a(
a(b(K)) \ar@{=}[d] \\
^K \\O_^mathbf{L}Lf^b\mathcalO_
\otimes_{\mathcal{O}_Xandwewill write $\otimes$for $\otimes^mathbf{L_\O_$ etc.
Lh^*K \The composition of the top arrows is adjoint to a map
c(K)
}
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
is The left hand side is equal to
and we$ otimes g_f_(^*bjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 67
\Derived Categories of Schemes, Lemma

\begin{proof}
 thisproof  will write $*$  R* and$^$for Lf^*,etc,
and we will write $\otimes$ for $\otimes^\mathbf{L}_{\mathcalg_*b\mathcalO_ otimes f_*a(mathcal{}Y)\{g_\java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
The composition$
$$
g_*f_*(f^*(g^*K \otimes b(\mathcal{O}_Z)) \otimesDerived Categories of Schemes, Lemma
$$
The\beta$ comes from the counit map
$$*b \to \text{id$. Similarly, the composition of the lower
Derived Categories of Schemes, Lemma
\refhorizontal arrows is adjoint to $\text{id}_K$ tensored with the composition 
and inspection of the java.lang.StringIndexOutOfBoundsException: Range [22, 33) out of bounds for length 2
$$
g_*f_*f*(mathcal{}Z otimes a\mathcalO}Y)
\xleftarrow{g_*\epsilon}
g_*(b(g_*(b(\athcal{O}Z) \xrightarrow{\beta}
g_*(b(\mathcal{O}_Z)) \xrightarrow{\betamathcal{}Z
$$
tensored where \gamma$comes fromthe  $_a to text{id}$
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-cohomology-base-change} and
$\beta$ comes from the counit map
$g_*b \to \text{id}$. Similarly, the java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [54, 10) out of bounds for length 76
$$
g_*f_*(f^*b(\mathcal{O}_Z) \otimes a(\mathcal{O}_Y))$$
g_*f_*(ab(\mathcal{O}_Z)) \xrightarrow{g_*\gamma}
g_*(b(\mathcal{O}_Z)) \xrightarrow{\beta}(seeCategories,Section\categories-ection-adjoint)
\mathcal{O}_Z
$
where $\gamma$ comes from the counit map $f_*a \to \text{id}$
and
$$
f_*(f^*b(\mathcal{O}_Z) \otimes a(\mathcal{O}_Y))
\xleftarrow{\epsilon}
b(\mathcal{O}_Z) \otimes f_*a(\mathcal{O}_Y) \xrightarrow{\alpha}
b(\mathcal{O}_Z)
$$
By general properties of adjoint functors, adjoint maps, and counits
(see Categories, Section \ref{categories-section-adjoint})
we have $\gamma \circ f_*\delta = \alpha \circ \epsilon^{-1}$ as desired.
\end{proof}





\section{Right adjoint of pushforward for closed immersions}
\label{section-sections-with-exact-support}

\noindent
Let $i : (Z, \mathcal{O}_Z) \to (X, \mathcal{O}_X)$ be a morphism
of ringed spaces such that $i$ is a homeomorphism onto a closed
subset and such that $i^\sharp : \mathcal{O}_X \to i_*\mathcal{O}_Z$
is surjective. (For example a closed immersion of schemes.)
Let $\mathcal{I} = \Ker(i^\sharp)$. For a sheaf
of $\mathcal{O}_X$-modules $\mathcal{F}$ the sheaf
$$
\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_Z, \mathcal{F})
$$
a sheaf of $\mathcal{O}_X$-modules annihilated by $\mathcal{I}$.
Hence by Modules, Lemma \ref{modules-lemma-i-star-equivalence}
there is a sheaf of $\mathcal{O}_Z$-modules,
which we will denote $\SheafHom(\mathcal{O}_Z, \mathcal{F})$,
such that
$$
i_*\SheafHom(\mathcal{O}_Z, \mathcal{F}) =
\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_Z, \mathcal{F})
$$
as $\mathcal{O}_X$-modules. We spell out what this means.

\begin{lemma}
\label{lemma-compute-sheaf-with-exact-support}
With notation as above. The functor $\SheafHom(\mathcal{O}_Z, -)$ is a
right adjoint to the functor
$i_* : \textit{Mod}(\mathcal{O}_Z) \to \textit{Mod}(\mathcal{O}_X)$.
For $V \subset Z$ open we have
$$
\Gamma(V, \SheafHom(\mathcal{O}_Z, \mathcal{F})) =
\{s \in \Gamma(U, \mathcal{F}) \mid \mathcal{I}s = 0\}
$$
where $U \subset X$ is an open whose intersection with $Z$ is $V$.
\end{lemma}

\begin{proof}
Let $\mathcal{G}$ be a sheaf of $\mathcal{O}_Z$-modules. Then
$$
\Hom_{\mathcal{O}_X}(i_*\mathcal{G}, \mathcal{F}) =
\Hom_{i_*\mathcal{O}_Z}(i_*\mathcal{G},
\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_Z, \mathcal{F})) =
\Hom_{\mathcal{O}_Z}(\mathcal{G}, \SheafHom(\mathcal{O}_Z, \mathcal{F}))
$$
The first equality by
Modules, Lemma \ref{modules-lemma-adjoint-tensor-restrict}
andjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
\noindent
Thedescription is to rjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
\end{}


The functor
$$
\textit{Mod}(\mathcal{O}_X)
\longrightarrow
\textit{Mod}(\mathcal{O}_Z),
\quad
\mathcal{F} \longmapsto \SheafHom(\mathcal{O}_Z, \mathcal{F})
$$
is left exact and has a derived extension
$$
R\SheafHom(\mathcal{O}_Z, -) : D(\mathcal{O}_X) \to D(\mathcal{O}_Z).
$$

\begin{lemma}
\label{lemma-sheaf-with-exact-support-adjoint}
With notation as above. The functor $R\SheafHom(\mathcal{O}_Z, -)$
is the right adjoint of the functor
$Ri_* : D(\mathcal{O}_Z) \to D(\mathcal{O}_X)$.
\end{lemma}

\begin{proof}
This is a consequence of the fact that $i_*$ and
$\SheafHom(\mathcal{O}_Z, -)$ are adjoint functors by
Lemma \ref{lemma-compute-sheaf-with-exact-support}. See
\refderivedlemma--adjointfunctors}.
\end{proof}

\begin{lemma}
\abel{lemma-sheaf-with-exact-support-ext}
With notation as above. We have
$$
Ri_*R\SheafHom(\mathcal{O}_Z, K) =
R\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_Z, K)
$$
n D(\mathcal{_X)$for  $$ in $D(mathcal{O}_X).
\end{lemma}

\begin{proof}
This is immediate from the construction of the functor
$R\SheafHom(\mathcal{O}_Z, -)$.
\{roofjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11

\begin{lemma}
\label{lemma-sheaf-with-exact-support-internal-home}
 asabove. $M\ (mathcal{}Z)$w have
$$
R\SheafHom_{\mathcal{O}_X}(Ri_*java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 13
Ri_*R\SheafHom_{\mathcal{O}_Z}(M, R\SheafHom(\mathcal{O}_Z, K))
$$
in $D(\OZ)for $$in D\mathcal{}_XX.
\end{lemma}

\begin{proof}
This from ofthefunctor
$R\SheafHom(\mathcal{O}_Z, \s\in\U mathcal{} \\I}s=0\}
$\mathcal{K}^\bullet$ is a K-injective complex of
$\mathcal{O}_X$-modules, then $\SheafHom(\mathcal{O}_Z, \mathcal{K}^\bullet)$
is a K-injective complex of $\mathcal{O}_Z$-modules, see
Derived Categories, Lemma \ref{derived-lemma-adjoint-preserve-K-injectives}.
\end{proof}

\begin{lemma}
\label{lemma-java.lang.StringIndexOutOfBoundsException: Range [1, 18) out of bounds for length 13
\\{O_X}(i_\G}, \mathcal{F}) =
(any closed immersion if $X$ is locally Noetherian).
Then
\begin{enumerate}
\item $R\SheafHom(\mathcal{O}_Z, -)$ maps $D^+_\QCoh(\mathcal{O}_X)$
into $D^+_\QCoh(\mathcal{O}_Z)$, and
\item if $X = \Spec(A)$ and $Z = \Spec(B)$, then the diagram
$$
\xymatrix{
D^+(B) \ar[r] & D_\QCoh^+(\mathcal{O}_Z) \\
D^+(A) \ar[r] \ar[u]^{R\Hom(B, -)} &
D_\QCoh^+(\mathcal{O}_X) \ar[u]_{R\SheafHom(\mathcal{O}_Z, -)}
}
$$
 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
\end{enumerate}


\begin{proof}
To explain the parenthetical remark, if $XThe first equalityby
$i$ is pseudo-coherent by
 on Morphisms,Lemma \ref{more-morphismslemma-Noetherian-pseudo-coherent}.

\medskip\noindent
Let $K$Modules,Lemma refmodules-lemma-is.
Morphisms, Lemma \ref{morphisms-lemma-i-star-equivalence}
it suffices to show that $i_*$ applied to
$H^n(R\SheafHom(\mathcal{Onoindent
-coherent  on $X. By
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2
this means we O_)java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
RSheafHom_\{O}X}*mathcal{}_Z )$
is in $D_\QCoh(
the sheaf \mathcal{O}Z  a pseudo-coherent$mathcal{}X$-modulejava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
Hence the resultfollows from
erived Categorieso java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 13
\ref{perfect-lemma-quasi-coherence-internal-hom}.

\medskip\noindent
Assume $X = \Spec(A)$ and $Z = \Spec(B)$ as in (java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 35
Let $I^\bullet$ be a bounded below complex of injective $A$-modules
representing an object $K$ of $D^+(A)$.
Then we know that $R\Hom(This  a that$$and
 aof$-java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 55
$$
\widetilde{I^\bullet} \longrightarrow \mathcal{I}^\bullet
$$
java.lang.StringIndexOutOfBoundsException: Range [13, 5) out of bounds for length 67
$\mathcal{O}_X\label{--with-xact-supportextjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
the functor $\SheafHom(\mathcal{O}_Z, -)$ in
Lemma \ref{lemma-compute-sheaf-with-exact-support}
that there is a map
$$
Hom_A(,^bulletjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
\longrightarrow
\Gamma(Z, \SheafHom(\mathcal{O}_Z, \mathcal{I}^\bullet))
$$
Observe that $\SheafHom(\mathcal{O}_Z, \mathcal{I}^\bullet)$
represents $R\SheafHom(\mathcal{O}_Z, \widetilde{K})$.
Applying the universal property of\nd{proof}
obtain a map
$$
\widetilde{\Hom_A(B, I^\bullet)}
\longrightarrow
RRSheafHom_\mathcal{}X(i_*,K)=
$$
n$(mathcalO})$.Wejava.lang.StringIndexOutOfBoundsException: Range [29, 26) out of bounds for length 70
$D(\mathcal{O}_Z)$ after applying $i_*$. However, once we apply
$i_*$ we obtain the isomorphism of Derived Categories of Schemes,
Lemma \ref{perfect-lemma-quasi-coherence-internal-hom}
via the identification of
Lemma \ref{lemma-sheaf-with-exact-support-ext}.
\end{proof}

\begin{lemma}
\label{lemma-sheaf-with-Derived Categories, Lemma \re-----injectives}
Let $i : Z \to X$ be a closed immersion of schemes.
Assume $X$ is a locally Noetherian.
Then $R\SheafHom(\mathcal{O}_Z, -)r i:Z \to $be  pseudo-  immersionof schemes
into $D^+_{\textit{Coh}}(\mathcal{O}_Z)$.
\end{lemma}

\proof}
The question is local on $X$, hence we may assume that $X$ is affine.
Say $X = \Spec(A)$ and $Z = \Spec(B)$ with $A$ Noetherian and
$A \to B$ surjective. In this case, we can apply
Lemma \ref{lemma-sheaf-with-exact-support-quasi-coherent}
to translate the question into algebra.
The corresponding algebra result is a consequence of
Dualizing Complexes, Lemma \ref{dualizing-lemma-exact-support-coherent}.
\end{proof}

\begin{lemma}
\label{lemma-twisted-inverse-image-closed}
Let $X$ be a quasi-compact and quasi-separated scheme.
Let $i : Z \to X$ be a pseudo-coherent closed immersioninto$D+_\Coh(mathcal{O}Z$ and
(\item  X=\A$and$  ($ 
Let $a : D_\QCoh(\mathcal{O}
right adjoint to $Ri_*$. Then there is a functorial isomorphism
$$
a(K) = R\SheafHom(\mathcal{O}_Z, K)
$$
forjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
\end{lemma}

\begin{proof}
(The parenthetical statement follows from More on Morphisms, Lemma
\ref{more-morphisms-lemma-Noetherian-pseudo-coherent}.)
By Lemma \ref{lemma-sheaf-with-exact-support-adjoint}
the functor $R\SheafHom(\mathcal{O}_itjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 41
to $Ri_* : D(\mathcal{O}_Z) \to D(\mathcalcoherent$$ java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
 \lemma-java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 60
and Lemma \ref{lemma-twisted-inverse-image-bounded-below}
both $R\SheafHom(\mathcal{O}_Z, -)$ and $a$ map
$D_\QCoh^+(\mathcal{O}_X)$ into $D_\QCoh^+(\mathcal{java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 29
Hence we obtain the isomorphism by uniqueness of adjoint
functors.
\}

\begin{example}
\label{example-trace-closed-immersion}
If $i : Z \to X$ is closed immersion of Noetherian schemes, then
the diagram
$$
\xymatrix{
i_*a(K) \ar[rr]_-{\Lemma \ref{lemma-compute--xactsupportjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
K \ar@{=}[d] \\
i_*R\SheafHom(\mathcal{O}_Z, K) \ar@{=}[r] &
R\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_Z, K)
\ar[r] & K
}
$$
is commutative for $K \in D_\QCoh^+(\mathcal{O}_X)$.
Here the horizontal equality sign is
Lemma \ref{lemma-sheaf-with-exact-support-ext} and the
lower horizontal arrow is induced
by the map $\mathcal{O}_X \to i_*\mathcal{O}_Z$. The commutativity
of the diagram is a consequence of
Lemma \ref{lemma-twisted-inverse-image-closed}.
\end{example}




\section{Right adjoint of pushforward for closed immersions and base change}
\label{\ongrightarrow

\noindent
Consider a cartesian diagram of schemes
$$
\xymatrix{
Z' \ar[r]_{i'} \ar[d]_g & X' \ar[d]^f \\
Z \ar[r]^i & X
}
$$
where $i$\\(,I^bullet}
tor\longrightarrow
base change map
\begin{equation}
\label{equation-base-change-exact-support}
Lg^*R\SheafHom(\mathcal{O}_Z, K)
\longrightarrow
R\SheafHom(\mathcal{O}_{Z'
}, Lf^*K)
\end{equation}
in $D(\mathcal{O}_{Z'})$ functorial for $K$ in $D(\mathcal{O}_X)$.
,by  of  \ref{-sheaf-with-exact-support-adjoint}
such an arrow is the same thing as a map
$$
Ri'
_*Lg^*R\SheafHom(\mathcal{O}_Z, K)
\longrightarrow
Lf^*K
$$
in $D(\mathcal{O}_{X'})$. By tor independence we have
$Ri'
_* \circ Lg^* = Lf^* \circ Ri_*$ (see
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-compare-base-change-closed-immersion}).
Thus this is the same thing as a map
$$
Lf^*Ri_*R\SheafHom(\mathcal{O}_Z, K)
\longrightarrow
Lf^*K
$$
this  can use$Lf^(can)$where
can :Ri_* R\SheafHom(\O_,) \ K  the
counit of the Assume $X$ is a locally Noetherian.

\begin{lemma}
\label{-checkbasechange-is-iso}
In the situation above, the map (\ref{equation-base-change-exact-support})
is an isomorphisminto $^_{textit{Coh}}(mathcal{O}_Z)$.
$$
Lf^*\end{lemma}
\longrightarrow
R\SheafHom_{\mathcal{O}_{X'}}(\mathcal{O}_{Z'}, Lf^*K)
$$
of Cohomology, Remark \ref{cohomology-remark-prepare-fancy-base-change}
is an isomorphism.
\lemmajava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11

\begin{proof}
The statement makes sense because $\mathcal{O}_{Z'} = Lf^*\mathcal{O}_Z$
by the assumed tor independence.
e$i'
*$ is exact and faithful we see that it suffices to show
the map (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
is an isomorphism after applying $Ri\abel{twisted--}
$Ri'_* \circ Lg^* = Lf^* \circ Ri_*$ by the assumed tor independence $$be a quasi-  - .
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-compare-base-change-closed-immersion}
we obtain a map
$$
Lf^*Ri_*R\SheafHom(\mathcal{O}_Z, K)
\longrightarrow
Ri'
_*R\SheafHom(\mathcal{O}_{Z'}, Lf^*K)
$$
whose source and target are as in the statement of the lemma by
Lemma \ref{lemma-sheaf-with-exact-support-ext}. We omit the
verification that this is the same map as the one constructed
in Cohomology, Remark \ref{cohomology-remark-prepare-fancy-base-change}.
\end{proof}

\begin{lemma}
\label{lemma-flat-bc-sheaf-with-exact-support}
In the situation above, assume $f$ is flat and $i$ pseudo-coherent.
Then (\ref{equation-base-change-exactsupport}) is an isomorphism
for $Kright adjoint to $Ri_*$. Then there is a functorial isomorphism
\end{lemma}

\begin{proof}
Firstfor $ \n \QCoh+(mathcal{O}_X)$.
Hence we may assume $X$, $X'
$, $Z$, $Z'$ are affine, say corresponding
to
over $A$. By Lemma \ref{lemma-check-base-change-is-iso} it suffices
to check that
$$
\Hom_A(B, K)\times_A^\mathbf{L} A'
 =
R\Hom_{A'}(B', K Ry  \ref{-sheaf-with-xact--djoint}
$$
in $D(A')$ for all $K \in D^+(A)$. Here we use
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-quasi-coherence-internal-hom}
and the fact that $B$, resp.\ $B'
$ is pseudo-coherent as an
$A$-module, resp.\ $A'$-module
to  erived  on    rings  schemes.
The displayed equality follows from
More on Algebra, Lemma
\ef{more-algebra-lemma-internal-hom-evaluate-tensor-isomorphism}
part (3). See also the discussion in Dualizing Complexes, Section
\java.lang.StringIndexOutOfBoundsException: Range [34, 4) out of bounds for length 52

\medskip\noindent
proof\{  
it suffices to assume $K$ is in $D^+(\mathcal{O}_X)$.}.
Let $z'
 \in Z'$ with image $z \in Z$.
First show that (\ref{equation-base-change-exact-support})
on stalks at $z'
$ induces the map
$$
R\Hom(\label{exampletrace-closed-mmersion}
\otimes_{\mathcal{O}_{Z, x}}^\mathbf{L} \mathcal{O}_{Z', z'}
\longrightarrow
R\Hom(\mathcal{O}_{Z', z'},
K_z \otimes_{\mathcal{O}_{X$$
$$
from Dualizing Complexes, Equation (\ref{dualizing-equation-base-change}).
Namely,the constructionsofthese maps areidentical.
Then apply Dualizing Complexes, Lemma \ref{dualizing-lemma-flat-bc-surjectionK ar{}[d]\\
\end{roof}

\egin{emma}
\label{lemma-sheaf-with-exact\r[r]&K
Let $i : Z \to X$ be a pseudo-coherent closed immersion of schemes.
Let $M \in D_\QCoh(\mathcal{Ois  for K \n \QCoh^(mathcal{}X$java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
$ in\+\{_).Then a  
$$
R\bythemap$\athcal{O_X to i_*mathcal{O}Z. The commutativity
\SheafHomSheafHom(mathcal{O}Z K \otimes_{mathcal{O}_X}^\mathbf{L} M)
$$
in $Lemma \ef{emmatwisted---}.
\end{lemma}

\begin{proof}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
$
\O_,K)\{\athcal{}X}mathbfL java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
\longrightarrow
K \otimes_{\mathcal{O}_X}^\mathbf{L} M
$$
by Lemmas \ref{lemma-sheaf-xymatrix{
\ref{lemma-sheaf-with-exact-support-ext}. For this map we take the
counit Ri_*R\SheafHom(\mathcal{}Z K) \to $tensored with$text{id}M.
To see this map is an isomorphism under the hypotheses given,
translate into algebra using
Lemma \ref{lemma-sheaf-with-exact-support-quasi-coherent}
and then for example use More on Algebra, Lemma
\ref{more-algebra-lemma-internal-hom-evaluate-tensor-isomorphism} part (3).
Instead of using Lemma \ref{lemma-sheaf-with-exact-support-quasi-coherent}
you can look at stalks as in the second proof of
Lemma \ref{lemma-flat-bc-sheaf-with-exact-support}.
\end{proof}



\section{Right adjoint of pushforward for finite morphisms}
\label{section-duality-finite}

\noindent
If $i : Z \to X$ is a closed immersion of schemes, then there is
a right adjoint $\SheafHom(\mathcal{O}_Z, -)$ to the functor
$i_* : \textit{Mod}(\mathcal{O}_Z) \to \textit{Mod}(\mathcal{O}_X)$
whose derived extension $R\SheafHom(\mathcal{O}_Z, -)$
is the right adjoint to $Ri_* : D(\mathcal{O}_Z) \to D(\mathcal{O}_X)$. See
Section \ref{section-sections-with-exact-support}.
In the case of a finite morphism $f : Y \to X$ this strategy
cannot work, as the functor
$f_* : \textit{Mod}(\mathcal{O}_Y) \to \textit{Mod}(\mathcal{O}_X)$
is not exact in general and hence does not have a right adjoint.
A replacement is to consider the exact functor
$\textit{Mod}(f_*\mathcal{O}_Y) \to \textit{Mod}(\mathcal{O}_X)$
and consider the corresponding right adjoint and its derived
extension.

\medskip\noindent
Let $f : Y \to X$ be an affine morphism of schemes. For a sheaf
of $\mathcal{O}_X$-modules $\mathcal{F}$ the sheaf
$$
\SheafHom_{\mathcal{O}_X}(f_*\mathcal{O}_Y, \mathcal{F})
$$
is a sheaf of $f_*\mathcal{O}_Y$-modules. We obtain a functor
$\textit{Mod}(\mathcal{O}_X) \to \textit{Mod}(f_*\mathcal{O}_Y)$
which we will denote $\SheafHom(f_*\mathcal{O}_Y, -)$.

\begin{lemma}
\label{lemma-compute-sheafhom-affine}
With notation as above. The functor $\SheafHom(f_*\mathcal{O}_Y, -)$ is a
right adjoint to the restriction functor
$\textit{Mod}(f_*\mathcal{O}_Y) \to \textit{Mod}(\mathcal{O}_X)$.
For an affine open $U \subset X$ we have
$$
\Gamma(U, \SheafHomwhere $$isaclosed immersion.If $Z$and X$ are
\Hom_A(B, \mathcal{F}(U))
$$
where $A = \mathcal{O}_X(U)$ and $B = \mathcal{O}_Y(f^{-1}(U))$.
\end{lemma}

\begin{proof}
Adjointness follows from
Modules, Lemma \ref{modules-lemma-adjoint-tensor-restrict}.
As $f$ is affine we see that $f_*\mathcal{O}_Y$ is
the quasi-coherent sheaf corresponding to $B$ viewed
as an $A$-module. Hence the description of sections over $U$ follows from
Schemes, Lemma \ref{schemes-lemma-compare-constructions}.
\end{proof}

\noindent
The functor $\SheafHom(f_*\mathcal{O}_Y, -)$ is left exact. Let
$$
R\SheafHom(f_*\mathcal{O}_Y, -) :
D(\mathcal{O}_X)
\longrightarrow
D(f_*\mathcal{O}_Y)
$$
be its derived extension.

\begin{lemma}
\label{lemma-sheafhom-affine-adjoint}
With notation as above. The functor $R\SheafHom(f_*\mathcal{O}_Y, -)$
is the right adjoint of the functor $D(f_*\mathcal{O}_Y) \to D(\mathcal{O}_X)$.
\end{lemma}

\begin{proof}
Follows from Lemma \ref{lemma-compute-sheafhom-affine}
and
Derived Categories, Lemma \ref{Lf^*java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
\end{proof}

\begin{lemmaDerived Categories of Schemes, Lemma
\label{lemma-sheafhom-affine-ext}
With notation as above.The 
$$
D(\mathcal{O}_X) \xrightarrow{R\SheafHom(f_*\mathcal{O}_Y, -)$$
D(_\mathcal{}_Y toD\mathcal{O}X
$$
is the functorLf^*
\end{lemma}

bjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 13
This is immediate from the
\end{proof}

beginjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
\label{lemma-finite-twisted}
Let $f : Y \to X$ be a finite pseudo-coherent Lf*R\heafHom_{\athcalO_(mathcalO}Z java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
(a finite morphism of Noetherian schemes is pseudo-coherent).
The functor $R\SheafHom(f_*\mathcal{O}_Y, -)$ maps
$D_\QCoh^+(\mathcal{O}_X)$ into $D_java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
If $X$ is quasi-compact and quasi-separated, then the diagram
$$
\xymatrixby the assumed torindependence.
D_\QCoh^+(\mathcal{O}_X) \ar[rr]_a \ar[rd]_{R\SheafHom(f_*\mathcal{O}_Y, -)}
& & D_\QCoh^+(\mathcal{O}_Ythemap(equationbasechangeexactsupport)
 QCoh^(_\{}_YY)
}$Ri_*\ircLg*=Lf^ c*$  theassumedtor and
$$
is commutative, where $a$ is the right adjoint of
Lemma \ref{lemma-twisted-inverse-image} we a map
of Derived Categories of Schemes, LemmaLf^*Ri_R\\O_, K
\ref{perfect-lemma-affine-morphism-equivalence}.
\end{lemma}

\begin{proof}
(The parenthetical remark follows from More on Morphisms, Lemma
\ref{more-morphisms-Lemma \ref{lemma-sheafexact-support-ext}. We omit the
Since $f$ is verificationthat isthe mapas theone
is pseudo-coherent, is pseudo-coherent, seecohomologyremarkprepare-basechange.
\ref{more-morphisms-lemma-finite-pseudo-coherent}.
Thus $R\SheafHom(f_*\mathcal{O}_Y, -beginlemma}
mathcalO}_X$into
$_QCoh^+f_*mathcal{}Y)$ see
Categories 
p--.
 \ a $\f_\{OY,)java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
agree on $D_\QCoh^+(\mathcal{O}_X)$ because these functors arejava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
both right adjoint to the restriction functor
D_^(_*\athcalO}_ to \Coh+\O}$  seethis
Lemmas \ref{-twistedinverse-mageboundedbelow 
\ref{lemma-sheafhom-affine-adjoint}.
\nd

\  
\label{remark-trace-map-\ref{perfect-lemma-quasi-cohere-internalinternal-hom}
If $f : Y \to$$resp\$$is pseudo-coherent as an
$$
java.lang.NullPointerException
Rf_*a(K) \ar[r]_-{\text{Tr}_{f, K}}Moreon ,Lemma
R\SheafHom_{\mathcal{O}_X}(f_*\mathcal{O}_Y, K) \ar[r] & K
}
$\ref{ualizing-ectionbasechange-trivialduality}
is commutative for 
from Lemma \ref{lemma-finite-twisted}medskip\noindent
arrow is inducedSecond proof\footnote{his proof shows
upper it sufficesto assume$$is in $^(mathcal{O}_X)$.}.
Section \ref{section-trace}.
\{remark}






\section{Right adjoint of pushforward for proper flat morphisms}
\label{section-proper-flat}

\noindent
For proper, flat, and finitely presented morphisms of quasi-compact
and quasi-separated schemes the right adjoint of pushforward
enjoys some remarkable properties.

\begin{lemma}
\label{lemma-proper-flat}
Let $Y$ be a quasi-compact and quasi-separated scheme.
Let $f : X \to Y$ be a morphism of schemes which is proper, flat, and
of finite presentation.
Let $a$ be the right adjoint for
$Rf_* : D_\QCoh(\mathcal{O}_X) \to D_\QCoh(\mathcal{O}_Y)$ of
Lemma \ref{lemma-twisted-inverse-image}. Then $a$ commutes with direct sums.
\end{lemma}

\begin{proof}
Let $P$ be a perfect object of $D(\mathcal{O}_X)$. By
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-flat-proper-perfect-direct-image-general}
the complex $Rf_*P$ is perfect on $Y$.
Let $K_i$ be a family of objects of $D_\QCoh(\mathcal{O}_Y)$.
Then
\begin{align*}
\Hom_{D(\mathcal{O}_X)}(P, a(\bigoplus K_i))
& =
\Hom_{D(\mathcal{O}_Y)}(Rf_*P, \bigoplus K_i) \\
& =
\bigoplus \Hom_{D(\mathcal{O}_Y)}(Rf_*P, K_i) \\
& =
\bigoplus \Hom_{D(\mathcal{O}_X)}(P, a(K_i))
\end{align*}
because a perfect object is compact (Derived Categories of Schemes,
Proposition \ref{perfect-propositionR\om(mathcal{_Z'z}
Since D_QCoh\mathcal{O}_X)$ has a perfect generator
(Derived Categories of Schemes, Theorem
\ref{perfect-theorem-bondal-from Dualizing Complexes, Equat (refdualizing-equation-base-change}).
we conclude constructions of these maps are identical.
is an isomorphism, i.e., $a$ commutes Then  DualizingComplexes, Lemma \ef{dualizing-lemma-flat-bc-}.
\end{proof}

\
\\beginlemma}
Let $Y$ be a quasi-compact and quasi-separated scheme.
Let $f : X \to Y$ be a morphism of schemes which is proper, flat, and
of finite presentation.
Let $a$ be the right adjoint for
Rf_*:D_QCoh(mathcal{O}_X) \to D_\QCoh(\mathcal{O}_Y)$ of
Lemma \ref{lemma-twisted-inverse-image}. Then
\begin{enumerate}
\item for every closed $T \subset Y$ if $Q \in D_\QCoh(Y)$ is supported on $T$R\(mathcal{}Z, K \otimes_{mathcal{}X^\athbf{L}Mjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
then $a(Q)$ is supported on $f^{-1}(T)$,
\item for every quasi-compact open $V \subset Y$ and any
$K \in D_\QCoh(\mathcal{O}_Y)$ the map (\ref{equation-sheafy})
is an isomorphism.
\end{enumerate}
\end{lemma}

\begin{proof}
This follows from Lemmas \ref{lemma-when-sheafy},
\ref{lemma-proper-noetherian}, and
\ref{lemma-proper-flat}. Strictly speaking part (1) follows
only for those $T$ whose complement is a quasi-compact open;
however the general case then follows as any closed subset is an
intersection of such.
\end{proof}

\begin{lemma}
\label{lemma-compare-with-pullback-flat-proper}
Let $Y$ be a quasi-compact and quasi-separated scheme.
Let $f : X \to Y$ be a morphism of schemes which is proper, flat, and
of finite presentation.
The map (\ref{equation-compare-with-pullback}) is an isomorphism
for every object $K$ of $D_\QCoh(\mathcal{O}_Y)$.
\end{lemma}

\begin{proof}
By Lemma \ref{lemma-proper-flat} we know that $a$ commutes
with direct sums. Hence the collection of objects of
$D_\QCoh(\mathcal{O}_Y)$ for which (\ref{equation-compare-with-pullback})
is an isomorphism is a strictly full, saturated, triangulated
subcategory of $D_\QCoh(\mathcal{O}_Y)$ which is moreover
preserved under taking direct sums. Since $D_\QCoh(\mathcal{O}_Y)$
is a module category (Derived Categories of Schemes, Theorem
\ref{perfect-theorem-DQCoh-is-Ddga}) generated by a single
perfect object (Derived Categories of Schemes, Theorem
\ref{perfect-theorem-bondal-van-den-Bergh})
we can argue as in
More on Algebra, Remark \ref{more-algebra-remark-P-resolution}
to see that it suffices to prove (\ref{equation-compare-with-pullback})
is an isomorphism for a single perfect object.
However, the result holds for perfect objects, see
Lemma \ref{lemma-compare-with-pullback-perfect}.
\

\noindent
The following lemma shows that the base change map
(\ref{equation-base-change-by Lemmas \ref{-sheaf-with-exact-support-adjoint} and
for proper, flat morphisms of finite presentation.
We will see in
Example \ref{example-base-change-wrong}
that this does not remain true for  ;
in that case counit $Ri_*R\SheafHom(\mathcal{O}_Z, K) \to K$ tensored with $\text{id}_M$.

\begin{lemma}
\label{lemma-proper-flat-base-change}
Let $g : Y'
 \to Y$ be a morphism of quasi-compact and java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 57
Let $f : X \to Y$ be a proper, flat morphism of finite presentation.
 isomorphism
for all $K \in D_\QCohcan lookat stalks in the  of
\{lemma

\begin{proof}
By Lemma \ref{lemma-java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [47, 8) out of bounds for length 73
Hence we may assume $Y' \to Y$ is a morphism
Remark If $  Z \X aclosed of schemes,then thereis
case the statementSheafHom(\athcalO_,-)to the 
\nd{java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11

bremarkjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
\label{remark-relative-dualizing-complex}
Let $Y$ be a quasi-compact and quasi-separated scheme.
 $f:X toY$ a ,flat morphism  finite presentation.
Let a be the adjoint Lemma ref{twisted-inverse-image}for f$java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
In this situation, $\omega_{X/Y}^\bullet = a(\mathcal{$\textit{Mod}(f_*\mathcal{O}_Y) \to \textit{Mod}(\mathc_$
is sometimes called the {\it relative dualizing complex}. By
Lemmaandconsider corresponding adjoint and itsderived
there is a functorial java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 10
$a(K) = Lf^*K \otimes_{\mathcal{O}_X}^\mathbfLet $f   \X  an affine morphism schemes  
for $ \n D_QCoh(mathcal{_) ,thetrace map
$$
\text{Tr}_{f, \mathcal{O\heafHom_{mathcal{}X(*mathcal{}_, \athcal{}
$$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
of Section \ref{section-trace} induces the trace map for all $K$
in $D_\QCoh(\mathcal{O}_Y)$. More precisely the diagram
$$
\xymatrix{
Rf_*a(K) \ar[rrr]_{\text{Tr}_{f, K}} \ar@{=}[d] & & &
K \ar@{=}[d] \\
Rf_*(Lf^*K \otimes_{\mathcal{O}_X}^\mathbf{L} \omega_{X/Y}^\bullet)
\ar@{=}[r] &
K \otimes_{\mathcal{O}_Y}^\mathbf{L} Rf_*\omega_{X/Y}^\bullet
\ar[rr]^-{\text{id}_K \otimes \text{Tr}_{f, \mathcal{O}_Y}} & & K
}
$$
the java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 40
Derived Categories\textit{od}f_\O_)\ textit{od}\O_).
If $g : Y'
 \to Y$ is a
morphism of eopen Ujava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 40
\U \f_*mathcal{O}_Y,\F) java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
Lemma \ref{lemma-$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
$omega_
is the projection and by Lemma \ref{lemma-java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 11
the trace map
$$
\{}{f,\mathcal{}{'}:
Rf'
_*\omega_{X'/Y'}^\bullet \to \mathcal{O}_{Y'}
$$
for $f'
 : X' \to Y'$ is the base change of $\text{Tr}_{f, \mathcal{O}_Y}$
via the base change isomorphism.
\end{remark}

\begin{remark}
\label{remark-relative-java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 11
Let $f : X \to Y$, $\omega^\bullet_{X/Y}The functor$SheafHom(_\mathcalO,-$is exact. 
D\mathcal{}X)
Let $K$ and $M$ be in $D_\QCoh(\mathcal{O}_X)$ with
$M$ pseudo-coherent (for example perfect). D(\mathcal{O}Y)
$K java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 2
which corresponds to an isomorphism
$K \to R\SheafHom_{\mathcal{O}_X}(M, \omega^\bullet_{X/Y})$
viaCohomology,Equation(ref{cohomologyequation-hom)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
Then the relative cup product
(Cohomology, Remark \ref{cohomology-remark-cup-product})
$$
Rf_*K \otimes_{\mathcal{O}_Y}^\mathbf{L} Rf_
\to
Rf_*(K \otimes_{\mathcal{O}_X}^\mathbf{L} M)
\to
Rf_*\omega^\bullet_{X/Y}
\xrightarrow{\text{Tr}_{f, \mathcal{O}_Y}}
\mathcal{O}_Y
$$
\begin{}
$Rf_*K \to R\SheafHom_{\mathcal{O}_Y}(Rf_*M, \mathcal{O}_\label{emmasheafhomaffineext}
java.lang.StringIndexOutOfBoundsException: Range [30, 6) out of bounds for length 55
the canonical map (\ref{equation-sheafy-trace})
$$
Rf_*R\SheafHom_{\mathcal{O}_X}(M, \omega^\bullet_{X/Y}) \to
SheafHom_\mathcalO}Y}(, mathcal{_java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
$$
isan 
Lemma \ref{lemma-iso-on-RSheafHom} and
Remark \ref{remark-iso-on-RSheafHom}
and the fact that $\endpjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-flat-proper-pseudo-coherent-direct-imagechemes
see the relativec product
induces this isomorphism use the The $\heafHom(f_*\mathcalO_ -) maps
 \cremark-relativecupand-omposition.
\end{remark}

\begin{lemma}
\label{lemma-properties-relative-dualizing}
Let Y a-and separatedscheme
   to Y$be  of schemes which is
java.lang.StringIndexOutOfBoundsException: Range [20, 6) out of bounds for length 45
relative dualizing complex $\omega_{X/Y}^\bullet$
(Remark \ref{remark-relative-dualizing-(Remark \ref{remark-relative-dualizing-complex\ istheequivalence
Then
\begin{enumerate}
\perfectlemma-java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 48
\item
in positive degrees,
\item $\mathcal{O}_X \to
R\SheafHom_{\mathcal{O}_X}(\omega_{X/Y}^\bullet,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 48
isan
end
\end{lemma}

\begin{proof}
In view of the fact that formation of $\omega_{X/Y}^\bullet$ commutes
with base change Tseethis
we may and do assume ref{lemma-sheafhom-affine-adjoint}.
$D(\end{proof}
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 0
Rf_*(E \otimes_{\mathcal{O}_If $f : Y \to X$ is a finite  java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 77
& =
*R{O}X(^vee omega_{/}\\\
&
R\SheafHom_{\mathcal{O}_Y}(Rf_*E^\vee, \mathcal{O}_Y) \\
& =
Rf_E^vee)\
\end{align*}
For the first equality, see
Cohomology, Lemma \ref{cohomology-lemma-dual-perfect-complexu java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 52
For the}
Remark \ref{remark-iso-on-RSheafHom}, and
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-flat-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
The third equality is the definition of the dual. In \section{Right adjoint of pushforward for proper flat morphisms
these references also show that the outcome is a perfect java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 0
of $D(\mathcal{O}_Y java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 67
is $Y$-perfect by More on enjoys some remarkable properties.
\ref{more-morphisms-java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 0
This label{lemma-proper-flat}

\medskip\noindent
Let$a$be right adjointfor
\begin{align*}
\Hom_Y(M, Rf_*\omega_{X/Y}^\bullet) & =
\Hom_X(Lf^*M, \omega_{X/Y}^\bullet) \\
& =
\Hom_YR*^M mathcal{_) java.lang.NullPointerException
& =
Hom_YM otimes_{O}Y}\{}Rf_*O}X \O}_
a*
  ,java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
\ref{cohomologyThen
The second equality by construction of $a$.
The third equality by Derived Categories of Schemes, java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 3
\perfect-java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 43
Recall $Rf_*\mathcal{O}_X$ is perfect of tor amplitude inend{java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
Propositionperfectcompactperfect)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-flat-proper-{perfect-theorem-bondal-van-den)
Thus we can represent $Rf_*\mathcal{O}_X$ by a complex of
finite projective\proof
(using More on Algebra, Lemma \ref{more-algebra-lemma-perfect}
and the fact that $Y$ is Let $Y$ be a quasi-compact and$bea java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 54
Hence if $M = \mathcal  
group is zero. Since $Y$ is affine we conclude that
$H^i(Rf_*\omega_{X/Y}^\bullet) = 0$ for
This proves (2).

\\
 E$be a of $mathcalO}_X)$ 
we have
\begin{align*}
\Hom_X(E, R\SheafHom_{\mathcal{O}_X}(\omega_{X/Y}^\bullet, \omega_{X/Y}^\bullet)
& =
\Hom_X(E \otimes_{\mathcal{O}_X}^\mathbf{L} \omega_{X/Y}^\bullet,
\omega_\efl-java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 34
& =
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 71
\however general thenasanyclosed subsetisan
&=
\Hom_Y(Rf_*(R\SheafHom_{\mathcal{O}_X}(E^\vee, \omega_{X/Y}^\bullet)),
\{lemma}
& =
\(\O}(f_*\ java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 17
& =
R\Gamma(Y, Rf_*E^\vee) \\
& =
\Hom_X(E, \mathcal{O}_X)
\{lign
first equalityjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 45
\ref{cohomology-lemma-internal-hom}.
The second D_\(java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 73
The third equality comes from the construction of the dual perfect
complex $E^\vee$, seejava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 66
\cohomology-java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 44
The fourth equality follows from the equality
$Rf_*R\SheafHom_{\mathcal{O}_X}(E^\vee,\vandenBergh)
R\SheafHom_{\mathcal{O}_Y}M    refmorealgebrajava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62
shown is an is asingleperfectobject
The fifth equality holds by double duality for perfect complexes
(proof
\ref{cohomology-lemma-dual-perfect-complex})
The lemma map
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-flat-proper-perfect-direct java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
Thedoes remainforjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 60
This string of equalities essentially shows (3)
holds {lemma}
R\X/}java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 56
  D\QCoh\O}_$   
\refLet $f:X\ $be a proper
Taking $E = \mathcal{O}_X$ in the above we get a map
$\alpha : \mathcal{O}_X \to
R\SheafHom_{\mathcal{O}_X}(\omega_{X/Y}^\bullet, \omega_\begin{proof}
correspondingto
$id_{java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 69
alljava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 57
see that the cone on $\alpha$ is an object $C$ of $D_ from \{java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 67
such that $java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 0
Since {remarkrelativedualizing-complex}
(Derived Categories of Schemes, Theorem
\ref{Let $$ bea compact and quasi-separated scheme.
we conclude Let $f : X \to Ybe proper, of presentation
\end{proof}

\begin{lemma}[Rigidity]
\label{lemma-van-den-bergh}
Let $Y$ be a quasi-compact and quasi-separated scheme.
$f: X \ Y$ properflat of  
complex$omega_{XY}\java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
(Remark \ref{remark-relative-dualizing-complex}).
There is a canonical isomorphism
\begin{equation}
\label{equation-pre-rigid}
\mathcal{O}_X =
c(Ljava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 39
c(L\text{pr}_2^*\omega_{X/Y}^\bullet)
\end{equation}
and a canonical isomorphism
\equation}
\label{equation-rigid}
\omega_{X/Y}^\bullet =
c\left(L\text{pr}_1^*\omega_{X/Y}^\bullet
\otimes_{\mathcal{O}_{X \times_Y X}}^\mathbf{L}
L\text{pr}_2^*\omega_{X/Y}^\bulletjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 22
\end{equation}
where $c$ is the right adjoint of
Lemma \ref{lemma-twisted-inverse-image}
for the diagonal $\Delta : X \to X \times_Y X$.
\end{lemma}

\begin{proof}
Let $a$ be the right adjoint to $Rf_*$ as in
Lemma for$'  \ ' java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 73
Consider the cartesian square
$$
\xymatrix{
X \times_Y X \ar[r]_q \ar[d]\label{emark-dualizing--relativecupproduct}
X \ar[r]^f & Y
}
$
Let $b$ be the right adjoint for $p$
ef{twisted-inverseimage} Then
\begin{align*}
\omega_{X/Y}^\bullet
 java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
c(b(\omega_{X/Y}^\bullet)) \\
& =
c(Lp^*\omega_{X/Y}^\bullet
\otimes_{\mathcal{O}_{X \times_Y X}}^\mathbf{L} b(\mathcal{O}_X)) \\
& =
c(Lp^*\omega_{X/Y}^\bullet
\otimes_{\mathcal{O}_{X \times_Y X}}^\mathbf{L}
Lq^*a(\mathcal{O}_Y)) \\
& =
c(p^\omega_{/Y^\bullet
\otimes_{\mathcal{O}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
Lq^*\omega_{X/Y}^\bullet)
\end{align*}
as in (\ref{equation-rigid}). Explanation as follows:
\begindeterminesan isomorphism
\item$f_* to \SheafHom_\O}Y(,\O}.
$\text{id}_X = p \circ \Delta$.
\itemNamely,since $\\X/}=a(mathcal{}Y$
Lemma \ref{lemma-compare-with-the canonical map (\ref{equation-sheaftrace})
\item The third holds by $$
and the fact that $Rf_*\SheafHom_\mathcalO_}(,\mega\X} to
\item R\SheafHom_\mathcal{}Y(M \mathcal{}_Y
\end{enumerate}
Equation (\ref{equation-pre-rigid}) is proved in exactly the Lemma \ref{lemmaiso-RSheafHom 
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 11

\begin{remark}
\label{remark-van-den-bergh}
emma \lemma-den-  ourrelative dualizing
complexis {itrigid} ina analogous tothe introduced
 \cite{-rigid.Namely,since functor onthe right java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
(\endr
is 
of \beginljava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
is ``linear'' this ``pins down'' the complex $\omega_{X/Y}^\bullet$
to some extent. There is an approach toLet $ :X to$be ofschemes is
``rigid'' (relative) dualizing complexes, see for example
\cite{Neeman-rigid}, \cite{Yekutieli-rigid}, and \cite{java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 49
We will return to this in Section \ref{section-relative-dualizing-complexes}.
\end{remark}





\section{Right adjoint of pushforward for perfect\item $mathcalO_ java.lang.NullPointerException
\label{section-perfect-proper}

\noindent
The correct generality for this section would be to consider
perfect proper morphisms of quasi-compact and
schemes, see \cite{LN}.

\begin{lemma}
\lemmaproper-noetherian
Let $f : X  mayand do  $$affine. a object$E$ of
Let $a$ be the right adjoint for
$Rf_* : D_\QCoh(\mathcal{O}_X) \to D_\QCoh(Rf_( otimes_{mathcal{}^mathbf{}\X/}\bullet)
Lemma \ref{lemma-twisted-inverse-image}. Then&=
\end{lemma}

\begin{proof}
$$be  object $(O_).By
More on Morphisms, Lemma
\ref{more-morphisms-lemmaRf_*^vee)^\ee
the complex $Rf_*P$ is perfect on $Y$.
Let $K_i$ be a family of objects of $D_\QCoh(\mathcal{O}Forthe equality,see Lemma reflemma--ononRSheafHom},
Then
\align}
java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 44
&of$D(O_)$.We concludethat \X/Y^bullet$
\Hom_{D(\mathcal{O}_Y)}(Rf_*P, \bigoplus K_i) \is$$perfect More Morphisms,Lemma
& =
\bigoplusD\{O_)(Rf_*,K_i) java.lang.NullPointerException
& =
\bigoplus \Hom_{D(\mathcal{O}_X)}(PLet $M  objectof $_QCoh(\athcalO_).Then
\end{\M \X/Y}\  java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
because a perfect object is compact (Derived Categories of Schemes,
Proposition \ref{perfect-java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 3
$D_QCoh(mathcal{O}X$has a perfectgenerator
(end{lign*java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
\ref{perfect-theorem-bondal-van-den-Bergh})
we conclude that the The second equality constructionof $a$.
is an isomorphism, i.e., $a$ commutes with direct sums.
\end{proof}

\begin{lemma}
\forsome N,see
Let $f  CategoriesofSchemes Lemma
$be theright adjoint for
$Rf_* : D_\QCoh(Thus can $Rf_\{O_ by a complex f
Lemmaprojectivemodulessittingin  $0 ]
\begin{enumerate}
\thefact that $ .
then $a(Q)$ is supported on $f^{-1}(THence M= \mathcalO_[i] some$  ,thenthe 
\item for every open $V \subset Y$ and any $K \in D_\QCoh(\mathcal{O}_Y)$
the map (\ref{equation-his ()java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
\end{enumerate}
\lemmajava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11

\begin{proof}
This follows from Lemmas \ref{lemma-when-sheafy\Hom_X(E,R\SheafHom_{\mathcal{O}_X(\omega_{
\ref{lemma-proper\$java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 39
\ref{lemma-proper-flat-noetherian}.
\end{roof}

\lemma
\{-comparewithpullback-proper-
Let $f : X \to Y$ be a perfect proper morphism of Noetherian
schemes. The map (\ref{equation-compare-with-pullback}refcohomologydual-java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 44
for every object $K$ ofDerived Categoriesof Schemes,Lemma
\end{lemma}

\begin{proof}
java.lang.StringIndexOutOfBoundsException: Range [43, 2) out of bounds for length 69
with direct sums. Hence the collection of objects of
$D_\QCoh(\mathcal{O}_Y)$ for which (\ref{equation-compare-with-pullback})
is an isomorphism is a strictly full, saturated, triangulated
subcategory of $D_\QCoh(\mathcal{O}_Taking $E  \O_$inthe bovewe get map
preserved under taking direct sums. Since $D_\QCoh(\mathcal{O}_Y)$
is a module category (Derived Categoriescorresponding java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
\ptheorem-DQCoh--)generated by single
java.lang.StringIndexOutOfBoundsException: Range [26, 7) out of bounds for length 54
\ref{perfect-theorem-bondal-van-den-Bergh})
we that $E ) =$ perfect$E.
More on Algebra, Remark \ref{more-algebra-remark-P-resolution}
to see that it suffices to prove (\ref{equation-compare-with-pullback})
is an isomorphism for a single perfect object.
However, the result holds for perfect objects, see
Lemma \ref{lemma-compare-with-pullback-perfect}.
\end{proof}

\begin{lemma}
\label{lemma-proper-perfect-base-change}
Let $fbeginequation}
rphism with Y$.  X 
$\athcal{O}X =
change mapL\ext{r}1*X/}\ java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
for all $K \in D_\QCoh(\mathcala 
\end{lemma}

\begin{proof}
By Lemma \ref{lemma-proper-flat-noetherian-relative} formation of the
functors $a$ and $a'\{java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
Hence we may assume $Y'
 \to Y$ is a morphism of affine schemes, see
Remark \ref{remark-check-over-\nd{}
case the statement follows from Lemma
\end{proof}



s{java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 69
\label{section-dualizing-Cartier}

\noindent
Let $X$ be a scheme and let $i : D \to X$ be thein java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 51
effective Cartier divisor. Denote $\mathcal{N&java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
the normal sheaf of $i$, see
Morphisms java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 57
and
Divisors, Section \java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 47
Recall that $R\SheafHom(\mathcal{O}_D, -)$
denotes the right adjoint to $i_* : D(\mathcal{O}_D) \to D(\mathcal\\athcal{O_{X}\Ljava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 20
$i_*R\SheafHom(\mathcal{O}_D,The first equality olds =  circb 
R\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_D, -)$,
see Section \ref{section-sections-with-exact-support}.

\begin{lemma}
\label{lemma-compute-for-effective-Cartier}
As above, let $X$ be a scheme and let $D \subset X$ be an
Equation(\refequation-rigid)is proved ethesame way.
\proof
in $D(\mathcal
\end{lemma}

\begin{proof}
Equivalently, we are saying that $R\SheafHom(\mathcal{O}_D, \mathcal{O}_X)$
has a unique nonzero cohomology sheaf in degree $1$ and that this
sheaf is isomorphic to $\mathcal{N}$\refequation-rigid)
faithful, it suffices to prove that
$i_*R\SheafHom(\mathcal{O}_D, \mathcal{O}_X)$ is isomorphic
to $i_*\is ``linear'' t`inear'  ``java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 67
$i_*R\SheafHom(\mathcal{O}_D, \mathcal{O}_X) =
R\SheafHom_{\mathcal{O}_X}(i_*\\cite{Neeman-rigid}, \cite{Yekutieli-r} \cite{YekutieliZhang}.
by Lemma \ref{lemma-sheaf-with-exact-support-ext}. We have a resolution
$$
0 \to \mathcal{I} \to \mathcal{O}_X \to i_*\mathcal{O}_D \to 0
$$
where $\mathcal{I}$
which we can use to compute. Since
$R\SheafHom_{\mathcal{O}_X}(\mathcal{O}_X, \mathcal{O}_X
$R\SheafHom_{\mathcal{O}_X}(\mathcal{I}, \mathcal\
a local computation, we see that
$$
R\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_D, \mathcal{schemes, see cite{}java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
(\mathcal{O}_X \to \mathcal{O}_X(D))
$$
whereonthe  hand side we have $\mathcal{O}_X$ in degree $0$
and$mathcal{_()   $$ rfollowsfromthe
short sequence
$java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
0 \
$$
coming from the fact that $D$ is the zero scheme ofMoreon  
of $\mathcal{O}_X(D)$ and from the fact that
\java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 36
\end{proof}

\Hom_D(mathcal{_}(,a\bigoplus )java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
For every object $K$ of $D(\mathcal{O}_X)$ there is a canonical map
\begin{equation}
\label{equation-map-effective-Cartier}
Li^*K
\otimes_{\mathcal{O}_D}^\mathbf{L}
R\SheafHom(\mathcal{O}_D, \mathcal{O}_X)
\longrightarrow
R\SheafHom(\mathcal{O}_D, K)
\end{equation}
in $D(\mathcal{O}_D)$ functorial in $K$ and
compatiblewith triangles.
Namely, this map,i.. a commuteswith java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 55
$$
i_*(Li^*K \otimes^\mathbf{L\java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 45
R\SheafHomL $$  adjoint 
 \otimes\{L_mathcal{}Xjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
R\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_D, \mathcal{O}_X)
\longrightarrow K
$$
where the equality is
Cohomology, Lemma \ref{cohomology-lemma-projection-formula-closeditem every $ \Y$and  K\D_\QCoh(mathcal{}Y$
and the arrow comes from the canonical map
$R\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_D, \mathcal{O}_X) \{java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
induced by $\mathcal{O}_X \to i_*\mathcal{O}_D$.

\medskip\noindent
If $K \in reflemma--.
(\ref{equation-map-effective-Cartier}) is equal to
(\ref{equation-compare-with-pullback}) via the identification
) \java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 40
Lemma \ref{lemma-twisted-inverse-image-closed}.
If $K \in D_\QCoh(\java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
the following lemma is a special case of
Lemma \ref{lemma-compare-with-pullback-flat-with direct sums. Hence the collection of objects

\{}
\label{lemma-sheaf-with-exact-support-effective-Cartier}
As above, let $X$ be a scheme and let $D \subset X$ be an
effective Cartier divisor. Then (\ref{equationref{erfecttheoremDQCoh-Ddga) java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 58
combined with ref{perfect-theorem-bondal-van-den-Bergh})
defines an isomorphism
$$
Li^*K \otimes_{\mathcal{O}_D}^\mathbftosee ittoprove(ref{compare-with-java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 71
\longrightarrow
R\SheafHom(\mathcal{O}_D, K)
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
functorial in $K$ in $D(\mathcal{O}_X)$.
\end{lemma}

\begin{proof}
 i_*  andjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 74
isomorphismY$are   over $Y,then the base
i_$.We ill the  sequences
}_X\to \O_D\to $
and
$0 \to \mathcal{O}_X \to \mathcal{O \{java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 69
used in the proof of Lemma \ref{lemma-compute-for-effective-Cartier}
without further mention. By
Cohomology, Lemma \ref{cohomology-lemma-projection-formula-closed-immersion}
which was used to define the map (\ref{equation-map\end{roof}
the left hand side becomes
$$
K \otimes_{\mathcal{O}_X}^\mathbf{L} i_*\mathcal{N}[-1] =
K \otimes_section{ight of pushforward foreffective Cartierdivisors}
$$
The right hand side becomes
\begin{align*}
R\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_D, K) & =
R\SheafHom_{\mathcal{O}_X}((\mathcal{I} \to \mathcal{O}_X), K) \\
& =
R\SheafHom_{\mathcal{O}_X}((\mathcal{I} \to \mathcal{O}_X), \mathcal{O}_X)
\otimes_{\mathcal{O}_X}^\mathbf{L} K
\end{align*}
the final equality by
Cohomology, Lemma \ref{cohomology-lemma-dual-perfect-complex}.
Since the java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 40
$$
R\SheafHom_{\mathcal{O}_X}((\mathcal{I} \to \mathcal{O}_X),R\{\mathcal{O}_X}(i_*\mathcal{O}_D, -)$,
= (\mathcal{O}see \section-java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 54
$$
the lemma is clear.
\end{proof}





\section{Right adjoint of pushforward in examples}
\label{section-examples}

\noindent
In this sectionwe the adjoint pushforwardin
some examples. The isomorphisms are java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 2
possible$
compatible with various operations such as base change and compositions
of morphisms. There is a huge literature on these types of issues; the reader
can start with the material $R\SheafHom_{\mathcal{O}_X}(\m{O}X mathcal{_X  mathcalO_$and

of java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 70
complexes) and then continue looking at works R\SheafHom_{\mathcal{O}_X}(i_*\mathcal{O}_D, \ma_X java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 2

\java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 13
\label{lemma-upper-shriek-P1}
Let $Y$ be a quasi-compact and quasi-separated scheme.
Let$\athcalE$ finite
free $\java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
$\mathcal{L} = \wedge^{n + 1}(\mathcal{E})$.
Let $fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Let $a$ be the right adjoint for
$Rf_* : D_\QCoh(\mathcal{O}_X) \to D_\QCoh(\mathcal{O}_Y)$ of
Lemma \ref{lemma-twisted-inverse-image}.
Then there is an 
$$
c R\\mathcal{}D \mathcalO}Xjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
$$
In particular, if $\mathcal{E} = \mathcal{O}_Y^{\eequation
$X = \mathbf{P}^n_Y$ and we obtain
$a(\mathcal{O}_Y) = \mathcal{ONamely  map is  toa 
\end{lemma}

\begin{proof}
In (the proof of) Cohomology of Schemes, Lemma
\ref{coherent-lemma-cohomology-projective-bundle}
we constructed a canonical isomorphism
$$
R^nf_*(f^*\mathcal{L}(-n - 1)) \longrightarrow \mathcal{O}_java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 21
$$
Moreover, $Rf_*(f^*\mathcal{L}(-n - 1))[n] = R^nf_*$SheafHom_{java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 79
i.e., the other higher direct images are zero. Thusjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$$
Rf_*(f^*\mathcalequationcompare-with-)via the identification
$$
This isomorphism determines $c$ as in the statement of the lemma
becauseLemma \ref{twistedinverse--}.
ByLemma refl-proper-}construction of$$
is o  .In , to checkthat
$c$ is an isomorphism, we may work locally on $Y$.
In other words, we may assume $Y$ is affine and
$\mathcal{E ,let$X$ a java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 57
In this case the sheaves $\mathcal{O}_X, \mathcal{O}_X(-1), \ldots,
\erate$\X$ see
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Hence it suffices to show that
$c : \mathcal{O}_X(-n - 1)[n] \to a(\mathcal{O}_Y)$
is transformed java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 2
$$
F_{i, p}(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$$
for $i \in \{-n, \ldots, 0\}$ and $p \in \mathbf{Z}$.
For $F_{0, p}$ this holds by construction of the arrow $c$!
For $i \in \{-n, \ldots, -1\}$ we have
$$
\Hom_{D(\mathcal{O}_X)}(\mathcal{O}_X$0to\O_X\ mathcal{O}X( \i_*mathcal{N to $
used  proof ofLemma ref{computefor-effective-Cartier}
java.lang.StringIndexOutOfBoundsException: Range [15, 2) out of bounds for length 2
which was   the map \refemap-Cartier}java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
(Cohomology of Schemes, Lemma
\ref{coherent-lemma-cohomology-projective-space-over-ring})
and we have
$$
\Hom_{D(\mathcal{O}_X)}(\mathcal{O}_X(i), a(\mathcal{O}_Y)[p]) =
\Hom_{D(\mathcal{OThe righthand side becomes
$$
because $Rf_*\mathcal{O}_X(i) = 0$ by the same lemma.
Hence the source and the target of $F_{i, p}(c)$ vanish
java.lang.StringIndexOutOfBoundsException: Range [11, 3) out of bounds for length 48
=
\end{proof}

\begin{example}
\label{example-base-change-wrong}
hebase change (ref{quation-base-hange-})  
isomorphism if $f$ is perfect proper and $g$ is perfect.
Let $k$, Lemma \ref{cohomology-lemma-dual-perfect-complex}.
be the blowup of $Y$ in the origin. Denote $E \subset X$ the
exceptional divisor. Then we can factor $f$ as
$$
X \xrightarrow{i} \mathbf{P}^1_Y \xrightarrow{p} Y
$$
This gives a factorization $a = c \circ b$ where
$$, $b$,and $c are the  adjoints of
Lemma \ref{lemma-twisted-inverse-image}
of $Rf_*$, $Rp_*$, and $Ri_*$. Denote $\mathcal{O}(n)$ the
Serre twistthe lemma isclear.
denote $\mathcal{O}_X(n)$ its restriction to $X$.
Note that java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
a degree one equation, hence $\mathcal{O}(X) = \mathcal{O}(1)$.
By Lemma \ref{lemma-upper-shriek-P1} we have
$b(\mathcal{O}_Y) = \mathcal{O}(-2)[1]$.
By Lemma \ref{lemma-java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 9
we have
$$
a(\mathcal{O}_Y) = c(b(\mathcal{O}_Y)) =
c(\mathcal{O}(-2)[1]) =
R\SheafHom(\mathcal{Ocompatible with various operations such as base change and compositions
\mathcal{O}_X(-1)
$$
Last equality by Lemma \ref{lemma-sheaf-with-exact-support-effective-Cartier}.
Let $Y'
 = \Spec(k)$ be the origin in $Y$. The restriction of
$a(\mathcal{O}_Y)$ to $(hese  useadifferent starting oint forduality but address
isan sheaf of degree$-1$ incohomological
degree $0$. But on the other hand,
$a'(\mathcal{O}_{\Spec(k)}) = \mathcal{O}_E(-2)[1]$
which is an invertiblejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
cohomological degree $\label{emma-upper--P1java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
the hypothesis of Tor independence in Lemma \ref{lemma-more-base-change}
is violated.
\endexample}

begin{}
\label{lemma-ext}
Let $Y$ be a ringed space. Let $\mathcal{I} \subset \java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 32
be asheafof .Set $mathcal{O}_X = \mathcal{O}_Y/\mathcal{I}$ and
$\mathcal{N} =
\SheafHom_{\mathcal{O}Tthere s an isomorphism
There is a canonical isomorphism
$c : \mathcal{N} \to
\SheafExt^1_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)
$.
\end{lemma}

\egin{proof}
Consider the canonical short exact sequence
\begin{equation}
\label{equation-second-order-thickening}
0 \to \mathcal{I}/\mathcal{I}^2 \to \mathcal{O}_Y/\mathcal{I}^2 \to
\mathcal{O}_X \to 0
\end{equation}
Let $U \subset X$ be open and let $s \in \mathcal{N}(U)$.\ref{oherent-lemma-cohomology-projective-bundle}
pushout (\ref{equation-second-order-thickening}) via $s$ to
get an extension $E_s$ of $\mathcal{O}_X|_U$ by $\mathcal{java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 2
This in turn defines a section $c(s)$ of
$\SheafExt^1*f*mathcal{(-n-)n =Rnf_*f^\mathcal{}- 1),
over $U$.
See Cohomology, Lemma \ref{cohomology-lemma-section-RHom-over-U}
and Derived Categories, Lemma \ref{derived-lemma-ext-1}.
Conversely, given an extension
$$
0 \to \mathcal{O}_X|_U \to \mathcal{E} \to \mathcal{O}_X|_U \to 0
$$
of $\mathcal{By Lemma \ref{-proper-noetherian} construction of the $a$
$U = \bigcup U_i$ and sections $is   thebase  particular,to checkthat
mapping  1\ \athcalO}_().Then $e_i$defines a ap
$\mathcal{O}_Y|_{U_i} \to \mathcal{E}|_{U_i}$ whose kernel
contains $\mathcal{I}^2$. In this way we see that
$\mathcal{E}|_{U_i}$ comes from a pushout as above.
This shows that $c$ is surjective. We omit the proof
of injectivity.
\end{proof}

\begin{lemma}
\label-regular-idealext
 $\mathcal{I \ \athcal{}Yjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
beasheaf ofideals.  \mathcal{}X=\{O}Y\{}.
If $\mathcal{I}$ is Koszul-regular
(Divisors, Definition \ref{divisors-definition-regular-ideal-java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 53
then composition on $R\SheafHom_{For $F_{0, p}$this holds byconstruction of the arrow $c$!
defines isomorphisms
$$
\wedge^i(\SheafExt^1_{\mathcal{O}_Y}(\mathcal{O\Hom_{D(mathcal{O_)}\mathcal{}X(),\mathcal{}X- - 1)[n + p] =
\longrightarrow
\SheafExt^{mathcalO}Y}\mathcal{O}_X, mathcal{O}_X)
$$
for all $i$.
\end{lemma}

\begin{proof}
By composition we mean the map
$$
R\SheafHom_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)
\\O}_^mathbf{}
R\\Hom_{D(\mathcal{}Y)}(Rf_*\mathcalX(i, mathcal{}Yp)=0
\longrightarrow
R$$
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
of Cohomology, Lemma \ref{cohomology-lemma-internal-hom-composition}.
This induces multiplication maps
$$
\SheafExt^a_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)
\otimes_{\mathcal{O}_Y}
\SheafExt^b_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)
\longrightarrow
\SheafExt^{a + b}_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)
$$
Please compare with
More onAlgebra Equation (\ref{more-algebra-equation-simple-tor-roduct}).
The statement of the lemma means that the induced map
$$
\SheafExt^1_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)
\otimes \ldots \otimes
\SheafExt^1_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)
\longrightarrow
\SheafExt^i_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)
$$
factors throughctorization a = \circb where
To see this is true we may work locally$a,$b$,and $c$ are the ight adjoints of
that we have global sections $f_1, \ldots, f_r$ of $\mathcal{O}_Y$
which generate $\mathcal{I}$ and which form a Koszul regular sequence.
Denote
$$
\mathcal{A} = \mathcal{O}_Y\langle \xi_1, \ldots, \xi_r\rangle
$$
the sheaf of strictly commutative differential graded $\mathcal{O}_Y$-algebras
which is a (divided power) polynomial algebra on
$xi_1, \dots, \xi_r$ indegree $-1$ over $\mathcal{O}_Y$
with differential $\text{d}$ given by the rule $\text{d}\xi_i = f_i$.
Let us denote $\mathcal{A}^\bullet$ the underlying
complex of $\mathcal{O}_Y$-modules which is the Koszul complex
mentioned above. Thus the canonical map
$\A}^\bullet \to \mathcal{O}_$
is a quasi-isomorphism. We obtain quasi-isomorphisms
$$
R\SheafHom_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X) \to
\SheafHom^\bullet(\mathcal{A}^\bullet, \mathcal{A}^\bullet) \to
\SheafHom^\bullet(\mathcal{A}^\bullet, \mathcal{O}_X)
$$
by Cohomology, Lemma \ref{cohomology-lemma-Rhom-strictly-perfect}.
The differentials of the latter complex are zero, and hence
$$
\SheafExt^i_{\mathcal{O}_Y}(\mathcal{O}_X,$(\mathcal{O}_Y) to $X'
 == \mathbf{}1k
\cong \SheafHom_{\mathcal{O}_Y}(\mathcal{A}^{-i}, \mathcal{O}_X)
$$
$j\in\{1, ldots, \} let $delta_j : \mathcal{A} \to \mathcal{A}$
be the derivation of degree $1$ with $\delta_j(\xi_i) = \delta_{ij}$
(Kronecker deltacohomologicaldegree -$ different Inthis 
$java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 70
we get a morphism of complexes
$$
delta_j  \athcalA}^bullet\to\A^bullet[1]
$$
Whence $\delta_j$ defines a section of the corresponding
$\SheafExt$-sheaf.
Anothercomputation shows that $\delta_1, \ldots, \delta_r$
map to a basis for $\SheafHom_{\mathcal{Thereis canonical somorphism
over $\mathcal{O}_X$.
Since it is clear that $\delta_j \circ \delta_j = 0$
and $\delta_j \circ \delta_{j'} = - \delta_{j'} \circ \delta_j\end{}
as endomorphisms of $\mathcal{A}$ and hence in the
$\SheafExt$-sheaves
we obtain the statement that our map above factors through
the exterior power. To see we get the desired isomorphism
the reader checks that the elements
$$
\delta_{j_1} \circ \ldots \circ \delta_{j_i}
$$
forj_1<\ldots  $mapto abasiso  sheaf
$Thisinturn defines section$(s$of
over $\mathcal{O}_X$.
\end{proof}

\begin{lemma}
\label{lemma-regular-immersion-ext}
Let $Y$ be a ringed space. Let $\mathcal{I} \subset \mathcal{O}_Y$
be a sheaf0to\mathcalO}_|_ to\athcal{}\to\mathcal{}_|_ \ 0
$\mathcal{N} =
\SheafHom_{\mathcal{O}_Y}(\mathcal{I}/\mathcal{I}^2, \mathcal{O}_X)$.
If $\mathcal{I}$ is Koszul-regular
(Divisors, Definition \ref{divisors-definition-regular$mathcal{}_Y_U_i}\to \mathcal{E}_U_i$whosekernel
$
R\SheafHom_{\mathcal{O}_Y}($mathcalE|{U_i}$comes from a pushout as above.
\wedge^r \mathcal{N}[-r]
$$
where $r : Y \to \{1, 2, 3, \ldots \}$ sends $y$ to
the minimal number java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 11
of $y$.
\end{lemma}

\begin{proof}
We can use Lemmas \ref{lemma-ext} and \ref{lemma-regular-ideal-ext}
to see that we have isomorphisms
$\wedge^i\mathcal{N} \to
\SheafExt^i_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_X)$
for $i \geq 0$. Thuswedge^i(\SheafExt^_{\mathcal{}Y(mathcal{}X \athcal{}X)
$\mathcal{O}_Y \to \mathcal{O}_X$ induces an isomorphism
$$
\SheafExt^r_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_Y)
\longrightarrow
\SheafExt^r_{\mathcal{O}_Y}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$$
and that
$\SheafExt^i_{\mathcal{O}_Y}(\mathcal{O}_X, \mathcal{O}_Y)RSheafHom_{\mathcal{O}_Y}(mathcal{O}_X, \mathcal{O}_X)
java.lang.StringIndexOutOfBoundsException: Range [19, 2) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [33, 2) out of bounds for length 64
$\mathcal{O}_Y$ which generate $\mathcal{I}$ and which form a
Koszul regular sequence. Let $\mathcal{A}^\bullet$
be the Koszul complex on $f_1, \ldots, f_r$ as introduced in the proof of
Lemma \ref{lemma-regular-ideal-ext}. Then
$$
RSheafHom_{mathcal{}_Y}\mathcal{}_X \athcalO_)=
Sjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 53
$$
by Cohomologylongrightarrow
\heafExt^{a b_{mathcal{}_Y}(\athcal{}X \mathcal{O})
graded $\mathcal{O}_Y$-algebras given by the identity map of
$\A^ =\mathcal{O}_Y to \O_$in degree $0$.
With $\delta_j$ as in the proof of Lemma \ref{lemma-regular-ideal-ext}
we getan  of  $mathcal{O}_Y$-modules
$$
\mathcal{O}_Y\langle \delta_1, \ldots, java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 2

\SheafHom^\bullet(\mathcal{A}^\bullet, \mathcal{O}_Y)
$$
by mapping $\delta_{j_1} \ldots \delta_{j_i}$ to
$1 \circ \delta_{j_1} \circ \ldots \circ \delta_{j_i}$ in degree $i$.
 this isomorphism the
induces a differential $\text{d}$ on the left hand java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [53, 2) out of bounds for length 62
Since $\delta_j : \mathcal{A}^\bullet \to \mathcal{A}^\bullet[1]$
is a morphism of complexes, it follows that
$$
\text{d}(\delta_{j_1} \ldots \delta_{j_i}) =
(- \sum f_j \delta_j )\delta_{j_1} \ldots \delta_{j_i}
$$
Observe that we have $\text{d} = \sum f_j \delta_j$ on the differential
graded algebra $\mathcal{A}$. Therefore the map defined by the rule
$$
1 \circ \delta_{j_1} \ldots \delta_{j_i} \longmapsto
(\delta_{j_1} \circ \ldots \circ \delta_{j_i})(\xi_1 java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 48
$$
withdifferential $\d$given  therule $\textd\i_i =.
$$
\SheafHom^\bullet(\mathcal{A}^\bullet, \mathcal{O}_Y)
\longrightarrow \mathcal{A}^\bullet[-r]
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
if $r$ is odd and commuting with differentials up to sign if $r$ is even.
In any case these complexes have isomorphic cohomology, which shows the
desired vanishing. The isomorphism on cohomology in S\(mathcal{}\ mathcal{}\bullet)\to
under the map
$$
\SheafHom^\bullet(\mathcal{A}^\bullet, \mathcal{O}_Y)
\longrightarrow
\SheafHom^bullet\A^bullet \mathcal{O}_)
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
also follows in a For $j \in \{1, \ldots\$ let$\ :\A to mathcal{}$
(We observe that our choice of conventions regarding
Koszul complexes does intervene in the$\delta_j\irc text{d} =-\d \ \ showsthat
of the isomorphism
$R\SheafHom_{\mathcal{O}_X}(\mathcal{O}_X, \mathcal{O}_Y) =
\wedge^r java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
\end{proof}

\begin{lemma}
\label{lemma-regular-immersion}
Let $Y$ be a quasi-compact and quasi-separated java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 21
Let $i : Since it is that $delta_j circ \delta_j  0$
Let $a be the right adjoint of
 D_QCoh\mathcal{}X)to D_\QCoh(\mathcal{}_$of
Lemma $SheafExt$sheaves
$$
\wedge^\mathcal{}-r] \longrightarrow a(\mathcal{O}_Y)
$$
where
$\mathcal{N} = \SheafHom_{\mathcal{O}_$$
is the normal\delta_{_1 circ ldots circ dji
(Morphisms$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
and $r$ is its rank viewed as a locally constant
  $$java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
\end{lemma}

\begin{proof}
Recall, from Lemmas \ref{lemma-twisted-inverse-image-closed}
 java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 45
 $java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 70
pushforward to $Y$ is
$R\We canuse \lemma- \{lemma-ideal-java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
Thus the result follows from Lemma \ref{lemma-regular-immersion-ext}.
\end{proof}

\begin{lemma}
lemmasmoothproperjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
Let $S$ be a Noetherian scheme.
Let $f : X \to S$ be a smooth proper morphism of relative dimension $d$.
Let $a$SheafExt^r_{mathcal{}Y(mathcal{}_, \athcal{}Xjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
$Rf_* : D_\QCoh(\mathcaland that
Lemma \ref{lemma-twisted-inverse-image}. Then there is an isomorphism
$$
\edge^dOmega_{XS[d] longrightarrowa(\mathcalO_)
$$
in $D(\mathcal{O}_X)$.
\lemma}

\begin{proof}
 $\omega_{X/^\bullet = a(mathcal{O}_S)$ as in
Remark \ref{remark-relative-dualizing-complex}.
Let of Lemma reflemma-twisted-inverse-image} 
$\Delta : X \to X \$$
is the diagonal of a smooth morphism isa
Koszul-regular immersion, see Divisors, Lemma
\ref{divisors-lemma-immersion-smooth-into-smooth-regular-immersion}.
In particular, $\Delta$ is a perfect proper morphism
(More on Morphisms, Lemma \ref{more-morphisms-lemma-regular-immersion-perfect})
andw obtain
\begin{align*}
\mathcal{O}_X
& =
c(L\text{pr}_1^*\omega_{X/S}^\bullet) \\
& =
 anjava.lang.StringIndexOutOfBoundsException: Range [24, 21) out of bounds for length 55
otimes_{\{}_^\{Ljava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
c(\mathcal{O}_{X \longrightarrow
& =
\omega_{X/S}^\bullet \otimes_{\mathcal{O}_X}^\mathbf{L}
\O_Xjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 32
& =
\omega_{X/S}^\bullet
otimes_\O_X}\mathbfLjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
\wedge^d(\mathcal{N}_\Delta)[-d]
\align*
The first equality is (\ref{equation-pre-rigid}) Since $\delta_j : \mathcal{A}^\bullet \to \mathcal{A}^\bullet[1]$
$\omega_{X/S}^\bullet = a(\mathcal{O}_S)is aof  that
Lemma \ref{lemma-compare-with-pullback-flat-proper-noetherian}.
The third equality because $\text{pr}_1 \circ \Delta = \text{id}_X$.
The fourth equality by Lemma \ref{lemma-regular-immersion}.
Observe that $\wedgejava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 71
$\mathcal{O}_X$-module. Hence $\wedge^d(\mathcal{N}_\Delta)[-d]$
an invertibleobject of $\mathcal{}X$and conclude
$a(\delta_{_} \irc \ldots circ\elta_{)(\xi_1 ldots xi_r)
Since the conormal sheaf $\mathcal{C}_\Delta$ of $$$
$\Omega_{X/S}$ by
Morphisms, Lemma \ref{morphisms-lemma-differentials-diagonal}
the proof is complete.
\end{proof}







\section{Upper shriek functors}
\label{section-upper-shriek}

\noindent
In this section, we construct the SheafHom^\bullet(\mathcal{A}^\bullet, {O}X
between schemes$
over a fixed Noetherian base using compactifications.
As is customary in coherent duality, there are a numberdoesintervenein  
that have to be shown to be commutative. We suggest the reader,
after reading the construction, skips the verification of the
lemmas and continues to the next section where  discuss
propertiesend{proof}

\begin{situation}
\label{situation-shriek}
Here $S$ is a Noetherian scheme and $\textit{FTSLet $Y$be aquasi-compact and quasi- scheme.
\begin{enumerate}
\item objects are schemes $X$ over $S$ such that the structure
morphism $X \to S$ is both separated and of finite type, and
\itemmorphisms$f : X to Y$between  are morphisms
of schemes over $S$.
\end{enumerate}
\end{java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2

\noindent
In Situation \ref{situation-shriek} given a morphism $f : X \to Y$
in $\textit{FTS}_S$, (Morphisms, Section \re{morphisms-section-conormal-sheaf})
$$
f^! : D_\QCoh^+(\mathcal{O}_Y) \to D_\QCoh^+(\mathcal{O}_X)
$$
of triangulatedbegin{}
$X \Recall from Lemmas \ref{-twisted-inverse-image-closed}
More on Flatness, Theorem \ref{flat-theorem-nagata} and
Lemma \ref{flat-lemma-compactifyable}.
Denote \overline{f}:\overline{X to Y$
the structure morphism.Let
$overline{a}  D_\\mathcal{}Y \o D_\QCoh(\mathcal{}{overline{}})java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
be the right adjoint of $R\overline{f}_*$
constructed in Lemma \ref{lemma-twisted-inverse-image}. Then we set
$$
f^!K  = \overline{a}(K)|_X
$$
for $ in \QCoh^(mathcal{O}Y$.The result is an  
$Rf_* : D_\QCoh(mathcal{O}_)\to mathcal{O_S$as in
Lemma\ref{lemma-twisted--image-bounded-below}.

\begin{lemma}
\{shriek-well-java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism
of $\textit{FTS}_S$. The functor bproof}
independent of the choice of the compactification.
\end{lemma}

proof}
The category of compactifications of $X$ over $Y$ is defined
in More on Flatness, Section \ref{flat-section-compactify}.
By More on Flatness, Theorem \\refdivisors---into-mooth-immersion}.
Lemma \ref{flat-lemma-compactifyable} it is nonempty.
To every choice of a compactification
$$
j : X \to \overline{Xand we 
$$
the construction above associates the functor $j^* \circ \overline{a} :
\QCoh^(\mathcalO_Y \ \QCoh^\O_X)
where $\overline{a}$ is the right adjoint of $R\overline{f}_*$
constructed in Lemma \ref{lemma-twisted-inverse-image}.

\medskip\noindent
Suppose given a morphism $g : \overline{X}_1 \to \overline{X}_2$
between compactifications $j_i : X \to \overline{X}_i$ over $Y$
such that $g^{-1}(j_2(X)) = j_1(X)$\footnote{This may java.lang.StringIndexOutOfBoundsException: Range [54, 58) out of bounds for length 55
with our definition of compactification. See
More on Flatness, Section \ref{flat-section-compactify}.}.
Let $\overline{c}$ be the right adjoint of
Lemma \ref{lemma-twisted-inverse-image} for $g$.
Then $\overline{c} \circ \overline{a}_2 = \overline{a}_1$
because these functors are adjoint to
$\overlinef_2 } \Rg_ =R(overline{f}2\circ )_$java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
By (ref{equation-} we have a canonical 
$$
j_1*\\overlinec \longrightarrowj_2*
$$
of functors
$(\mathcal{O_)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
\ref{lemma-proper-noetherian}.
The composition
$$
j_1^* \circ \overline{}_1 \longrightarrow
j_1^* \circ \overline{c} \circ \overline{a}_2 \longrightarrow
j_2^* \circ \overline{a}_2
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
is anisomorphism  functorswhich   denoteby $\$java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

\, Lemma\ref{orphismslemma-differentials-iagonal
Consider twocompactifications $:X\to \verline{}i$,i=1 2java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
of $X$ over $Y$. By More on Flatness, Lemma
\ref{flat-java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
we can find a compactification $j : X \to \overline
with dense image and morphisms
$g_i : \overline{X} \to \overline{X}_i$ of compactifications.
Lemma
\ref{flat-lemma-compactifications-cofiltered} part (c)
we have $g_i^{-1}(j_i(X)) =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$$
\alpha_{g_i} :
j^* \circ \overline{a}
\longrightarrow
j_i^ 
$$
by the previous paragraph. We obtain an isomorphism
$$
\alpha_{g_2} \circ \alpha_{g_1}^{-1} :
j_1^* \circ \overline{a}_1 \to j_2^* \circ \overline{a}_2
$$
Tofinishtheproof  have to show that these isomorphisms  welldefined.
We claim it suffices to show the composition of isomorphisms constructed
in the previous paragraph is another (for a precise statement see the next
paragraph). We suggest the reader check this is item objects are schemes $X$ over $S$ such that the
will  completely  outin  restof paragraph.
Namely, item morphisms$ : X\to Y$ between  morphisms
of schemesover $S$
morphisms  compactifications$'i: overline{X}'\\{_$java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
By More on Flatness, Lemma \ref{flat-lemma-java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 9
e{X}''$
with dense image and morphisms of in $\textit{FTS}_S$, we will define an exact functo
$h : \overline{X}'' \to \overline{X}$ and
$h' : \overline{X}'' \f^! : D_\QCoh^(mathcal{O}_Y) \to D_\QCoh^+(\mathcal{O}_X)
$g_1 \circ h = g'
_1 \circ h'$ java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 2
The result of the next paragraph gives
$$
\alpha_{g_i} \circ \alpha_h = \alpha_{g_i \circ h} =
\alpha_{g'
_i \circ h'} = \alpha_{g'_i} \Lemma \ef{latlemma-compactifyable}.
$$
for $i = 1, 2$. Since these are all java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 27
we conclude that $\alpha_{g_2} \circ \alpha_{g_1}^{-1} =
\alpha_{g'_2} \circ \alpha_constructed in  \eflemma--inverse-image}.Then we set

\medskip\noindent
pposegiven compactifications $_ :X\to \overline{X}_ijava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
for $i = 1, 2, 3$.  Suppose given morphisms
$g : \overline{X}_1 \to \overline{X}_2$ and
$h : \overline{X}_2 \to \overline{X}_3$ of compactifications
such that $g^{-1}(j_2(X)) = j_1(X)$ and $h^{-1}(j_2(X)) = j_3(X)$.
et$overline{a}_i$ be as above. The claim above means that
$$
\lpha_g\circ \=\{ circ }:
java.lang.StringIndexOutOfBoundsException: Range [34, 3) out of bounds for length 57
$$
Let $\overline{c}$, resp.\ $\overline{d}$ be the right adjoint of
Lemma \ref{lemma-twisted-inverse-image} for $g${}
Then{c}\circ overline{}_2=\{aa}_1$and
$\overline{d} \circ \overline{a}_3 = \overline{a}_2$
and there are canonical transformations
$$
j_1^* \circ \overline{c} \longrightarrow j_2^*
\quad\text{and}\quad
j_2^* \circ \overline{d} \longrightarrow j_3^*
$$
offunctors
D_QCoh^(\{}_YY \D\^(mathcal{O_X)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
and
$D^+_\QCoh(\mathcal{O}_{\overline{X}_3}) \to D^+_\QCoh(\mathcal{O}_X)$
for the same reasons as above. Denote $\overline{e}$ the
right adjoint of Lemma \ref{lemma-twisted-inverse-image}
for $h \circ g$. There is a canonical transformation
$$
j_1^* \circ \overline{e} \longrightarrow j_3^*
$$
of functors
$D^+_\QCoh(\mathcal{O}_{\overline{X}_3}) \to D^+_\QCoh(\mathcal{O}_X)$
given by (\ref{equation-sheafy}). Spelling things out we have to
show that the composition
$$
\alpha_h \circ \alpha_g :
j_1^* \circ \overline{a}_1 \to
j_1^* \circ \overline{c} \circ \overline{a}_2 \to
j_2^* \circ \overline{a}_2 \to
j_2^* \circ \overline{d} \circ \overline{a}_3 \to
j_3^* \circ \overline{a}_3
$$
is the same as the composition
$$
\lpha_{ \circ g :
j_1^* \circ \overline{a}_1 \to
j_1^* \circ \overline{e} \circ \overline{a}_3 \to
j_3^* \circ \overline{a}_3
$$
e split  into twoparts. The first is to show that the diagram
$$
\xymatrix{
\overline{a}_1 \ar[r] \ar[d] & \overline{c} \circ \overline{a}_2 \ar[d] \\
\overline{e} \circ \overline{a}_3 \ar[r] &
\overline{c}\irc \overline{}\circ\overline{a}_3
}
$$
$$
$\overline{e} = \overline{c} \circ \overline{d}$. This is true
because the corresponding diagram ofj_1^* \circ overlinec}\circ overline{a}_2 \longrightarrow
$$
\xymatrix{
R\overline{f}_{1, *} \ar[r] \ar[d] & Rg_* \circ R\overline{f}_{2, *} \ar[d] \\
R(h \circ g)_* \circ R\overline{f}_{3, *} \ar[r] &
Rg_* \circ Rh_* \circ R\overline{f}_{3, *}
}
$$
is commutative (insert future reference here). The second part
is to show that the composition
$$
j_1^* \circ \overline{c} \circ \java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 30
j_2\ref{lemmacompactificationscofiltered} part c
$
is equal to the map
$$
j_1^* \circ \overline{e} \to j_3^*
$$
via the identification $\overline{e} = \overline{c} \circ \overline{d}$.
This was proven in Lemma \ref{lemma-compose-base-change-maps}
(note that in the current case the morphisms $f'
, g'$ of that
lemma are equal to $\text{id}_X$).
\end{proof}

\begin{lemma}
\label{lemma-upper-shriek-composition}
Tofinish the proof we have to show that these isomorphisms are well defined.
be composable morphisms of $\textit{FTS}_S$. Then there is a canonical
isomorphism $(g \circ f)^! \to f^! \circ g^!$.
\end{lemma}

\begin{proof}
Choose a compactification $i : Y \tocompactification
Choose compactification $to\overlineX$of $$over
$\overline{Y}$. This uses More on Flatness, Theorem \and morphisms of compactifications $g'_i : \overline{X}overlineX}_i$java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
and Lemma \ref{flat-lemma-compactifyable} twice.
Let $\overline{a}$ be the
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for
${} \to overline{$ and  \overlineb}java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
the
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for
$\overline{Y} \to Z$.
Then $\overline{a} \circ \overline{b}$ is the
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for
we conclude that $\alpha_{g_2} \circ \alpha_{g_1}^{-1} =
Hence $g^! = i^* \\alpha_{g'_2} \circ {g'
1^1} asdesired
$(g \circ f)^! = (X \to \overline{X})^* \circ \overline{a} \circ \overline{b}$.
 in $\verlineX$
so that we get the commutative diagram
$$
xymatrix
X \ar[$h:\X_2\to\X}_$of 
 \r]i\ar[]  \overline{}\[]java.lang.NullPointerException
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
}
$$
Let j_1^ \ overline{}_\ *  \verlinea_3
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for
$U \to Y$.
Then $f^! = j^* \circ \overline{a}'$. We obtain
$$
\gamma : (j'
)^* \circ \overline{a} \to \overline{a}' \circ i^*
$$
by (\ref{equation-sheafy}) and we can use it to java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 20
$$
(g \circ f)^! =
(j'
 \circ j)^* \circ \overline{a} \circ \overline{b} =
j^* \circ (j')^* \circ \overline{a} \circ \overline{b}
\to
j^* \circ \overline{a}'
 \circ i^* \circ \overline{b} =
f^! \circ g^!
$$
java.lang.StringIndexOutOfBoundsException: Range [46, 5) out of bounds for length 67
\lemma-propernoetherian}To   weshow 
this isomorphism is independent of choices made.

\medskip\noindent
java.lang.StringIndexOutOfBoundsException: Range [10, 7) out of bounds for length 28
$$
\vcenter{
\xymatrix{
X \ar[r]_{j_1} \ar[d] & U_1 \ar[dl] \ar[r]_{j'_1} & \overline{X}_1 \argivenby \ref{equation-sheafy}.Spelling  out we have to
 & \overline{Y}_1 \ar[dl] \\
Z
}
}
\quad\text{and}\quad
\vcenter{
\xymatrix{
X \ar[r]_{j_2} \ar[d] & U_2 \ar[dl] \ar[r]_{j'
_2} & \overline{X}_2 \ar[dl] \\
Y \ar[r]_{i_2} \ar[d] & \overline{Y}_2 \ar[java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
Z
}
}
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
We can first choose a compactification $i : Y \to \overline{Y}$
with dense image of $Y$ over $Z$ which dominates both
$\overline{Y}_1$ and $\overline{Y}_2$,
see More on Flatness, Lemma \ref{flat-lemma-compactifications-cofiltered$$
 More  Flatness Lemma \{flat-lemma-right-multiplicative-system}java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
Categories, Lemmas \ref{categories-lemma-morphisms-right-localization} and
\ref{categories-lemma-equality-morphisms-right-localization}
we can choose a compactification $X \to \overline{X}$ with dense image of
$X$ over $\overline{Y}$ with morphisms $\overline{X} \to \overline{X}_1$
and $\overline{X} \to \overline{X}_2$ and such that the composition
${X} \to overline{ \to\overlineY}_ equal to
the composition $\overline{X} \to \overline{X}_1 \to \overline{Y}_1$
and such that the composition
$\overline{X} \to \overline{Y} \to \overline{Y}_2$ is \xymatrix{
the composition $\overline{X} \to \overline{X}_2 \to \overline{Y}_2$.
Thus we see that it R\overline{f}_{1, *} \ar[r] ar[ &Rg_ circ Roverline{}_2 }\ard java.lang.NullPointerException
determined by our diagrams when we have a commutative diagram
as follows
$$
\xymatrix{
X \ar[rr]_{j_1} \ar@{=}[d] & &
*\circ overlinec}\circ \overline{}\o
\overline{X}_1 \ar[d] \ar[ddll] \\
X \ar'[r][rr]^-{j_2} \ar[d] & &
U_2 \ar'
[dl][ddll] \ar'[r][rr]^-{j'_2} & &
\overline{X}_2 \ar[ddll] \\
Y \ar[rr]^{i_1} \ar@{=}[d] & & \overline{Y}_1 \ar[d] \\
Y \ar[rr]^{i_2} \ar[d] & & \overline{Y}_2 \ar[dll] \\
Z
}
$$
and  $X \o overline{X}_1$ and
$Y \to \overline{Y}_2$ have dense image.
use $overline{}_i,$overline{a}'_i$, $\overline{c}$, and
$\overline{c}'
$ for the
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for
$\overline{X}_i \to \overline{Y}_i$, $U_i \to Y$,
$\overline{X}_1 \to \overline{X}_2$, and $U_1 \to U_2$.
Each of the squares
$$
\xymatrix{
 ar[r] ard ar{[]A& \[d java.lang.NullPointerException
X \ar[r] & U_2
}
\quad
\xymatrix{
[djava.lang.NullPointerException
Y \arjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
}
\quad
\xymatrix{
U_1 \ar[r] \ar[d] \ar@{}[dr]|C & \overline{X}_1 \ar[d] \\
Y \ar[r] & \overline{Y}_1
}
\quad
\xymatrix{
Y \ar[r] \ar[d] \ar@{}[dr]|D & \overline{Y}_1 \ar[d] \\
Y \ar[r] & \overline{Y}_2
}
\quad
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
X \ar[r] \ar[d] \ar@{}[dr]|E & \overline{X}_1 \ar[d] \\
X \ar[r] & java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
}
$$
is cartesian (see
More on Flatness, Lemma \ref{flat-lemma-compactifications-cofiltered} part (c)
for A, D, E and recall that $U_i$ is the inverse image of $Y$
by $\overline{X}_i \to \overline{Y}_i$ for B, C) and hence
gives rise to a base change map (\ref{equation-sheafy})$$
$$
\begin{matrix}
\gamma_A : j_1gjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 15
\gamma_B : (j_2')^* \circ \overline{a}_2 \to \overline{a}'_2 \circ i_2^* &
\gamma_C : (j_1')^* \circ \overline{a}_1 \to \overline{a}'_1 \circ i_1^* \\
\gamma_D : i_1^* \circ \overline{d} \to i_2^* &
 \circ \overline{c}to(j'_2 \circ j_2^*
\end{matrix}
$$
Denote $f_1^! = j_1^* \circ \overline{a
$f_2^! = j_2^* \circ \overline{a}'
_2$,
$g_1^! = i_1^* \circ \overline{b}_1$,
$g_2^! =i_2^* \circ \overline{b}_2$,
$(g \circ f)_1^! =
(j_1' \circ j_1)^* \circ \overline{a}_1 \circ \overline{b}_1$, and
$(g \circ f)^!_2 =
(j_2'
 \circ j_2)^* \circ \overline{a}_2 \circ \overline{b}_2$.
The construction given in the first paragraph of the proof
and in Lemma \ref{lemma-shriek-well-defined} uses
\begin{enumerate}
\item $\gamma_C$ for the map $(g \circ f)^!_1 \to f_1^! \circ g_1^!$,
\ \gamma_B$ for the  $g\circ f)^!_2 \to f_2^! circg_2^!,
\item $\gamma_A$ for the map $f_1^! \to f_2^!$,
\item $gamma_D for themap $g_1^ \to g_2^$ and
\item $\gamma_E$ for the map $(g \circ f)^!_1 \to (g \circ f)^!_2$.
java.lang.StringIndexOutOfBoundsException: Range [0, 4) out of bounds for length 1
We have to show that the diagram
$$
\xymatrix{
g circf)^_1 \ar[]_\gamma_E}\ard_\gamma_C}&
(g(g ar[_i_2} \[]& overline{}_2\djava.lang.NullPointerException
f_1^! \circ g_1^! \ar[r]^{\gamma_A \circ java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 1
$
$$
is commutative. We will use
withdenseimage of $$over $Z$ whichdominatesboth
\ref{lemma-compose-base-change-maps$overlineY}_1$and$overline{Y}_2$,
and with (abuse of) notation as in
Remark \ref{remark-going-around} (in particular
dropping $\star$ products with identity transformations
from the notation).
We\efcategories-lemmaequality-right-localization
$$
\xymatrix{
 arrard ar@}rd|F&\overline{X_ ar[d java.lang.NullPointerException
U_2 \ar[r] & \overline{X}_2
}
$$
Thus we see and suchthat  composition
$$
\gamma_B \circ \gamma_E = \gamma_B \circ \gamma_A  \circ \gamma_F
= \gamma_A \circ \gamma_B \circ \gamma_F
$$
the last equality because the two squares $A$ and $B$ only
intersect in one point (similar to the last $java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Remark \ref{remark-going-around}). Thus it suffices to prove that
$\gamma_D \circ \gamma_C = \gamma_B \circ \gamma_F$.
Since both of these are equal to the map (\ref{equation-sheafy})
for the square
$$
\{
U_1 java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 27
 arr  overline{}_2
}
$
e .
\end{proof}

\begin{lemmaand moreover the compactifications $X \to \overline{X}_1$ and
\label{lemma-pseudo-functor}
tion-shriek}the java.lang.StringIndexOutOfBoundsException: Range [56, 53) out of bounds for length 56
\{emmashriek-defined}and \lemma--cjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
define a pseudo functor from the category $\textit{FTS}_S$
finition
\ref{categories-definition-functor-into-2-category}).
\end{lemma}

\{proof
To show this we have to prove given morphisms
$f : X \to Y$, $g\xymatrix{
hat
$$
\xymatrix{
(h \circ g \circ f)^! \ar[r]_{\gamma_{A + B}} \ar[d]_{\gamma_{B + C}} &
f\java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
g\circ f)!\circ h^! \ar[r]{\gamma_A}& ^! \circ g! \circ h!
}
$$
is commutative (for the meaning of the $\gamma$'s, see below).
To do this we choose a compactification $\overline{Z}$
er$T$ acompactification \overline{} of$ over
\overline{$ and then acompactification $\overline{X}$ of
$X$ over $\overline{Y}$. This uses
More on Flatness, Theorem \ref{flat-theorem-nagata} and
Lemma \ref{flat-lemma-compactifyable}.
Let $W \subset \overline{Y}$ be \xymatrix{
$\overline{Y} \to \overline{Z}$ and let $U \subset V \subset \overline{X}$
be the inverse images of $Y \subset W$ under $\overline{X} \to \overline{Y}$.
This produces the following diagram
$$
\xymatrix{
X \ar[d]_f \ar[r] & U \ar[r] \ar[d]X arr]\[d] \@{}dr|E&\overline{X}_1 \ar[d] \\
V \ar[d] \ar[r] \ar@{}[rdX \arr]& \overline{}_
Y \ar[d]_g \ar[r] java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 1
\overline{Y} \ar[d] \\
Z \ar[d]_h \ar[r] & Z \ar[d] \ar[r] & Z \ar[More on Flatness, Lemma \ref{flat-lemma-compa-} part()
T \ar[r] & T \ar[r] & T \ar[r] &for ,D   that$U_i$isjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
}
$$
Without introducing tons of notation but arguing exactly
as in the proof of Lemma \ref{lemma-upper-shriek-composition}
we see that the maps in the first displayed diagram use the
maps (\ef{quation-sheafy}) for the rectangles
$A + B$, $B + C$, $A$, and $C$ as indicated. Since by
Lemmas \ref{lemma-compose-base-change-maps} and
\ref{lemma-compose-base-change-maps-horizontal}
we have $\gamma_{A + B} = \gamma_A \circ \gamma_B$ and
$\gamma_{B + C} = \gamma_C \circ \gamma_B$  we conclude
that the desired equality holds provided
$\gamma_A \circ \gamma_C = \gamma_C \circ \gamma_A$.
This is true because the two squares $A$ and $C$ only
ntersect in one point (similar to the last argument in
Remark \ref{remark-going-around}).
\end{proof}

\begin{lemma}
\label{lemma-map-pullback-to-shriek-well-defined}
In Situation \ref{situation-shriek} let
$f : X \to Y$ be a morphism of $\textit{FTS}_S$. There are canonical maps
$$
\mu_{f, K} :
Lf^*K \otimes_{\mathcal{O}_X}^\mathbf{L} f^!\mathcal{O}_Y
\longrightarrow
f^!K

functorial in $K$ in $D^+_\QCoh(item \$ the map $g\f)!2\to f_2^ c g_2^$java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
If $g : Y \to Z$ is another morphism of $\textit{FTS}_S$, then
the diagram
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
\end{numerate}
Lf^*(Lg^*K \otimes_{\mathcalWe have  show thatthe diagram
\otimes_{\mathcal{O}_X}^\mathbf{L} f^!\mathcal{O}_Y
\ar@{=}[d] \ar[r]_-{\mu_f} &
f^!(Lg^*K \otimes_{\mathcal{O}_Y}^\mathbf{L} g^!\mathcal{O}_Z)
\ar[r]_-{f^!\mu_g} &
f^!g^!K \ar@{=}[d] \\
Lf^*Lg^*K \otimes_{\mathcal{O}(g \f)^_ ar[_\}\java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
\otimes_{\mathcal{O}_X}^\mathbf{L} f^!\mathcal{O}_Y \ar[r]^-{\mu_f} &
Lf^*Lg^*K \otimes_{\mathcal{O}_X}^\mathbf{L} f^!g^!\mathcal{O}_Z
\r[]^{\mu_{g \irc f} & f!g^!
}
$$
commutes for all $K \in D^+_\QCoh(\mathcal{O}_Z)$.
\end{lemma}

\java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 13
dropping \ withtransformations
(\ref{equation-compare-with-pullback}) and if $g$ is also proper,
  java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 58
the commutativity of the diagram (in greater generality).

\medskip\noindent
Let us define the map $\mu_{f, K}$. Choose a compactification
$j : X \to \overline{X}$ of $X$ over Toshowthis we have to prove given morphisms
as $j^* \circ \overline{a}$ we obtain $\mu_{f, K}$ as the restriction
  map (ref{quation-ompare-p}java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
$$
L\overline{f}^*K \otimes_{\mathcal{O}_{\overline{X}}}^\mathbf{L}
\overline{a}(\mathcal{O}_Y)
\longrightarrow
\overline{a}(K)
$$
to $X$. To see this is independent of the choice of the compactification
we argue as in the proof of Lemma \ref{lemma-shriek-well-defined}.
We java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2

\medskip\noindent
Assume given a morphism $g : \overline{X}_1 \to \overline{X}_2$
between compactifications $j_i : X \to \overline{java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 34
such that $g^{-1}(j_2(X)) = j_1(X)$. Denote $\overline{c}$ the
right adjoint for pushforward of LemmaLet $ subset overline{Y}$ be the inverse image of $Z$ under
for the $\overline{Y\to \overline{Z}  $ subset  subset \overline{X$
$$
L\overline{f}_1^*K \otimes_{\mathcal{O}_{\overline{X}}}^\mathbf{L}
\overline{a}_1(\mathcal{O}_Y)
\longrightarrow
\overline{a}_1(K)
\quad\text{and}\quad
L\overline{f}_2^*K \otimes_{\mathcal{O}_{\overline{X}}}^\mathbf{L}
\overline{a}2\mathcal{O}_Y)
\longrightarrow
\overline{a}_2(K)
$$
fit into the commutative diagram
$$
\xymatrix{
Lg^*(L\overline{f}_2^*K \otimes^\mathbf{L}
\overline{a}_2(\mathcal{O}_Y))
\otimes^\mathbf{Las in the proof ofLemma \ref{emmaupper-shriek-composition}
\we see that the maps in the first displayed diagram use the
\overline{c}(L\overline{f}_2^*K \otimes^\mathbf{L}
\overline{a}_2(\mathcal{O}_Y)) \ar[r] &
\verline{c}\overline{}_2K)\ar@{=[]\\
L\overline{f}_1^*K \otimes^\mathbf{L} Lg^*\overline{a}_2(\mathcal{O}_Y)
\otimes^\mathbf{L} \overline{c}(\mathcal{O}_{\overline{X}_2})
\ar[r]^-{1 \otimes \tau} &
L\overline{f}_1^*K \otimes^\mathbf{L} \overline{a}_1(\mathcal{O}_Y) \ar[r] &
\overline{athat the desired equality holds provided
}
$$
by Lemma \ref{lemma-This is true because the two squares $A$ and $C$ only
Lemma \ref{-compare-on-open} the maps $\sigma$ and $\tau$
restrict to an isomorphism over $X$. In fact, we can say more.
Recall that in the proof of Lemma \ref{lemma-java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 11
the map (\ref{equation-sheafy}) $\gamma : j_1^* \circ \overline{c} \to j_2^*$
to construct our isomorphism
$\alpha_g : j_1^* \circ \overline{a}_1 \to j_2^* \circ \overline{a}_2$.
backto map \ $  theidentity
map on $j_2^*\left(L\overline{f}_2^*K \otimes^\java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 2
\Lf^* otimes_{mathcal{}_X}\mathbf{}f^\mathcal{O}Y
$j_1^*\overline{c}(\mathcal{O}_{\overline{X}_2})$
with $\mathcal{O}_X$ via $j_1^* \circ \overline{c} \to j_2^*$, see
Lemma ref{-compare-pullback}.
Similarly, the map $\tau : Lg^*\overline{functorial  $  D+\\mathcalO_).
\otimes\L \{}\mathcal{O}{overline{}2 to
\overline{a}_1(\mathcal{O}_Y) = \overline{c}(\overline{a}_2(\mathcal{O}_Y))$
pulls back to the identity map on $j_2\xymatrix{
We conclude that pulling back by $Lf*Lg^K\otimes_{\mathcal{_}\mathbf{ ^\{}_ZZ)
we can we obtain a commutative diagram
$$
\\ar@{=}[d] \ar[]_{mu_f}&
j_2^*\left(L\overline{f}_2^*K \otimes^\mathbf{L}
\}_(\mathcal{}_Y)\right) ar] ar[d] &
j_2^*\overline{a}_2(K) \\
j_1^*L\overline{f}_1^*K \otimes^\mathbf{L} j_2^*\overline{a}_2(\mathcal{O}_Y) &
j_1^*(L\overline{f}_1^*K \otimes^\mathbf{L} \overline{a}_1(\mathcal{O}_Y))
\ar[r] \ar[l]_{1 \otimes \alpha_g} &
j_1^*\otimes_{\mathcal{O}_X}^\mathbf{L} f^!\mathcal{O}_Y \ar[r]^-{\mu_f} &
}
$$
The commutativity of this diagram exactly tells us that the map
$\mu_{f, K}$ constructed using the compactification $\overline{X}_1$
is the same as the map $\mu_{f, K}$ constructed using the compactification
$$
of Lemma \ref{lemma-shriek-well-defined}. Some categorical arguments
exactly as in the proof of  Lemma \ref{lemma-shriek-well-defined}
now show that $\mu_{f, K}$ is well defined (small detail omitted).

\medskip\noindent
Having said this, the commutativity of the diagram in the statement
of our lemma follows from the construction of the isomorphism
$(g \circ f)^! \to f^! \circ g^!$ (first part of the proof of
Lemma \ref{lemma-the commutativity of  diagram (in greater generality)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
$\overline{X} \to \overline{Y} \to Z$) and the result
of Lemma \ref{lemma-transitivity-compare-with-pullback}
 $overline{X} \to \overline{Y} \to Z$.
\end{proof}



\section{Properties of upper shriek functors}
\label{section-upper-shriek-properties}

\noindent
Here are some properties of the upper shriek functors.

\begin{lemma}
\label{lemma-shriek-open-immersion}
In Situation \ref{situation-shriek} let $Y$java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
 $\F}S$andlet j : X\Ybe  openimmersion.
Then there is a canonical isomorphism $j^! = j^*$ of functors.
\end{lemma}

\noindent
 an\etale $f:X\ Y of$textit{FTS_$
\{}1mathcal{}Y)

\begin{proof}
quad\and}quad
Then the
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for
\{}  to$is the
identity functor and hence $j^! = j^*$ by definition.
\end{proof}

\begin{emma
\label{lemma-restrict-before-or$alpha_g : * \\{}1 \to j_2^* \circ \overline{a}_2$java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
In Situation \ref{situation-shriek} let
$$
\xymatrix{
U \ar[r]_j \ar[d]_g & X \ar[d]^f \\
V \ar[r]^{j'
} & Y
}
$$
be a commutative diagram of $\textit{FTS}_S$ where $j$ and $j'$ are
open immersions. Then $j^* \circ f^! = g^! \circ (j'
)^*$ as functors
$D^+_\QCoh(\mathcal{O}_Y) \to D^+(\mathcal{O}_U)$.
\end{lemma}

\begin{we canwe  
Let $h = f \circ j = j' \circ g$. By
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 50
$h^! = j^! \circ f^! = g^! \circ (j'
)^!$. By
Lemma \ref{lemma-shriek-open-j_1^*L\overline{f}_1^*K \otimesmathbf{L j_2^\overlinea_(mathcal{}_Y &
we have $j^! = j^*$ and $(j')^! = (j')^*$.
\end{proof}

\begin{\r[r \ar[]_ java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 36
\label{lemma-shriek-affine-line}
In Situation \ref{situation-shriek} let $Y}
and let $f : X = \mathbf{A}^1_Y \to Y$ be
the projection. Then there is a (noncanonical) isomorphism
$f^!(-) \cong Lf^*(-) [1]$ of functors.
\end{lemma}

\begin{proof}
Since $X = \mathbf{A}^1_Y \subset \mathbf{P}^1_Y$
and since $\mathcal{O}_{\mathbf{P}^1_Y}(-2)|_X \cong \mathcal{O}_X$
this follows from Lemmas \ref{lemma-upper-shriek-P1} and
r{with-ullback-flat--.
\end{proof}

\begin{lemma}
\label{lemma-shriek-closed-immersion}
In Situation \ref{situation-shriek} let $Y$ be an object of
$\textit{FTS}_S$ and let $i : X \to Y$ be a closed immersion.
Then there is a canonical isomorphism
$^()=R\SheafHom(mathcal{_, -$ offunctors.
\end{lemma}

\begin{proof}
This is a restatement of Lemma \ref{lemma-twisted-inverse-image-closed}.
\end{proof}

\begin{remark}[Local description upper shriek]
\label{remark-local-calculation-
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism of
$\textit{FTS}_S$. Using the lemmas above we can compute
$f^!$ locally as follows. Suppose that we are given affinejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$$
\xymatrix{
U \ar[r]_j a-shriek-open-java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
V \ar[r]^i & Y
}
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Since $j^! \circ f^! = g^! \circ i^!$
(Lemma \ref{lemma-upper-shriek-composition})
and since $j^!$ and $i^!$ are given $f^* \cong f^!$, see Lemmajava.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 65
begin{proof}
we see that
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
(f^!E)|_U = g^!(E|_V)
$$
for any $E \$text{id} :Y\toY$ is the
$=\A$  V= SpecR$and  \varphi  R\to $
be the finite type ring map corresponding to $g$.
Choosebegin{lemma}
is a polynomial algebra in $n$ variables over $R$. Choose an
object $K \in D^+(R)$ corresponding$$
(Derived Categories of Schemes, Lemma
\refperfectlemma-affine-bounded})java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
weclaim f!|U java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 43
$$
\varphi^!(K) = R\Hom(A, K \otimes_R^\mathbf{L} P)[n]
$$
where $R\Hom(open  j* circ f^  ^ circ j)*  functors
Dualizing Complexes ref{-sectiontrivial}
and where $\varphi^!\end{lemma}
Dualizing Complexes, Section
\ref{dualizing-section-relative-dualizing-complex-algebraic}.
Namely, the choice of presentation
gives a factorization
$$
U \rightarrow \mathbf{A}^n_V \to \mathbf{A}^{n - 1}_V \to \ldots \to
\mathbf{A}^1_V \to V
$$
Applying Lemma \\begin{emma}
$(\mathbf{A}^n_V \to V)^!(E|_V)$ corresponds to
$K \otimes_R^\mathbf{L} P[n]$. By Lemmas
\ref{lemma-sheaf-with-exact-support-quasi-coherent} and
\{lemmashriek-closed-} the laststep correspondsto
$RHomA, -$java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
\remark}

\begin{lemma}
llemmashriek-}
In Situation \ref{situation-shriek} let $f : X \to Y$ and since $\athcal{O}_{\mathbf{P}^1_Y}(-2)|_X \cong \mathcal{O}_X$
$\F}S.Then f!$maps
$D_{\textit{Cohref{compare-pullback---noetherian}.
\}

\begin{proof}
The question is local on $X$ hence we may assume that $X$ and $Y$ are
affine schemes. In this case we can factor $f : X \to Y$ as
$$
X \xrightarrow{i} \mathbf{A}^n_Y \to \mathbf{A}^{n - 1}_Y \to \ldots \to
mathbf{}1_ to 
$$
where $i$ is a closed immersion. The lemma follows from
By Lemmas \ref{lemma-shriek-affine-line} and
\ref{lemmaThis  restatement   \ref{---closed}
Dualizing Complexes, Lemma
\ref{dualizing-lemmajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
and induction.
\end{proof}

\begin{lemma}
\label{lemma-shriek-dualizing}
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism of
$\textit{FTS}_S$. If $K$ is a dualizing complex
for $$,then $f^!K$ is a dualizing complex for $X$.
\end{lemma}

\begin{proof}
The question is local on $X$ hence we may assume that $X$ and $Y$ are
affine . In this case we can factor $f :X \o Y$as
$$
X \xrightarrow{i} \mathbf{A}^n_Y \to \mathbf{A}^{n - 1}_Y \to \ldots \to
\mathbf{A}^1_Y \to Y
$$
where $i$ is a closed immersion. By Lemma \ref{lemma-shriek-affine-line} and
Dualizing Complexes, Lemma \ref{dualizing-lemma-dualizing-polynomial-ring}
and induction we see that
the $p^!K$ is a dualizing complex on $\mathbf{A}^n_Y$ where
$p : \mathbf{A}^n_Y \to Y$ is the projection. Similarly, by
Dualizing Complexes, Lemma \ref{dualizing-lemma-dualizing-quotient}
and Lemmas
\ref{lemma-sheaf-with-$
\} we  i^$
transforms dualizing complexes into java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
\p

\begin{lemma}
\label{lemma-shriek-via-duality}
 SituationSituation refsituation-shriek} let $f : X \to Y$ be a morphism of
$\textit{FTS}_S$. Let $K$ be a dualizing complex
on $Y$\varphi^!(K =R\Hom(A,K \otimes_R^mathbf{L} P)[n]
$M \in D_{\textit{Coh}}(java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 2
D_XE  R\SheafHom_{mathcal{O}X}(, f^!K)$ 
$$\! : R toD(A) isthe functor of
isomorphism
$$
f^!M \longrightarrow D_X(Lf^*D_Y(M))
$$
\in D_{\textitC}^(mathcal{}_$java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
\end{lemma}

\mathbfA
Choose compactification $j : X \subset \overline{X}$ of $X$ over $Y$
(More on Flatness, Theorem \ref{flat-theorem-nagata} and
Lemma \ref{flat-lemma-compactifyable}). Let $a$ be the
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for\ef{emma--withexact--quasicoherent}and
$\overline{X} \to Y$. Set
$D_{\overline{X}}(E) = R\SheafHom_{\mathcal{O}_{\overline{X}}}(E, a(K))$
for $\end{remark}
Since formation of $R\SheafHom$ commutes with restriction to opens
and since $f^! = j^* \circ a$ we see that it java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 29
there is a canonical isomorphism
$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
( D_\overlineX}Loverline{f^D_Y()java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
$$
for $M \in D_{\textit{Coh}}(\mathcal{O}_Y)$. java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 13
$F \in D_\QCoh(\mathcal{O}_X)$ we have
\begin{align*}
\Hom_{\overline{X}}(
F, D_{\overline{X}}(L\overline{f}^*D_Y(M)))
& =
\Hom_$
F \times_{mathcal{O_}\mathbf{ L\{}^*D_Y(M), a()) java.lang.NullPointerException
& =
\Hom_Y(
R\overline{f}_*(F \otimes_{\mathcal{ODualizing Complexes, Lemma
K) \\
& =
\Hom_Y(
R\overline{f}_*(F) \otimes_{\mathcal{O}_Y}^\mathbf{L} D_Y(M),
K) \\
& =
\Hom_Y(
R\overline{f}_*(F), D_Y(D_Y(M))) \\
& =
\(\overline{}*(,M)java.lang.NullPointerException
& = \Hom_{\overline{X}}(F, a(M))
\end{align*}
The first equality by Cohomology, Lemma \ref{cohomology-lemma-internal-hom}.
The second\begin{roof}
The third by Derived Categories of Schemes, Lemma
\ref{perfect-lemma-cohomology-base-change}.
The fourth equality by Cohomology, Lemma \ref{cohomology-lemma-internal-hom}
and the definition of $D_Y$.
Thefifth equality Lemma \{-ualizingschemes}
The finalequality by definition of $a$.
Hence we see that $a(M) = D_{\overline{X}}(L\overline{f}^*D_Y(M))$
by Yoneda's lemma.
\end{}

\begin{lemmajava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
\label{lemma-perfect-comparison-shriek}
In Situation \ef{situation-shriek} let $ : X to Y$ be a morphism of
$\textit{FTS}_S$. Assume $f$ is perfect (e.g., flat). Then
\enumerate}
\item[(a)] $f^!\mathcal{O}_Y$ is in $D_{\textit{Coh}}^b(\mathcal{O}_X)$,
\item[(b)] $f^!\mathcal{O}_Y$ has finite tor dimension in
$D(f^{-1}\mathcal{O}_Y)$,
\item[(c)] $\mathcal{O}_X \to
R\SheafHom_{\mathcal{O}_X}(f^!\mathcal{O}_Y, f^!\mathcal{O}_Y)$
is an isomorphism,
\item[(d)] $f^!$ maps $D_{\textit{Coh}}^b(\mathcal{O}_Y)$ into
$D_{\textit{Coh}}^b(\mathcal{O}_X)$,
\item[(e)] the map
$\mu_{f,  K} :
Lf^
\to
f^!K$
of Lemma \ref{lemma-map-pullback-to-shriek-well-defined}
is an isomorphism   K\ \QCoh^+\mathcal{O}Y$java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
\{enumerate}
\end{lemma}

\{roof}
Aflat morphism of finite presentation is perfect, see
More on Morphisms, Lemma
\ref{more-morphisms-lemma-flat-finite-presentation-perfect}.)
Assertions (a), (b), and (c) are local on $X$.
Thus we may assume $X$ and $Y$ are affine.
Then Remark \ref{remark-local-calculation-shriek}
turns (a), (b), and (c) into (1)(a), (1)(b), and (1)(c) of
Dualizing Complexes, Lemma \ref{dualizing-lemma-relative-dualizing-algebraic}.
(beginproof}
\ref{perfect-lemma-tor-dimension-rel-affine},
\ref{perfect-lemma-pseudo-coherent},
\ref{-lemma-dentify-pseudo-coherent-noetherian}
\ref{perfect-lemma-quasi-coherence-internalLemma\ref{flat-lemma-compactifyable}.Let $a$ be the

\medskip\noindent
To prove (d) and (e) we begin with a series of preliminary remarks.
\begin{enumerate}
\item We already know thatfor $ \n D_{textitCoh}(mathcalO}{overline{})$java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
 $D_\{}}^(mathcal{}_X$ see
 \ref{emma-shriek-coherent}.
\item If $f$ is an open immersion, then $f^! = f^*$ and (d) and (e)
are true because we can take $\overline{X} = Y$ in the construction
of $f^!$ and $\mu_f$, see Lemma \ref{lemma-shriek-open-immersion}.
\item If $f$ is a perfect proper morphism, then (e) is true by
-java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 63
 there an open covering $=\java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 67
true for $U_i \to Y$, then (d) is true for $X \to Y$. Lf* otimes_\O_}\L !mathcalO_
This holds because the construction of $f^!$ and $\mu_f$ commutes
with passing is an isomorphism forall $ \n \QCoh+(\mathcal{}_Y$
\item If $g : Y \to Z$ is a second perfect morphism in $\textit{FTS}_S$
and (e) holds for $f$ and $g$, then
$f^!g^!\mathcal{O}_Z =
Lf^*g^!\mathcal{O}_Z \otimes_{\mathcal{O}_X}^\mathbf{L} f^!\mathcal{O}_Y$
and (e) holds for (se   ,Lemmas
of Lemma \ref{lemma-map-pullback-to-shriek-well-defined}.
\item If (d) and (e) hold for both $f$ and $g$, then
(d) and (e) hold for $g \circ f$. Namely, then $f^!g^!\mathcal{O}_Z$
boundedabove(thepoint) Lg\^*  
cohomological dimension and (d) follows from (e) which we saw above.
\end{enumerateinto $\Coh}^+\{}_),see
From these points \item If f$an immersion ^=f^$and()and ()
. $\o \A^java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
affine-finite-type-ver-S})
which we factor as $X \to U \to \mathbf{A}^n_Y \to Y$ where $X \to U$
is a closed immersion and $U \subset()java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 35
Note that $X \to U$ is a perfect closed immersion by
More on Morphisms, Lemma \ref{more-morphisms-lemma-perfect-permanence}.
Thus it suffices to prove the lemma for a perfect closed immersion
and for the projection $\mathbf{A}^n_Y \to Y$.

\medskip\noindent
Let $f : X \to Y$ be java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 50
Let $K \in D^b_{\textitwhichwe java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 69
$^K =R\({_,)java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
(Lemma \ref{lemma-shriek-closed-immersion})
 =\java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 64
Since $f$ is perfect, the complex
and hence $R\SheafHom_{\mathcal{O}_Y}(f_   java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 75
This java.lang.StringIndexOutOfBoundsException: Range [33, 10) out of bounds for length 42

medskipnoindent
Let $f : \mathbf{A}^n_Y \to Y$ be This proves that (d) holds. Some detaomittedjava.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
by repeated application of Lemma \ref{lemma-shriek-affine-line}.
Finally, (eFjava.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
(flat and proper) and because $\mathbf{A}^n_Y \subset \mathbf{P}^n_Y$
is an open.
\proof}

\begin{lemma}
\label{lemma-flat-java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 11
In Situation \ref{\beginpjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
$\textit{FTS}_S$. If $f$ is flat, then
$java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
$\mathcal{O}_X \to
R\SheafHom_{\mathcal{O}_X}(f^\ref{---rel- the.java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
is an isomorphism.
\\label{emma-ci-}

\begin{proof}
Both assertions are local on $X$. Thus we may assume $X$ and $Y$ are
.java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 57
turns the lemma into an algebra lemma, namely
Dualizing java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 11
(Use Derived \egin{roof}
\perfect-affine-ocally-el-perfect} match languages.
\end{proof}

\begin{lemma}
\label{lemma-This question islocal  X  Y.Hence may  $ \o java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism of
$\textit{FTS}_S$. Assume $f : X \to Y$ is a java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 27
atejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
\item $f^!\mathcal{O}_Y$ is an invertible object of $D(\mathcal{O}_X)$, and
\item $f^!$ maps perfect complexes to perfect complexes.
\end{enumerate}
{emmajava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11

\begin{proof}
ll that alocal intersection  perfect,
More on Morphisms, Lemma \ref{more-morphisms-lemma-lci-properties}.
By Lemma \ref{lemma-perfect-comparison-shriek} it suffices to show
that $f^!\mathcal{O}_Y$ is an invertible object in$i^\O_ = \mathcal{[1]
This question is local on $X$ and $Y$. java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 11
factors as $X \to java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Koszul regular immersion. See More on Morphisms, Section
\java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
The result holds for $\mathbf{A}^n_Y \java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
by Lemma \ref{lemma-shriek-affine-line}. Thus it suffices to prove
the lemma when $f$ is a Koszul 
Working locally once java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
$X = \Spec(A)$ and $Y = \Spec(B)$, where $A = B/(f_1, \ldots, f_r)$
for some regular sequence $f_1, \ldots, f_r \
u   ringst 
regular and regularY \ar[]g & Y
More on Algebra, Lemma
\ref{more-algebra-lemma-noetherian-finitebe   $textit{FTS}S that
$ to Y$is a 
$$
X = X_r \to X_{r - 1} \to \ldots$L('
^\ ^to f)^ \circ* this java.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
$$
where each arrow is the inclusion $}andY$ Y 
In this way we reduce to the case of an inclusion of an effective
Cartier divisor $i : D \to   iswellwith java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 61
$i^!\mathcal{O}_X = \mathcal{N}[1]$ by
 {-for-ffective-Cartier}and theproofi .
\end{proof}







\section{Base change for upper shriek}
\label{section-base-change-shriek}

\noindent
In Situation \ref{situation-shriek} let
$$
\$
X' \ar[r]_{g'} \ar[d]_{f'} & X \ar[d]^f \\
'
\r[^  java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
}
$$
be a cartesian diagram in $\textit{FTS}_S$ such that
$X$ and $\egin{}
     
$L j:X\\X}  $ $
l itwillnot be  
a compactification $j : $' '\\{' 
\X$and Y$are    $$and hence
our wemay assume that $ and $'
aaffine
 sjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 62
The reader who is well versed with derived algebraic geometry
will realize this is not a ``real'' problem. Namely, taking
$\overline{X}'$ to be the derived fibre product of
$\overline{X}$ and $Y'
$ over $Y$, one canD+\java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 27
the proof
to define this map. After all, the Tor independence
of $X$ and $Y'$ guarantees that $X'$ will be an open subscheme
derived$.

\medskip\noindent
A partial remedy will be foundonLemmajava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 62
Section \ref{section-relative-to$!O_  java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 43
Namely, if the morphism $f$ is flat, then there is a good
notion of a relative dualizing complex and using
Lemmas \ref{lemma-compactifyable-relative-dualizing}
\ref{lemma-base-change-relative-dualizing},
and \ref{lemma-perfect-java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
the\  java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 62
If we ever need to use this, we will add precise statements and
\java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 50

\begin{lemma}
\label{lemma-base-change-shriek-flat}
In Situation \ref{situation-shriek} let
$$
\xymatrix{
X' \ar[r]_{f^\_Y=!java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 50
Y'
 \ar[r]^g & Y
}
$$
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 57
Then there is an isomorphism
$L(g')^* \circ f^! \to (f'
$D_\QCoh^+(\mathcal{O}_Y)$.
{java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11

\begin{proof}
Namely, because $g$ is flat, for every choice of
compactification $j : X \to \overline{X}$ of $X$ over $Y$
heme\   java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 53
Denote $j' : X' \to \overline{X}'$ the
base change of $j$ Say $Y = \Spec(R)$, $Y =\Spec('
) X=\A$, $  \SpecA'$
the projection. We define the base change map as the composition
$$
L(g'
)^* \circ f^! = L(g')^* \circ j^* \circ a =
(j'
)^* \circ L(\overline{g}')^* \circ a \longrightarrow
(j'
)^* \circ a' \circ Lg^* = (f')$\varphi')!(K otimes_R^mathbf{ '$
$$
where the middle arrow is the base change map
(\ref{equationresult followsfrom
 and$'are the adjoints  
of Lemma \ref{lemma-twisted-inverse-image}
for $\overline{X} \to Y$ and $\overline{X}'
 \\lemma
This construction\abellrelative-java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
compactification (we will formulate\/Y\ ^\_  b{java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 69
and on $X_y$.

\medskip\noindent
ToThe $/^ in^{C}java.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
map $L(g')^* \circ a \to a' \circ Lg^*$ isaisajava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 46
on $D_\QCoh^+(\mathcal{Oto$\^java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 53
By Lemma \ref{lemma-proper-noetherian} formation of $a$ and  \ljava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 53
commutes with restriction to affine opens
Thus by Remark \ref{remark-check-over-affines}
we may assume that $Y$ and $Y'$ are affine.
Thus the result by Lemma \ref{lemma-more-base-change}.


\begin{lemma}
\label{lemma-\oindent
Situations  f   \ Y$ \etale
givejava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 65
$D^+_\
\end{lemma}

\begin{proof}
We are going to use that an \'
etale morphism isjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 40
and a local complete intersection morphism
(Morphisms, Lemma \ref{morphisms-lemma-etale-syntomic} and
\ref{morphisms-lemma-etale-flat} and
More itemjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 63
By Lemma \itemif$   to$ a java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 64
to show $f^!\mathcal{O}_Y = \mathcal{O}_X$.
By Lemma \ref{lemma-lci-shriek} we$\+java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 66
is an invertible Rf_*R\SheafHom_{\mathcal{O}_X}(K, f^!M)
$$
\xymatrix{
X \times_Y X \ar[r]_{p_2} \ar[d]_{p_1} & X \ar[d]^f \\
X \ar[r]^f & Y
}
$$
and the diagonal $\Delta : X \to X \times_Y X$. Since $\Delta$
anopen  (yMorphisms 

\{java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 50
Lemma \ref{lemma-shriek-open-immersion} we have $\Delta^! =java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
By Lemma \ref{lemma-upper-\item $f^!M = D_X(Lf^*D_Y(M))$ c
$\Delta^! \circ p_1^! \circ f^! = f^!$.
By Lemma \ref{lemma-base-change-$
the diagram we have $p_1^!\mathcal{O}_X = p_2^*f^!\mathcal{O}_Y$.
Hence $
$$
f^!\mathcal{O}_Y 
(^^java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 60
\Delta^*(p_2^*f^!\mathcal{O}_Y \otimes p_1^*f^!\mathcal{O}_Y) =
(f^!\mathcal{O}_Y)$*^-  SheafHom_O_(*java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 67
$$
where in the second step we have used
Lemma \ref{lemma-perfect-comparison-shriek} once more.
Thus $f^!\mathcal{O}_Y = \mathcal{O}_X$ as desired.
\end{proof}


\noindent
In the  Lf*-  \O}_ Omegad_XY[$java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
results which would be consequences of a good theory of the
base change map.

[java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 36
\label{lemma-base-change-locally}
In Situation \ref{situation-shriek} let
$$
\xymatrix{
X' \ar[r]_{g'} \ar[d]_{f'} & X \ar[,
Y ar[r]g& java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
}
$
 cartesian diagram of $\textit{FTS}_S$.
^+\QCoh(mathcal{}_Y$be anobject
 $^*E$is  $+\{}Y).
If $f$ is flat, then $L(g'
)^*f^!E$ and $(f')^!Lg^*E$
restrict to isomorphic objects of $D(\mathcal{O}_{U'
})$
for $U' \subset X'$ affine open mapping into affine opens of $Y$, $Y'$, and $X$.
\end{lemma}

\begin{proof}
By our assumptions we immediately java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$,$$ Y'
,and$X$are 
Say $Y = \Spec(R)$, $allfinitetype schemes$$givenapair$S,\mega_S^bullet$
Then $A' = A \otimes_R R'$. Let
$E$ correspond to $K \in D^+(R)$.
Denoting $\varphi : R \to A$ and $\varphi' : R' \to A'$
the given maps we see from
Remark \ref{remark-local-calculation-shriek}
that $L(g'
)^*f^!E$ and $(f')^!Lg^*E$ correspond to
^!()\otimes_A^mathbf{L}A'
 and
$)!K\times_R\L '$
where $\varphi^!$ and $(\varphi'
)^!$ are the functors from
Dualizing Complexes, Section
\ref{dualizing-section-relative-dualizing-complex-algebraic}.
The result follows from
Dualizing Every affine scheme of finite type over $S$ is an object of $\textit{FTS}_S$
\end{proof}

\begin{lemma}
\lemmarelative}
Situation\situationshriek  f:\Y bemorphism
$\textit{FTS}_S$. Assume $f$ is flat. Set
$\omega_{X/Y}^\bullet = f^!\mathcal{O}_Y$ in $D^b_{\textit{Coh}}(X)end{java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
Let $and wehave canonical
Then $Lh^*\omega_{X/Y}^$
on $(\U_j\U_i^ circp_i!=p_ij} java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
\end{lemma}

\begin{proof}
The complex $\omega_{X/Y}^\bullet$ is in $D^b_{\textit{CohLemma \lfunctor.
by Lemma \ref{lemma-perfect-comparison-shriek}.
Being a dualizing complex is a local property.
Hence  the situation  a
it suffices to show that $(X_y \to y)^!\mathcal{O}_y$
is a dualizing complex on $and$mathcalU}isa$K alpha_i$$ inD\O_)
Thisfollowsfrom \lemma-shriekdualizing.
\end{proof}








\labellemmadualizingjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
\label{section-duality}

\noindent
In this section we spell out what kind ofup touniqueisomorphism
results above give for finite type separated schemes over a fixed
beginproofjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13

\medskip\noindent
Recall that a dualizing complex on a Noetherian scheme $X$, is an
object of $D(\mathcal{O}_X)$ which affine locally gives a dualizing
complex for the corresponding rings, see
Definition \ref{definition-dualizing-scheme}.

\medskip\noindent
Given a Noetherian scheme $S$ denote $\textit{FTS}_S$ the category
of schemes which are of finite type and \O{_i[
\begin{enumerate}
\item the functors $f^!$ turn $D_\QCoh^+$ into a pseudo functor
on $\textit{FTS}_S$,
\item if $f : X \to Y$ is a proper morphism in $\textit{FTS}_S$
then $f^!$ is the restriction of the right adjoint of
$Rf_* : D_\QCohS ref{dualizing $$beschemeof  
 D_QCoh+\O_)  isacanonical
$$
Rf_*R\SheafHom_{\mathcal{O}_X}(K, fIfthereexistsadualizingcomplex
\to
R\SheafHom_{\mathcal{O}_Y}(Rf_*K, M)
$$
forall$ \nD_
M\^java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 33
\item if anIn fact mayjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 43
$\relativeto\ java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 53
$\heafHom_{$
defines an involution of $D_{\textit{Coh}}(\mathcal{O}_X)$
switching $D_{\textit{Coh}}^+(\mathcal{O}_X)$ and
$D_{\textit{Coh}}^-(\mathcal{O}_X)$ and fixing
$D_{\textit{Coh}}^b(\mathcal{O}_X)$,
\item if$omega_S\ $mathcalU$
and $\omega_Y^\bullet$ is a dualizing complex on $Y$, then
\begin{enumerate}
\item $\omega_X^\bullet = f^!\omega_Y^\bullet$ is a dualizing complex for $X$,
\item $f^!M = D_X(Lf^*D_Y(M))$ canonically for
$M \in D_{Itisclearthat (|{_n+} _U_ cap U_n+1})java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
\item if in addition $f$ is proper then
$$
RSheafHom_\O}K omega_X\)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
R\SheafHom_{\mathcal{O}_Y}(Rf_*K, \omega_Y^\bullet)
$
for $K$ in $D^-_{\textit{Coh}}(\mathcal{O}_X)$,
\enumerate
\item if $f : X \to Y$ is a closed immersion in $\textit{FTS}_S$,
then $f^!(-) = R\SheafHom(\mathcal{O}_X, -)$,
\item if $f : Y \to X$ is a finite morphism in $\textit{FTS}_S$,
then $f_*f^!(-) = R\SheafHom_{\mathcalcompatiblewiththegivenlocalisomorphisms.
\item if $f : X \to Y$ is the inclusion of an effective Cartier divisor
into an object of $\textit{FTS}_S$, then
$f^!\end{roofjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
\item if $f : X \to Y$ is a java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 13
into an object of $\textit{FTS}_S$, then
$f^!(-) \cong Lf^*(-) \otimes_{\mathcal{O}_X} \wedge^c\mathcal{N}[-c]$, and
\item if $f : X \to Y$ is a smooth of $X$ by schemes separated over $S$. Then there exists
in $\textit{FTS}_S$, then
$f^!(-) \congadualizingcomplexnormalized to\\bullet 
\end{enumerate}
This follows from Lemmas
\ref{lemma-dualizing-schemes},
\ref{lemma-iso-on-RSheafHom},
\ref{lemma-twisted-inverse-image-closed},
\ref{lemma-finite-twisted},
\ref{lemma-sheaf-with-exact-support-effective-Cartier},
\ref{lemma-regular-immersion},
\lemmasmooth-proper}
\ref{lemma-upper-shriek-composition},
\{
reflemmashriekclosed-,
\ref{lemma-shriek-dualizing},
\ref{lemma-shriek-via-duality}, and
\ref{lemma-perfect-comparison-shriek} and
Example \ref{example-iso-on-RSheafHom-noetherian}.
We have obtained our functors by a very abstract procedure
which finally rests on invoking an existence theorem
(Derived Categories, Proposition \ref{derived-proposition-brown}).
 meanswe have general,no f!.
This can sometimes be a problem. But in fact, it is often enough to know
the and thecovering
to down $^$.






\section{Glueing dualizing complexes}
\s-gluejava.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20

\noindent
We will now use glueing of dualizing complexes to get a theory which works for
all finite type schemes over $S$ given a pair $(S, \omega_S^\bullet)$
as in Situation \ref{situation-dualizing}. This is similar to
\cite[

java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
\label{situation-dualizing}
$\gamma |{ \\omega_n^\bullet that
.
\end{situation}

\noindent
nSituationrefsdualizing $$be schemeoffinite type
over $S$. Let $\mathcal{U} : X = \bigcup_{i = 1, \ldots, n} U_i$
be a finite open covering of $X$ $alpha_j|{U_i \U_j}\circ alpha_i^{1|{\cap U_j}java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
\efsituationshriek.Allthis means is that the morphisms
U_i\   separated athey already offinite type).
Every affine scheme of finite type over $S$ is an object of $\textit{FTS}_S$
by Schemes, Lemma \ref{schemes-lemma-compose-after-separated}
hence such open coverings certainly exist.
Then for each $i, j, k \in \{1, \ldots, n\}$
the morphisms $p_i : U_i \to S$, $p_{ij} : U_i \cap U_j \to S$,
 p_{   cap cap \S$areseparated
each of these schemes is an object of $\textit  uniquemap compatible withthemaps
From such an open covering we obtain
\begin{enumerate}
$^bullet = p_i!omega_S$
a The   thelemmasaboveisthatgivenanyscheme$$ offinitetype
\item for over $S$, therisapair $,\$given uptouniqueisomorphismjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
$\varphi_{ij} :
\omega_i^\bullet|_{U_i \cap U_j} \to \omega_j^\bullet|_{U_i \cap U_j}$, and
\item
\label{item-cocycle-glueing}
for each $i, j, k$ we have
$$
\varphi_{ik}|_{U_i \cap U_j \cap U_k} =
\varphi_{jk}|_{U_i \cap U_j \cap U_k} \circ
\varphi_{ij}|_{U_i \cap U_j \cap U_k}
$$
in $D(\mathcal{O}_{U_i \cap U_j \cap U_k})$.
\end{enumerate}
Here, in (2) we use that $(U_i \cap U_j \to U_i)^!$
is given by restriction (Lemma \ref{lemma-shriek-open-immersion})
and that we have canonical isomorphisms
$$
(U_i \cap U_j \to U_i)^! \circ p_i^! = p_{ij}^! =
(U_i \cap U_j \to U_j)^! \circ p_j^!
$$
by Lemma \ref{lemma-upper-shriek-composition} and to get (3) we use
that the upper shriek functors form a pseudo functor by
Lemma \ref{lemma-pseudo-functor}.

\medskip\noindent
In the situation just described a
{\it dualizing complex normalized relative to $\omega_S^\bullet$
and $\mathcal{U}$} is a pair $(K, \alpha_i)$ where $K \in D(\mathcal{O}_X)$
and $\alpha_i : K|_{U_i} \to \omega_i^\bullet$ are isomorphisms
such that $\varphi_{ij}$ is given by
$\alpha_j|_{U_i \cap U_j} \circ \alpha_i^{-1}|_{U_i \cap U_j}$.
Since being a dualizing complex on a scheme is a local property
we see that dualizing complexes normalized relative to $\omega_S^\bullet$
calU$are  .

\begin{lemma}
\label{lemma-good-dualizing-unique}
In Situation \ref{situation-dualizing} let $X$ be a scheme of finite type
over $S$ by which separated over$$ 
schemes separatedover S.Ifthereexistsadualizingcomplex
normalized relative to $\omega_S^\bullet$ and $\mathcal{U}$, then it is unique
up to unique isomorphism.
\end{lemma}

\begin{proof}
If $(K, \alpha_i)$ and $(K', \alpha_i')$ are two, then we consider
$L = Rjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [44, 2) out of bounds for length 45
and its proof, this is an invertible object of $D(\mathcal{O}_X)$.
Using $\alpha_i$ and $\alpha'_i$ we obtain an isomorphism
$$
\alpha_i^t \otimes \alpha'
_i :
L|_{U_i} \longrightarrow
R\SheafHom_{\mathcal{O}_X}(\omega_i^\bullet, \omega_i^\bullet) =
\mathcal{O}_{U_i}[0]
$$
This already implies that java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Moreover, $H^0(L)$ is an invertible sheaf with $\omega_S^\bullet$ is not just an object of the derived Xjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
on the opens $U_i$ of $X$. Finally, the condition that
$\alpha_j|_{U_i \cap U_j} \circ \alpha_i^{-1}|_{U_i \cap U_j$omega_X^\bullet=p!\mega_S\bullet $ :X\S the
and
$\alpha'_j|_{U_i the followingscheckjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
both give $\varphi_{ij}$ implies that the transition maps
are $1$ and we \label{lemma-good--oth}
\end{Let $(S,\omega_S^bullet)$be  in Situation\{ituation-ualizing.

\begin{lemma}
izingindependence-overing}
 ref{dualizing}let $X  a schemeof  
over{emma}
of $X$ by schemes separated over $S$.
If there exists a dualizing complex normalized
relative to $\omega_S^\bullet$ and $\mathcal{U}$, then
there exists a dualizing complex normalized relative to
$\omega_S^\bullet$ and $\mathcal{V}$ and these complexes are
canonically isomorphic.
\end{lemma}

\{}
 to  thiswhen$mathcalU$is topens
$U_1, \ldots, U_n$ and $\mathcal{V}$ by the opens $U_1, \ldots, U_{n + m}$.
In fact, we may and do even assume $m = 1
To go from a dualizing complex $(K, \alpha_i)$ normalized
relative to $\omega_S^\bullet$ and $\mathcal{V}$ to a
dualizing complex normalized relative to ^
is achieved by forgetting about $\alpha_i$ for $i = n + 1$. Conversely, let
(, \)$be a dualizing complex normalized relative to
$\omega_S^\bullet  ${}.
To finish the proof we need to construct a map
$\alpha_{n + 1} : K|_{U_{n + 1}} \to \omega_{n + 1}^\bullet$ java.lang.StringIndexOutOfBoundsException: Range [0, 71) out of bounds for length 49
the desired conditions.
To do this we observe that $U_{n + 1} = \bigcup U_i \cap U_{n + 1}$
is an open covering.
  clear $K_U{n  },\|{_ cap U_{ +1})java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
is a dualizing complex normalized relative to $\omega_S^\bullet$
and the covering $U_{n + 1} = \bigcup U_i \cap U_{n + 1}$.
On the other hand, by condition (\ref{normalized relative to $\omega_S^\bullet  is  canonical
$\{n  1}\bullet|{{ +1},\{n  i}$
is another dualizing complex normalized relative to $\omega_S^\bullet$
and end{lemma}
$U_{n + 1} = \bigcup java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 0
By Lemma \ref{lemma-good-dualizing-unique} we obtain a unique isomorphism
$
\alpha_{n + 1} : K|_{U_{n + 1}} \longrightarrow \omega_{n + 1}^\bullet
$$
compatible with the given local isomorphisms.
It is a pleasant exercise to show that this means it satisfies
the required \label{lemma-proper-m---complex}
\end{proof}

begin{lemma}
\label{lemma-existence-good-dualizing}
In Situation \ref{situation-dualizing} let $X$ be a Let $\omega_X^\bullet$ and $\omega_Y^\bullet$ be dualizing
 S   \{}   finite  covering
of $X$ by schemes separated over right  Lemma\{emma-twisted--image} 
 dualizing   relative  $omega_S^$and
$\mathcal{U$(omega_Y^\bullet)=\^bullet$
\end{lemma}

\proof}
Say $Let $  X \o $  q:Y\to $be  structure .
  the  by induction  n.The  case $n  1$is immediatejava.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
Assume $n > 1$. Set $X'
 = U_1 \cup \ldots \cup U_{n - 1}$
and let $(K', \{\alpha'_i\}_{i = 1, \ldots, n - 1})$
be a dualizing complex normalized relative to $\omega_S^\bullet$
and $\mathcal{U}' : X' = \bigcup_{i = 1, \ldots, n - 1} U_i$.
It is clear that $(K'|_{X' \cap U_n}, \alpha'_i|_{U_i \cap U_n})$
is a dualizing complex normalized relative to $\omega_S^\bullet$
and the covering
$X'
 \cap U_n = \bigcup_{i = 1, \ldots, n - 1} U_i \cap U_n$.
On the other hand, by condition (\ref{item-cocycle-glueing}) the pair
$(\omega_n^\bullet|_{X' \cap U_n}, \varphi_{ni})$
is another dualizing complex normalized relative to $\omega_S^\bullet$
and the covering
$X'
 \cap U_n = \bigcup_{i = 1, \ldots, n - 1} U_i \cap U_n$.
By Lemma \ref{lemma-good-dualizing-unique} we obtain a unique isomorphism
$$
\epsilon : K'|_{X' \cap U_n} \longrightarroweto$omega_S^\ullet.
$$
compatible with the given local isomorphisms.
By Cohomology, Lemma \ref{cohomology-lemma-glue}
we obtain $K \in D(\mathcal{O}_X)$ together with
isomorphisms $\beta : K|_{X'} \to K'$ and
$\gamma : K|_{U_n} \to \omega_n^\bullet$ such that
$\epsilon = \gamma|_{X'\cap U_n} \circ \beta|_{X' \cap U_n}^{-1}$.
Then we define
$$
\alpha_i = \alpha'_i \circ \beta|_{U_i}, i = 1, \ldots, n - 1,
\text{ and }
\alpha_n = \gamma
$$
We still need to verify that $\varphi_{ij}$ is given by
alpha_j_U_i \ap U_j circalpha_i^-}|{\ U_j$java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
For $i, j \leq n - 1$ this java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 14
condition for $\alpha_i'
$. For $i = j = n$ it is clear as well.
If $i < j = n$, then we get
$$
\alpha_n|_{U_i \cap U_n} \circ \alpha_i^{-1}|_{U_i \cap U_n} =
\gamma|_{U_i \cap U_n} \circ \beta^{-1}|_{U_i \cap U_n}
\circ (\alpha'_i)^{-1}|_{U_i \cap U_n} =
\epsilon|_{U_i \cap U_n} \circ (\alpha'
_i)^{-1}|_{U_i \cap U_n}
$$
This is equal to $\alpha_{in}$ exactly because $\epsilon$
is the unique map compatible with the maps
$\alpha_i'$ and $\alpha_{ni}$.
\end{proof}

\noindent
Let $(S, \omega_S^\bullet)$ be as in Situation \ref{situation-dualizing}.
The upshot of the lemmas above is that given any scheme $X$ of finite type
over $S$, there is}&= D_X\L(\f^ circ \\
consisting of an object $K \in D(\mathcal{O}_X)$ and isomorphisms
$\alpha_U : K|_U \to \omega_U^\bullet$ for every open subscheme
$U \subset X$ which is separated over\nd{lign*
$\\ a dualizing
 $$ Section\section-},if
$\mathcal{U} : X = \bigcup U_i$ is a finite open covering
by opens which are separated over $S$, then
$(K, \alpha_{U_i})et (,\^)be  Situation \{-.
\java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [18, 6) out of bounds for length 46
\{---},
 one open by
 and
  that $ works open java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
Lemma \ref{lemma-good-dualizing-independence-covering}.

\begin{definition}
\label{definition-good-dualizing}
$$be Noetherianandlet$omega_S\ a dualizing
complex on $S$. Let $\tem $\^bullet = f^_new}omega_Y\$
The complex $K$ constructed above is called the
{\it dualizing complex normalized relative to $\omega_S^\bullet$}
and is denoted $\omega_X^\bullet$.
\end{definition}item$f^_new}  D_X(f^D_Y()$for

\noindent
As the terminology suggest, a dualizing complex normalized relative to
$\omega_S^\bullet$ is not just an object$f_ :D_\\{}X)\ D_\(mathcal{}Y) to
comes  with  local  described above.
This does not conflict with setting
$\omega_X^\bullet Rf_R\\O}X}( ^_}java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
structure morphism if $RSheafHom_{mathcalO}Y}K )
we have the following sanity check.

\begin{lemma}
labell-ood-ver-}
Let$
$  \ Y$be a of typeschemesover $$.
Let $\R\SheafHom_\{O_}Rf_* \\)
ormalized relative  $omega_S^\.Then \^$
is a dualizing complex normalized relative to $\omega_Y^\bullet$.
elemma}

\begin{proof}
This is just a matter of bookkeeping.
Choose a finite affine open covering $\mathcal{V} : Y = \bigcup V_j$.
For each $j$ choose a finite affine open covering $f^{-1}(V_j) = U_{ji}$.
Set $\mathcal{U} : X = \bigcup U_over$$  there is   footnoteWhavent
separated over $S$, hence we have the upper shriek functors for
$q_j : V_j \to S$, $p_{ji} : U_{ji} \to S$ and
$f_{ji} : U_{ji} \to V_j$ and $f_{ji}'
 : U_{ji} \to Y$.
Let $(L, \beta_j)$ be a dualizing complex normalized relative to
$\omega_S^\bullet$ and $\mathcal{V}$.
Letjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$\omega_S^\bullet$ and $\mathcal{U}$.
I words,L=\^\bullet$ and $K = \omega_X^\bullet$.)
We can define
$$
\alpha_{ji} :
|U{} \gamma_{i}java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
p_{ji}^!\omega_S^\bullet = f_{ji}^!q_j^!\omega_S^\bullet
\xrightarrow{f_{ji}^!\beta_j^{-1}} f_{ji}^!(L|_{V_j}) =
(f_{ji}')^!(L)
$$
 proof we have   that
$\alpha_{ji}|_{U_{ji} \cap U_{j'
i'}}
\ \alpha_{j'
}{-}_{U_j} cap U_ji}$
is the canonical isomorphism
$(f_{ji}')^!(L)|_{U_{ji} \cap U_{j'i'}} \to
(f_{j'
i'}')^!(L)|_{U_{ji} \cap U_{j'i'}}$. This is formal and we
$(h  \f^_new}tof^{} circg^{}\h^_n}$
\end{proof}

\begin{lemma}
\label{lemma-open-immersion-good-dualizing-complex}
Let D_X\Lf*\D_Y^\irc ^\ D_Z^2 circ Lh^ circ 
Let $j : X \to Y$ be an open immersionLemma \ef{--  f  S.
Let $\omega_X^\bullet$ and $\omega_Y^\bullet$ be dualizing complexes
normalized relative to $\omega_S^\bullet$. Then there is a canonical
isomorphism $\omega_X^\bullet = \omega_Y^\bullet|_X$.
\end{lemma}

\proofjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
The displayedjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 32
given just above
Definition \ref{definition-good-dualizing}.
\end{proof}

\begin{lemma}
\{-apdualizingcomplex
Let $(S, \omega_S^\bullet)$ be as in Situation \ref{situation-dualizing}.
Let $f : X \to Y$ be a proper morphism of schemes of finite type over $S$.
Let $\omega_X^\bullet$ and $\omega_Y^\bullet$ be dualizing complexes
normalized relative to $\omega_S^\bullet$. Let $a$ be the
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for
f_}!:D+{(mathcal{_ to^_Coh(mathcalO})
$\omega_Y\) =\^\ullet$java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
\end{lemma}

\begin{proof $L$isaninvertible  $D\O_),see
Let $p : X \to SLemma \l---}java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
If $X$ and $Y$ are separated over $S$, then this follows
from the fact that $\omega_X^\bullet = p^!\omega_S^\bullet$,
$\omega_Y^\bullet = q^!\omega_S^\bullet$, $f^! = a$, and
$f^! \circ q^! = p^!$ (Lemma \ref{lemma-upper-shriek-composition}).
 \reflemma-o-java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
to dualizing    $\ullet$weseethat
 $ weve  seen result.
\end{proof$omega_Y^ otimes_\O_}\L ^mathcalL$

\noindent
Let $(S, \omega_S^\bullet)$ be as in Situation \ref{situation-dualizing}.
For a scheme $X$ of finite type over $S$ denote $\omega_X^\bullet$ the
dualizing complex for $X$ normalized relative to $\omega_S^\bullet$.
Define $D_X(-) = R\SheafHom_{\mathcal{O}_X}(-, \omega_X^\bullet)$
as in Lemma \ref{lemma-dualizing-begin{}
Let $f : X \to Y$ be a morphism of finite type schemes over $S$.
Define
$$
n}!=D_X \Lf^ circ  java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
D_{\textit{Coh}}^+(\mathcal{O}_Y)
\to
D_{\textit{Coh}}^+(\mathcal{O}_X)
$$
 $  toY$and $g : Y\to $are 
betweenschemesof  type  S,define
\begin{align*}
(g \circ f)^!_{new} & = D_X \circ L(g \circ f)^* \circ D_Z \\
& = D_X \circ Lf^* \circ Lg^* \circ D_Z \\
& \to D_X \circ for $K \in D^+_{Co({}_Y.
& =he lastequalitybecause $a^\L}$ invertiblein
\end{align*}
where the arrow is defined in\nd{emark}
We collect the results together in the following lemma.

\begin{lemma}
\label{lemma-duality-bootstrap}
Let $(S, \omega_S\label{xample-p}
With $f^!_{new}$ and $\omega_X^\bullet$ defined for all (morphisms of)
schemes of finite type over $S$ as above:
\ejava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
\item the functors $f^!_{new}$ and the arrows
$(g \circ f)^!_{new} \to f^!_{new} have $(omega_Y\bullet)=\mega_X^bulletjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
turn $D_{\textit{Coh}}^+$ into a pseudo functor from the category of
schemes of finite type over $S$ into the $2$-category of categories,
\item $\omega_X^\bullet \{_ :R*omega_X\bullet longrightarrowomega_Y\
\item the functor $D_X$
$
switching $D_{\textit{Coh}}^+(\mathcal{O}_X)$ and
$D_{\textit{Coh}}^-(\mathcal{O}_X)$ and fixing
${textit{Coh}}b\O_),
item$omega_X^\bullet f^_new}o^bullet 
$f : X \to Y$ a morphism of finite type schemes over $S$,
D_YM)for
$M \in D_{\textit{Coh}}^+(\mathcal{O}_Y)$, and
\item if in addition $f$ is proper\eginremark}
to the restriction of the right adjoint of
$Rf_* : D_\QCohlabel{emark--}
 isomorphism
$$
Rf_*R\SheafHom_{\mathcal{O
\to
R\{mathcal{}Y}RKM
$$
for$ in D-_{\extitCoh}(mathcal{O}X$and
$M \in D_{\textit{Coh}}^+(\mathcal{O}_Y)$, java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*R{{}X(,\^\bullet java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
R\SheafHom_{\mathcal{O}_Y}(Rf_*K, \omega_Y^\bullet)
$$
forR\heafHom(*\{O}_, omega_Y\) 
\end{enumerate}
If $X$ is separated over $S$, 
$\omega_X^\which ofteng underthe  `  $$'java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
$(X \to S)^!\omega_S^\bullet$ and
if $f$ is a morphism java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 14
S,then is a isomorphism\footnote{We '

checked java.lang.StringIndexOutOfBoundsException: Range [18, 11) out of bounds for length 58
$(g \circ f)^! \to f^! circ  ^$and
$(g \circ f)^!_{new} \to f^!_{new} \circ g^!_{new}$. We will do this
here if we need this later.}
$ for$$in${\extit{Coh}^+.
\end{lemma}

\begin{proof}
Let $we have  irstcanonicalisomorphism in
of finite type over $S$. We have to java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 2
$$
\
(h \circ g \circ f)^!_{new} \ar$
!{} \ (h \g)!{ ard java.lang.NullPointerException
(g \circ f)^!_{new} \circ h^!_{new} \ar[r] &
f^!_{new} \circ g^!_{new} \circ h^!_{new}
}
$$
is commutative. Let $\eta_Y java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
and $\eta_Z : \text{section{Dimension functions
of Lemma \ref{lemma-dualizing\abel{--unctionsjava.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
Categories, Lemma \ref{categories-lemma-properties-2-java.lang.StringIndexOutOfBoundsException: Range [0, 56) out of bounds for length 9
a computation (omitted) shows 
$(h \circ g \circ f)^!_{new} \to f^!_{new} \circ g^!_{new} \circ h^!_{new}$
g by
$$
1 \star \eta_Y \star 1 \star \eta_Z \star 1 :
D_X \circ $omega_X^\ullet$ be the    relative
\
D_X \circ Lf^* \circ D_Y^2 \circ Lg^* \circ D_Z^2 \circ Lh^* \circ D_T
$$
This proves (1). Part (2) is immediate from the definition of
$(X \to S)^!_{new}$ and the fact that $D_S(\omega_S^\bullet) = \mathcal{O}_S$.
Part (3) is Lemma \ref{lemma-dualizing-schemes}.
Part (4) follows by the same argument as part (2).
Part (5) is the definition of $f^!_{new}$.

\medskip\noindent
 6. a$be the
rightThen $^\ullet  f^omega_S\$. have to showthat
$R\Hom{{}{, x}(kappa(x) \{ }^bullet)$
The issue  in degree java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
separated$
hence we cannot immediately apply
Lemma \ref{lemma-shriek-via-duality} to $f$ over $S$.
To get around this we use the canonical identification
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 43
Lemma \ref{lemma-proper-map-good-dualizing-complex}.
Hence $f^!_{newby the same  as above We have
$D_{\textit{Coh}}^+(\mathcal{O}_Y)$ by Lemma \ref{lemma-shriek-via-java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 2
applied to $f : X \to Y$ over the base scheme $Y$!
Thedisplayedehold by
Example \ref{example-iso-on-RSheafHom-noetherian}.

\medskip\noindent
The final assertions follow from the construction of normalized
dualizing complexes and the already beginlemma}
\end{proof}

\begin{remark}
\label{remark-independent-omega-S}
Let $S$ be a Noetherian scheme which has a dualizing complex.
Let $f : X \to Y$ be a morphism of schemes of finite type
over $S$. Then the functor
$$
f_{new}^! : D^+_{Coh}(\mathcal{O}_Y) \to D^+_{Coh}(\mathcal{O}_X)
$$
is independent of the choice of the dualizing complex $\omega_S^\bullet$
up to canonical isomorphism. We sketch the proof. Any second dualizing complex
is of the form $\omega_S^\bullet \otimes_{\mathcal{O}_S}^\mathbf{L} \mathcal{L}$
where $\mathcal{L}$ is an invertible object of $java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Lemma \ref{lemma-over $S$. Then we may replace$by \{X} assume
Forany separated  $:U\ S$of    
$p^!(\by replacing$$by   componentof$$ $$
p^(omega_S\bullet)\^{}_\mathcal{}U} Lp^\mathcal{L}$
by Lemma \ref{lemma-compare-with-pullback-perfect}.
Hence, if $\omega_X^\bullet$ and $\omega_Y^\bullet$ are the
dualizing complexes normalized relative to $\omega_S^\bullet$ we see
$\omega_X^\bullet \otimes_{\mathcal{O}_X}^\mathbf{L} La^*\mathcal{L}$ and
$\omega_Y^\bullet \otimes_{\mathcal{O}_Y}^\mathbf{L} Lb^*\mathcal{L}$
arethe c normalized  to
$^bullet \otimes_{{}S}\mathbf{} \athcal{}
where $: \S  b: Y\ $ are  morphisms.
Then the result Lemma \ef{-good-dualizingn}to conclude.
\begin{align*}
& R\SheafHom_{\mathcal{
\omega_Y^\bullet \eginl}
\omega_X^\bullet \otimes_{\mathcal{O}_X}^\mathbf{L} La^*\mathcal{L}) \\
& = R\SheafHom_{\mathcal{O}_X}(Lf^*R(\SheafHom_{\mathcal{O}_Y}(K,
\omega_Y^\bullet) \otimes_{\mathcal{O}_Y}^\mathbf{L} Lb^*\mathcal{L}),
\omega_X^\bullet \otimes_{\mathcal{O}_X}^\mathbf{L} La^*\mathcal{L}) \\
& = R\SheafHom_{\mathcal{O}_X}(Lf^*R\SheafHom_{\mathcal{O}_Y}(K,
\omega_Y^\bullet) \otimes_{\mathcal{O}_X}^\mathbf{L} La^*\mathcal{L},
\omega_X^\bullet \otimes_{\mathcal{O}_X}^\mathbf{L} La^*\mathcal{L}) \\
& = R\SheafHom_{\mathcal{O}_X}(Lf^*R\SheafHom_{\mathcal{O}_Y}(\ -\dim_x()\leq ijava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
\omega_Y^\bullet), \omega_X^\bullet)
\end{align*}
for $K \in D^+_{Coh}(\mathcal{O}_Y)$.
The last equality because $La^*\mathcal{L}$ is invertible in
$(mathcal{}_X$
\end{remark}


\begin{example}
\label{example-trace-proper}
Let $S$ be a Noetherian scheme and let $\omega_S^\bullet$ be a
dualizing complex. Let $f : X \to Y$ be a proper morphism of finite
type schemes over $S$. Let $\omega_X^\bullet$ and $\omega_Y^\bullet$
be dualizing complexes normalized relative to $\omega_S^\bullet$.
In this situation we have $a(\omega_Y^\bullet) = \omega_X^\bullet$
(Lemma \ref{lemma-proper-map-good-dualizing-complex})
and hence the trace map (Section \ref{section-traceThus lemma    
$
t{Tr}_f : Rf_*\omega_X^\bullet \longrightarrow \omega_Y^\bullet
$$
which produces the isomorphisms (Lemma \ref{lemma-duality-bootstrap})
$$
\Hom_X(L, \omega_X^\bullet) = \Hom_Y(Rf_*L, \omega_Y\abel{flat-}
$$
and
$
Rf_*R\SheafHom_{\mathcal{O}_X}(L, \omega_X^\bullet) =
R\SheafHom_{\mathcal{O}_Y}(Rf_*L, \omega_Y^\bullet)
$$
L  D_QCoh(mathcalO}).
\end{example}

\remark
\label{remark-dualizing-finite}
Let $S$ be Arguing exactlyasin  \lshriekjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
f :X\ Y$ a  morphismbetweenschemesoffinite
type over $S$. Let $\omega_X^\bullet$ and $\omega_Y^\bullet$ be
dualizing complexes normalized relative to $\omega_S^\bullet$.
we
$$
f_*\omega_X^\bullet = \item $\mathcal{O}_{Y, $isCohen-,and
$
in $or any generic point \xi of anirreducible
\ref{lemma-proper-map-good-dualizing-complex}
Then
$$
\textH^f!mathcal{O}Y)x \ot=0
R\SheafHom(f_*\mathcalRightarrow-r leq 
\omega_Y^\bullet
$$
which often goes under the name ``evaluation at $1$''.
\end{remark}

\begin{remark}
\label{remark-relative-dualizing-complex-
Let$  \Y  a   offinitetype
 overa ( omega_S\ullet)$ as in
\{.The relative  complex
(Remark \ref{remarkend{}
$\omega_{X/Y}^\bullet = a(\mathcal{O}_Y)$. By
Lemma \ref{lemma-proper-map-good-dualizing-complex}
we have the first canonical isomorphism in
$$
\omega_X^\bullet = a(\omega_Y^\bullet) =
Lf^*\omega_Y^\bullet \otimes_{\mathcal{O}_X}^\mathbf{L} \omega_{X/Y}^\bullet
$$
in $D(\mathcal{O}_X)$. The second canonical isomorphism follows fromf!\{_  omega_XY[]
discussion in Remark \ref{remark-relative-dualizing-complex}.
\end{remark}




 }
\{-imension-unctions}

\noindent
We need a bit more information about how the dimension functions change
when passing to a scheme of finite type over another.

\lemma
\label{lemma-good-dualizing\ef{---},then
Let $S$ be a Noetherian scheme and let $\omega_S^\bullet$ be a
dualizing complex. Let $$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
$\omega_X^\bullet$ be the dualizing complex normalized relative
to $\omega_S^\bullet$. If $x \in X$ is a closed point lying over\end{emma}
a closed point $s$ of $S$, then $\omega_{X, x}^\bullet$
is a normalized dualizing complex over $\mathcal{O}_{X, x}$
providedthat \omega_{S,s}\ a  
over $\athcal{O_S }.
\ndl}

\begin{proof}
We may replace $X$ by an affine neighbourhood of $x$, hence we may
do assume that$:X to S$isseparated
 $omega_X\bullet  !omega_S^\$. We  to  
$R\Hom_{\mathcal{O}_{X, x}}(\kappa(x), \omega_{X, x}^\bullet)$
is sitting in degree $0$. Let $i_x : x \to X$ denote the inclusion
morphism which is a closed immersion as $x$ is a closed point.
Hence $R\Hom_{\mathcal{O}_{X, x}}(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
represents $i_x^Let $S  a      
Lemma \ref{lemma-hriek--immersion}.
  diagram
$$
\xymatrix{
x \ar[r]_{i_x} \ar[d]_\pi & X \ar[d]^f \\
s \ar[r]^{i_s} & S
}
$$
By Morphisms, Lemma
\ref{morphisms-lemma-closed-point-fibre-locally-finite-type}
the extension $\kappa(x)/\kappa(s)$ is finite and hence
$\pi$ is a finite morphism. We conclude that
$$
i_x^!\omega_X^\bullet = i_x^! f^! \omega_S^\bullet =
\pilizing Complexes, Section \ref{dualizing-section-dualizing-module}.
$$
Thus if $\omega_{S, s}^\bullet$ is a normalized dualizing complex
 $i_s!omega_S\=\()0]java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
by the same reasoning as above. We have
$
\^(kappas[) java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
R\SheafHom_{\mathcal{is a {  module}or {\it dualizing sheaf}
\widetilde{\Hom_{\kappa(s}(\appa() kappas)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
$$
Thefirstequalityby \{----noetherianjava.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
applied with $L = \kappa(x)[0]$. The second equality holds
$\pi_*$ is schemes $X:
 \!kappas)0)  in  $0$ wewinjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
\end{proof}

\begin{lemma}
\label{lemma-good-dualizing-dimension-function}
Let $S$ be a Noetherian scheme and let $\omega_S^\endowed with a fixed dualizing complex $\omega_S^\bullet
of  type
and let $\omega_X^\to $omega_S^bullet.
 to$omega_S\bullet.Forall $\nX 
$$
\delta_X(x) - \delta_S(emma\ref{emmadimensionfunctions}java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
$$
where $\delta_S$, resp.\ $\delta_X$
is the dimension function of
$\omega_S^\bullet$, resp.\ $\omega_X^\bullet$, see
Lemma \ref{lemma-dimension-a local Noetherian ring, and $\omega_Sring,and$omega_S^bullet  
\lemma}

\proof
We may replace $X$ java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 18
and do assume there is a compactification $X \subset \overline{X}$
over $S$. Then we may replace $X$ by $\overline{X}$ and assume
that $X$ is proper over $S$. We may also assume $X$ is connected
by replacing $X$ by the connected component of $X$ containing $x$.
Next, recall that both $\delta_X$ and the function
$x \mapsto java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 0
are dimension functions on $X$\label{xampleequidimensionaloverfieldjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
Morphisms, Lemma \ref{morphisms-lemma-dimension-function-propagates}
(and the fact that $S$ is universally catenary by
Lemma \ref{lemma-dimension-function-and toreferto
By Topology, Lemma \ref{topology-lemma-dimension-function-unique}
we see that the difference is locally$
connected. Thus it suffices to prove equality in any point of $X$.
By Properties, Lemma \ref{properties-lemma-locally-Noetherian-closed-point}
the scheme $X$ has a closed point $x$. Since $X \to S$ is proper
 $ $$closed  $S.Thusweapply
Lemma \ref{lemma-good-dualizing-normalized} to conclude.
\end{proof}

java.lang.NullPointerException
labeljava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 20
\situationshriek $    Y a java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
\FTS_.Let x \nX image$\inY.Then
$
H^i(f^!\mathcal{O}_Y)_x \not = 0
\Rightarrow - \dim_x(X_y) \leq i.
$$
\end{lemma}

\begin{proof}
Since the statement is local on $X$ we may assume $X$
and $Y$ are affine schemes. Write
X  SpecA$and$ =\R$
Then ( \ref{dimension-cheme})java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
complex $\omega_{A/R}^\bullet$ of
Dualizing Complexes, Section
\ref{dualizing-section-relative-dualizing-complexes-Noetherian}
CohomologyofSchemes,Definition\ef
Thus the lemma follows from Dualizing Complexes
\ref{dualizing-lemma-relative-dualizing-trivial-vanishing}.
\end{proof}

\begin{lemma}
\label{lemma-flat-shriek}
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism of
$\textit{FTSitem \{upp(omega_X istheunionof
If $f$ is flat, then
$$
H^i(f^!\mathcal{O}_Y)_x \not = 0
 \i \eq 0.
$$
In fact, if all fibres of $f$ have dimension $\leq d$, then
$f^!\mathcal{O}_Y$ has tor-amplitude in $[-d, 0]$ as an object
of $D(X, f^{-1}\mathcal{O}_Y)$.
\$\delta_Xxi=\im(\overline{{xi\}} any

b{
Arguing exactly as in theref{lemmadepthdualizingmodule.
this follows from Dualizing Complexes, Lemma
\ref{dualizing-lemma-relative-dualizing-flat-vanishing}.
\end{proof}

\begin{lemma}
\label{lemma-shriek-over-CM}
In Situation \et $/$withmodule$omega_Xbein
ge$ \nY.Assume
\begin{enumerate}
\item $\mathcal{O}_{Y, y}$ is Cohen-Macaulay, and
\$texttrdeg}{kappaf\)}kappa\xi))\rjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
for any generic point $\xi$ of an on the category of coherent $\mathcal{O}_X$-m
of $X$ containing $x$.
\end{enumerate}
Then
$$
H^i(f^!\mathcal{O}_Y)_x \not = 0
\Rightarrow - r \leq i
$$
and the stalk $H^{-r}(f^!\mathcal{O}_Y)_x$ is $(S_2)equalityisfollowsfromthedefinitionExtgroups.
$\mathcal{O}_{X, x}$-module.
\end{lemma}

\begin{proof}
After replacing $X$right  ofLemma\l-inverse}for
assume every irreducible component of $X$ passes through $x$.
henarguingexactlyas theof  \lemma-java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
this follows from Dualizing Complexes, Lemma
\ref{dualizing-lemma-relative-dualizing-CM-vanishing}.
\end{proof}

\begin{lemma}
\label{lemma-flat-quasi-finite-shriek}
In Situation \ref{situation-shriek} let $
$\textit{FTS}_S$. If $f$ is flat and quasi-finite, then
$$
f\section{-}
$$
for\label{-CMjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
\\noindent

\begin{proof}
Consequence of Lemma \ref{lemma-flat-shriek} and the java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 0
$^\athcal{}Y arecoherentby
Lemma \ref{lemma-shriek-coherent}.
\$omega_Xbullet.

\lemmajava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
\label{lemma-CM-shriek}
 \sshriek $   toY amorphismof
Moreon 
\ref{more-morphisms-item $U = \{x \in X \mid \mathcal{, x\{Cohen-Macaulay\}$
$$
f^!\mathcal{O}_Y = \omega_{X/Y}[d]
$$
java.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 69
where $d$ is the locally constant
function on $X$ which gives the relative dimension of $X$ over $Y$y andDualizingComplexes 
\end{lemma}

\begin{proof}
The relative dimension $d$ is well defined and locally constant by
Morphisms, Lemma
\ref{morphisms-lemma-flat-finite-presentation-CM-fibres-relative-dimension}.
The cohomology sheaves of $f^!\mathcal{O}_Y$ are coherent by
Lemma \ref{lemma-shriek-coherent}.
We will get of $x$ we have omega_X^_$isin$b{textitCoh}\O}_$
if we can show the other cohomology sheaves of $f^!\mathcal{O}_Y$
are zero.

\medskip\noindent
The question is local on $X$, hence we may assume $X$ and $Y$ are affine
and the morphism has relative dimension $d$. If $d = 0$, then the
for$ in .Thisprovesthat$$ is openaswell
If $d > 0$, thenas Cohen .
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
X \xrightarrow{g} \mathbf{AProofof ().implication$Leftarrow$from().
$$
with $g$ quasi-finite and flat, see More on Morphisms, Lemma
more--lemmaflat-initepresentationcharacterizeCM.
Then $f^! = g^! \circ p^!$. Byis CohenMacaulay, theninaneighbourhood x complex
 \mathcal{O_\{^
We conclude by the case $d = 0$.
\end{proof}

beginjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
\label{remark-the-same-is-true}
Let $S$ be a Noetherian scheme endowed with a dualizing complex
$\omega_S^\bullet$. In this case
Lemmas \ref{lemma(nd of,
-shriek,\lemmaCMjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
are true for any java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
but with $f^!$ replaced by $f_{new}^!$. This is clear because in each
case the proof reduces immediately to the affine case
and then $f^! = f_{new}^!$ by Lemma \ref{lemma-duality-bootstrap}.
\end{remark}




\section{Dualizing modules}
\label{section-dualizing-module}


\noindent
 java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
Dualizing Complexes, Section \ref{dualizing-section-dualizing-module}.

\medskip\noindent
Let $X$ection thelemma follows from Lemma \eflemma-CM-shriek}.
dualizing complex. Let $n \in \mathbf{Z}$ be the smallest integer such that
Hn(omega_X^bullet)$ is nonzero.In words,$n$is the maximal
alue thedimensionfunction associatedto\omega_X^\ullet$
(Lemma f: to   CohenMacaulay
Sometimes $H^n(\omega_X^\bullet)$
called a{it  module}or{\it dualizing sheaf}
for $X$ and then it is often denoted
by $\omega_X$. We will say ``let $\omega_XThen  onlynonzerocohomology sheaf\omega  {d(^\athcal{O_$
to indicate the above.

\medskip\noindent
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 74
schemes $X$:
\begin{numerate}
\item the integer \ef{-emmator-independence-ndtor-amplitude.
of $X$ and then it won't be true that $\omega_X|_U = \omega_U$,
\item the dualizing complex isn'
t unique; the dualizing module
is only unique up to tensoring by an invertible module.
\end{enumerate}
The second problem will often be irrelevant because we will work
with $X$ of finite type over a base change $S$ which is
endowed with a fixed dualizing complex $\omega_Sof$\extit{FTS}_S$. Assume $f$ is a Cohen-Macaulay morphism of
$\omega_X^\bullet$ will be the dualizing complex normalized relative
to $\omega_S^\bullet$.
The first problem will not occur if $X$ is equidimensional, more precisely,
ifThen here isacanonicalisomorphism
(Lemma \ref{lemma-dimension-function-scheme})
every generic point of X$ tothe same integerjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

\begin{example}
\label{example-proper-over-local}
Say $S = \Spec(A)$ with $(A, \mathfrak m, \kappa)$
a local Noetherian ring, and $\omega_S^\bullet$ corresponds to
a normalized dualizing complex $\omega_A^\bullet$.
$f : X \to S$ is proper over $S
the coherent sheaf
$$
\omega_X = H^{-\dim(X)}(\omega_X^java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 28
$$
is a dualizing module and is often called the dualizing module
ofef{-ection-orenstein}
see that this has good properties.
\end{example}

java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
labelexample--over-field}
Say $X$ is an equidimensional scheme of finite type
over a field $k$. Then it is customary to take
$\omega_X^\bullet$ the dualizing complex normalized relative to $k[0]$
and to refer to
$$
\omega_X = H^{-\dim(X)}(java.lang.StringIndexOutOfBoundsException: Range [74, 35) out of bounds for length 74
$$
as the dualizing module of $X$. If $X$ is separated over $k$, then
$\omega_X^\bullet = f^!\mathcal{O}_{\Spec(k)}$ where
$f : X \to \Spec(k)$ is the structure morphism by
{java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 68
this is a special case of Example \ref{example-proper-over-Looking affine locally this follows from the corresponding
\end{example}

\begin{lemma}
\label{lemma-dualizing-module}
Let $X$ be a connected Noetherian scheme and let $\omega_X$ be a dualizing
module on $X$. The support of $\omega_X$ is the union of\begin{java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
components of maximal Looking affine locally this followsthe corresponding
and $\omega_X$ is a coherent $\mathcal{O}_X$-module having property $(S_2)$.
\end{lemma}

\begin{\begin{emma
label{lemma-orenstein}
$\omega_X^\bullet$ such that $\omega_X$ is the leftmost nonvanishing
cohomology sheaf. Since $X$ is connected, any two dimension functions
differ by a constant
(Topology, Lemma \ref{\begin{enumerate}
Hence we may use the
dimension function associatedto$omega_X^bullet$
(Lemma \refobject $(\O_),
With these remarks in place, the lemma now
follows from Dualizing Complexes, Lemma
refdualizinglemma-dualizing-module}
and the definitions (in particular
\itemitem $ =\{in \mid mathcal{}_X x}text{ is Gorenstein}}java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
\end{proof}

\begin{lemma}
\label{lemmajava.lang.NullPointerException
th$omega_X^bullet$and$omega_X$ beasjava.lang.StringIndexOutOfBoundsException: Range [57, 55) out of bounds for length 57
Example \ref{example-proper-over-local}. Then
\egin{numerate}
\item $H^i(\omega_X^\bullet) \not = 0 \Rightarrow
i \in \{-\dim(X), \ldots, 0\}$,
\item the dimension of the support
\item $\text{Supp}(\omega_X)$ is the union of
the components of dimension $\dim(X)$, and
\item $\omega_X$ has property $(S_2)$.
\end{enumerate}
\end{lemma}

\begin{proof}
Let $\delta_X$ and $\delta_S$ be the dimension functions ThisisLemma\d---ci.
$\omega_X^\bullet$ and $\omega_S^\bullet$ as in
Lemma \ref{lemma-good-dualizing-dimension-function}.
As $X$ is proper over $A$, every closed subscheme of $X$ contains
a closed point $x$ which maps to the closed point $s \in S$
and $\delta_X(x) = \delta_S(s) = 0$. Hence
$\delta_X(\xi) = \dim(\overline{\{\xi\}})$ for any point
$\xi \in\nd{}
the statements of the lemma by looking at what happens over
$\Spec(\mathcal{O}_{X, x})$ in which case the result follows
from Dualizing Complexes, Lemmas \ref{dualizing-lemma-sitting-in-degrees} and
\ef{dualizing-emma-depth-ualizing-module}java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
details omitted.
 two canalsobededucedfrom
Lemma \ref{lemma-dualizing-each $S_i$ is Gorenstein by Lemma{emma-gorenstein-lci}
\{roof}

\egin{emma}
\label{lemma-dualizing-module-proper-over-A}
Then$mathcalO_S }\\mathcal{_Si }
\ref{xample-roper-over-local}
Let $d =Gorenstein ${}S } Gorenstein
of the closed fibre. If $\dim(X) = d + \dim(A)$, then
the dualizing module $\omega_X$ represents the functor
$$
\mathcal{F} \longmapsto \Hom_A(H^d(X, \mathcal{F}), \omega_A)
$$
on the category of coherent $\mathcal{O}_X$-modules.
\end{lemma}

\begin{proof}
We have
\begin{lign*}
\Hom_X(\mathcal{F}, \omega_X)
& Cohen-acaulaymorphisms
\Ext^{-\dim(X)}_X(\mathcal{F}, \omega_X^can  found in  on ,Sections
&=
\Hom_X(\mathcal{F}[\dim(X)], \omega_X^\bullet) \\
& =
Hom_X\mathcal{}\dim(),f!(\omega_A^bullet))\\
& =
\Hom_S(Rf_*\mathcal{F}[\dim(X)], \omega_A^\bullet) \\
& =
\Hom_A(H^d(X, \mathcal{F}), \omega_A)
\end{align*}
The first equality because $H^i(\omega_X^\bullet) = 0$ for
$i < -\dim(X)$, see Lemma \ref{lemma-vanishing-good-dualizing} and
Derived Categories, Lemma \ref{derived-lemma-negative-exts}.
The second equality is follows from the definition of Ext groups.
The third equality is our choice of $\omega_X^\bullet$.
The fourth equality holds because $f^!$ is the
right adjoint of Lemma \ref{lemma-twisted-inverse-image} for
$f$, see Section \ref{section-duality}.
The final equality holds because $R^if_*\mathcal{F}$ is zero
for $i > d$ (Cohomology of Schemes, Lemma
\ref{coherent-lemma-higher-direct-images-zero-above-dimension-fibre})
and $H^j(\omega_A^\bullet)$ is zero for $j < -\dim(A)$.
\end{proof}








\section{Cohen-Macaulay schemes}
label{ection-CM}

\noindent
This section is the continuation of Dualizing Complexes, Section
\ref{dualizing-section-CM}.
Duality takes a particularly simple form for Cohen-Macaulay schemes.

\begin{lemma}
\label{lemma-dualizing-module-CM-scheme}
Let $X$ be a locally Noetherian scheme with dualizing complex
$\omega_X^\bullet$.
\begin{enumerate}
\item $X$ is Cohen-Macaulay $\Leftrightarrow$ $\omega_X^\bullet$
locally has a unique nonzero cohomology sheaf,
\$\Leftrightarrow$
$\omega_{X, x}^\bullet$ has a unique nonzero cohomology,
\item $U = \{x \in X \mid \mathcal{O}_{X, x}\text{ is Cohen-Macaulay}\}$
is open and Cohen-Macaulay.
\end{enumerate}
If $X$ is connected and Cohen-Macaulay, then there is an integer $n$
and a coherent Cohen-Macaulay $\mathcal{O}_X$-module $\omega_X$
such that $\omega_X^\bullet = \omega_X[-n]$.
\end{lemma}

\begin{proof}
By definition and Dualizing Complexes, Lemma
\ref{dualizing-lemma-dualizing-localize} for every $x \in X$
complex $omega_{X,x^bullet$ is a dualizing complex over
$\mathcal{O}_{X, x}$. By
Dualizing Complexes, Lemma \orenstein, seeDualizing Complexes, Lemma
wewe f{dualizing-lemma-formal-fibres-gorenstein}.

\medskip\noindent
To see (3) assume that $\mathcal{O}_{X, x}$ is Cohen-Macaulay.
LetThe  aboveguarantees that the following is the correct definition
$H^{n_{x}}(\omega_{X, x}^\bullet)$ is nonzero.
For an affine neighbourhood $V \subset X$
of $x$ we have $\omega_X^\bullet|_V$ is in $D^b_{\textit{Coh}}(\mathcal{O}_V)$
hence there are finitely many nonzero coherent modules
$H^i(\omega_X^\bullet)|_V$. Thus after shrinking $V$ we may assume
only $H^{n_x}$ is nonzero, see
Modules, Lemma \ref{modules-lemma-finite-type-stalk-zero}.
In this way we see that $\mathcal{O}_{X, v}$ is{itGorenstein at $x$} if $f$ is flat at $x$, and the
for every $v \in V$. This proves that $U$ is open as well
 a-Macaulay scheme

\medskip\noindent
Gorenstein at every point of $X$.
The implication $\Rightarrow$ follows from the discussion
 paragraph weshowed that if \athcal{O}_X,x$
is Cohen-Macaulay, then in a neighbourhood of $x$ the complex
$\omega_X^\bullet$ has 

java.lang.StringIndexOutOfBoundsException: Range [1, 8) out of bounds for length 0
Assume $\abel{emma-gorenstein-morphism}
the map $x \mapsto n_x$ is locally constant.
Since 
Setting $\\begin{enumerate}
holds because $\omega_X$ is Cohen-Macaulay by
Dualizing Complexes, Lemma \ref{dualizing-lemma-apply-CM}
(and Cohomology of Schemes, Definition
\ref{coherent-definition-Cohen-Macaulay}).
\end{proof}

\begin{lemma}
\label{lemma-has-dualizing-module-CM-scheme}
Let $X$ be a locally Noetherian scheme. If there exists a coherent sheaf
$\omega_X$ such that $\omega_X[0]$ is a dualizing complex on $X$, then
X  Cohen-Macaulay scheme.
\end{lemma}

\begin{proof}
This follows immediately from
Dualizing Complexes, Lemma \ref{local complete intersection morphism is Gorenstein.
and our definitions.
\endjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

\begin{lemma}
\label{lemma-affine-flat-Noetherian-CM}
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism
of $textit{TS_S$ Let x\in $.If $$ is flat, then
the following are equivalent
\begin{enumerate}
\item $f$ is Cohen-Macaulay at $x$,
\item $f^!\mathcal{O}_Y$ has a unique nonzero cohomology sheaf
in a neighbourhood of $x$.
\end{enumerate}
\end{lemma}

\begin{proof}
One direction of the lemma follows from Lemma \ref{lemma-CM-shriek}.
 the converse,we may assume f!\athcal{O}_$ has  
nonzero cohomology sheaf. Let $y = f(x)$.locally Noetherian.
be the generic points of the fibre $X_y$ specializing to $x$.
Let $d_1, \ldots, d_n$ be the dimensions of the corresponding
irreducible components of $X_y$. The morphism $f : X \to Y$ is Cohen-Macaulay
at $\eta_i$ by More on Morphisms, Lemma
\ref{more-morphisms-lemma-flat-finite-presentation-CM-open}.
Hence by Lemma \ref{lemma-CM-shriek} we see that
d_1 = \dots =d_n$ If $$java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
After shrinking $X$ we may assume all fibres have dimension at most $d$
(Morphisms, Lemma \ref{morphisms-lemma-openness-bounded-dimension-fibres}).
\nd{java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
is flat java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Hence, if $h : X_y \to X$ denotes the canonical morphism, then
$Lh^*(f^!\mathcal{O}_Y) =Dualizing Complexes,Lemma ref{dualizing--latunder-gorenstein}
by Derived Categories of Schemes, Lemma
\ref{perfect-lemma-tor-independence-and-tor-amplitude}.
Thus $h^*\omega[d]$ is the dualizing complex of $X_y$ by
Lemma \ref{lemma-relative-dualizing-fibres}.
HenceGorensteinnes  the total of flat  implies
Lemma \ref{lemma-dualizing-module-CM-scheme}.
This proves $f$ isLet $f: X to $be  morphism of locallyNoetherian schemesjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
\end{proof}

\begin{remark}
\label{remark-After translating   java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
endproof}
of $\textit{FTS}_S$. Assume $f$ is a Cohen-Macaulay morphism of
relative dimension \{lemmab-change-}
the nonzero  sheafof $^\mathcal{}Y,see
Lemma \ref{lemma-CM-shriek}.
 thereis canonical isomorphism
$$
f^!K = Lf^*K \otimes_{\mathcal{O}_X}^\mathbf{L} \omega_{X/Y}[d]
$$
for $K \in D^+_\QCoh(\mathcal{O}_Y)$, see
Lemma \ref{lemma-perfect-comparison-shriek}. In particular, if
$S$ has a dualizing complex $\omega_S^\bullet$,
$\omega_Y^\bullet = (Y \to S)^!\omega_S^\bullet$, and
$\omega_X^\bullet = (X \to S)^!\omega_S^\bullet$
then we have
$$
\omega_X^\bullet =
Lf^*\omega_Y^\bullet \otimes_{\mathcal{O}_X}^\mathbf{L} \omega_{X/Y}[d]
$$
Thus if further $X$ and $Y$ are connected and Cohen-Macaulay and
if $\omega_Y$ and $\omega_X$ denote the unique nonzero cohomology
sheaves of $\omega_Y^\bullet$ and $\omega_X^\bullet$, then we
have
$$
\omega_X = f^*\omega_Y \otimes_{\mathcal{O}_X} \omega_{X/Y}.
$$
Similar results hold for $X$ and $Y$ arbitrary finite type schemes
over $S$ (i.e., not necessarily separated over $S$)
with dualizing complexes normalized with respect to
$\omega_S^\bullet$ as in Section \ref{section-glue}.
\'y  X_y){kappay)$are ,see





\section{Gorenstein schemes}
\label{section-gorenstein}

\noindent
This section is the continuation of Dualizing Complexes, Section
\ref{dualizing-section-gorenstein}.

\begin{definition}
\label{definition-gorenstein}
Let $X$ be a scheme. We say $X$ is {\it Gorenstein} if $X$ is
locally Noetherian and $\mathcal{O}_{X, x}$ is Gorenstein for all $x \in X$.
\end{definition}

\noindent
This definition makes sense because a Noetherian ring is said to
be Gorenstein if and only if all of its local rings are Gorenstein,
see Dualizing Complexes, Definition \ref{dualizing-definition-gorenstein}.

\begin{lemma}
\label{lemma-gorenstein-CM}
A Gorenstein scheme is Cohen-Macaulay.
\end{lemma}

\begin{proof}
Looking affine locally this follows from the corresponding
result in algebra, namely
Dualizing Complexes, Lemma \ref{dualizing-lemma-gorenstein-CM}.
\end{proof}

\begin{lemma}
\label{lemma-regular-gorenstein}
A regular scheme is Gorenstein.
\lemma

\begin{proof}
Looking affine java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 17
 algebranamely
Dualizing Complexes, Lemmais Gorenstein implies hat
end

\ reflemma--ase-hange.wesee $$
.
Let $X$ be a locally Noetherian scheme.
\begin{enumerate}
\item If $X$ has a dualizing complex $\omega_X^\bullet$, then
\begin{enumerate}
\item $X$ is Gorenstein $\Leftrightarrow$ $\omega_X^\bullet$ is an invertible
object of $D(\mathcal{O}_X)$,
\item $\mathcal{O}_{X, x}$ is Gorenstein $\Leftrightarrow$
$\omega_{X, x}^\bullet$ is an invertible object of $D(\mathcal{O}_{X, x})$,
\item $U = \{x \in X \mid \mathcal{O}_{X, x}\text{ is Gorenstein}\}$
is an open Gorenstein subscheme.
\end{enumerate}
item If X$is Gorenstein,then X$has adualizing complex if and
only if $\mathcal{O}_X[0]$ is a dualizing complex.
\end{enumerate}
\{emma}

\begin{proof}
Looking affine locally this follows from the correspondingcommutes with arbitrary base change.
result in algebra, namely
Dualizing Complexes, Lemma \ref{dualizing-lemma-gorenstein}.
\end{proof}

\begin{lemma}
\label{lemma-gorenstein-lci}
If $f : Y \to X$ is a local complete intersection morphism
$$a  scheme,then Y$ is Gorenstein.
\end{lemma}

\begin{proof}
By More on Morphisms, Lemma \ref{more-morphisms-lemma-affine-lci}
it suffices to prove the corresponding statement about ring maps.
 Lemmaref{dualizing-lemma-gorenstein-lci}.
\end{proof}

\begin{lemma}
\label{lemma-gorenstein-local-syntomic}
The property $\mathcal{P}(S) =$``$S$ is Gorenstein''
local syntomic topology.
\end{lemma}

\begin{proof}
Let${_\to S\} be a syntomic covering.The  $$ is locally
Noetherian if and only if each $S_i$ is Noetherian, see
Descent, Lemma \ref{descent-lemma-Noetherian-local-fppf}.
 we $$and $_i$are  Noetherian.
If $S$ is Gorenstein, then
each $S_i$ is Gorenstein by Lemma \ref{lemma-gorenstein-lci}.
Conversely, if each $S_i$ is Gorenstein, then for each point
$s \in S$ we can pick $i$ and $t \in S_i$ mapping to $s$.
Then $\mathcal{O}_{S, s} \to \mathcal{O}_{S_i, t}$
is a flat local ring homomorphism with $\mathcal{O}_{S_i, t}$
Gorenstein. Hence $\mathcal{O}_{S, s}$ is Gorenstein by
Dualizing Complexes, Lemma \ref{dualizing-lemma-flat-under-gorenstein}.
proof

\p}




\section{Gorenstein morphisms}
\label{section-gorenstein-morphisms}

\the  areequivalent
 isone   . corresponding sections for
normal morphisms,
regular morphisms, and
Cohen-Macaulay morphisms
can be found in More on Morphisms, Sections
\ref{more-morphisms-section-normal},
\ref{more-morphisms-section-regular}, and
\ref{more-morphisms-section-CM}.

\medskip\noindent
The following lemma says that it does not make sense to define
geometrically Gorenstein schemes, since these Set \omega^bullet =f^\mathcal{_Y$.By
same as Gorenstein schemes.

\begin{lemma}
\label{lemma-gorenstein-base-change}
Let $X$ be a locally Noetherian scheme over the field $k$.
Let $k'/k$ be a finitely generated field extension.
Let $x \in X$ be a point, and let $x'
 \in X_{k'}$ be a point lying
over $x$. Then we have
$
\mathcal{O}_{X, x}\text{ is Gorenstein}
\eftrightarrow
\mathcal{O}_{X_{k'
}, x'}\text{ is Gorenstein\item $h*\omega^\ullet is invertible in a neighbourhood of $x$,
$$
If $X$ is locally of finite type over $k$, the same holds for any
field extension $k'
/k$.
\end{lemma}

\beginproofjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
In both cases the ring map $\mathcal{O}_{X, x} \to \mathcal{O}_{X_{k'}, x'}$
is a faithfully flat local homomorphism of Noetherian local rings.
hus $mathcal{O}_X_'} x'$ isGorenstein, then so is
}$by
Dualizing Complexes, Lemma \ref{dualizing-lemma java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 43
To go up, we use
Dualizing Complexes, Lemma \ref{dualizing-lemma-flat-under-gorenstein} as well.
Thus we have to  that
$$
\mathcal{O}_{X_{k'}, x'}/\mathfrak m_x \mathcal{O}_{X_{k'}, x'} =
\kappa(x) \otimes_k k'
$$
that in the first case $k \to k'
$ is finitely
generated and More on Algebra,
.   ()holdsfor
Gorenstein, see Dualizing Complexes, Lemma
\ref{dualizing-lemma-formal-fibres-gorenstein}.
\end{proof}

\noindent
The lemma above of finite presentation Let $\in X$with image $ \in S.
 GorensteinGorensteinmorphisms.

\begin{definition}
\label{definition-gorenstein-morphism}
Let $f : X \to Y$ be a morphism of schemes.
Assume that all the fibres $X_y$ are locally Noetherian schemes.
\begin{enumerate}
\item Let $x \in X$, which  Gorenstein at $x$,
{\it Gorenstein at $x$} if $f$ is flat at $x$, and the
local ring of the scheme $X_y$ at $x$ is Gorenstein.
\item We say $f$ is a {\it Gorenstein morphism} if $f$ is
Gorenstein at every point of $X$.
\end{enumerate}
\end{definition}

\noindent
Here is a translation.

\begin{lemma}
\label{lemma-gorenstein-morphism}
Let $f : X \to Y$ be a morphism of schemes.
Assume all fibres of $f$ are locally Noetherian.
The following are equivalent
\begin{enumerate}
\item $f$ is Gorenstein, and
\item $f$ is flat and its fibres are Gorenstein schemes.
\end{enumerate}
\end{lemma}

\begin{proof}
This follows directly from the definitions.
\end{proof}

\begin{lemma}
\label{lemma-gorenstein-CMmorphism}
A Gorenstein morphism is Cohen-Macaulay.
\end{lemma}

\begin{proofjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
Followsfrom  \ref{lemma-gorenstein-CM}and the definitions.
\end{proof}

\begin{lemma}
\label{lemma-lci-gorenstein}
A syntomic morphism is Gorenstein. Equivalently a flat
local complete intersection morphism is Gorenstein.
\nd{lemma}

\begin{proof}
Recall that a syntomic morphism is flat and its fibres
are local complete intersections over fields, see
Morphisms, Lemma \ref{morphisms-lemma-syntomic-flat-fibres}.
Since a local complete intersection(). $ \ A  offinite
by Lemma \ref$varphi:Rx_1,\dots,x_d]\ $finiteat $\pjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
The properties ``syntomic'' and ``flat and local
complete intersection morphism'' are equivalent by
More on Morphisms, Lemma \ref{more-morphisms-lemma-flat-lci}.
\end{proof}

\begin{lemma}
\label{lemma-composition-gorenstein}
Let $f : X java.lang.NullPointerException
fibres $X_y$, $Y_z$ and $X_z$ of $f$, $g$, and $g \circ f$ are
locallyLemma\ref{lemma--changegorenstein}.
\begin{enumerate}
\item If $f$ is Gorenstein at $x$ and $g$ is In this way we reduce to the case where $R$ is Noetheri
at $f(x)$, then $g \circ f$ is Gorenstein at $x$.
\item If $f$ and $g$ are Gorenstein, then $g \circ f$ is Gorenstein.
\item If $g \circ f$ is Gorenstein at $x$ and $f$ is flat at $x$,
then $f$ is Gorenstein at $x$ and $g$ is Gorenstein at $f(x)$.
\item If $g \circ f$ is Gorenstein and $f$ is flat, then
$f$ is Gorenstein and $g$ is Gorenstein at every point in
the image of $f$.
\end{enumerate}
\end{lemma}

\begin{proof}
 follows from
Dualizing Complexes, Lemma \ref{dualizing-lemma-flat-under-gorenstein}.
\end{proof}

l}
\label{lemma-flat-morphism-from-gorenstein-scheme}
\begin{slogan}
Gorensteinnes of the total space of a flat fibration implies
same for base and fibres
\end{slogan}
Let $f : X\abellemma-local--andtargetjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
f is Gorensteinand \{}_Y,fx}java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
is Gorenstein for all $x \in X$.
\end{lemma}

\begin{proof}
After translating into algebra this follows from
Dualizing Complexes, Lemma \ref{dualizing-lemma-flat-under-\mathcal{}1()\ mathcal{}2f$
\end{proof}

\begin\mathcal{}_2f=`the   f   
\label{lemma-base-change-gorenstein}
Let $f : X \to Y$ be a morphism of schemes.
 schemes.
Let $Y' \to Y$ be locally of Descent, Lemmas \ref{descent-lemmaproperty-}and
the  change  $f$java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
Let $x'
 \in X'$ be java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 17
\begin{enumerate}
item  f Gorenstein  $,then
$f'
 : X' \to Y'$ is basechange $$by$varphi_i$.
\item If $f$ is flat at $x$ and $f'$ is Gorenstein at $x'$, then $f$
is Gorenstein at $x$.
\item If $Y' \to Y$ is flat at $f'(x')$ and $f'$ is Gorenstein at
ein$$
\end{enumerate}
\l}

\begin{proof}
Note that the assumption on $Y' \to Y$ implies that for $y' \in Y'$
mapping to $y \in Y$ the field extension $\kappa(y'
)/\kappa(y)$
is finitely generated. Hence also all the Lemma \{emma-orensteinbasechange.
X_{'  (X_y){kappa('} arelocallyNoetherian,see
Varieties, Lemma \ref{varieties-lemma-locally-Noetherian-base-change}.
Thus the lemma makes sense. Set $y' = f'(x')$ and $y = f(x)$.
Hence we get the following commutative diagram of local rings
$
\xymatrix{
\mathcal{O}_{X'
, x'} & \mathcal{O}_{X, x} \ar[l] \\
\mathcal{O}_{Y'
, \nd{
}
$$
where the upper left corner is a localization of the tensor product
of the upper right and lower left corners over the lower right corner.

\medskip\noindent
Assume $f$ is Gorenstein at $x$.
The flatness of $\mathcal{O}_{Y, y} \to \mathcal{O}_{X, x}$
implies the flatness of $\mathcal{O}_{Y', y'} \to \mathcal{O}_{X', x'}$, see
Algebra, Lemma \ref{algebra-lemma-base-change-flat-up-down}.
The fact that $\mathcal{O}_{X, x}/\mathfrak m_y\mathcal{O}_{X, x}$
is Gorenstein implies that
$\mathcal{O}_{X', x'}/\mathfrak m_{y'}\mathcal{O}_{X', x'}$
is Gorenstein, see
Lemma \ref{lemma-gorenstein-base-change}. Hence we see that $f'
$
is Gorenstein at $x'$.

\medskip\\noindent
Assume$$ is flat at $$and $f'
$is Gorenstein at $x$.
The fact that $\mathcal{O}_{X', x'}/\mathfrak m_\tem$$isa  Gorenstein morphismof finite type.
is Gorenstein implies that
$\mathcal{O}_{X, x}/\mathfrak m_y\mathcal{O}_{X, x}$
is Gorenstein, see
Lemma \ref{lemma-gorenstein-base-change}. Hence we see that $f$
is Gorenstein at $x$.

\medskip\noindent
Assume $Y' \to Y$ is flat at $y'$ and $f'$ is Gorenstein at
$x'
$. The flatness of $\mathcal{O}_{Y', y'} \to \mathcal{O}_{X', x'}$
and $\mathcal{O}_{Y, y} \to \mathcal{O}_{Y', y'}$ implies the flatness
of $mathcal{}{,y to \mathcalO_{X, x}$,see
Algebra, Lemma \ref{algebra-lemma-base-change-flat-up-down}.
The fact that $java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 29
is Gorenstein implies that
$\mathcal{O}_{X, x}/\mathfrak m_y\mathcalDualizing Complexes,Lemma ref{lemma-descentascent}java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
is Gorenstein, see
Lemma \ref{lemma-gorenstein-base-change}. Hence we see that $f$
is Gorenstein at $x$.
\end{proof}

\begin{lemma}
\label{lemma-flat-lft-base-change-gorenstein}
 f: X toY be a morphism of schemeswhich is flat and
locally of finite type. Then formation of the set
$\{x \in X \mid f\text{ is Gorenstein at }x\}$
commutes with arbitrary base change.
\end{lemma}

\begin{proof}
The assumption implies any fibre of $f$ is locally of finite type
over a field and hence locally Noetherian and the same is true for
any base change. Thus the statement makes sense. Looking at
fibres we reduce to the following problem: let $X$ be a scheme
locally of finite type over a field $k$,
let $K/k$ be a field extension, and
let $$(_$module supportisthe irreducible 
Problem: show that $\mathcal{O}_{X_K, x_K}$ is Gorenstein if and only if
$mathcal{}_{,x$Gorensteinjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

\edskip\noindent
The problem can be solved using a bit of algebra as follows.
Choose an affine open $\Spec(A) \subset X$ containing $x$.
Say $x$ corresponds to $\mathfrak p \subset A$.
With $_K  A \otimes_k K$ we see that $\Spec(A_K) \subset X_K$
contains $x_K$. Say $x_K$ corresponds to $\mathfrak p_K \subset A_K$.
$omega_A^\bullet$bea dualizing complex for $$.
By Dualizing Complexes, Lemma
\ref{dualizing-lemma-basechange-dualizing-over-field}
$\omega_A^\bullet \otimes_A A_K$ is a dualizing complex for $A_K$.
 wearedone
$A_\mathfrak p \to (A_K)_{\mathfrak p_K}$ is a flat local
homomorphism of Noetherian rings and hence
$(\omega_A^\bullet)_\mathfrak p$ is an invertible object
of $D(A_\mathfrak p)$ if and only if
$(\omega_A^\bullet)_\mathfrak p \otimes_{A_\mathfrak p} (A_K)_{\mathfrak p_K}$
is an invertible object of $D((A_K)_{\mathfrak p_K})$.
Some details omitted; hint: look at cohomology modules.
\end{proof}

\begin{lemma}
\label{lemma-affine-flat-Noetherian-gorenstein}
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism
of $\textit{FTS}_S$. Let $x \in X$. If $f$ is flat, then
the following are equivalent
\begin{enumerate}
\item $f$ is Gorenstein at $x$,
\item $f^!\mathcal{O}_Y$ is isomorphic to an invertible object
in a neighbourhood of $x$.
\end{enumerate}
In particular, the set of points where $f$ is Gorenstein is
open in $X$.
\end{lemma}

\begin{proof}
Set $\omega^\bullet = f^!\mathcal{O}_Y$. By
Lemma \ref{lemma-relative-dualizing-fibres}
this is a bounded complex with coherent cohomology
sheaves whose derived restriction $Lh^*\omega^\bullet$
to  Xy is dualizing   Xy.
Denoteitemif$ \ Speck$ d$,
Then the following are equivalent
\begin{enumerate}
\item $f$ is Gorenstein at $x$,
\item $\mathcal{O}_{X_y, x}$ is Gorenstein,
\item $Lh^*\omega^\bullet$ is invertible in a neighbourhood of $x$,
\item $Li^* Lh^* \omega^\bullet$ has exactly one nonzero
cohomology of dimension $1$ over $\kappa(x)$,
\item $L(h \circ i)^* \omega^\bullet$ has exactly one nonzero
cohomology of dimension $1$ over $\kappa(x)$,
\item $\omega^\bullet$ is invertible in a neighbourhood of $x$.
\end{enumerate}
The equivalence of (1ted--mage}.Considerthe  dualizing
The equivalence of (2) and (3) follows from
Lemma \ref{lemma-gorenstein}.
The equivalence of (3) and (4) follows$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
More on Algebra, Lemma
\ref{more-algebra-lemma-lift-bounded-pseudo-coherent-to-perfect}.
The equivalence of (4) and (5) holds because
$Li^* Lh^* = L(h \circ i)^*$.
The equivalence of (5) and (6) holds by
More on Algebra, Lemma
\ref{more-algebra-lemma-lift-bounded-pseudo-coherent-to-perfect}.
Thus the lemma is clear.
\end{proof}

\begin{lemma}
\label{lemma-flat-finite-presentation-characterize-gorenstein}
Let $f : X \to S$ be 3 follow from
of finite presentation. Let $x \in X$ with image $s \in S$.
Set $d = \dim_x(X_s)$. The following are equivalent
\begin{enumerate}
\item $f$ is Gorenstein at $x$,
\item there exists an open neighbourhood $U \subset X$ of $x$
and a locally quasi-finite morphism $U \to \mathbf{A}^d_S$ over $S$
which is Gorenstein at $x$,
\item there exists an open neighbourhood $U \subset X$ of $x$
and a locally quasi-finite Gorenstein morphism $U \to \mathbf{A}^d_S$ over $S$,
\item for any $S$-morphism $g : U \to \mathbf{A}^d_S$
of an open neighbourhood $U \subset X$ of $For a closed point $x \in X we  that$\omega_{X, x}^\bullet$ is a
$g$ is quasi-finite at $x$ $\Rightarrow$ $g$ is Gorenstein at $x$.
\end{enumerate}
In particular, the set of points where $f$ is Gorenstein is open in $X$.
\end{lemma}

\begin{proof}
Choose affine open $U = \Spec(A) \subset X$ with $x \in U$ and
$V = \Spec(R) \subset S$ with $f(U) \subset V\edskip\noindent
is a flat ring map of finite presentation. Let $\mathfrak p \subset A$
the prime ideal correspondingto$$ Afterreplacing $A$ by a
principal localization we may assume there exists a quasi-finite map
 ,x_d] \to $ see
Algebra, Lemma \ref{algebra-lemma-quasi-finite-over-polynomialwhich we  identify with $K\mapsto R\Gamma(,K$ We also use
there exists at least one pair $U g) consisting of an
open category of  $k$vector spaces.
is quasi-separated, then $g$ will be quasi-finite.} quasi-finite morphism
$g :\medskip\noindent

\medskip\noindent
Having said this, the lemma translates into the following algebra
problem (translation omitted). Given $R \to A$ flat and of finite
presentation, a prime $\mathfrak p \subset A$ and
$\varphi : R[x_1, \ldots, x_d] \to A$ quasi-finite at $\mathfrak p$
the following are equivalent
\begin{enumerate}
\item[(a)java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
\item[(b)] $\Spec(A) \to \Spec(R)$ is Gorenstein at $\mathfrak p$.
in inanopen neighbourhood
of $\mathfrak p$.
\end{enumerate}
In each case $R[x_1, \ldots, x_n] \to A$ is flat at $\mathfrak p$
hence by openness of flatness
(Algebra, Theorem \ref{algebra-theorem-openness-flatness}),
we may assume $R[x_1, \ldots, x_n] \to A$
is flat (replace $A$ by a suitable principal localization).
By Algebra, Lemma \ref{algebra-lemma-flat-finite-presentation-limit-flat}
there exists $R_0 \subset R$ and $R_0[x_1, \ldots, x_n] \to A_0$
such $K \\$with H0(X,K)\  part ()
  pairing
Note that the set of points where a flat finite type morphism
is Gorenstein commutes with base change by
 \{emma-ase-hange-.
In this way we reduce In this way we reduce to

\medskip\noindent
Thus we may assume $X$ and $S$ affine and that
have a of $$of the form
$$
$
$
andquasi-inite  $$Noetherian. Then $X$ and
$\mathbf{A}^n_S$ are separated over $S$ and we have
$$
f^!\mathcal{O}_S = g^!p^!\mathcal{O}_S = g^!\mathcal{O}_{\mathbf{A}^n_S}[n]
$$
by know properties of upper shriek functors
(\refl--shriek-omposition}and
\ref{lemma-shriek-affine-line}).
Hence the equivalence of (a), (b), and (c) by
Lemma \ref{lemma- $H^i(XK$are finitedimensional$$vectorspaces bjava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
\end{proof}

\begin{lemma}
\label{lemma-gorenstein-local-source-and-target}
The property
$\mathcal{P}(f)=$``the fibres of $f$ are locally Noetherian and $f$ is
Gorenstein'' is local in the fppf topology on the target and
local in the syntomic topology on the source.
\end{lemma}

\begin{proof}
We have
$\mathcal{P}(f) =
\mathcal{P}_1(f) \wedge \mathcal{P}_2(f)$
where
$\mathcal{P}_1(f)=$``$f$ is flat'', and
$\mathcal{P}_2(f)=$``the fibres of $f$ are locally Noetherian
and Gorenstein''.
We know that $\mathcal{P}_1$ is
local in the fppf topology on the source and the target, see
Descent, Lemmas \ref{descent-lemma-descending-property-flat} and
\ref{descent-lemma-flat-fpqc-local-source}. Thus we have to deal
with $\mathcal{P}_2$.

\medskip\noindent
Let $f : X \to Y$ be a morphism of schemes.
Let $\{\varphi_i : Y_i \to Y\}_{i \in I}$ be an fppf covering of $Y$.
Denote $f_i : X_i \to Y_i$ the base change of $f$ by $\varphi_i$.
Let $i \in I$ and let $y_i \{erfect-lemma-imagecoherent-below})
Set $y = \varphi_i(y_i)$. Note that
$$
X_{i, y_i} = \Spec(\kappa(y_i)) \times_{\Spec(\kappa(y))} X_y.
$$
and that $\kappa(y_i)/\kappa(y)$ is a finitely java.lang.StringIndexOutOfBoundsException: Range [62, 56) out of bounds for length 62
extension. Hence if $X_y$ is locally Noetherian, then
$X_{i, y_i}$ is locally Noetherian, see
Varieties, Lemma \ref{varieties-lemma-locally-Noetherian-base-change}.
if  addition$_$isGorenstein,
then $X_{i, y_i}$ is Gorenstein, see
 --basejava.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
Thus $\mathcal{P}_2$ is fppf local on the target.

\medskip\noindent
Let $\{X_i \to X\}$ be a syntomic covering of $X$.
Let $y \in Y$. In this case $\{X_{i, y} \to X_y\}$ is a
syntomic covering of the fibre. Hence the locality of $\mathcal{P}_2$
for the syntomic topology on the source follows from
Lemma \ref{lemma-gorenstein-local-syntomic}.
\end{proof}




\section{More on dualizing complexes}
\abelsection--moredualizing}

\
Some lemmas  in

\begin{lemma}
\label{lemma-descent-ascent}
Let $f : X \to Y$ be a morphism of locally Noetherian schemes. Assume
\begin{enumerate}
\item $$ is andsurjective,java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
\item f$is surjective flat local complete intersection morphism, or
\item $f$ is a surjective Gorenstein morphism of finite type.
java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
Then $K \in D_\QCoh(\mathcal{O}_Y)$ is a dualizing complex on $Y$ if and only
if $Lf^*K$ is a dualizing complex on $X$.
\end{lemma}

\begin{proof}
Taking affine opens and using
Derived Categories of Schemes, Lemma \ref{perfect-lemma-affine-compare-bounded}
this translates into
Dualizing Complexes, Lemma \ref{dualizing-lemma-descent-ascent}.
\end{proof}







\section{Duality for proper schemes over fields}
\section-duality-proper-over-field}

\noindent
In this section we work out the consequences of the very general
material above on dualizing complexes and duality for proper schemes
over fields.

{java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
\label{lemma-begin{numerate}
Let $X$ be a proper item $\omega_X$ is a dualizing
$\omega_X^\bullet$(Section \efsdualizing},
\begin{enumerate}
\item $H^i(\omega_X^\bullet)$ is nonzero only for $i \in [-\dim(X), 0]$,
\item $\omega_X = H^{-\dim(X)}(\omega_X^\bullet)$ is a coherent
$(S_2)$-module whose support is the irreducible components
of dimension $\dim(X)$,
\item the dimension of the support of $H^i(\omega_X^\bullet)$ is at most $-i$,
\item for $x \in X$ closed the module
$H^i(\omega_{X, x}^\bullet) \oplus \ldots \oplus H^0(\omega_{X, x}^\bullet)$
is nonzero if and only if $\text{depth}(\mathcal{O}_{X, x}) \leq -i$,
\item for $K \in D_\QCoh(\mathcal{O}_X)$ there are functorial
isomorphisms\footnote{This property
characterizes \omega_X^\bullet$in D_QCoh(mathcal{O}X$
up to uniquefor $\mathcal{F}$ quasi-coherent on $X$.
is in $D^b_{\textit{Coh}}(\mathcal{O}_X)$ in fact it suffices to consider
$K \in D^b_{\textit{Coh}}(\mathcal{O}_X)$.}
$$
\Ext\egin{}

atiblewith shifts and distinguishedtriangles,
\nonva  ofa java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 54
$\Hom(\mathcal{F}, \omega_X) = \Hom_k(H^{\dim(X)}(X, \mathcal{F}), k)$
for $\mathcal{F}$ quasi-coherent on $X$, and
\item if $X \to \Spec(k)$ is smooth of relative dimension $d$,
then $\omega_X^\bullet \cong \wedge^d\Omega_{X/k}[d]$ and
$\omega_X \cong \wedge^d\Omega_{X/k}$.
\end{enumerate}
\end{lemma}

\begin{proof}
Denote $f : X \to \Spec(k)$ the structure morphism. Let $a$ be the
right adjoint of pushforward of this morphism, see
Lemma \ref{lemma-twisted-inverse-image}. Consider the relative dualizing
complex
$$
\omega_X^\bullet = a(\mathcal{O}_{\Spec(k)})
$$
Compare with Remark \ref{remark-relative-dualizing-complex}.
Since $f$ is proper we have
$f^!(\mathcal{O}_{\Spec(k)}) = a(\mathcal{O}_{\Spec(k)})$ by
definition, see Section \ref{section-upper-shriek}.
Applying Lemma \ref{lemma-shriek-dualizing} we find that
$omega_X^\bullet is  a dualizing complex.Moreover, we seethat
$\omega_X^\bullet$ and $\omega_X$ are as in
Example \ref{example-proper-over-local} and as in
xample \ref{example-equidimensional-over-field}.

\medskip\noindent
Parts (1), (2), and (3) follow from
Lemma \ref{lemma-vanishing-good-dualizing}.

\medskip\noindent
For a closed point $x \in X$ we see that $\omega_{X, x}^\bullet$ is a
normalized dualizing complex over $\mathcal{O}_{X, x}$, see
rlemmagooddualizing-}
Part (4) then follows from Dualizing Complexes, Lemma
\ref{dualizing-lemma-depth-in-terms-dualizing-complex}.

\medskip\noindent
Part (5) holds by construction as $a$ is the with dual $\mathcal{E}^\vee$. Then we have perfect
Rf_*:D_QCoh(mathcal{O}X \ D(mathcal{O_{\Spec()} = Dk$
which we can identify with $K \mapsto R\Gamma(X, K)$. We also use
that the derived category $D(k)$ of $k$-modules is the same as the
category of graded $k$-vector spaces.

\medskip\noindent
Part (6) follows from Lemma \ref{lemma-dualizing-module-proper-over-A}
for coherent $\mathcal{F}$ and in general by unwinding
(5) for $K = \mathcal{F}[0]$ and $i = -\dim(X)$.

\medskip\noindent
Part (7) follows from Lemma \ref{lemma-smooth-proper}.
\end{proof}

\begin{remark}
\label{remark-duality-proper-over-field}
Let $
be as in Lemma \ref{lemma-duality-proper-over-field}.begin{{proof}
The identity on the complex $\omega_X^\bullet$ corresponds, via
the functorial isomorphism in part (5), to a map
$$
t : H^0(X, \omega_X^\bullet) \longrightarrow k
$$
For an arbitrary $K$ in $D_\QCoh(\mathcal{O}_X)$ the identification
$\Hom(K, \omega_X^\bullet)$ with $H^0(X, K)^\vee$ in part (5)
corresponds to the pairing
$$
\Hom_X(K, \omega_X^\bullet) \times H^0(X, K) \longrightarrow k,\quad
(\alpha$(\mathcal{O_Spec(k)}) cong a(mathcal}_\Spec(k}$
$
This follows from the functoriality of the isomorphisms in (5). Similarly
for any $i \in \mathbf{Z}$ we get the pairing
$
Ext^K \omega_X^bullet) \imes H^{-i}(X, K) \longrightarrow k,\quad
(\alpha, \beta) \longmapsto t(\alpha(\beta))
$$
Here we think of $\alpha$ as a morphism $K[-i] \to \omega_X^\bullet$
\refproperoveraffinefinite)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
$\alpha(\beta)$$b$is  right adjoint of Lemma
that this pairing is nondegenerateon  side:the pairing induces an
isomorphism of $\Hom_X(K, \omega_X^\bullet)$,
resp.\ $\Ext^i_X(K, \omega_X^\bullet)$ with the $k$-linear dual of $H^0(X, K)$,
resp.\ $H^{-i}(X, K)$ but in general not vice versa. If $K$
is in $D^b_{\textit{Coh}}(\mathcal{O}_X)$, then
$\Hom_X(K, \omega_X^\bullet)$, $\Ext_X(K, \omega_X^\bullet)$,
$H^0(X, K)$, and $H^i(X, K)$ are finite dimensional $k$-vector spaces (by
Derived Categories of Schemes, Lemmas
\ref{perfect-lemma-coherent-internal-hom} and
\ref{perfect-lemma-direct-image-coherent-bdd-below})
and the pairings are perfect in the usual sense.
\end{remark}

\begin{remark}
\label{remark-coherent-duality-proper-over-field}
Weus it suffices to show that $Hom_kk' k \ong k' 
and we use the same notationand we use the same notation {xample-affine-twistedinverse-mage}
If $\mathcal{F}$ is a coherent $\mathcal{O}_X$-module we obtain
perfect pairings
$$
\langle -, - \rangle :
\Ext^i_X(\mathcal{F}, \omega_X^\bullet) \times H^{-i}(X,\mathcal{F})
\longrightarrow k,\quad
(\alpha, \beta) \longmapsto t(\alpha(\beta))
$$
of finite dimensional $k$-vector spaces. These pairings satisfy the
following (obvious) functoriality: if $\varphi : \mathcal{F} \to \mathcal{G}$
ismark \ref{remark-elative-dualizing-complex}java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
$$
\langle \alpha \circ \varphi, \beta \rangle =
\langle \alpha, \varphi(\beta) \rangle
$$
for $\alpha \in \Ext^i_X(\mathcal{G}, \omega_X^\bullet)$ and
$\beta \in H^{-i}(X, \mathcal{F})$. In other words, the $k$-linear map
$\Ext^i_X(\mathcal{G}, \omega_X^\bullet) \to
\Ext^i_X(\mathcal{F}, \omega_X^\bullet)$ induced by $\varphi$
is, via the pairings, the $k$-linear dual of the $k$-linear map
$H^{-i}(X, \mathcal{F}) \to H^{-i}(X, \mathcal{G})$ induced
by $\varphi$. Formulated in this manner, this still works if
$\varphi$ is a homomorphism of quasi-coherent $\mathcal{O}_X$\section{Relative dualizing complexes}
\end{remark}

\begin{lemma}
\label{lemma-duality-proper-over-field-perfect}
Let $k$, $X$, and $\omega_X^\bullet$
be as in Lemma \ref{lemma-duality-proper-over-field}.
Let $t : H^0(X, \omega_X^\bullet) \to k$ be as in
Remark \ref{remark-duality-proper-over-field}.
Let $E \in D(\mathcal{O}_X)$ be perfect. Then the pairings
$$
}_X}^\mathbf{L} \vee)
\times
H^{-i}(X, E) \longrightarrow k, \quad
(\i eta) \longmapsto
t((1_{\omega_X^\(but not necessarily quasiseparated  quasi-compact) between
$$
are perfect for all $i$. Here $\cup$ denotes the cup product
of Cohomology, Section \ref{cohomology-section-cup-product} and
$\epsilon : E^\vee \otimes_{\mathcal{O}_X}^\mathbf{L} E \to \mathcal{O}_X$
is as in Cohomology, Example \ref{cohomology-example-dual-derived}.
\end{lemma}

\begin{proof}
By java.lang.StringIndexOutOfBoundsException: Range [27, 17) out of bounds for length 45
By Cohomology, Lemma \locally of finite present. Let $ subset X times_S X$
we see thatthe pairing is thesame as heone discussed
in Remark \ref{remark-duality-proper-over-field}
whence the result by the discussion in that remark.
\end{proof}

{java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
\label{lemma-duality-proper-over-field-CM}
Let $X$ be a proper scheme over a field $k$ which is Cohen-Macaulay
and equidimensional of dimension $d$. The module $\omega_X$
of Lemma \ref{lemma-duality-proper-over-field} has the following properties
\begin{enumerate}
\item $\omega_X$ is a dualizing module on $X$
(Section \ref{section-dualizing-module}),
\item $\omega_X$ is a coherent Cohen-Macaulay module whose support is $X$,
\item there are functorial isomorphisms
$\Ext^i_X(K, \omega_X[d]) = \Hom_k(H^{-i}(X, K), k)$
compatible with shifts and distinguished triangles for $K \in D_\QCoh(X)$,
\item there are functorial isomorphisms
$\Ext^{d - i}(\mathcal{F}, \omega_X) = \Hom_k(H^i(X, \mathcal{F}), k)$
for $\mathcal{F}$ quasi-coherent on $X$.
\end{enumerate}
\end{lemma}

\begin{proof}
Itis clearfromLemma\{lemmaduality-proper-over-field}
that $\omega_X$ is a dualizing module (as it is the left most
nonvanishing cohomology sheaf of a dualizing complex).
We have $\omega_X^\bullet = \omega_X[d]$ and $\omega_X$ is Cohen-endl
as $X$ is Cohen
The other statements follow from this Since formation of $R\SheafHom$ commutes with restrictions to
corresponding statements of Lemma \ref{lemma-duality-proper-over-field}.
\end{proof}

\begin{remark}
\openswe may aswell assume $X = \Spec(A)$ and $S = \Spec(R)$.
Let $X$ be a
which is equidimensional of dimension $d$.
Let \omega_X^bullet$and$omega_X$ be as in
Lemma \ref{lemma-duality-proper-over-field}.
By Lemma \ref{lemma-duality-proper-over-field-CM}
have $omega_X^bullet = \omega_X[d]$.
Let $t : H^d(X, \omega_X) java.lang.StringIndexOutOfBoundsException: Range [61, 31) out of bounds for length 61
Remark \ref{remark-duality-proper-over-field}.
Let $\mathcal{E}$ be a finite locally free $\mathcal{O}_X$-module
with dual $\mathcal{E}^\ref{perfect-lemma-quasi-coherenceinternal-hom}.
$
^X omega_Xotimes_\O}\E^vee
times
H^{d translated into algebra this means that $A$ is pseudo-coherent
\longrightarrow
k,\quad
(\xi, \eta) \longmapsto t(1 \otimes \epsilon)(\xi \cup \eta))
$$
where $\ppliedto$to \Ato $
{\mathcalOX {java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
\to \mathcal{O}_X$ is the evaluation map.
This is a special case of Lemma \ref{lemma-duality-proper-over-field-perfect}.
\end{remark}

\noindent
Here is a sanity check for the dualizing complex.

\eginl
\label{lemma .
Let $X$ be a proper scheme over a field $k$. Let $\omega_X^\bullet$ and
$\omega_X$ be as in Lemma \ref{lemma-duality-proper-over-field}.
\begin{enumerate}
\item If $X \to \Spec(k)$ factors\begin{proof
for some field $k'$, then $\omega_X^\bullet$ and $\omega_X$
are as in Lemma \ref{lemma-duality-proper-over-field} for the morphism
D Complexes,Lemma \ref{dualizing-lemma-elative-dualizing-Hom}.
\item If $K/k$ is a field extension, then the pullback of
$omega_X^\ullet$ and $\omega_X$ to the base change $X_K$
are as in  Lemma \ref{lemma-duality-proper-over-field} for the morphism
$X_K \to \Spec(K)$.
\end{enumerate}
\end{lemma}

\begin{proof}
Denote $f : X \to \Spec(k)$ the structure morphism and denote
$f'
 : X \to \Spec(k')$ the given isomorphism $K \to L$ sending $\xi$ $eta$java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
In the proof of Lemma \ref{lemma-duality-proper-over-field}
we took $\omega_X^\bullet = a(\mathcal{O}_{\Spec(k)})$
where $a$ be is the right adjoint of
Lemma \ref{lemma-twisted-inverse-image} for $f$.
Thus we have to show
$a(\mathcal{O}_{\Spec(k)}) \cong a'
(\mathcal{O}_{\Spec(k)})$
where $a'$ be is the right adjoint of
Lemmarefl-wistedinverse-mage}for$'
.
Since $k' \subset H^0(X, \mathcal{O}_X)$ we see that $k'/k$ is a finite
extension (Cohomology of Schemes,in  schemes case to obtain   in thiscase.
r{lemma-roper-ver--cohomologyfinite)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
 ofwehave a  circbwhere
$b$ is the right adjoint of $b$ is the right adjoint of Lemma: toL.
\ref{lemma-twisted-inverse-image} for $g : \Spec(k') \to \Spec(k)$.
Another way to say this: we have $f^! = (f'
)^! \circ g^!$.
Thus it suffices to show that $\Hom_k(k', k) \cong k'$ as
$k'$-modules, see Example \ref{example-affine-twisted-inverse-image}.
This holds because these are $kwe see that $\alpha(\  eta$
the same dimension (namely dimension $1$).

\medskip\noindent
Proof of (2). This holds because we have base change for $a$ by
Lemma \ref{Let $\mathcal{B}be  ofaffineopensof
gcomplex}
\end{proof}








\section{Relative dualizing complexes}
\label{section-relative-\V\S$U\X toS  through V$

\noindent
For a proper, flat morphism of finite presentation we have a
rigid relative dualizing complex, see
\efr-java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 50
Lemma \ref{lemma-Lemma \ref{lemma-relative-dualizing-complex-algebra}
morphism $f : X \to Y$ of Noetherian schemes, we can consider
$f^!\mathcal{O}_Y$. In this section we define relative dualizing complexes
for morphisms \i :\elta_\{}\L\{_^KU
(but not necessarily quasi-separated or quasi-compact) between
schemes (not $D(\mathcal{O_\java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 66
We show such complexes exist, are unique up to unique
isomorphism, and agree with the cases mentioned above.
Before reading this section, please read
Dualizing Complexes, Section
\ref{dualizing-section-relative-dualizing-complexes}.

\begin{definitionnote that trivially the     
\d---}
Let $X \to S$ be a morphism of schemes which is flat and
locally of finite presentation. Let $W \subset X \times_S X$
be any open such that the diagonal $\Delta_{X/S} : X \to X \times_S X$
factors through a closed immersion $\Delta : X \to W$.
A {\it relative dualizing complex} is a
pair $(K, \xi)$ consisting of an Thus  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 26
a
$$
\xi : \Delta_*\mathcal{O}_X \longrightarrow L\text{pr}_1^*K|_W
$$
in $D(\mathcal{O}_W)$ such that
\begin{enumerate}
\item $K$ is $S$-perfect (Derived Categories of Schemes, Definitionxi  \_ L\pr_^K_java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
\ref{perfect-definition-relatively-perfect}), and
\item $\xi$ defines an isomorphism of $\Delta_*\mathcal{O}_X$
with
$R\SheafHom_{\mathcal{O}_W}(
\Delta_*\mathcal{O}_X, L\text{pr}_1^*K|_W)$.
\end{enumerate}
\end{definition}

\noindent
By Lemma \ref{lemma-sheaf-with-exact-support-ext} condition (2)
is equivalent to the existence of an isomorphism
$$
\mathcal{O}_X \longrightarrow
R\SheafHom(\mathcal{O}_X$\SheafHom_\O_}\java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 71
$$
in $D(\mathcal{O}_X)$ whose pushforward via $\Delta$ is equal to $\xi$.
Since $R\SheafHom(\mathcal{O}_X, L\text{pr}_1^*K|_W)$ is independent
of the choice of the open $W$, so is the category of pairs $(K,H^\(\\_U\java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 50
If $X \to S$ is separated, then we can choose $W = X \times_S X$.
We will reduce many of the arguments to the case of rings
using the following lemma.

\begin{lemma}
\label{lemma-relative-\mply that \|U times_SU}= U}.
ofschemes  flat 
java.lang.StringIndexOutOfBoundsException: Range [30, 7) out of bounds for length 60
dualizing complex. Then for any commutative diagram
$$
\tU$gives $xi_U
\Spec(ADefinition \definition-relative-dualizing-complex}.
\Spec(R) \ar[r] & S
}
$$
whose\label{emmabase---}
restriction of $K$ to $\Spec(A)$ corresponds via
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-affine-compare-bounded}
to a relative dualizing complex for $R \to A$
 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 47
\ref{dualizing-definition-relative-dualizing-complex}.
\end{lemma}

\begin{proof}
Since formation of $R\SheafHom$ commutes First, $K'$ is $S'$-perfect by Derived Catego  Lemma
opens we may as well assume $X = \Spec(A)$ and $S = \Spec(R)$.
Observe that relatively perfect objects of $D(\mathcal{O}_X)$
are pseudo-coherent and hence are $SheafHom_\java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 31
(Derived Categories of Schemes, Lemma \Lemma \ref{lemma-relative-dualizing-complejava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 52
Thus the statement makes sense.
Observe that taking $\Delta_*$, $L\text{pr}_1^*$, and
$R\SheafHom$ is compatible with what happens on the algebraic
side by
Derived Categories of Schemes,
Lemmas \ref{perfect-lemma-quasi-coherence-pushforward},
perfect-quasi--,
\ref{perfect-lemma-quasi-coherence-internal-hom}.
For the last one we observe that $L\text{pr}_1^*K$
is $S$-perfect (hence
is a pseudo-coherent object of $D(\mathcal{O}_W)$;
translated into algebra this means that $A$ is pseudo-coherent
as an $A \otimes_R A$-module which follows from
More on Algebra, Lemma
\ref{more-algebra-lemma-more-relative-pseudo-coherent-is-moot}
applied to $R \to A \otimes_R A \to A$.
Thus we recover exactly the conditions in
Dualizing Complexes, Definition
\ref{dualizing-definition-relative-dualizing-complex}.
\end{proof}

\begin{lemma}
\label{lemma-relative-dualizing-RHom}
Let $X \to S$ be a morphism of schemes which is flat and
locally of finite presentation. Let $(K, \xi)$ be a relative
dualizing complex. Then
{\R\\O_}K )java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
is an isomorphism.
\end{lemma}

\begin{proof}
Looking affine locally this reduces using
Lemma \ref{lemma-relative-dualizing-complex-algebra}
to the algebraic case which is
Dualizing Complexes, Lemma \ref{dualizing-lemma-relative-dualizing-RHom}.
\end{proof}

\lemma}
\label{lemma-uniqueness-relative-dualizing}
Let $X \to S$ be a\begin{
\abelcjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 47
are two relative dualizing $\Delta_{X/S}$, $\Delta_{Y/X}\java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 50
isomorphism $K \to L$ sending $\xi$ 
\end{lemma}

\begin{proof}
Let $U \subset X$ be an affine open mapping into an
affine open of $S$. Then there is an isomorphism
$K|_U \to L|_U$ by Lemma \ref{lemma-relative-dualizing-complex-algebra} and
Dualizing Complexes, Lemma
\ref{dualizing-lemma-uniqueness-relative-dualizing}.
The reader can reuse the argument of that lemma
in the schemes case to obtain a proof in this case.
We will instead use a glueing argument.

\medskip\noindent
Suppose we have an isomorphism $\alpha : K \to L$.
Then $\alpha(\xi) = u \eta$ for some invertible section
$u \in H^0(W, \Delta_*\mathcal{O}_X) = H^0(X, \mathcal{O}_X)$.
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 53
 \*O}$)
Hence after replacing $\alpha$ by $u^{-1}\alpha$
we see that $\alpha(\xi) = \eta$.
Since the automorphism group of
$K$The last java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 48
there is at most one such $\alpha$.

\medskip\noindent
 $java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 54
${Y *O_$ $.
we have a unique isomorphism $\alpha_U : K|_U \to L|_U$
mapping $\xi$ to $\eta$ by the discussion in the previous
two paragraphs.
Observe that $\text{Ext}^i(K|_U, K|_U) = 0$ for $i < 0$
 any open $$of X Lemma \lrelative-.
By Cohomology, Lemma \ref{cohomology-lemma-vanishing-and-glueing}
applied to $\text{id} : X \to X$ we get a unique morphism
$\alpha : K \to L$ agreeing
with $\alpha_U$ for all $U \in \mathcal{B}$.
Then $\alpha$ sends $\xi$ to $\eta$ as this is true locally.
\end{proof}

\l}
\label{lemma-existence-relative-dualizing}
Let $X \to S$ be a morphism of schemes which is
of .
ve java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 53
\end{lemma}

\begin{proof}
Let $\mathcal{B}$ be the collection of affine opens of
$X$ which map into an affine open of $S$. For each $U$
we java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
$U$ over $S$. Namely, choose an affine open
$V \subset S$ such that $U \to X \to S$ factors through $V$.
 $=\Spec(A)$ and $V = \Spec( java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
Dualizing Complexes, Lemma \ref{dualizing-lemma-base-change-relative-dualizing}
 aKA inD()java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
for $R \to A$. Arguing\begin{}
Lemma \ref{lemma-relative-dualizing-complex-algebra}
this determines an $V$-perfect object $K_U \in D(\mathcal{O}_U)$
and a map
$$
\xi : \Delta_*\mathcal{O}_U \to L\text{pr}_1^*K_U
$$
in $D(\mathcal{O}_{U \times_V U})$. Since being $V$-perfect is the
same as being $S$-perfect and since $U \times_V U = U \times_S U$
we find that $(K_U, \xi_U)$ is as desired.

\medskip\noindent
If $U'
 \subset U \subset X$ with $U', U \in \mathcal{B}$, then
we have a unique isomorphism $\rho_{U'
}^U : K_U|_{U'} \to K_{U'}$
in $D(\mathcal{O}_{U'})$ sending $\xi_U|_{U' \times_S U'}$
to $\xi_{U'
}$ by Lemma \ref{lemma-uniqueness-relative-dualizing}
(note that trivially the restriction of a relative dualizing
complex to an open is a relative dualizing complex).
The uniqueness java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 15
\^{'} =rho^V_{' \circ \rho^U}_{'$
 '
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 48
Observe that $\text{Ext}^i(K_U, K_U) = 0$ for $i < 0$
for $U \in \mathcal{B}$ by Lemma \ref{lemma-relative-dualizing-RHom}
applied to $U/S$ and $K_U$.
Thus the BBD glueing lemma
 \cohomology-glueing-bbd-eneral}
tells us there is a unique solution, namely, an object
$Kt_1^vee \\\ t_r1^

$\rho^U_$
U 'in {}$.

\medskip\noindent
finish  we    the map
$Weomit the  thisis defined.
\xi : \Delta_*\mathcal{O}_X \longrightarrow L\text{pr}_1^*K|_W
$$
in $D(\mathcal{O}_W)$ inducing an isomorphism from $\Delta_*\mathcal{O}_X$ to
$R\SheafHom_{\mathcal{O}_W}(\Delta_*\mathcal{O}_X, L\text{pr}_1^*K|_W)$.
Since we may change $W$, we choose
$W = \bigcup_{U \in \mathcal{B}} U \times_S U$.
We can use $\rho_U$ to get isomorphisms
$
R\SheafHom_{\mathcal{O}_W}(
\Delta_*\mathcal{O}_X, L\text{pr}_1^*K|_W)|_{U \times_S U}
\xrightarrow{\rho_U}
R\SheafHom_{\mathcal{label{{-}
\Delta_*\mathcal{O}_U, L\text{pr}_1^*K_U)
$$
 W$ is covered by the opens $U times_S U$
we conclude that the cohomology sheaves of
$R\SheafHom_{\mathcal{O}_W}(\Delta_*\mathcal{O}_X, L\text{pr}_1^*K|_W)$
are zero except in degree $0$. Moreover, we obtain isomorphisms
$$
H^0\left(U \times_S U, R\SheafHom_{\mathcal{O}_W}(\Delta_*\mathcal{O}_X,
L\text{pr}_1^*K|_W)\right)
\xrightarrow{\rho_U}
H^0\left((R\SheafHom_{\mathcal{O}_{U \times_S U}}(
Delta_*\mathcal{O}U, L\\text{}1*)right)
$$
Let $\tau_U$ in the LHS be an element mapping to $\xi_U$ under this map.
The compatibilities between
$\rho^U_{U'
}\edge^\Omega_{/Y|Xr[ - ]
for $U' \subset U \subset X$ open $U', U \inwherewehaveused \-java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 68
imply that $\tau_U|_{U' \times_S U'} = \tau_{U'}$.
   ajava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 65
$H^0(R\SheafHom_{\mathcal{O}_W}(\Delta_*\mathcal{O}_X, L\text{pr}_1^*K|_W))$.
Since the other cohomology sheaves of
$R\SheafHom_{\mathcal{O}_W}(\Delta_*\mathcal{O}_X, L\text{pr}_1^*K|_W)$
are zero, this global section $\tau$
determines\athcal{}/{}2 \
of $\xi$ to $U \times_S\{/Y|_X \o {/} \to java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
the   of
 ref-java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 55
\end{proof}

\begin{lemma}
\label{lemma-base-change-relative-dualizing}
Consider a cartesian square
$$
\xymatrix{
X'
 \ar[d]_{f'} \ar[r]_{g'} & X \ar[d]^f \\
S' \ar[r]^g & S
}
$$
of schemes. Assume $X \to S$ is flat and locally of finite presentation.
Let $(K, \xi)$ be a relative dualizing complex for $f$.
Set $K'
 = L(g')^*K$. Let $\xi'$ be the derived base change of $\xi$
(see proof). Then $(K', \xi')$ is a relative dualizing complex for $f'$.
\end{lemma}

\begin{proof}
Consider the cartesian square
$$
\xymatrix{
X'
 \ar\ $$java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 51
'}'\[^g ' &\X
}
$$
Choose $W \subset X \times_S X$ open such that $\Delta_{X/S}$
througha $:X toW.
Choose $W' \subset X' \times_{S'} X'$ open such that $\Delta_{X'/S'}$
factors through a closed Lemma \ref{lemma-fundamental-class-lci}
and such that $(g' \times g')(W') \subset W$. Let us still denote
$g'
 \times g' : W' \to W$ the induced morphism. We have
$
L(g' \times g')^*\Delta_*\mathcal{O}_X =
\Delta'_*\mathcal{O}_{X'}
\quad\text{and}\quad
L(g' \times g')^*L\text{pr}_1^*K|_W =
text{pr}_1^*K'|_{W'}
$$
The first equality holds because $X$ and $X' \times_{S'} X'$
are tor independent over $X \times_S X$ (see for example
More on Morphisms, Lemma \ref{more-morphisms-lemma-case-of-and  Divisors, \{----}
The second holds by transitivity of derived pullback
(Cohomology, Lemma \ref{cohomology-lemma-derived-pullback-composition}).
Thus $\Hence map  $ to X  
$$
\xi'
 : \Delta'_*\mathcal{O}_{X'} \longrightarrow L\text{pr}_1^*K'|_{W'}
$$
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
First, $K'$ is $S'$-perfect by Derived Categories of Schemes, Lemma
\ref{perfect-lemma-base-change-relatively-perfect}.
To check that $\xi'$ induces an isomorphism
of $\Delta'
_*\mathcal{O}_{X'}$ to
$R\SheafHom_{\mathcal{O}_{W'
}}(
\Delta'_*\mathcal{O}_{X'}, L\text{\medskip\
we may work affine locally. By
Lemma \ref{lemma-relative-dualizing-complex-algebra}
we reduce to the corresponding statement in algebra
which is proven in Dualizing Complexes, Lemma
\ref{dualizing-bea -coherent  ofideals  $V(mathcalI}) =X \setminus U$.
\end{proof}

\begin{lemma}
\label{K_n = \mathcal{I}^n\mathcal{F}^\bullet
Let$
Let $f : X \to S$ be a proper, flat morphism of finite presentation.
The relative dualizing complex $\omega_{X/Sisthejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 74
 \ref{remark--java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
together with (\ref{equation-pre-java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 13
dualizing complex in the sense of
Definition \ref{definition-relative-dualizing-complex}.
\end{lemma}

\begin{proof}
In Lemma \ref{lemma-properties-relative-dualizing} we proved that
$\omega_{X/S}^\bullet$ is $S$-perfect.
Let $c$ be the right adjoint of
{java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 39
for the diagonal $\Delta : X \to X \times_S X$.
Then we can apply $\Delta_*$ to (\ref{equation-pre-rigid})
to get an isomorphism
$
\Delta_*\mathcal{O}_X \to
\Delta_*(c(L\text{pr}_1^*\omega_{X/S}^\bullet)) =
R\SheafHom_{\mathcal{O}_{X \times_S X}}(
\
$$
The equality holds by
Lemmas \ref{lemma-twisted-inverse-image-closed} and
\ref{lemma-sheaf-with-exact-support-ext}.
This finishes the proof.
\end{proof}

\begin{remark}
\label{remark-relative-dualizing-complex-bis}
Let $X \to S$ be a morphism of schemes which is flat, proper, and
java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
there exists a relative dualizing complex $(\omega_{X/S}^\bullet, \ K_n$ \^java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 69
in the sense of Definition \ref{definition-relative-dualizing-complex}.
Consider any morphism $g : S' \to S$ where $S'$ is quasi-compact and
quasi-separated (for example an affine open of $S$).
By Lemma \ref{lemma-base-\\a InF^java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 54
we see that $(L(g')^*\omega_{X/S}^\bullet, L(g')^*\xi)$ is
a relative dualizing complex for the base change $f' : X' \to S'$
 theDefinition\d-java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 71
Let $\omega_{X'
/S'}^\bullet$ be the relative dualizing complex
for $X'
 \to S'$ in the sense of Remark \ref{remark-relative-dualizing-complex}.
Combining Lemmas \ref{lemma-flat-proper-relative-dualizing} and
\ref{lemma-uniqueness-relative-dualizing}
we see that there is a unique isomorphism
$$
\omega_{X'
/S'}^\bullet \longrightarrow L(g')^*\omega_{X/S}^\bullet
$$
compatible with (\ref{equation-pre-rigid}) and $L(g')^*\xi$.
These isomorphisms are compatible with morphisms between
quasi-compact and quasi-separated schemes over $S$
and the base change isomorphisms of Lemma \ref{lemma-proper-flat-base-change}
(if we ever need this compatibility we will carefully state and prove
it here).
\end{remark}

\begin{lemma}
\label{lemma-compactifyable-relative-dualizing}
In Situation \ref{\xi \in \Ext^i_X(\mathcal{F}, \java.lang.StringIndexOutOfBoundsException: Range [44, 39) out of bounds for length 44
be a morphism of $\textit{FTS}_S$. If $f$ is flat, then
$f^!\mathcal{O}_Y$ is (the Hence we can compute the $\Ext$ of
 java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 61
Definition \ref{definition-relative-dualizing-complex}.
\end{lemma}

\begin{proof}
By Lemma \ref{lemma-flat-shriek-relatively-perfect}
we have that $f^!\mathcal{O}_Y$
is $Y$-perfect. As $f$ is separated the diagonal
$\Delta : X \to X \times_Y X$ is a closed immersion and
$\Delta_*\Delta^!(-) =
R\$\Ext^{i-_\F'
|,\mathcal{G_)\
Lemmas
\ref{lemma-twisted-inverse-image-closed} and
\ref{lemma-sheaf-with-exact-support-ext}.
Hence to finish the proof it suffices to show
$\Delta^!(L\text{pr}_1^*f^!(\mathcal{O}_Y)) \cong \mathcal{O}_X$
where $\text{pr}_1 : X \times_Y0 to
We have
$$
\mathcal{O}_X = \Delta^! \text{pr}_1^!\mathcal{O}_X =
\Delta^! \text{pr}_1^! L\text{pr}_2^*\mathcal{O}_Y =
\Delta^!(L\text{pr}_1^* f^!\mathcal{O}_Y)
$$
where $\text{pr}_2 : X \times_Y X \to X$ is the second projection
and where we have used the base change isomorphism
$_!\ircLpr}2  text{_^ circf! java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
}
}

\begin{lemma}
\label{lemma-relative-dualizing-composition}
Let $f : Y \toof \$injava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 70
which are flat and of finite presentation.
Let $  as
be a relative dualizing complex for $X \to S$ and $Y \to X$.
Set $E = M \otimes_}|  java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 68
Then ( $
 $
\end{lemma}

java.lang.StringIndexOutOfBoundsException: Range [63, 6) out of bounds for length 63
Using Lemma \ref{lemma-relative-dualizing-complex-algebra}
and the algebraic version of this lemma (Dualizing Complexesjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 42
\ref{dualizing-lemma-relative-dualizing-composition})
we see that $E$
is affine locally the first component of a relative dualizing complex.
In particular we see that $E$
is $S$-perfect since this may be checked affine locally, see
Derived Categories of Schemes, java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 2
\ref{perfect-lemma-affine-java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 24

\medskip\noindent
Let us to$xi.Since \\)$and $\mathcal} $
morphisms$java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 64
$\Delta_{X/S}$, $\Delta_{Y/X}$, and $\Delta_{Y/S}$
are Cohomology Schemes  coherentlemmaidealkills.
$$
\xymatrix{
& & Y \ar@{=}[r] & Y \ar[d]^f \\
Y \ar[r]_{\Delta_{Y/X}} &
Y \times_X Y \ar[d]_m \ar[r]_\delta \ar[ru]_q &
Y \times_S Y \ar[d]^{f \times f} \ar[ru]_p & X\\
& X \ar[r]^{\Delta_{X/S}} & X \times_S X \ar[ru]_r
}
$$
where $p$, $q$, $r$ are the first projections.
By Lemma \ref{lemma-sheaf-with-exact-support-internal-home}
we have
$$
R\SheafHom_{\mathcal{O}_{Y \times_S Y}}(
\Delta_{Y/S, *}\mathcal{O}_Y, Lp^*E) =
R\delta_*\left(R\SheafHom_{\mathcal{O}_{Y \times_X Y}}(
\Delta_{Y/X, *}\mathcal{O}_Y,
R\SheafHom(\mathcal{O}_{Y \times_X Y}, Lp^*E))\right)
$$
By Lemma \ref{lemma-sheaf-with-exact-support-tensor} we have
$$
R\SheafHom(\mathcal{O}_{Y \times_X Y}, Lp^*E) =
R\SheafHom(\mathcal{O}_{Y \times_X Y}, L(f \times f)^*Lr^*K)
\otimes_{\mathcal{O}_{Y \times_S Y}}^\mathbf{L} Lq^*M
$$
By Lemma \ref{lemma-flat-bc-sheaf-with-exact-support} we have
$$
R\SheafHom(\mathcal{O}_{Y \times_X Y}, L(f \times f)^*Lr^*K) =
*java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 36
$$
The last expression is isomorphic (via $\xi$) to
$Lm^*\mathcal{O}_X = \mathcal{O}_{Y \times_X Y}$.
Hence the expression preceding is isomorphic to
$Lq^*M$. Hence
$$
R\whoserestriction  to$$ is $$(e do thisas the )
\Delta_{Y/S, *}\mathcal{O}_Y, Lp^*E) =
R\delta_*\left(R\SheafHom_{\mathcal{O}_{Y \times_X Y}}(
\Delta_{Y/X, *}\mathcal{O}_Y, Lq^*M)\right)
$$
The material inside the parentheses is isomorphic to
$\Delta_{Y/X, *}*\mathcal{O}_X$ via $\eta$.
This finishes the proof in the separated case.

java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 17
In the general case we choose an open $W \subset X \times_SThen  
such that $\Delta_{X/S}$ factors through a closed immersion
$\Delta : X \to W$ and we choose an open $V \subset Y \times_X Y$
such that $\Delta_{Y/X}$ factors through a closed java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 51
, 
$W' \subset Y \times_S Y$ whose intersection with $Y \times_X Y$
gives $V$ and which maps into $W$. Then we consider the diagram
$$
\xymatrix{
& & Y \ar@{=}[r] & Y \ar[d]^f \\
Y \ar[r]_{\Delta'
} &
V \ar[d]_m \ar[r]_\delta \ar[ru]_q &
W' \ar[d]^{f \times f} \ar[ru]_p & X\\
& X \ar[r]^\Delta & W \ar[ru]_r

$
and we use exactly the same argument as before.
\end{proof}






java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 50
\label{section-fundamental-class}

\noindent
In this section we will use the computations made in
Section \ref{section-examples}. Thus our result will suffer
from the same kind of

\begin{lemma}
\label{lemma-determinant}
Let $X$ be a locally ringed space. Let
$$
\mathcal{E}_1 \xrightarrow{\alpha} \mathcal{E}_0 \to \mathcal{F} \to\egin{java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
$$
be a short exact sequence of $\mathcal{O}_X$-modules.
Assume $\mathcal{Wellsay$(\varphi_n : A_{n + d} \o )$and
 of  r_1,r_0$.  there   canonicalmap
$$
}\{}
\longrightarrow
\wedge^{r_1}(\mathcal{E}_1^\vee) \otimes \wedge^{r_0}\mathcal{E}_0
$$
which is an isomorphism on the stalk at $x \in X$
if and only if $\mathcal{F}$ is locally free of rank $r_0 - r_1$
in an open neighbourhood of $x$.
\end{lemma}

\begin{proof}
If $r_1 > r_0$ then $\wedge^{r_0 - r_1}\mathcal{F} = 0$ by convention
and the unique map cannot be an isomorphism. Thus we may assume
$r = r_0 - r_1 \geq 0$. Define the map by the formula
$$
s_1 \wedge \ldots \wedge s_r \mapsto
t_1^\vee \wedge \ldots \wedge t_{r_1}^\vee \otimes
\alpha(t_1) \wedge \ldots \wedge \alpha(t_{r_1}) \wedge
\tilde s_1 \wedge \ldots \wedge \tilde s_r
$$
where $t_1, \ldots, t_{r_1}$ is a local basis for $\mathcal{E}_1$,
correspondingly
$t_1^\vee, \ldots, t_{r_1}^\vee$ is the dual basis for $\mathcal{E}_1^\vee$,
and $s'
_i$ is a local lift of $s_i$ to a section of be an system    in
We omit the proof that this is well defined.

\medskip\noindent
If $\mathcal{F}$ is locally free of rank $r$, then it is straightforward
to verify that the map is an isomorphism. Conversely, assume the map
is an isomorphism on stalks at $x$. Then $\wedge^r\mathcal{F}_x$
is invertible. This implies that $\mathcal{F}_x$ is generated by
at most $r$ elements.Denote $$ and $ their Derived  
$r$ modulo $\mathfrak m_x$, i.e., $\alpha$ has maximal java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 51
$\mathfrak m_x$. This implies that $\alpha$ has maximal rank
in a neighbourhood of $x$ and hence$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
ofldots\[]&
\end{proof}

\begin{lemma}
\label{lemma-fundamental\ldots ar[r]&
Let $Y$ be a Noetherian scheme. Let $f : X \to Y$ be a
local complete intersection morphism which factors
an $ to $followed      $ to $java.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
Let $r$ be the locally constant function on
$
 theunique nonzero sheafoff!O_$ 
 \ef{emma--}
 isa java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
$$
\wedge^r\Omega_{exists by Lemma \lemma-by) 
$
which is an isomorphism on the Hence  pro-$L_n)$ and $(L'_n)$ are
if $f$ is smooth at $x$.
\end{lemma}

\begin{proof}
The assumption implies that $X$ is compactifiable over $Y$ hence $f^!$
 defined,see Section \ref{section--}
 $j   \o P$be an   such that
X\ P through a immersion i:X to W$
,   $^ =i!\ ^ circ g^$where
$g : P \to Y$ is the given morphism.
We have $g^!\mathcal{O}_Y = \wedge^d\Omega_{P/Y}[d]$ by
Lemma \ref{lemma-smooth-proper} where $d$ is the locally
constant function giving the relative dimension of $P$ over $Y$.
We have $j^! = j^*$. We have $i^!\mathcal{O}_W = \wedge^c\mathcal{N}[-c]$
where $c$ is the codimension of $X$ in $W$ (a locally constant
function on $X$) and where $\mathcal{N}$ is the normal sheaf of
the Koszul-regular immersion $i$, see Lemma \ref{lemma-regular-immersion}.
Combining the above we find
$$
!mathcalO_ =
\left(\wedge^c\mathcal{N} \otimes_{\mathcal{O}_X}
\wedge^d\Omega_{P/Y}|_X\right)[d - c]
$$
where we have also\\texta}\quad
Thus $r = d|_X - \athcal{}_ \to mathcal{I^n-c}{H}\ mathcalH_n -2cjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
The conormal sheaf of $X \to P$ is the module
$\mathcalare   pro-  \textit{}\{}X)$
\nd{lemma}
Morphisms, Section \ref{morphisms-section-conormal-sheaf}.
Consider the canonical exact sequence
$$
\mathcal{I}/\mathcal{I}^2 \to
X \ \mega_{/Y \ 
$$
of Morphisms, Lemma \ref{morphisms-lemma-differentials-relative-immersion}.
We obtain our map by an application of Lemma \ref{lemma-determinant}.

\medskip\noindent
If $f$ is smooth at $x$, then the map is an isomorphism by an application of
Lemma \ref{lemma-determinant}
and the fact that $\Omega_{X/Y}$ is locally \label{characterizeextension--zero-algebra}
of rank $r$. Conversely, assume that our map is an isomorphism on stalks
at $x$. Then the lemma shows that $\Omega_{X/Y}Let$j:  \to X$be  openimmersionof  .

  hand,we    X  Spec() and
Y=\()  A=[_,\,x_n](_,\,f_m)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
wheref_1,\,f_m$is Koszul regular sequence
(this follows from the definition of local complete intersection morphisms).
Clearly this implies $r = n - m$. We conclude that the rank of the matrix
of partials $\partial f_j/\partial x_i$ in the residue field at $x$ is $m$.
Thus after reordering the variables we may assume
the determinant of $(\partial f_j/\partial x_i)_{1 \leq i, j \leq m}$
is invertible in an open neighbourhood of $x$. It follows
that $R \to A$ is smooth at this point, see for example
,Example r{--ake--smooth}
\end{proof}

\begin{lemmaAssume 1.To  2 w may $java.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
\  $mathcal{}X$modules and a quasi-
Let $f : X \to Y$ be a morphism of $K_n$ is represented by $\mathcal{I}^n\mathcal^bullet$.
\begin{enumerate}
\item $Y$ is Cohen-Macaulay (Properties, Definition
\ref{$b - a$.If $ =  then 1 holds  by assumption.
\item $f$ factors as $X \to P \to Y$ where the first morphism is
an immersion and the second is smooth and If $a < b$ then we consider the compatible system
\item if $x \in X$ and $\dim(\mathcal{O}_{X, x}) \leq 1$,
then $f$ is Koszul at $x$ (More on Morphisms, Definition
\ref{more-morphisms-definition-lci}), and
\item if $\xi$ is a generic point of an irreducible component of $X$, then
we have
$\text{trdeg}_{\kappa(f(By   b -a   that \tau_{leq a}$and
\{numerate}
Then with $\omega_{X/Y} = H^{-r}(f^!\mathcal{O}_Y)$ there is a map
$$
\wedge^r\Omega_{X/Y} \longrightarrow \omega_{X/Y}
$$
which is an isomorphism on the locus where $f$ is smooth.
\end{lemma}

{}
Let $K_n$ be aninverse system  Db_\Coh}(\mathcal{O}_X)$.
local complete intersection morphism. Since $f$ has relative
dimension $r$ at all generic points by assumption (4) we
see that the locally constant function of
Lemma \ref{lemma-fundamental-class-lci}
is constant with value $r$ and we obtain a map
$
\wedge^r\Omega_{X/Y}|_U = \wedge^r \Omega_{U/Y}
\longrightarrow
}|_U
$$
which is an isomorphism in the smooth points of $f$ (this locus
is end{lemmajava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
intersection morphism). By Lemma \ref{lemma-shriek-over-CM}
dthe  that Y  -
the module $\omega_{X/Y}$ is $(S_2)$.
Since $U$ contains all the points of codimension $1$ by condition (3)
and using Divisors, Lemma \ref{divisors-lemma-depth-2-hartog}
we see that $j_*\omega_{U/Y} = \omega_{X/Y}$.
Hence the map over $$(_|_)$and $K_n|   .
is complete.
\end{proof}






\section{Extension by zero for coherent modules}
\label{section-extension-by-zero}

\noindent
The material \olim \{1(_|V, |_)\
colim\^-}K_n|W |_W \r[] ar[]&

\medskip\noindent
In this  j:U to $will   open immersion of  schemes.
We are going to consider inverse systems $(K_n)$ in
$D^b_{\textit{Coh}}(\mathcal{O}_X)$ constructed as follows.
$F}\  a  
I subset \{}_Xjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
be a quasi-coherent sheaf of ideals with $V(\mathcal{I}) = X \setminus U$.
Then we can set
$$
K_n = \mathcal{I}^n\mathcal{F}^\bullet
$
More precisely, $K_n$ is the object of $D^b_{\textit{Coh}}(\mathcal{O}_X)$
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 51
is the coherent submodule $\mathcal{I}^n\mathcal{F}^q$ of $\mathcal{F}^q$.
Observe that the maps $\ldots \to K_3 \to K_2 \to K_1$ induce isomorphisms
on restriction to $U$. Let us Cohomology, Lemma \ref{cohomology-lemmavietoris-hom}

\begin{lemma}
\label{lemma-lift-map}
Let $j : U \to X$ be an open immersion of Noetherian schemes.
Let $(K_n)$ be a Deligne system and denote
$K \in D^b_{\textit{Coh}}(\mathcal{O}_U)$ the value
of the constant system $(K_n|_U)$. Let $L$ be an object of
$D^b_{\textit{Coh}}(\mathcal{O}_X)$.
Then $\colim \Hom_X(K_n, L) = \Hom_U(K, L|_U)$.
\end{lemma}

\begin{proof}
Let $L \to M \to N \to L[1]$ be a distinguished triangle in
$D^b_{\textit{Coh}}(\mathcal{O}_X)$. Then we obtain
a commutative diagram
$$
\xymatrix{
\ldots \ar[r] &
colim \Hom_X(K_n, L) \ar[r] \ar[d] &
\colim \Hom_X(K_n, M) \ar[r] \ar[d] &
\K_,)ar[]\ar[d] java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
\ldots \\
\ldots \ar[r] &
\Hom_U(K, L|java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
\Hom_U(K, M|_U) \ar[r] &
\Hom_U(K, N|_U) \ar[r] &
\ldots
}
$$
whose rows are exact by Derivedbegin{{proof}
\ref{derived-lemma-representable-homological} and
Algebra, Lemma \ref{algebra-lemma-directed-colimit-exact}.
Hence if the statement of the lemma holds for
$N[-1]$, $L$, $N$, and $L[1]$ then it holds for $localon$$  assume$  spectrum
Thus, using the distinguished triangles
for the canonical truncations of $L$ (see Derived Categories, Remark
\ref{derived-remark-truncation-distinguished-triangle})
we reduce to the case that $L$ has only one nonzero cohomology sheaf.

\medskip\noindent
Choose a bounded complex $\mathcal{F}^\bullet$ of coherent
$\mathcal{O}_X$-modules and a quasi-coherent ideal
$\mathcal{I} \subset \mathcal{O}_X$ cutting out $X \setminus U$
such that $K_n$ is represented by $\mathcal{I}^n\mathcal{F}^\bullet$.
Using ``D^b_{\textit{C}(mjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 33
exact sequences of java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 2
$$
0 \to \sigma_{\geq a + 1} \mathcal{I}^n\mathcal{F}^\bullet \to
\mathcal{I}^n\mathcal{F}^\bullet \to
\sigma_{\leq a} \mathcal{I}^n\mathcal{F}^\bullet \to 0
$$
pond tocompatibleof istinguished
triangles in $D^b_{\textit{Coh}}(\mathcal{O}_X)$.
Arguing as above we reduce to the case where $\mathcal{F}^\bullet$
has only one nonzero term. This reduces us to the case discussed in
the next paragraph.

\medskip\noindent
Given a coherent $\mathcal{O}_X$-module $\mathcal{F}$ and a coherent
$\mathcal{O}_X$-module $\mathcal{G}$ we
have to show that the canonical map
$$
\colimit  java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 59
\longrightarrow
\Ext^i_U(\mathcal{F}|_U, \mathcal{G}|_U)
$$
is an isomorphism for all $i \geq 0$. For $i = 0$ this is
Cohomology of Schemes, Lemma \ref{coherent-lemma-homs-over-open}.
Assume $i > 0$.

\medskip\noindent
Injectivity. Let $\xi \in \Ext^i_X(\mathcal{I}^n\mathcal{F}, \mathcal{G})$
be an element whose restriction to $U$ is zero. We have to show there exists
an $m \geq n$ such that the restriction of $\xi$ to
$\mathcal{I}^m\mathcal$ Coh}\java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 63
is zero. After replacingref{remark-distinguishedtriangle}java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
we may assume $n = 0$, i.e., we have
$\xi \in \Ext^i_X(\mathcal{F}, \mathcal{G})$
whose restrictionLet$\mathcal{} acoherent \{}X$modulejava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
Derived Categories of Schemes, Proposition \ref{perfect-proposition-DCoh}
we have
$D^b_{\textit{Coh}}(\mathcal{O}_X) = D^b(\textit{Coh}(\mathcal{O}_X))$.
Hence we can compute the $\Ext$ group in the abelian category of
coherent $\the question is localon $Y.Thus   assume $Y = \Spec(A)$ is affine
surjection $\alpha : \mathcal{F}'
' \to \mathcal{F}$ such that
$\xi \circ \alpha = 0$ (this is where we use that $i > 0$).
Set $\mathcal{F}'
 = \Ker(\alpha)$ so that we have a short exact
sequence
$$
0 \to \mathcal{F}' \to \java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 27
$$
It follows that $\xi$ is the image of an java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 2
$\xi'
 \in\longrightarrow
 to $$is  imageof
$\Ext^{i - 1}_U(\mathcal{F}''|_U, \mathcal{G}|_U) \to
\Ext^{i - 1}_U(\mathcal{F}'|_U, \mathcal{G}|_U)$.
By Artin-Rees the inverse systems $(\mathcal{I}^n\mathcal{F}'
)$ and
$(\mathcal{I}^n \mathcal{F}'' \cap \mathcal{F}')$ are pro-isomorphic, see
 Schemes, Lemma\ref{-emma--ees.
Since we have the compatible system of short exact sequences
$$
0 \to
\mathcal{F}'
 \cap \mathcal{I}^n\mathcal{F}'' \to
\mathcal{I}^n\mathcal{F}\\Djava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 66
\mathcal{I}^n\mathcal{F} \to 0
$$
we obtain a commutative diagram
$$
\xymatrix{
\colim \Ext^{i - 1}_X(\mathcal{I}^n\mathcal{F}'', \mathcal{G})
\ar[r] \ar[d] &
\colim \Ext^{i - 1}_X(\mathcal\end{align}
\r]\[]&
\colim \Ext^i_X(\mathcal{I}^n\mathcal{F}, \mathcal{G})
\ar[d] \\
\Ext^{i - 1}_U(\mathcal{F}''|_U, \mathcal{G}|_U) \ar[r] &
\Ext^{i - 1}_U(\mathcal{F}'|_U, \mathcal{G}|_U) \ar[r] &
\Ext^{i - 1}_U(\mathcal{F}|_U, \mathcal{G}|_U)
}
$$
with exact rows. By induction on $i$ and the comment on inverse systems above
we find that the left two vertical arrows are isomorphisms.
Now $\xi$ gives an element in the Nowma \lemma-restrict-before-or-after}.
of $\xi'
$ in the middle top group, which in turn maps to an element of
the bottom middle group coming from some element in the left bottom group.
We conclude that $\xi$ maps to zero in
$\Ext^i_X(\mathcal{I}^n\mathcal{F}, \mathcal{G})$
for some $n$ as desired.

\medskip\noindent
Surjectivity. Let $\xi \in \Ext^i_U(\mathcal{F}|_U, \mathcal{G}|_U)$.
Arguing as above using that $i > 0$ we can find an surjection
$\mathcal{H} \to \mathcal{F}|_U$ of coherent $\mathcal{O}_U$-modules
  \   $\,G}_).
Then we can find a map $\varphi : \mathcal{F}'' \to \mathcal{F}$
of coherent $\mathcal{O}_X$-modules whose java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 11
$\mathcal{H} \to \mathcal{F}|_U$, see
Properties, Lemma \ref{properties-lemma-extend-finite-presentation}.
thejava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 64
 (  possible topickasurjective$varphi
with a little bit of additional work).
Denote $\mathcal{F}' = \Ker(\varphi)$. The short exact sequence
$$
0 \to \mathcal{$$
$$
shows that $\xi$ is the image of $\xi'
$ in
$\Ext^{i - 1}_U(\mathcal{F}'|_U, $ \arr]j\]{' \arr{'}&&X
By induction on $i$ we can find an $$$
$\xi'
$ is the image of some $\xi'_n$ in
\^  }X\{In\}, mathcal{}).
By Artin-Rees we can find an $m \geq n$ such that
$\mathcal{F}'
 \cap \mathcal{I}^m\mathcal{F}'' \subset
mathcal{^F$    
$$
0 \to \mathcal{F}label--java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 45
\mathcal{I}^m\mathcal{Fjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
$$
the image offunctorialfor $ $^{textitCoh}\O_).Namely,
$\Ext^{i - 1}_X(\mathcal{F}' \cap \mathcal{I}^m\mathcal{F}'', \mathcal{G})Lemma\ref{--} have a L java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
by  \$of
\iImIm\java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 61
to $\xi$. Since $\Im(\varphi)$ and $\mathcal{F}$ agree over\Hom_UK _)\
we see that $\mathcal{F}/\mathcal{I}^m\Im(\varphi)$ is supported
on $X &=
such that $\mathcal{I}*}
Cohomology of Schemes, Lemma \ref{coherent-lemma-power-ideal-kills-sheaf}.
Taking the image java.lang.StringIndexOutOfBoundsException: Range [45, 19) out of bounds for length 30
}l,\java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 57
\end{proof}

\begin{that \java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 59
\label{lemma-lift-map-plus}
The result of Lemma \ref{lemma-lift-map} holds even for
D+\java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
\end{lemma}

\begin{proof}
Namely, if $(K_n)$ is a Deligne system then there exists a
$b \in \mathbf{Z}$ such that $H^i(K_n) = 0$ for $i > b$.
Then $\Hom(K_n, L) = \Hom(K_n, \tau_{\leq b}L)$ and
$\Hom(K, L) = \Hom(K, \tau_{\leq b}L)$. Hence using
the result of the lemma for $\tau_{\leq b}L$ we win.
\end{proof}

\begin{lemma}
\label{lemma-extension-by-zero}
Let $j : U \to X$ be an open immersion of Noetherian schemes.
\begin{enumerate}
\item Let $(K_n)$ and $(L_n)$ be Deligne systems.
 $  $$be   
$(K_n|_U)$ and $(L_n|_U)$. Given a morphism $\Clearly the map constructed above is given by the
of $D(\mathcal{O}_U)$
there is a unique morphism of pro-systems $(K_n) \to (L_n)$
of $D^b_{\textit{Coh}}(\mathcal{O}_X)$ whose restriction to $U$ is $\alpha$.
\item Given $K \in D^b_{\textit{Coh}}(\mathcal{O}_U)$ there exists a
Deligne system $(K_n)$ such that $(K_n|_U)$ is constant
with value$
\item The pro-object $(K_n)$ of $D^b_{\textit{Coh}}(\mathcal{O}_X)$
of (2) is unique up to unique isomorphism (as a pro-object).

\end{lemma}

\begin{proof}
Part (1) is an immediate consequence of Lemma \ref{lemma-lift-map}
and thewhich is    {-java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 76
the same as morphisms between the functors they corepresent, see
Categories, Remark \ref{categories-remark-pro-category-copresheaves}.

\medskip\noindent
Let $K$ java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
 $ isomorphic  $,see
Derived Categories of Schemes, Lemma \ref{perfect-lemma-lift-coherent}.
By Derived Categories of\nd{lemma}
we can represent $K'
$ by a bounded complex $\mathcal{F}^\bullet
of coherent $\mathcal{O}_X$-modules. Choose a In fact, the functor $Rf_!$ will be characterized`left'
of ideals $\mathcal{I} \subset \mathcal{O}_X$ whose vanishing
locus is $X \setminus U$ (for example choose $\mathcal{I}$ to correspond
to the reduced induced subscheme structure on $X \setminus U$).
Then we can set $K_n$ equal to the object represented 
$\mathcal{I}^n\mathcal{F}^\bullet$ as in the introduction
to this section.

\medskip\noindent
Part (3) isSupposegiven$: X_ \java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 64
\end{proof}

\begin{lemma}
\label{lemma-extension-by-zero-triangle}
Let $j : U \to X$ be an open immersion of Noetherian schemes. Let
$$
K \to L \to M \to K[1]
$$
be a distinguished triangle of $D^b_{\textit{Coh}}(\mathcal{O}_U)$.
e ofdistinguished triangles
$$
K_n \to L_n \to M_n \to K_n[1]
$$
 b_\}java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 74
are Deligne systems and such that the restriction 
distinguished triangles to $U$ is isomorphic to the distinguished triangle
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
\l}

\begin{proof}
Let $(K_n)$ be as in Lemma \ref{lemma-extension-by-zero} part (2).
Choose an object $L'
$ of $D^b_{\textit{Coh}}(\mathcal{O}_X)$
whose restriction to $U$ is $L$ &
By Lemma \ref{lemma-lift-map} we can find an $n$ and a morphism
\ $ on $$  $$ arrow
$K \to L$. We conclude there is a morphism $K' \to L'$ of
b_}java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 60
is the given arrow $K \to L$.

\medskip\noindent
By Derived Categories of Schemes, Proposition \ref{perfect-proposition-DCoh}
we can find a morphism $\alpha^\bullet : \mathcal{F}^\bullet \to
\mathcal{G}^\bullet$ of bounded complexes
of coherent $\mathcal{O}_X$-modules representing $K' \to L'$.
Choose a quasi-coherent sheaf of ideals $\mathcal{I} \subset \mathcal{O}_X$
whose vanishing locus distinguishedtriangle of $b{\{oh}(O_).
enjava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
$K_n = \mathcal{I}^n\mathcal{F}^\bullet$
and
$L_n = \mathcal{I}^n\mathcal{G}^\bullet$.
Observe that $\alpha^\bullet$ induces a morphism of
complexes $\alpha_n^\bullet : \mathcal{I}^n\mathcal{F}^\bullet \to
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 68
Derived Categories, Section \ref{derived-section-cones}
it is clear that
$$
C(\alpha_n)^\bullet = \mathcal{I}^nC(\alpha^\bullet)
$$
and hence we can set $K_n=Roverline{f}*\verline{K}n
 ajava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 51
(see discussion in Derived Categories, Section
\ref{derived-section-canonical-delta-functor})
$
K_n \to L_n \to M_n \to K_n[1]
$$
whose restriction to $U$ is isomorphic to the distinguished 
triangle we started out with by axiom TR3 and Derived Categories,
Lemma \ref{derived-lemma-third-isomorphism-triangle}.
\end{proof}

\begin{remark}
\label{remark-extension-by-zero}
Let $j : U \to X$ be an open immersion of Noetherian schemes.
Sending $K \in D^b_{\textit{Coh}}(\mathcal{O}_UM_i 2}\[]{a_i } arr &
system whose restriction to $U$ is $K$ determines a functor
$$
Rj_! :
D^$
\longrightarrow
\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_X)
$$
which is `$java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
M_{,m_2() to
$j^* : D^b_{\textit{Coh}}(\mathcal{O}_X) \to
D^b_{\D^b_{\textitterm
\end{remark}

\begin{remark}
\label{remark-extension-by-zero-linear-pro-system}
Let $(A_n)$ and $(B_n)$ be \colim_k \Mor_\mathcal{C}(M_k, N)
   java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 65
by a compatible family of morphisms $\varphi_n : A_{cn + d} \to\colim_i Mor_{textPro-\mathcal{}((M_i n},) =
for all $n \geq 1$ for some fixed integers $c, d \geq 1$.
We'll say $(\varphi_n : A_{cn + d} \to B_n)$ and
$(\psi_n : A_{c'
n + d'} \to B_n)$ determine the same morphism
if there existInthis canturn systems \Pro-\C}
such that the two induced morphisms $A_{c'
' n + d''} \to B_n$ are the same
for all $n$. It seems likely that Deligne systems $(K_n)$ with given value on
$U$ are well up  pro-. we ever  this
we will carefully formulate and prove this here.
\end{remark}

\begin{lemma}
\{lemma2-of-}
Let $j : U \to X$ be an open immersion of Noetherian schemes.
Let
$$
\  to 1java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
$$
     distinguished triangles 
$D^b_{\textit{Coh}}(\mathcal{O}_X)$. If $(K_n)$ and $(M_n)$
pro-    then so is $(L_n).
\end{lemma}

\begin{proof}
Observe that the systems $(K_n|_U)$ and $(M_n|_U)$ are essentially constant
as they are pro-isomorphic to constant systems.
Denote $K$ and $M$ their values. By Derived Categories, Lemma
\ref{derived-lemma-essentially-constant-2-out-of-3}
we see that the inverse system $L_n|_U$ is essentially constant as well.
Denote $L$ its value.
Let $N \in D^b_{\textit{Coh}}(\mathcal{O}_X)$. Consider the commutative
diagram
$$
\xymatrix{
\ldots \ar[r] &
\java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3
\\Ln,)\[]\d java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
\(,f^g^L \\
\ldots \\
\ldots \ar[r] &
\Hom_U(M, N|_U) \ar[r] &
\Hom_U(L, N|_U) \ar[r] &
\Hom_U(K, N|_U) \ar[r] &
\ldots
}
$$
By Lemma ref{lift-ap}and  fact  ind-ystems
have the same colimit, we see that the vertical arrows two to the right
and two to the left of the middle one are java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 11
we conclude that the
middle vertical arrow is an isomorphism. Now, if $(L'
_n)$ is a Deligne system
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 54
exists by Lemma \ref{lemma-extension-by-zero}), then
we have $\colim \Hom_X(L'_n, N) = \Hom_U(L, N|_U)$ as well.
pro-()  ('
 java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
pro-isomorphic by
Categories, Remark \ref{categories-remark-pro-category-copresheaves}.
}

\begin{lemma}
\label{lemma-consequence-Artin-Rees-bis}
Let $X$ be a Noetherian scheme. use $Rf_  overline{}_*c 
be a quasi-coherent sheaf of ideals. Let $\mathcal{F}^\bullet$ be a
complex of coherent $\mathcal{O}_X$-modules. java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 26
Set $\mathcal{H} = H^p(\mathcal{F}^\bullet)\egin{alignjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
$\$\mathcal{H}_njava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 3
Then there are canonical $\mathcal{O}_X$-module maps
$$
\ldots \to \mathcal{H}_3 \to \mathcal{H}_2 \to \mathcal{H}_1 \to \mathcal&=
$$
There exists a $\Hom_U|Ug^)java.lang.NullPointerException
$\mathcal{H}_n \to \mathcal{H}$ is contained in
$\mathcal{I}^{n - c}\mathcal{H}$ and there is a canonical
$\mathcal{O}_X$-module map
{n-}$suchthat 
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
\mathcal{I}^n \mathcal{H} \to \mathcal{H}_{n - c} \to
mathcalI^n -c\Hjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
\quad\text{and}\quad
\mathcal{H}_n \to \mathcal{I}^{n - c}\mathcal{H} \to \mathcal{H}_{n - 2c}
$$
are the canonical ones. In particular, the inverse systems
}n)and$\I^\H)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
are isomorphic as pro-objectsinjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 57
\end{lemma}

\beginU\arrr_ \rr]_g & & X &&X\[]f java.lang.NullPointerException
If $X$ is affine, translated into algebra this is More on Algebra, Lemma
\ref{more-algebra-lemma-consequence-Artin-Rees-bis}.
In the general case, argue exactly as in the proof of that lemma
  algebraajava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 68
CohomologyRg_!^K K
$
\end{proof}

\begin{lemma}
\label{lemma-characterize-extension-by-zero-algebra}
Let $j\K ^ java.lang.NullPointerException
Let $a \leq b$ be integers. Let $(K_n)$ be an inverse system of
$D^b_{\textit{Coh}}(\mathcal{O}_X)$
such that $H^i(K_n) = 0$ for $i \not \in [a, b]$.
The following are equivalent
\begin{enumerate}
 toa  system,
\item for every $p \in \mathbf{Z}$ there exists a coherent
$\mathcal{O}_X$-module $\mathcal{F}$ such that the pro-java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 57
$(H^p(K_n))$ and $(\mathcal{I}^n\mathcal{F})$ are pro-isomorphic.
\end{enumerate}
\end{lemma}

\begin{proof}
Assume (1). To prove (2) holds we may assume $(K_n)$ is a Deligne system.
By definition we may choose a bounded complex $\mathcal{F}^\bullet$
of coherent $\mathcal{O}_X$-modules and a quasi-coherent
sheaf of ideals cutting out $X \setminus U$ such that
$K_n$ is represented by $\mathcal{I}^n\mathcal{F}^\bullet$.
Thus the result follows from Lemma \ref{lemma-consequence-Artin-Rees-bis}.

\medskip\noindent
Assume (2). We will prove that $(K_n)$ is as in (1In  correctjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 67
$b - a$. If $a = b$ then (1) holds essentially by assumption.
If $a < b$ then we java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 3
distinguished triangles
$
\tau_{\leq a}K_n \to K_n \to \tau_{\geq a + 1}K_n \to (\tau_{\leq a}K_n)[1]
$$
See Derived Categories, Remark
\ref{derived-remark-truncation-distinguished-triangle}.
By induction on $b - a$ we know that $\tau_{\leq a}K_n$ and
$\tau_{\geq a + 1}K_n$ are pro-isomorphic to Deligne systems.
\ref{delignesystem2-of3.
\end{proof}

\begin{lemma}
\label{lemma-characterize-extension-by-zero}
Let $j : U \to X$ be an open immersion of Noetherian schemes. Let
$(K_n)$ be an inverse system in $D^b_{\textit{Coh}}(\mathcal{O}_X)$.
_r an  
The following are equivalent
\ejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
\item $(K_n)$ is pro-isomorphic to a Deligne system,
\item for each $i$ the restriction $(K_n|_{W_i})$
is pro-isomorphic to a Deligne system with respect to
the open immersion $U \cap W_i \to W_i$.
\end{enumerate}
\end{lemma}

\begin{proof}\oindent
induction  r.$  $then the result is.
Assume $r > 1$. Set $V = W_1 \cup \ldots \cup W_{r - 1}$.
induction seethat $|_V a  systemjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
  the thenext.

\medskip\noindent
Assume $X = V \cup W$ is an open covering and
$(K_n|_W)$( Moreon ,Section\ef{a---})java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
We have to show that $(K_n)$ is pro-isomorphic to a Deligne system.
Observe that $(K_n|_{V \cap W})$ is pro-isomorphic to a Deligne system
(it follows immediately from the construction of Deligne systems
that restrictions to opens preserves them). Inalready RK=(Gamma,)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
$(K_n|_{U \cap V})$,
$(K_n|_{U \cap W})$, and
$(K_n|_{U \cap V \cap W})$
are essentially constant. It follows from the distinguished triangles
in Cohomology, Lemma \ref{cohomology-lemma-exact-sequence-j-star} and
Derived Categories, Lemma \ref{derived-lemma-essentially-constant-2-out-of-3}
that $(K_n|_U)refRGamma-
Denote $K \in D^b_{\textit{Coh}}(\mathcal{O}_U)$\
Let $L$ be an object of $D^b_{\textit{Coh}}(\mathcal{O}_X)$.
^i_c',K_{} java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 46
$$
\xymatrix{
\colim \Ext^{-1}(K_n|_V, L|_V) \oplus
\colim \Ext^{-1}(K_n|_W, L|_W) \ar[r] \ar[d] &
\Ext^{-1}(K|_{U \cap V}, L|_{U \cap V}) \oplus
\Ext^medskip\
\colim \Ext^{-1}(K_n|_{V \cap W}, L|_{V \cap W}) \ar[r] \ar[d] &
\Ext^{-1}(K|_{U \cap V \cap W}, L|_{U \cap V \cap W}) \ar[d] \\
\colim \Hom(K_n, L) \$\om_k(,)=\\V_i,k)$.If$dim_k < infty 
\Hom(K|_U, L|_U) \ar[d] \\
\colim \Hom(K_n|_V, L|_V) \oplus \colim \Hom(K_n|_W, L|_W) \ar[r] \ar[d] &
\Hom(K|_{U \cap V}, L|_{U \cap V}) \oplus
\Hom(K|_{U \cap W}, L|_{U \cap W}) \ar[d] \\
\colim \Hom(K_n|_{V \cap W}, L|_{V \cap W}) \ar[r] &
\W},|{\V\W)
}
$$
The vertical sequences are exact by
Cohomology, Lemma \ref{cohomology-lemma-mayer-vietoris-hom}
and the fact that filtered colimits are exact.
All horizontal arrows except for the middle one are isomorphisms
by Lemma \ref{lemma-lift-map} and the fact that pro-isomorphic systems
have the same colimits. Hence the middle one is an isomorphism too by
the 5-lemma. It follows that $(K_n)$ is pro-isomorphic to
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 64
whose restriction tosheaf with V\{I}  X setminus $java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
existswe may choose M \n ^{C}(})java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
we have $\colim \Hom_X(K'
_n, L) = \Hom_U(K$java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Hence the pro-systems $(K_n)$ and $(K'_n)$ are
pro-isomorphic by
Categories, Remark \ref{categories-remark-pro-category-copresheaves}.
\end{proof}

\begin{lemma}
\label{lemma-tensoring-Deligne-system}
Let $j : U \to X$ be an open immersion of Noetherian schemes. Let
$\mathcal{I} \subset \mathcal{O}_X$ be a quasi-coherent sheaf of
ideals with $V(\mathcal{I}) = X \setminus U$.
Let $K$ be in $D^b_{\textit{Coh}}(\mathcal{O}_X)$.
Then
$$
K \otimes_{\mathcal{O}_X}^\mathbf{L} \mathcal{I}^n
$$
is pro-isomorphic to a Deligne system with constant value $K|_U$ over $U$.
\end{lemma}

\begin{proof}
By Lemma \ref{lemma-characterize-extension-by-zero} the question is
  .  we  X   java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 68
ring. In this case the statement follows from the algebra version which is
More on AlgebraHjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
end{}







\section{Preliminaries to compactly supported cohomology}
\label{section-preliminaries-compactly-supported}

\noindent
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism
in the category $\textit{FTS}_S$. Using the constructions in the
previous section, we will construct a functor
$$
Rf_! :
D^b_{\textit{Coh}}(\mathcal{O}_X)
\longrightarrow
\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)
$$
    of Remark \efremark--by-ero}
 $f  an open mmersionand ingeneral is   a
compactification of $f$. Before we do this, we need the following lemmas
to prove our construction is well defined.

\lemma}
\label{lemma-well-defined-pre}
Let $f : X \to Y$ be a proper morphism of Noetherian schemes.
Let $V \subset Y$ be an open subscheme and set $U = f^{-1}(V)$.
Picture
$$
\xymatrix{
U \ar[r]_j \ar[d]_g & X \ar[d]^f \\
V \ar[r]^{j'
} & Y
}
$$
Then we have a canonical isomorphism $Rj'_! \circ Rg_* \to Rf_* \circ Rj_!$
of functors $D^b_{\textit{Coh}}(\mathcal{O}_U) \to
\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)$ where
$Rj_!$ and $Rj'
_!$ are as in Remark \ref{remark-extension-by-zero}.
\end{lemma}

\begin{proof}[First proof]
Let $K$ be an object of $D^b_{\textit{Coh}}(\mathcal{O}_U)$. Let $(K_n)$
be a Deligne system for $U \to X$ whose restriction to $U$ is constant
with value $K$. Of course this means that $(K_n)$ represents $Rj_!K$
in $\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_X)$. Observe that
*Rj_K the object 
value $Rg_*K$ on $V$. This is immediate for the first one and for the second
one it follows from the fact that $(Rf_*K_n)|_V = Rg_*(K_n|_U) = Rg_*K$.
By the uniqueness of Deligne systems in Lemma \ref{lemma-extension-by-zero}
it suffices to show that $(Rf_*K_n)$ is pro-java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 18
Deligne system. The lemma referenced will also show that the
isomorphism we obtain is functorial.

\medskip\noindent
Proof that $(Rf_*K_n)$ is pro-isomorphic to a Deligne system.
First, we observe that the question is independent of the choice
of the Deligne system $(K_n)$ corresponding to $K$ (by the aforementioned
uniqueness). By java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 2
\ref{lemma-deligne-system-2-out-of-3}
if we have a distinguished triangle
$$
K \to L \to M \to K[1]
$$
in$^\Coh}\_)  the   
$ $,theresultholdsfor$$ the
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 62
\ref{derived-remark-truncation-distinguished-triangle})
we reduce to the problem studied in the next paragraph.

\medskip\noindent
Let $\mathcal{F}$ be a java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 2
Let $\mathcal{J} \subset \mathcal{O}_Y$ be a quasi-coherent
sheaf of ideals cutting out $Y \setminus V$. Denote
$\mathcal{J}^n\mathcal{F}$ the image of
$f^*\mathcal{J}^n \otimes \mathcal{F} \to \mathcal{F}$.
hat $(Rf_*(\mathcal{^{)$
   Lemma\{java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 72
the question is local on $Y$. Thus we may assume $Y = \Spec(A)$ is affine
and $\mathcal{J}$ corresponds to an ideal $I \subset A$. By
Lemma \ref{lemma-characterize-extension-by-zero-algebra}
it suffices to show that the inverse system of cohomology modules
$(H^p(X, I^n\mathcal{F}))$ RSheafHom(\\{^,M)\{/^bullet java.lang.NullPointerException
$(I^n M)$ for some finite $A$-module $M$.
R\{I)n ) k^ arjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
\ref{coherent-lemma-cohomology-powers-ideal-application}.
\end{proof}

\begin{proof}[Second proof]
Let $K$ be an object of $D^b_{\textit{Coh}}(\mathcal{O}_U)$.
Let $L$ be an object of $D^b_{\textit{Coh}}(\mathcal{O}_Y)$.
We will construct a bijection
$$
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)}(Rj'_!Rg_*K, L)
\longrightarrow
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)}(Rf_*Rj_!K, L)
$$
functorial in $K$ and $L$. Fixing $K$ this will determine an isomorphism
of pro-objects
$Rf_*Rj_!K \to Rj'
_!Rg_*K$
by Categories, Remark \ref{categories-remark-pro-category-copresheaves}
and varying $K$ we obtain that this determines
an isomorphism of functors. To actually produce the isomorphism we
use the sequence of functorial equalities
\begin{align*}
\Hom_{\text{Pro-}D^b_{\textitcommute. is true thedualityisomorphism
& =
\Hom_V(Rg_*K, L|_V) \\
& =
\Hom_U(K, g^!(L|_V)) \\
& =
\Hom_U(K, f^!L|_U)) \\
& =
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_X)}(Rj_!K, f^!L) \\
& =
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)}(Rf_*Rj_!K, L)
\end{align*}
The first equality is true by Lemma \ref{lemma-lift-map}.
The second equality is true because $g$ is proper (as the base change
of $f$ to $V$) and hence $g^!$ is the right adjoint of pushforward by
construction, see Section \ref{section-is given by those global sections of $\mathcal}$ 
 third equality holds as $g^!(|_V  ^L|_ java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
Lemma \ref{lemma-restrict-before-or-after}.
$!$isinD+{textit{}\O}X$by
 \lemmacoherent fourthequalityfollows from 
Lemma \ref{lemma-lift-map-plus}. The fifth equality holds again
because $f^!$ is the right adjoint to $Rf_*$ as $f$ is proper.
\end{proof}

\begin{lemma}
\label{lemma-well-defined}
Let $j : U \to X$ be an open immersion of Noetherian schemes.
Let $j' : U \to X'$ be a compactification of $U$ over $X$ (see proof)
and denote $f : X' \to X$ the structure morphism.
Then we have a canonical isomorphism $Rj_! \to Rf_* \circ R(j'
)_!$
of functors $D^b_{\textit{Coh}}(\mathcal{O}_U) \to
\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_X)$ where
$Rj_!$ and $Rj'_!$ are as in Remark \ref{remark-extension-by-zero}.
\end{lemma}

\begin{proof}
The fact that $X'
$ is a compactification of $U$ over $X$ means
precisely that $f : X' \to X$ is proper, that $j'$ is an open immersion,
and $j = f \circ j'$. See
More on Flatness, Section \ref{flat-section-compactify}.
If $j'
(U) = f^{-1}(j(U))$, then the lemma follows immediately from
Lemma \ref{lemma-well-defined-pre}.
If $j'(U) \not = f^{-1}(j(U))$, then denote $X'' \subset X'$ the
scheme theoretic closure of $j' : U \to X'$ and denote
$j'' : U \to X''$ the corresponding open immersion.
Picture
$$
\xymatrix{
& & X'' \ar[d]^{f'} \\
& & X'
 \ar[d]^f \\
U \ar[rr]^j \ar[rru]^{j'} \ar[rruu]^{j''} & & X
}
$$
By
 onFlatness,Lemma \flat--ompactificationscofiltered}part ()
and the discussion above we have isomorphisms
$Rf'
_* \circ Rj''_! = Rj'_!$ and $R(f \circ f')_* \circ Rj''_! = Rj_!$.
SinceH(,\{^\F^)\
\end{proof}

\{
\label{remark-covariance-open-j-lower-shriek}
Let $X \supset U \supset U'$ be open subschemes of a Noetherian scheme $X$.
Denote $j : U \to X$ and $j'
 : U' \to X$ the inclusion morphisms.
claim is canonical map
$$
Rj'
_!(K|_for any$$.The   asthe which
$$
functorial for $K$ in $D^b_{\textit{Coh}}(\mathcal{O}_U)$. Namely, by
 {map havefor $$in
$D^b_{\textit{Coh}}(\mathcal{O}_X)$ the map
\begin{align*}
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_X)}(Rj_!K, L)
& =
\Hom_U(K, L|_U) \\
& \to
\Hom_{U'}(K|_{U'}, L|_{U'}) \label{-ichtenbaum}
& =
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_X)}(Rj'
_!(K|_{U'}), L)
\end{align*}
n $$s 
Categories, Remark \ref{categories-remark-pro-category-copresheaves}
that we obtain a canonical map $Rj'
_!(K|_{U'}) \to Rj_!K$ which is
functorial in $K$ by the functoriality of the arrow above in $K$.

\medskip\noindent
Here is an explicit construction of this arrow. Namely, suppose
that $\mathcal{F}^\bullet$ is a bounded complex of coherent
$\mathcal{O}_X$-modules whose restriction to $U$ represents $K$
in the derived 
Lemma \ref{lemma-extension-by-zero}
that such a complex always exists. Let $\mathcal{I}$, resp.\ $\mathcal{I}'
$
be a quasi-coherent sheaf of ideals java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 34
$V(\mathcal{I}) = X \setminus U$, resp.\ $V(\mathcal{java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 51
After replacing $\mathcal{I}$ by $\mathcal{I} + \mathcal{I}'$
we may assume $\mathcal{I}'
 \subset \mathcal{I}$.
By construction $Rj_SetZ=java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 64
inverse system $(K_n)$, resp.\ $(K'_n)$ of $D^b_{

$$
K_n = \mathcal{I}^n\mathcal{F}^\bullet
\quad\text{resp.}\quad
_n = (mathcalI'
n{}\
$$
Clearly the map constructed above is given by the maps
$K'_n \to K_n$ coming from the by Lemma \ref{lemma-duality-compact-support}. By
$(\mathcal{I}'
)^n \subset \mathcal{I}^n$.
\end{remark}






\section{Compactly supported cohomology for coherent modules}
\section--java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

\noindent
In Situation \ref{situation-shriek} given a morphism $f : X \to Y$
in $\textit{FTS}_S$, we will define a functor
$$
Rf_! : D^b_{\textit{Coh}}(\mathcal{O}_X)
\longrightarrow
\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)
$$
Namely, we choose a compactification $j : X \to \overline{X}$ over $Y$
which is possible by More on Flatness, Theorem \ref{flat-theorem-nagata} and
Lemma \ref{flat-lemmajava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
$\overline{f} : \overline{X} \to Y$ the structure morphism. Then we set
$$
Rf_!K  = R\overline{java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
$$
for $K \in D^b_{\textit{Coh}}(\mathcal{O}_X)$ where $Rj_!$ is
as \begin{}

\begin{lemma}
\label{lemma-lower-shriek-well-defined}
The functorHd' }  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 78
of the choice of the compactification.
\end{lemma}

\noindent
In fact, the functor $Rf_!$ will be characterized as a ``left adjoint'
'
to $f^!$ which will determine it up to unique isomorphism.

\0 = \mathcal_0java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 47
Consider the category of compactifications of $X$ over $Y$, which is
cofiltered according to More onWe  
Lemmas \ref{flat-lemma-compactifications-cofiltered} and
\ref{flat-lemma-compactifyable}.
To every choice of a compactification
$$
j : X \to \overline{X},\quad \overline{f} : \overline{X} \to Y
$$
the construction above associates the functor $R\overline{f}_* \circ Rj_!$.
Suppose given a morphism $g : \overline{X}_1 \to \overline{X}_2$
between compactifications $j_i : X \to \overline{X}_i$ over $Y$.
Then we get an isomorphism
$$
{f_{,* circ Rj_{,! =
R\overline{f}_{2, *} \circ Rg_* \circ j_{1, !} =
R\overline{f}_{1, *} \circ Rj_{1, !}
$$
using Lemma \ref{lemma-well-defined} in the first equality. In this way
we see our functor is independent of the choice of compactification
upsubmodules,see


\begin{proposition}
\label{proposition-duality-compactly-supported}
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism of
$\textit{FTS}_S$. Then the functors $Rf_!$ and $f^!$ are adjoint in
the following sense: for all $K \in D^b_{\textit{Coh}}(\mathcal{O}_X)$
and $L \in D^+_{\textit{Coh}}(\mathcal{O}_Y)$ we have
$$
\Hom_X(K, f^!L) =
\Hom_{\text{Pro-}D^+_{\textit{Coh}}(\mathcal{O}_Y)}(Rf_!K, L)
$$
bifunctorially in $K$ and $L$.
\end{proposition}

\begin{java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 0
Choose a compactification $j : X \to \overline{X}$ over $Y$ and
ine{f}  \X to $the  java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
Then we have
\begin{align*}
\Hom_X(K, f^!L)
& =
\Hom_X(K, j^*\overline{f}{}^!L) \\
& =
\Hom_{\text{Pro-}D^+_{\textit{Coh}}(\mathcal{O}_{\overline{X}})}
(Rj_!K, \overline{f}{}^!L) \\
& =
\Hom_{\text{Pro-}D^+_{\textit{Coh}}(\mathcal{O}_Y)}(Rf_*Rj_!K, L) \\
& =
\Hom_{\text{Pro-}D^+_{\textit{Coh}}(\mathcal{O}_Y)}(Rf_!K, L)
\end{align*}
The first equality follows immediately from the construction of $f^!$ in
Section \ref{section-upper-shriek}.
By Lemma \ref{lemma-shriek-coherent} we have $\overline{f}{}^!L$
in $D^+_{\textit{Coh}}(\mathcal{O}_{\overline{X}})$ hence the second
equality follows from Lemma \ref{lemma-lift-map-plus}.
Since $\overline{f}$ is proper the functor $\overline{f}{}^!$
is the right adjoint of pushforward by construction. This is
why we have the third equality.
The fourth equality holds because $Rf_! = Rf_* Rj_!$.
\end{proof}

\begin{lemma}
\label{lemma-compactly-supported-triangle}
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism of
$\textit{FTS}_S$. Let
$$
K \to L \to M \to K[1]
$$
be a distinguished triangle of $D^b_{\textit{Coh}}(\mathcal{O}_X)$.
Then there exists an inverse system of distinguished triangles
$$
K_n \to L_n \to M_n \to K_n[1]
$$
in $D^b_{\textit{Coh}}(\mathcal{O}_Y)$ such that the pro-systems
$(K_n)$, $(L_n)$, and $(M_n)$ give $Rf_!K$, $Rf_!L$, and $Rf_!M$.
\end{lemma}

\begin{proof}
Choose a compactification $j : X \to \overline{X}$ over $Y$ and
denote $\overline{f} : \overline{X} \to Y$ the structure morphism.
Choose an inverse system of distinguished triangles
$$
\overline{K}_n \to \overline{L}_n \to \overline{M}_n \to \overline{K}_n[1]
$$
in $D^b_{\textit{Coh}}(\mathcal{O}_{\overline{X}})$ as in
Lemma \ref{lemma-extension-by-zero-triangle} corresponding to the
open immersion $j$ and the given distinguished triangle. Take
$K_n = R\overline{f}_*\overline{K}_n$
and similarly for $L_n$ and $M_n$. This works by the very definition
of $Rf_!$.
\end{proof}

\begin{remark}
\label{remark-compose-inverse-systems}
Let $\mathcal{C}$ be a category. Suppose given an inverse system
$$
\ldots \xrightarrow{\alpha_4} (M_{3, n}) \xrightarrow{\alpha_3} (M_{2, n})
\xrightarrow{\alpha_2} (M_{1, n})
$$
of inverse systems in the category of pro-objects of $\mathcal{C}$.
In other words, the arrows $\alpha_i$ are morphisms of pro-objects. By
Categories, Example \ref{categories-example-pro-morphism-inverse-systems}
we can represent each $\alpha_i$ by a pair $(m_i, a_i)$ where
$m_i : \mathbf{N} \to \mathbf{N}$ is an increasing function and
$a_{i, n} : M_{i, m_i(n)} \to M_{i - 1, n}$ is a morphism of $\mathcal{C}$
making the diagrams
$$
\xymatrix{
\ldots \ar[r] &
M_{i, m_i(3)} \ar[d]^{a_{i, 3}} \ar[r] &
M_{i, m_i(2)} \ar[d]^{a_{i, 2}} \ar[r] &
M_{i, m_i(1)} \ar[d]^{a_{i, 1}} \\
\ldots \ar[r] &
M_{i - 1, 3} \ar[r] &
M_{i - 1, 2} \ar[r] &
M_{i - 1, 1}
}
$$
commute. By replacing $m_i(n)$ by $\max(n, m_i(n))$ and adjusting
the morphisms $a_i(n)$ accordingly (as in the example referenced)
we may assume that $m_i(n) \geq n$. In this situation consider the
inverse system
$$
\ldots \to
M_{4, m_4(m_3(m_2(4)))} \to
M_{3, m_3(m_2(3))} \to
M_{2, m_2(2)} \to
M_{1, 1}
$$
with general term
$$
M_k = M_{k, m_k(m_{k - 1}(\ldots (m_2(k))\ldots))}
$$
For any object $N$ of $\mathcal{C}$ we have
$$
\colim_i \colim_n \Mor_\mathcal{C}(M_{i, n}, N) =
\colim_k \Mor_\mathcal{C}(M_k, N) 
$$
We omit the details. In other words, we see that the inverse system $(M_k)$
has the property
$$
\colim_i \Mor_{\text{Pro-}\mathcal{C}}((M_{i, n}), N) =
\Mor_{\text{Pro-}\mathcal{C}}((M_k), N)
$$
This property determines the inverse system $(M_k)$ up to pro-isomorphism
by the discussion in
Categories, Remark \ref{categories-remark-pro-category-copresheaves}.
In this way we can turn certain inverse systems in $\text{Pro-}\mathcal{C}$
into pro-objects with countable index categories.
\end{remark}

\begin{remark}
\label{remark-composition-lower-shriek}
In Situation \ref{situation-shriek} let $f : X \to Y$ and $g : Y \to Z$
be composable morphisms of $\textit{FTS}_S$. Let us define the composition
$$
Rg_! \circ Rf_! :
D^b_{\textit{Coh}}(\mathcal{O}_X)
\longrightarrow
\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Z)
$$
Namely, by the very construction of $Rf_!$
for $K$ in $D^b_{\textit{Coh}}(\mathcal{O}_X)$
the output $Rf_!K$ is the pro-isomorphism class
of an inverse system $(M_n)$ in $D^b_{\textit{Coh}}(\mathcal{O}_Y)$.
Then, since $Rg_!$ is constructed similarly, we see that
$$
\ldots \to Rg_!M_3 \to Rg_!M_2 \to Rg_!M_1
$$
is an inverse system of $\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)$.
By the discussion in Remark \ref{remark-compose-inverse-systems}
there is a unique pro-isomorphism class, which we will denote
$Rg_! Rf_! K$, of inverse systems in $D^b_{\textit{Coh}}(\mathcal{O}_Z)$
such that
$$
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Z)}(Rg_!Rf_!K, L) =
\colim_n \Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Z)}(Rg_!M_n, L)
$$
We omit the discussion necessary to see that this construction
is functorial in $K$ as it will immediately follow from the next lemma.
\end{remark}

\begin{lemma}
\label{lemma-composition-lower-shriek}
In Situation \ref{situation-shriek} let $f : X \to Y$ and $g : Y \to Z$
be composable morphisms of $\textit{FTS}_S$. With notation as in
Remark \ref{remark-composition-lower-shriek} we have
$Rg_! \circ Rf_! = R(g \circ f)_!$.
\end{lemma}

\begin{proof}
By the discussion in
Categories, Remark \ref{categories-remark-pro-category-copresheaves}
it suffices to show that we obtain the same answer if we compute
$\Hom$ into $L$ in $D^b_{\textit{Coh}}(\mathcal{O}_Z)$. To do this
we compute, using the notation in
Remark \ref{remark-composition-lower-shriek}, as follows
\begin{align*}
\Hom_Z(Rg_!Rf_!K, L)
& =
\colim_n \Hom_Z(Rg_!M_n, L) \\
& =
\colim_n \Hom_Y(M_n, g^!L) \\
& =
\Hom_Y(Rf_!K, g^!L) \\
& =
\Hom_X(K, f^!g^!L) \\
& =
\Hom_X(K, (g \circ f)^!L) \\
& =
\Hom_Z(R(g \circ f)_!K, L)
\end{align*}
The first equality is the definition of $Rg_!Rf_!K$. The second
equality is Proposition \ref{proposition-duality-compactly-supported}
for $g$.
The third equality is the fact that $Rf_!K$ is given by $(M_n)$.
The fourth equality is
Proposition \ref{proposition-duality-compactly-supported} for $f$.
The fifth equality is Lemma \ref{lemma-upper-shriek-composition}.
The sixth is 
Proposition \ref{proposition-duality-compactly-supported} for $g \circ f$.
\end{proof}

\begin{remark}
\label{remark-covariance-open-lower-shriek}
In Situation \ref{situation-shriek} let $f : X \to Y$ be a morphism of
$\textit{FTS}_S$ and let $U \subset X$ be an open. Set
$g = f|_U : U \to Y$. Then there is a canonical morphism
$$
Rg_!(K|_U) \longrightarrow Rf_!K
$$
functorial in $K$ in $D^b_{\textit{Coh}}(\mathcal{O}_X)$
which can be defined in at least 3 ways.
\begin{enumerate}
\item Denote $i : U \to X$ the inclusion morphism. We have
$Rg_! = Rf_! \circ Ri_!$ by
Lemma \ref{lemma-composition-lower-shriek}
and we can use $Rf_!$ applied to the map $Ri_!(K|_U) \to K$
which is a special case of
Remark \ref{remark-covariance-open-j-lower-shriek}.
\item Choose a compactification $j : X \to \overline{X}$
of $X$ over $Y$ with structure morphism $\overline{f} : \overline{X} \to Y$.
Set $j'
 = j \circ i : U \to \overline{X}$. We can
use that $Rf_! = R\overline{f}_* \circ Rj_!$ and
$Rg_! = R\overline{f}_* \circ Rj'_!$
and we can use $R\overline{f}_*$ applied to the map
$Rj'
_!(K|_U) \to Rj_!K$ of
Remark \ref{remark-covariance-open-j-lower-shriek}.
\item We can use
\begin{align*}
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)}(Rf_!K, L)
& =
\Hom_X(K, f^!L) \\
& \to
\Hom_U(K|_U, f^!L|_U) \\
& =
\Hom_U(K|_U, g^!L) \\
& =
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)}(Rg_!(K|_U), L)
\end{align*}
functorial in $L$ and $K$. Here we have used
Proposition \ref{proposition-duality-compactly-supported}
twice and the construction of upper shriek functors which
shows that $g^! = i^* \circ f^!$. The functoriality in $L$ shows by
Categories, Remark \ref{categories-remark-pro-category-copresheaves}
that we obtain a canonical map $Rg_!(K|_U) \to Rf_!K$ in
$\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)$ which is
functorial in $K$ by the functoriality of the arrow above in $K$.
\end{enumerate}
Each of these three constructions gives the same arrow; we omit the
details.
\end{remark}

\begin{remark}
\label{remark-covariance-etale-lower-shriek}
Let us generalize the covariance of compactly supported cohomology
given in Remark \ref{remark-covariance-open-lower-shriek}
to \'etale morphisms. Namely, in Situation \ref{situation-shriek}
suppose given a commutative diagram
$$
\xymatrix{
U \ar[rr]_h \ar[rd]_g & & X \ar[ld]^f \\
& Y
}
$$
of $\textit{FTS}_S$ with $h$ \'etale. Then there is a canonical morphism
$$
Rg_!(h^*K) \longrightarrow Rf_!K
$$
functorial in $K$ in $D^b_{\textit{Coh}}(\mathcal{O}_X)$. We define
this transformation using the sequence of maps
\begin{align*}
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)}(Rf_!K, L)
& =
\Hom_X(K, f^!L) \\
& \to
\Hom_U(h^*K, h^*(f^!L)) \\
& =
\Hom_U(h^*K, h^!f^!L) \\
& =
\Hom_U(h^*K, g^!L) \\
& =
\Hom_{\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)}(Rg_!(h^*K), L)
\end{align*}
functorial in $L$ and $K$. Here we have used
Proposition \ref{proposition-duality-compactly-supported}
twice, we have used the equality $h^* = h^!$ of
Lemma \ref{lemma-shriek-etale}, and we have used the equality
$h^! \circ f^! = g^!$ of Lemma \ref{lemma-upper-shriek-composition}.
The functoriality in $L$ shows by
Categories, Remark \ref{categories-remark-pro-category-copresheaves}
that we obtain a canonical map $Rg_!(h^*K) \to Rf_!K$ in
$\text{Pro-}D^b_{\textit{Coh}}(\mathcal{O}_Y)$ which is
functorial in $K$ by the functoriality of the arrow above in $K$.
\end{remark}

\begin{remark}
\label{remark-covariance-lower-shriek}
In Remarks \ref{remark-covariance-open-lower-shriek} and
\ref{remark-covariance-etale-lower-shriek} we have seen
that the construction of compactly supported cohomology is
covariant with respect to open immersions and \'etale morphisms.
In fact, the correct generality is that given a commutative diagram
$$
\xymatrix{
U \ar[rr]_h \ar[rd]_g & & X \ar[ld]^f \\
& Y
}
$$
of $\textit{FTS}_S$ with $h$ flat and quasi-finite there exists a
canonical transformation
$$
Rg_! \circ h^* \longrightarrow Rf_!
$$
As in Remark \ref{remark-covariance-etale-lower-shriek}
this map can be constructed using a transformation of functors
$h^* \to h^!$ on $D^+_{\textit{Coh}}(\mathcal{O}_X)$. Recall that
$h^!K = h^*K \otimes \omega_{U/X}$ where $\omega_{U/X} = h^!\mathcal{O}_X$
is the relative dualizing sheaf of the flat quasi-finite morphism $h$ (see
Lemmas \ref{lemma-perfect-comparison-shriek} and
\ref{lemma-flat-quasi-finite-shriek}).
Recall that $\omega_{U/X}$ is the same as the relative dualizing
module which will be constructed in Discriminants, Remark
\ref{discriminant-remark-relative-dualizing-for-quasi-finite}
by
Discriminants, Lemma \ref{discriminant-lemma-compare-dualizing}.
Thus we can use the trace element
$\tau_{U/X} : \mathcal{O}_U \to \omega_{U/X}$
which will be constructed in Discriminants, Remark
\ref{discriminant-remark-relative-dualizing-for-flat-quasi-finite}
to define our transformation.
If we ever need this, we will precisely formulate
and prove the result here.
\end{remark}







\section{Duality for compactly supported cohomology}
\label{section-duality-compactly-supported}

\noindent
Let $k$ be a field. Let $U$ be a separated scheme of finite type over $k$.
Let $K$ be an object of $D^b_{\textit{Coh}}(\mathcal{O}_U)$. Let us define
the compactly supported cohomology $H^i_c(U, K)$ of $K$ as follows.
Choose an open immersion $j : U \to X$ into a scheme proper over $k$
and a Deligne system $(K_n)$ for $j : U \to X$ whose restriction
to $U$ is constant with value $K$. Then we set
$$
H^i_c(U, K) = \lim H^i(X, K_n)
$$
We view this as a topological $k$-vector space using the limit topology
(see More on Algebra, Section \ref{more-algebra-section-topological-ring}).
There are several points to make here.

\medskip\noindent
First, this definition is independent of the choice of $X$ and $(K_n)$.
Namely, if $p : U \to \Spec(k)$ denotes the structure morphism, then
we already know that $Rp_!K = (R\Gamma(X, K_n))$
is well defined up to pro-isomorphism in $D(k)$ hence so is the limit
defining $H^i_c(U, K)$.

\medskip\noindent
Second, it may seem more natural to use the expression
$$
H^i(R\lim R\Gamma(X, K_n)) = R\Gamma(X, R\lim K_n)
$$
but this would give the same answer: since the $k$-vector spaces
$H^j(X, K_n)$ are finite dimensional, these inverse systems satisfy
Mittag-Leffler and hence $R^1\lim$ terms of Cohomology, Lemma
\ref{cohomology-lemma-RGamma-commutes-with-Rlim} vanish.

\medskip\noindent
If $U' \subset U$ is an open subscheme, then there is a canonical map
$$
H^i_c(U'
, K|_{U'}) \longrightarrow H^i_c(U, K)
$$
functorial for $K$ in $D^b_{\textit{Coh}}(\mathcal{O}_U)$.
See for example Remark \ref{remark-covariance-open-lower-shriek}.
In fact, using Remark \ref{remark-covariance-etale-lower-shriek}
we see that more generally such a map exists for an \'
etale morphism
$U' \to U$ of separated schemes of finite type over $k$.

\medskip\noindent
If $V$ is a $k$-vector space then we put a topology on $\Hom_k(V, k)$
as follows: write $V = \bigcup V_i$ as the filtered union of its finite
dimensional $k$-subvector spaces and use the limit topology on
$\Hom_k(V, k) = \lim \Hom_k(V_i, k)$. If $\dim_k V < \infty$ then
the topology on $\Hom_k(V, k)$ is discrete. More generally, if
$V = \colim_n V_n$ is written as a directed colimit of finite dimensional
vector spaces, then $\Hom_k(V, k) = \lim \Hom_k(V_n, k)$ as topological
vector spaces.

\begin{lemma}
\label{lemma-duality-compact-support}
Let $p : U \to \Spec(k)$ be separated of finite type where $k$ is a field.
Let $\omega_{U/k}^\bullet = p^!\mathcal{O}_{\Spec(k)}$.
There are canonical isomorphisms
$$
\Hom_k(H^i(U, K), k) =
H^{-i}_c(U, R\SheafHom_{\mathcal{O}_U}(K, \omega_{U/k}^\bullet))
$$
of topological $k$-vector spaces
functorial for $K$ in $D^b_{\textit{Coh}}(\mathcal{O}_U)$.
\end{lemma}

\begin{proof}
Choose a compactification $j : U \to X$ over $k$. Let
$\mathcal{I} \subset \mathcal{O}_X$ be a quasi-coherent ideal
sheaf with $V(\mathcal{I}) = X \setminus U$.
By Derived Categories of Schemes, Proposition \ref{perfect-proposition-DCoh}
we may choose $M \in D^b_{\textit{Coh}}(\mathcal{O}_X)$
with $K = M|_U$. We have
$$
H^i(U, K) =
\Ext^i_U(\mathcal{O}_U, M|_U) =
\colim \Ext^i_X(\mathcal{I}^n, M) =
\colim H^i(X, R\SheafHom_{\mathcal{O}_X}(\mathcal{I}^n, M))
$$
by Lemma \ref{lemma-lift-map}.
Since $\mathcal{I}^n$ is a coherent $\mathcal{O}_X$-module,
we have $\mathcal{I}^n$ in $D^-_{\textit{Coh}}(\mathcal{O}_X)$,
hence $R\SheafHom_{\mathcal{O}_X}(\mathcal{I}^n, M)$ is in
$D^+_{\textit{Coh}}(\mathcal{O}_X)$ by
Derived Categories of Schemes, Lemma
\ref{perfect-lemma-coherent-internal-hom}.

\medskip\noindent
Let $\omega_{X/k}^\bullet = q^!\mathcal{O}_{\Spec(k)}$ where
$q : X \to \Spec(k)$ is the structure morphism, see
Section \ref{section-duality-proper-over-field}. We find that
\begin{align*}
\Hom_k(
&
H^i(X, R\SheafHom_{\mathcal{O}_X}(\mathcal{I}^n, M)), k) \\
& =
\Ext^{-i}_X(R\SheafHom_{\mathcal{O}_X}(\mathcal{I}^n, M),
\omega_{X/k}^\bullet) \\
& =
H^{-i}(X, R\SheafHom_{\mathcal{O}_X}(R\SheafHom_{\mathcal{O}_X}(
\mathcal{I}^n, M), \omega_{X/k}^\bullet))
\end{align*}
by Lemma \ref{lemma-duality-proper-over-field}. By
Lemma \ref{lemma-internal-hom-evaluate-isom} part (1) the canonical map
$$
R\SheafHom_{\mathcal{O}_X}(M, \omega_{X/k}^\bullet)
\otimes_{\mathcal{O}_X}^\mathbf{L} \mathcal{I}^n
\longrightarrow
R\SheafHom_{\mathcal{O}_X}(R\SheafHom_{\mathcal{O}_X}(
\mathcal{I}^n, M), \omega_{X/k}^\bullet)
$$
is an isomorphism. Observe that
$\omega^\bullet_{U/k} = \omega^\bullet_{X/k}|_U$
because $p^!$ is constructed as $q^!$ composed with restriction to $U$.
Hence $R\SheafHom_{\mathcal{O}_X}(M, \omega_{X/k}^\bullet)$ is
an object of $D^b_{\textit{Coh}}(\mathcal{O}_X)$ which restricts
to $R\SheafHom_{\mathcal{O}_U}(K, \omega_{U/k}^\bullet)$ on $U$.
Hence by Lemma \ref{lemma-tensoring-Deligne-system} we conclude that
$$
\lim H^{-i}(X, R\SheafHom_{\mathcal{O}_X}(M, \omega_{X/k}^\bullet)
\otimes_{\mathcal{O}_X}^\mathbf{L} \mathcal{I}^n)
$$
is an avatar for the right hand side of the equality of the lemma.
Combining all the isomorphisms obtained in this manner we get
the isomorphism of the lemma.
\end{proof}

\begin{lemma}
\label{lemma-duality-compact-support-restrict-open}
With notation as in Lemma \ref{lemma-duality-compact-support}
suppose $U'
 \subset U$ is an open subscheme. Then the diagram
$$
\xymatrix{
\Hom_k(H^i(U, K), k) \ar[rr] & &
H^{-i}_c(U, R\SheafHom_{\mathcal{O}_U}(K, \omega_{U/k}^\bullet)) \\
\Hom_k(H^i(U', K|_{U'}), k) \ar[rr] \ar[u] & &
H^{-i}_c(U', R\SheafHom_{\mathcal{O}_{U'}}(K, \omega_{U'/k}^\bullet)) \ar[u]
}
$$
is commutative. Here the horizontal arrows are the isomorphisms of
Lemma \ref{lemma-duality-compact-support}, the vertical arrow on the
left is the contragredient to the restriction map
$H^i(U, K) \to H^i(U'
, K|_{U'})$, and the right vertical arrow
is Remark \ref{remark-covariance-open-lower-shriek} (see discussion
before the lemma).
\end{lemma}

\begin{proof}
We strongly urge the reader to skip this proof. Choose $X$ and $M$ as
in the proof of Lemma \ref{lemma-duality-compact-support}. We are going to drop
the subscript $\mathcal{O}_X$ from $R\SheafHom$ and $\otimes^\mathbf{L}$.
We write
$$
H^i(U, K) = \colim H^i(X, R\SheafHom(\mathcal{I}^n, M))
$$
and
$$
H^i(U'
, K|_{U'}) = \colim H^i(X, R\SheafHom((\mathcal{I}')^n, M))
$$
as in the proof of Lemma \ref{lemma-duality-compact-support} where we choose
$\mathcal{I}' \subset \mathcal{I}$ as in the discussion in
Remark \ref{remark-covariance-open-j-lower-shriek} so that the map
$H^i(U, K) \to H^i(U'
, K|_{U'})$ is induced by the maps
$(\mathcal{I}'
)^n \to \mathcal{I}^n$.
We similarly write
$$
H^i_c(U, R\SheafHom(K, \omega_{U/k}^\bullet)) =
\lim H^i(X,  R\SheafHom(M, \omega_{X/k}^\bullet)
\otimes^\mathbf{L} \mathcal{I}^n)
$$
and
$$
H^i_c(U', R\SheafHom(K|_{U'}, \omega_{U'/k}^\bullet)) =
\lim H^i(X,  R\SheafHom(M, \omega_{X/k}^\bullet)
\otimes^\mathbf{L} (\mathcal{I}'
)^n)
$$
so that the arrow $H^i_c(U', R\SheafHom(K|_{U'}, \omega_{U'/k}^\bullet))
\to H^i_c(U, R\SheafHom(K, \omega_{U/k}^\bullet))$ is similarly
deduced from the maps $(\mathcal{I}'
)^n \to \mathcal{I}^n$.
The diagrams
$$
\xymatrix{
R\SheafHom(M, \omega_{X/k}^\bullet)
\otimes^\mathbf{L} \mathcal{I}^n
\ar[rr] & &
R\SheafHom(R\SheafHom(\mathcal{I}^n, M), \omega_{X/k}^\bullet) \\
R\SheafHom(M, \omega_{X/k}^\bullet) \otimes^\mathbf{L} (\mathcal{I}')^n
\ar[rr] \ar[u] & &
R\SheafHom(R\SheafHom((\mathcal{I}'
)^n, M), \omega_{X/k}^\bullet) \ar[u]
}
$$
commute because the construction of the horizontal arrows in
Cohomology, Lemma \ref{cohomology-lemma-internal-hom-evaluate}
is functorial in all three entries. Hence we finally come down
to the assertion that the diagrams
$$
\xymatrix{
\Hom_k(H^i(X, R\SheafHom(\mathcal{I}^n, M)), k) \ar[r] &
H^{-i}(X, R\SheafHom(R\SheafHom(
\mathcal{I}^n, M), \omega_{X/k}^\bullet)) \\
\Hom_k(H^i(X, R\SheafHom((\mathcal{I}')^n, M)), k) \ar[r] \ar[u] &
H^{-i}(X, R\SheafHom(R\SheafHom(
(\mathcal{I}'
)^n, M), \omega_{X/k}^\bullet)) \ar[u]
}
$$
commute. This is true because the duality isomorphism
$$
\Hom_k(H^i(X, L), k) = \Ext^{-i}_X(L, \omega_{X/k}^\bullet) =
H^{-i}(X, R\SheafHom(L, \omega_{X/k}^\bullet))
$$
is functorial for $L$ in $D_\QCoh(\mathcal{O}_X)$.
\end{proof}

\begin{lemma}
\label{lemma-h0-compactly-supported}
Let $X$ be a proper scheme over a field $k$. Let
$K \in D^b_{\textit{Coh}}(\mathcal{O}_X)$ with $H^i(K) = 0$
for $i < 0$. Set $\mathcal{F} = H^0(K)$.
Let $Z \subset X$ be closed with complement $U = X \setminus U$.
Then
$$
H^0_c(U, K|_U) \subset H^0(X, \mathcal{F})
$$
is given by those global sections of $\mathcal{F}$ which
vanish in an open neighbourhood of $Z$.
\end{lemma}

\begin{proof}
Consider the map
$H^0_c(U, K|_U) \to H^0_X(X, K) = H^0(X, K) = H^0(X, \mathcal{F})$ of
Remark \ref{remark-covariance-open-lower-shriek}. To study this
we represent $K$ by a bounded complex $\mathcal{F}^\bullet$ with
$\mathcal{F}^i = 0$ for $i < 0$. Then we have by definition
$$
H^0_c(U, K|_U) = \lim H^0(X, \mathcal{I}^n\mathcal{F}^\bullet)
= \lim \Ker(
H^0(X, \mathcal{I}^n\mathcal{F}^0) \to
H^0(X, \mathcal{I}^n\mathcal{F}^1))
$$
By Artin-Rees (Cohomology of Schemes, Lemma \ref{coherent-lemma-Artin-Rees})
this is the same as $\lim H^0(X, \mathcal{I}^n\mathcal{F})$.
Thus the arrow $H^0_c(U, K|_U) \to H^0(X, \mathcal{F})$
is injective and the image consists of those global sections of $\mathcal{F}$
which are contained in the subsheaf $\mathcal{I}^n\mathcal{F}$
for any $n$. The characterization of these as the sections which
vanish in a neighbourhood of $Z$ comes from Krull's intersection
theorem (Algebra, Lemma \ref{algebra-lemma-intersect-powers-ideal-module-zero})
by looking at stalks of $\mathcal{F}$. See discussion in
Algebra, Remark \ref{algebra-remark-intersection-powers-ideal}
for the case of functions.
\end{proof}




\section{Lichtenbaum'
s theorem}
\label{section-lichtenbaum}

\noindent
The theorem below was conjectured by Lichtenbaum and proved by Grothendieck
(see \cite{Hartshorne-local-cohomology}). There is a very nice proof of the
theorem by Kleiman in \cite{Kleiman-Lichtenbaum}. A generalization of
the theorem to the case of cohomology with supports can be found in
\cite{Lyubeznik-Lichtenbaum}. The most interesting part of the argument
is contained in the proof of the following lemma.

\begin{lemma}
\label{lemma-lichtenbaum}
Let $U$ be a variety. Let $\mathcal{F}$ be a coherent $\mathcal{O}_U$-module.
If $H^d(U, \mathcal{F})$ is nonzero, then $\dim(U) \geq d$ and if
equality holds, then $U$ is proper.
\end{lemma}

\begin{proof}
By the Grothendieck's vanishing result in
Cohomology, Proposition \ref{cohomology-proposition-vanishing-Noetherian}
we conclude that $\dim(U) \geq d$.
Assume $\dim(U) = d$. Choose a compactification $U \to X$
such that $U$ is dense in $X$. (This is possible by
More on Flatness, Theorem \ref{flat-theorem-nagata} and
Lemma \ref{flat-lemma-compactifyable}.) After replacing $X$ by its
reduction we find that $X$ is a proper variety of dimension $d$
and we see that $U$ is proper if and only if $U = X$.
Set $Z = X \setminus U$. We will show that $H^d(U, \mathcal{F})$
is zero if $Z$ is nonempty.

\medskip\noindent
Choose a coherent $\mathcal{O}_X$-module
$\mathcal{G}$ whose restriction to $U$ is $\mathcal{F}$, see
Properties, Lemma \ref{properties-lemma-lift-finite-presentation}.
Let $\omega_X^\bullet$ denote the dualizing complex of $X$ as in
Section \ref{section-duality-proper-over-field}.
Set $\omega_U^\bullet = \omega_X^\bullet|_U$.
Then $H^d(U, \mathcal{F})$ is dual to
$$
H^{-d}_c(U, R\SheafHom_{\mathcal{O}_U}(\mathcal{F}, \omega_U^\bullet))
$$
by Lemma \ref{lemma-duality-compact-support}. By
Lemma \ref{lemma-duality-proper-over-field} we see that
the cohomology sheaves of $\omega_X^\bullet$ vanish in degrees $< -d$
and $H^{-d}(\omega_X^\bullet) = \omega_X$ is a coherent
$\mathcal{O}_X$-module which is $(S_2)$ and whose support is $X$.
In particular, $\omega_X$ is torsion free, see
Divisors, Lemma \ref{divisors-lemma-torsion-free-finite-noetherian-domain}.
Thus we see that the cohomology sheaf
$$
H^{-d}(R\SheafHom_{\mathcal{O}_X}(\mathcal{G}, \omega_X^\bullet)) =
\SheafHom(\mathcal{G}, \omega_X)
$$
is torsion free, see
Divisors, Lemma \ref{divisors-lemma-hom-into-torsion-free}.
Consequently this sheaf has no nonzero sections vanishing
on any nonempty open of $X$ (those would be torsion sections).
Thus it follows from Lemma \ref{lemma-h0-compactly-supported} that
$H^{-d}_c(U, R\SheafHom_{\mathcal{O}_U}(\mathcal{F}, \omega_U^\bullet))$
is zero, and hence $H^d(U, \mathcal{F})$ is zero as desired.
\end{proof}

\begin{theorem}
\label{theorem-lichtenbaum}
Let $X$ be a nonempty separated scheme of finite type over a field $k$.
Let $d = \dim(X)$. The following are equivalent
\begin{enumerate}
\item $H^d(X, \mathcal{F}) = 0$ for all coherent $\mathcal{O}_X$-modules
$\mathcal{F}$ on $X$,
\item $H^d(X, \mathcal{F}) = 0$ for all quasi-coherent $\mathcal{O}_X$-modules
$\mathcal{F}$ on $X$, and
\item no irreducible component $X'
 \subset X$ of dimension $d$
is proper over $k$.
\end{enumerate}
\end{theorem}

\begin{proof}
Assume there exists an irreducible component $X' \subset X$ (which we view
as an integral closed subscheme) which is proper and has dimension $d$.
Let $\omega_{X'
}$ be a dualizing module of $X'$ over $k$, see
Lemma \ref{lemma-duality-proper-over-field}. Then
$H^d(X'
, \omega_{X'})$ is nonzero as it is dual to $H^0(X', \mathcal{O}_{X'})$
by the lemma. Hence we see that $H^d(X, \omega_{X'
}) = H^d(X', \omega_{X'})$
is nonzero and we conclude that (1) does not hold.
In this way we see that (1) implies (3).

\medskip\noindent
Let us prove that (3) implies (1).
Let $\mathcal{F}$ be a coherent $\mathcal{O}_X$-module such that
$H^d(X, \mathcal{F})$ is nonzero. Choose a filtration
$$
0 = \mathcal{F}_0 \subset \mathcal{F}_1 \subset
\ldots \subset \mathcal{F}_m = \mathcal{F}
$$
as in Cohomology of Schemes, Lemma \ref{coherent-lemma-coherent-filter}.
We obtain exact sequences
$$
H^d(X, \mathcal{F}_i) \to H^d(X, \mathcal{F}_{i + 1}) \to
H^d(X, \mathcal{F}_{i + 1}/\mathcal{F}_i)
$$
Thus for some $i \in \{1, \ldots, m\}$ we find that
$H^d(X, \mathcal{F}_{i + 1}/\mathcal{F}_i)$ is nonzero.
By our choice of the filtration this means that there exists
an integral closed subscheme $Z \subset X$
and a nonzero coherent sheaf of ideals $\mathcal{I} \subset \mathcal{O}_Z$
such that $H^d(Z, \mathcal{I})$ is nonzero.
By Lemma \ref{lemma-lichtenbaum}
we conclude $\dim(Z) = d$ and $Z$ is proper over $k$
contradicting (3). Hence (3) implies (1).

\medskip\noindent
Finally, let us show that (1) and (2) are equivalent for any Noetherian scheme
$X$. Namely, (2) trivially implies (1). On the other hand, assume (1) and
let $\mathcal{F}$ be a quasi-coherent $\mathcal{O}_X$-module. Then we can write
$\mathcal{F} = \colim \mathcal{F}_i$ as the filtered colimit of its coherent
submodules, see
Properties, Lemma \ref{properties-lemma-quasi-coherent-colimit-finite-type}.
Then we have $H^d(X, \mathcal{F}) = \colim H^d(X, \mathcal{F}_i) = 0$
by Cohomology, Lemma \ref{cohomology-lemma-quasi-separated-cohomology-colimit}.
Thus (2) is true.
\end{proof}






\input{chapters}

\bibliography{my}
\bibliographystyle{amsalpha}

\end{document}

Messung
CHZG
809810093

¤ Dauer der Verarbeitung: 0.345 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,188,033
#Domains=861,316