# SH02-EXCEPTIONAL-OPERATIONS — Exceptional inverse image from a finite resolution

This lesson constructs the adjunction and proves its comparisons relative to those precisely stated foundations. The opposite-bounded-range section proves the full bounded-above first-input internal-Hom comparisons and supplies the finite model for unbounded proper direct image. The unbounded supported-evaluation section proves the projection and support-forgetting comparisons for arbitrary first complexes and bounded-below duality targets, using the existing K-flat and K-injective foundations.

The exceptional inverse image is determined by what can be integrated with proper support. To construct it, we first make proper direct image exact by tensoring with a suitable sheaf. The ordinary right adjoint of this exact functor can then be assembled into a bounded resolution model. This also fixes the trace maps used in subsequent formulas.

All spaces in this lesson are locally compact Hausdorff. Write a continuous map as $f:Y\to X$. Unless a statement says otherwise, $k$ is a commutative ring of finite global dimension $d$, all sheaves are $k$-module sheaves, and the inputs and outputs belong to $D^+$. Cohomological grading means $H^i(C[s])=H^{i+s}(C)$. No constructibility, finite generation, field assumption, or countability of a neighborhood basis is imposed.

## SH02-EX-FOUNDATIONS — The topological foundation being used

The following are exact prerequisite contracts for proper-support sheaf theory. They belong to the earlier foundations course. They are stated here so that the construction does not hide its prerequisites inside the phrase “six operations.” The existing [open prerequisite contracts](open-prerequisites.md) supply the abelian and derived-category foundations, but their proper-base-change theorem for proper maps alone does not supply this entire list.

### SH02-EX-IMP-SOFT — The compact-support resolution contract

A sheaf on a locally compact Hausdorff space is c-soft when its sections on every compact subset extend globally. Injective and flabby sheaves are c-soft. Open extension by zero and arbitrary coproducts preserve c-softness. A c-soft sheaf is acyclic for compactly supported sections. Conversely, $H_c^j(V;E|_V)=0$ for all open $V$ and all $j>0$ implies c-softness. These assertions are proved in compact extension, lifting and the acyclicity criterion, (C1)–(C4). In particular, that proof includes arbitrary coproducts and open extensions and does not require a finite dimension bound.

### SH02-EX-IMP-FIBRES — The proper-support fibre contract

Proper direct image $f_!$ is left exact, commutes with coproducts, and has stalk $(f_!E)_x=\Gamma_c(f^{-1}(x);E|_{f^{-1}(x)})$. Its derived stalks are the corresponding compactly supported cohomology groups. A sheaf whose restrictions to all fibres are c-soft is $f_!$-acyclic; bounded-below complexes of such sheaves compute $Rf_!$. These assertions also hold after restricting the source to an open subset. The exact providers are the proper-support construction and underived fibre formula, (F2)–(F3), coproduct and open-extension comparisons, (F4)–(F5), and the derived fibre and acyclic-complex calculation, (F6). They work for bounded-below complexes on arbitrary locally compact Hausdorff spaces; neither constructibility nor countability is inserted.

### SH02-EX-IMP-COMPOSE — The proper-support composition contract

For composable maps, the natural proper-support comparison $Rf_!Rg_!\simeq R(fg)_!$ is an isomorphism on $D^+$, compatible with threefold composition and identities. The proof is composition of properly supported sections and their c-soft models, (D2)–(D3). The comparison keeps the underlying section, so it includes these identity and associativity compatibilities, not only an isomorphism of objects.

### SH02-EX-IMP-BC — The base-change boundary

The full proper-support base-change theorem for arbitrary locally compact Hausdorff maps is proved by pulling back supported sections and deriving that map, (D1) and (D4). Its fibrewise acyclicity argument preserves the bounded-below range without a finite dimension or proper-map hypothesis. Under the finite dimension assumption of this lesson, the required case and its pasting compatibility are proved below as `SH02-EX-BASECHANGE-BRIDGE`, using the fibre and soft contracts.

The soft, fibre, composition and full proper-support base-change contracts are supplied by these exact earlier programme proofs. Their support sections do not use the later exceptional adjoint or constructible-duality applications in that reading, so using them here creates no such dependency cycle. The finite-dimensional case of nonproper base change and the projection formula required below are proved from those contracts. A theorem about a proper map or a perfect tensor factor is not used as a substitute for either assertion.

We will also use two elementary consequences of the stated compact-support contracts. A compact subset meets only finitely many members of a locally finite family of supports, after passage to a finite open cover. This explains why compactly supported sections of a sheaf coproduct are a coproduct, even though unrestricted sections need not commute with coproducts. Restriction to a closed subset preserves c-softness: a compact subset of the closed subset is compact in the ambient space, and restriction to that compact subset has the same sections.

## SH02-EX-RELATIVE-SOFT — Turning proper direct image into an exact functor

Call an abelian sheaf $E$ on $Y$ **$f$-soft** if $E|_{f^{-1}(x)}$ is c-soft for every $x\in X$. By the soft criterion and the fibre formula, this is equivalent to

\[
R^j f_!(E_U)=0\qquad(j>0,\ U\subset Y\text{ open}),
\]

where $E_U$ is restriction to $U$ followed by extension by zero. The use of every open $U$ matters: being merely $f_!$-acyclic does not express the full condition.

Assume henceforth that there is an integer $r\geq0$ such that

\[
R^j f_!E=0\qquad(j>r)
\tag{EX.1}
\]

for every **abelian sheaf** $E$ on $Y$. This is a condition over $\mathbb Z$, not only over the chosen coefficient ring. The fibre formula says equivalently that all fibres have compact-support cohomological dimension at most $r$. For the reverse implication in this equivalence, restrict to each fibre and use stalkwise detection of zero. For the forward implication, extend a sheaf on the closed fibre by zero to $Y$ and take the stalk at its image point. Hence the same bound applies after any change of base.

The bound yields a useful finite dimension-shifting rule. If

\[
E_0\longrightarrow E_1\longrightarrow\cdots\longrightarrow E_r
\longrightarrow0
\tag{EX.2}
\]

is exact and $E_0,\ldots,E_{r-1}$ are $f$-soft, then $E_r$ is $f$-soft. To see this, insert the successive kernels, apply open extension by zero, and use the long exact sequences of $R f_!$. For $j>0$, repeated connecting maps identify $R^jf_!((E_r)_U)$ with $R^{j+r}f_!(N_U)$ for the kernel at the left end; that group vanishes by (EX.1). For $r=0$ there are no middle sheaves and (EX.1) itself gives the assertion. The same argument shows that truncating an $f$-soft resolution after $r$ steps leaves an $f$-soft final cokernel.

The statements remain true for $k$-module sheaves after forgetting scalars. One can compute compact-support cohomology using a resolution by sheaves which are c-soft as abelian sheaves, so the underlying abelian and $k$-linear derived functors agree. Thus the integral dimension hypothesis bounds the coefficient versions without requiring $k$ to be flat over $\mathbb Z$.

### SH02-EX-FLAT-SOFT — The flat relative-soft tensor lemma

**Tensor lemma.** Let $S$ be a commutative coefficient ring and let $K$ be an $S_Y$-module which is flat and $f$-soft. Then $G\otimes_S K$ is $f$-soft for every $S_Y$-module $G$, and

\[
G\longmapsto f_!(G\otimes_S K)
\tag{EX.3}
\]

is exact. The underlying integral dimension bound (EX.1) is retained.

**Proof.** For every pair consisting of an open set $U$ and a section $s\in G(U)$ there is a morphism $S_U\to G$ taking $1$ to $s$. The coproduct of all these maps is surjective on every stalk. Repeating the construction for its kernel gives a resolution to the left by coproducts of the sheaves $S_U$. These are **coproduct** generators; their morphisms into a sheaf form a product of section modules.

After tensoring with $K$, the resolution stays exact by flatness. Every term is a coproduct of open extensions $K_U$, hence is $f$-soft. Apply (EX.2) to its final $r$ steps, with $G\otimes_S K$ at the right end. This proves the first assertion. For a short exact sequence of $G$'s, tensoring is exact and all three resulting sheaves are $f_!$-acyclic. The long exact derived-image sequence therefore proves exactness of (EX.3). $\square$

Only stalkwise flatness was used. No assertion that arbitrary products of open generators are free generators enters the proof.

## SH02-EX-FINITE-RESOLUTION — A finite universal resolution

There exists an exact sequence of abelian sheaves

\[
0\longrightarrow\mathbb Z_Y\longrightarrow K^0\longrightarrow\cdots
\longrightarrow K^r\longrightarrow0
\tag{EX.4}
\]

whose terms are both flat over $\mathbb Z$ and $f$-soft.

Here is a construction that works without a countability assumption. For an abelian sheaf $E$, let

\[
Q(E)(U)=\prod_{y\in U} E_y.
\]

This is a flabby sheaf, and the map $E\to Q(E)$ sends a section to its family of germs. It is injective. If $E$ has torsion-free stalks, then so does $Q(E)$: its stalks are filtered colimits of products of torsion-free groups. Moreover, the map $E_y\to Q(E)_y$ has a retraction given by evaluation at the coordinate $y$. Consequently its cokernel is a direct summand of the torsion-free group $Q(E)_y$, and is torsion-free. Over $\mathbb Z$, torsion-free means flat. Thus both $Q(E)$ and $Q(E)/E$ are flat whenever $E$ is flat.

Start with $C^0=\mathbb Z_Y$, set $K^j=Q(C^j)$ and $C^{j+1}=K^j/C^j$ for $0\leq j<r$, and finally set $K^r=C^r$. Flatness follows inductively from the preceding stalk argument. The first $r$ terms are flabby, hence $f$-soft; the last is $f$-soft by dimension shifting. If $r=0$, simply take $K^0=\mathbb Z_Y$: (EX.1) and the relative soft criterion say directly that it is $f$-soft. This proves (EX.4).

The augmented complex (EX.4) stays exact after tensoring with any abelian sheaf: its short exact constituent sequences have flat cokernels. It follows that $G\to G\otimes_{\mathbb Z}K^\bullet$ is a quasi-isomorphism for every bounded-below complex $G$. The total complexes here have finitely many $K$-degrees; there is no infinite-product convergence issue.

## SH02-EX-REPRESENTING-SHEAF — The sheaf representing the ordinary adjunction

Fix one flat $f$-soft abelian sheaf $K$. For an injective $k_X$-module $I$, define

\[
J_K(I)(U)=\operatorname{Hom}_{k_X}
   \bigl(f_!(k_U\otimes_{\mathbb Z}K),I\bigr).
\tag{EX.5}
\]

For $V\subset U$, the extension-by-zero map $k_V\to k_U$ gives the restriction map in (EX.5).

This presheaf is a sheaf. Indeed, for an open covering $U=\bigcup_i U_i$, there is the right-exact sheaf sequence

\[
\bigoplus_{i,j}k_{U_i\cap U_j}\longrightarrow
\bigoplus_i k_{U_i}\longrightarrow k_U\longrightarrow0.
\]

The first map is the difference of the two inclusions. Tensor with $K$ and apply the exact functor (EX.3); it also preserves coproducts. Applying $\operatorname{Hom}(-,I)$ gives exactly the equalizer expressing the sheaf axiom for (EX.5). There is no assumption that an infinite coproduct has its sections computed pointwise as a presheaf coproduct.

There is a natural isomorphism

\[
\operatorname{Hom}_{k_X}\bigl(f_!(G\otimes_{\mathbb Z}K),I\bigr)
\simeq \operatorname{Hom}_{k_Y}\bigl(G,J_K(I)\bigr).
\tag{EX.6}
\]

To construct its map, take a morphism on the left and precompose it with the morphism induced by each section $k_U\to G$. This produces a compatible map $G(U)\to J_K(I)(U)$ on every open $U$. When $G=k_U$, this is the identity identification in (EX.5). It is therefore an isomorphism for a coproduct of open generators. An arbitrary $G$ has a presentation $P_1\to P_0\to G\to0$ by such coproducts. Both sides of (EX.6), regarded as contravariant functors of $G$, send this presentation to the kernel of the corresponding map from their value on $P_0$ to their value on $P_1$. The isomorphisms on $P_0,P_1$ identify those kernels. This proves (EX.6), including its naturality, without a representability theorem.

The left side of (EX.6) is exact in $G$, by (EX.3) and injectivity of $I$. Hence $J_K(I)$ is injective. The construction is covariant in $I$ and contravariant in $K$.

## SH02-EX-ADJOINT — The derived adjunction and its normalization

**Existence theorem.** Under (EX.1), $Rf_!:D^+(k_Y)\to D^+(k_X)$ has a right adjoint

\[
f^!:D^+(k_X)\longrightarrow D^+(k_Y).
\]

More precisely, $f^!D^{\geq a}\subset D^{\geq a-r}$. No preservation of $D^b$ is asserted for an arbitrary map between the present spaces.

**Construction and proof.** Represent $F\in D^+(k_X)$ by a bounded-below injective complex $I$. Using (EX.4), form the finite-width Hom total complex

\[
(J_K I)^n=\bigoplus_{p=0}^r J_{K^p}(I^{n+p}).
\tag{EX.7}
\]

For a homogeneous map of total degree $n$, its differential is the usual Hom differential

\[
d(h)=d_I\circ h-(-1)^n h\circ d_K.
\]

Each degree of (EX.7) is a finite sum of injectives, hence injective. If $I$ starts in degree $a$, (EX.7) starts in degree $a-r$. The same formula sends chain homotopies to chain homotopies and commutes with the standard shift identifications.

For a bounded-below complex $G$, the tensor lemma says that every term of $G\otimes_{\mathbb Z}K^\bullet$ is $f$-soft. Its augmentation is a quasi-isomorphism, so

\[
Rf_!G\simeq f_!(G\otimes_{\mathbb Z}K^\bullet).
\]

Applying (EX.6) in every bidegree and the tensor–Hom sign convention gives an isomorphism of Hom complexes

\[
\operatorname{Hom}^\bullet
 \bigl(f_!(G\otimes_{\mathbb Z}K^\bullet),I\bigr)
\simeq \operatorname{Hom}^\bullet(G,J_K I).
\tag{EX.8}
\]

Taking degree-zero cohomology computes morphisms in the derived category on both sides, because the target complexes are bounded-below injectives. Thus $f^!F=J_KI$ has the desired adjunction. Bounded-below complexes of injectives model $D^+$, so this construction descends to a triangulated functor. The bound follows from (EX.7). $\square$

Define the unit $\eta_G:G\to f^!Rf_!G$ and the trace, or counit,

\[
\epsilon_F:Rf_!f^!F\longrightarrow F
\tag{EX.9}
\]

as the images of the identity morphisms under (EX.8). Naturality of that isomorphism gives the triangular identities

\[
\epsilon_{Rf_!G}\circ Rf_!(\eta_G)=1_{Rf_!G},\qquad
f^!(\epsilon_F)\circ\eta_{f^!F}=1_{f^!F}.
\tag{EX.10}
\]

For example, applying the adjunction bijection to the first composite reduces it to the definition of $\eta_G$; applying its inverse to the second reduces it to the definition of $\epsilon_F$. This is a proof of the normalization, not merely an assertion that some abstract right adjoint exists.

Any other construction with its adjunction is uniquely isomorphic to this one by the map whose transpose is its counit. The inverse is obtained by exchanging the two constructions; (EX.10) makes both composites identities. This identifies different choices of (EX.4), respects the trace, and satisfies the cocycle identity for three choices. Because (EX.8) is an isomorphism of complexes with the displayed Hom differential, simultaneously shifting source and target commutes with the adjunction. In particular, the trace of $F[1]$ is the shift of the trace of $F$ under the chosen triangulated identifications; no independent sign can be inserted.

The same construction also proves the ringed-space variant. Given sheaves of rings $\mathcal R$ on $X$, $\mathcal S$ on $Y$ and a homomorphism $f^{-1}\mathcal R\to\mathcal S$, replace $k_U$ in (EX.5) by $\mathcal S_U$ and take Hom in $\mathcal R$-modules. The functor $f_!(-\otimes_{\mathbb Z}K)$, followed by restriction of scalars, is exact. The generator and injectivity arguments are unchanged and give a right adjoint $D^+(\mathcal R)\to D^+(\mathcal S)$. Commutativity and finite global dimension are not needed for this existence construction; those hypotheses enter the tensor assertions below.

## SH02-EX-PROJECTION — Projection with arbitrary coefficients

For $G\in D^+(k_Y)$ and $B\in D^+(k_X)$, there is a canonical isomorphism

\[
Rf_!G\otimes_k^L B\xrightarrow{\sim}
Rf_!\bigl(G\otimes_k^L f^{-1}B\bigr).
\tag{EX.11}
\]

Here finite global dimension of $k$ ensures that all tensor products displayed in $D^+$ stay in $D^+$. The assertion allows arbitrary $B$, with no perfection assumption.

First suppose that $E$ is a flat $f$-soft $k_Y$-module. On a fibre, the functor

\[
M\longmapsto\Gamma_c(f^{-1}(x);E|_{f^{-1}(x)}\otimes_k M)
\]

is exact by the tensor lemma. It preserves coproducts. The natural map from $\Gamma_c(E|_{f^{-1}(x)})\otimes_k M$ to this functor is an isomorphism for free modules, hence for every module by a free presentation and right exactness. It follows in addition that $\Gamma_c(E|_{f^{-1}(x)})$ is flat. The stalk formula now proves both that $f_!E$ is flat and that

\[
f_!E\otimes_k B\simeq f_!(E\otimes_k f^{-1}B)
\tag{EX.12}
\]

for every sheaf $B$. The map is defined on sections by multiplying a properly supported section by a pulled-back local section. Its support remains proper.

For the derived statement, use a bounded-below flat resolution $P$ of $G$, starting at most $d$ degrees earlier, and one for $B$. Here is a precise way to obtain the required lower bound from the flat-resolution contract, proved by local cycle attachment, Theorem 3.1. Start with its termwise-flat complex $Q$ representing an object in $D^{\geq a}$. Put $C^m=\operatorname{coker}(Q^{m-1}\to Q^m)$. For $m<a$, exactness gives $0\to C^m\to Q^{m+1}\to C^{m+1}\to0$. On each stalk, $d$ successive Tor connecting isomorphisms identify $\operatorname{Tor}_1(C^{a-d},M)$ with $\operatorname{Tor}_{d+1}(C^a,M)=0$. Thus $C^{a-d}$ is flat, and replacing the part of $Q$ below degree $a-d$ by this cokernel gives the bounded-below flat resolution. When $d=0$, every stalk module is already flat and the same truncation works directly.

<a id="SH02-EX-BOUNDED-FLAT-MODEL"></a>

**Why this truncation is still a K-flat model.** The dimension-shifting step uses the long exact Tor sequence and the flatness criterion, Proposition 3.2 and Theorem 3.3. Write $c=a-d$, and let $P$ be the complex with $P^n=0$ for $n<c$, $P^c=C^c$, and $P^n=Q^n$ for $n>c$. Its first differential is induced by that of $Q$. The quotient in degree $c$ and the identity in higher degrees define a chain map $q:Q\to P$. It is a quasi-isomorphism: the good truncation preserves cohomology in degrees at least $c$, and the lower cohomology of $Q$ vanishes because $c\leq a$.

The kernel $N=\ker q$ has terms $Q^n$ below $c$, the sheaf $\operatorname{im}(Q^{c-1}\to Q^c)$ in degree $c$, and zero above. Exactness of $Q$ in degree $c-1<a$ identifies that last term with $C^{c-1}$. The same $d$ connecting isomorphisms as above identify first Tor of each stalk of $C^{c-1}$ with $(d+1)$st Tor of the corresponding stalk of $C^{a-1}$, which is zero. Thus that last term is flat; for $d=0$ it is flat directly. The flatness-of-stalks criterion makes every term of $N$ flat. Its cohomology is zero, either from the short exact sequence below or directly from the description of its last differential. It is bounded above, so Lemma 2.3 of the K-flat lesson proves that $N$ is K-flat.

We have an exact sequence of complexes

\[
0\longrightarrow N\longrightarrow Q\xrightarrow{q}P\longrightarrow0.
\tag{PF1}
\]

Every term of its quotient $P$ is flat. Consequently tensoring this sequence with any sheaf remains exact in each degree, by the flat-quotient assertion of Lemma 1.3 in the same lesson. Tensoring with a complex and taking direct-sum totalizations therefore also gives an exact sequence. For an acyclic complex $A$, the tensors with $N$ and $Q$ are acyclic by their K-flatness; the resulting long exact cohomology sequence proves that $A\otimes P$ is acyclic. This proves K-flatness of $P$, rather than inferring it from flatness of its terms.

If $\epsilon:Q\to G$ is the original resolution, the identification of this bounded-below model with $G$ is the explicit quasi-isomorphism zigzag

\[
P\xleftarrow{q}Q\xrightarrow{\epsilon}G.
\tag{PF2}
\]

A chain map $P\to G$ is not being assumed. In the derived category the identification is $\epsilon q^{-1}$. Here $G$ and $P$ are on $Y$, whereas $B$ is on $X$. Applying the construction to $B$ gives a bounded-below K-flat $k_X$-complex $R$ representing it. Since the coefficients are the constant sheaves of the same ring $k$, inverse image is exact and its stalks preserve the coefficient modules. It preserves flatness and K-flatness by Lemma 2.2 of the K-flat lesson. Thus $f^{-1}R$ is a bounded-below K-flat $k_Y$-model for $f^{-1}B$. The tensor-invariance and resolution-comparison proof, Lemma 1.1 and Theorem 1.2, identifies $P\otimes_k f^{-1}R$ with $G\otimes_k^L f^{-1}B$ on $Y$, compatibly with those zigzags and derived morphisms. This supplies the models needed below, including their lower bounds. It does not claim that an arbitrary complex of flat terms is K-flat.

Tensor $P$ over $\mathbb Z$ with (EX.4). Its total complex $E$ is termwise flat over $k$, termwise $f$-soft, and quasi-isomorphic to $G$. All the double complexes used here lie in a translated first quadrant. Thus termwise flat resolutions calculate the derived tensor products of these bounded-below inputs, and termwise $f$-soft resolutions calculate $Rf_!$. Applying (EX.12) to the double complexes gives (EX.11).

The identity, associativity and symmetry compatibilities of this projection map can be checked before deriving: both ways of multiplying a supported section by two local coefficient sections give the same section, and interchanging homogeneous factors introduces exactly the usual Koszul sign. Flat resolutions preserve these equalities. Its compatibility with open restriction is immediate from the same description. These facts will fix the tensor comparisons of $f^!$.

## SH02-EX-COMPOSITION — Composition, restriction, and change of base

Suppose $Z\xrightarrow{g}Y\xrightarrow{f}X$ satisfy the integral dimension bounds $s$ and $r$. Then $(fg)_!$ has cohomological dimension at most $r+s$. Indeed, apply the composition import and filter $Rg_!E$ by its cohomology sheaves: their degrees lie between $0$ and $s$, and applying $Rf_!$ gives degrees at most $r+s$. This finite filtration is the usual derived-functor spectral-sequence argument, and does not require the spectral sequence to have infinitely many nonzero diagonals.

There is a canonical isomorphism

\[
(fg)^!\simeq g^!f^!.
\tag{EX.13}
\]

For every $H\in D^+(k_Z)$ and $F\in D^+(k_X)$, the successive adjunctions give

\[
\begin{aligned}
\operatorname{Hom}(H,g^!f^!F)
&\simeq\operatorname{Hom}(Rg_!H,f^!F)\\
&\simeq\operatorname{Hom}(Rf_!Rg_!H,F)\\
&\simeq\operatorname{Hom}(R(fg)_!H,F).
\end{aligned}
\]

Representing this natural bijection defines (EX.13). Its trace is exactly

\[
Rf_!Rg_!g^!f^!F\xrightarrow{Rf_!(\epsilon_g)}
Rf_!f^!F\xrightarrow{\epsilon_f}F.
\tag{EX.14}
\]

For three maps, either parenthesization has the trace obtained by successively applying the three traces in their order of composition. The associativity of the imported proper-support comparison identifies their sources. Uniqueness of an adjoint identification preserving the trace therefore proves the associativity of (EX.13). For the identity map the trace is the identity, so the unit coherence follows in the same way.

### SH02-EX-EMBEDDING — Open, closed, and locally closed inclusions

For an open embedding $j:U\hookrightarrow X$, the exact functor $j_!$ has exact right adjoint $j^{-1}$. The ordinary adjunction therefore gives $j^!=j^{-1}$, with its usual extension-by-zero counit. For a closed embedding $i:Z\hookrightarrow X$, its exact direct image has right adjoint $i^{-1}\Gamma_Z$ at the sheaf level. To prove this, a map $i_*A\to F$ lands in the subsheaf of sections supported on $Z$, and maps to that subsheaf are determined by their restriction to $Z$. Deriving the adjunction gives

\[
i^!F\simeq i^{-1}R\Gamma_ZF,
\qquad R\Gamma_ZF\simeq i_*i^!F.
\tag{EX.15}
\]

For a locally closed embedding, factor it as a closed embedding into an open subset and then use (EX.13). More explicitly, if $Z$ is closed in $U$ and $j:U\hookrightarrow X$, set $R\Gamma_ZF=Rj_*R\Gamma_Z^U(j^{-1}F)$, where the superscript marks closed support inside $U$. This object is also $R\mathcal Hom_X(k_Z,F)$, with $k_Z$ extended by zero from the locally closed subset: the ordinary extension/restriction and closed-support adjunctions identify both expressions. The result is $i^!F\simeq i^{-1}R\Gamma_ZF$. Independence of the chosen open ambient neighborhood follows from this intrinsic internal-Hom description, or by restricting the two factorizations to their intersection and applying their adjunctions. Ordinary direct image $Rj_*$, rather than extension by zero, is part of this support convention.

These formulas also identify the open restriction of $f^!$. If $V\subset X$ is open, write $j:V\to X$, $j':f^{-1}V\to Y$, and $f_V:f^{-1}V\to V$. The equality $fj'=jf_V$ and the composition isomorphisms give

\[
j'^{-1}f^!F\simeq f_V^!(F|_V).
\tag{EX.16}
\]

This isomorphism preserves the traces after restriction. One can also see it directly in (EX.5), since a section supported properly over $V$ is tested against $I|_V$ and open restriction preserves injectives.

### SH02-EX-BASECHANGE-BRIDGE — A finite-dimensional base-change proof

Here is the promised finite-dimensional base-change bridge. In a cartesian square with horizontal $f:Y\to X$, $f':Y'\to X'$ and vertical $g,g'$, pulling back a properly supported section gives the underived map $g^{-1}f_!E\to f'_!g'^{-1}E$: the pullback of its support is proper over the new base. The fibre contract identifies its two stalks with the same compactly supported sections on the same fibre, so the map is an isomorphism.

Choose (EX.4) for $f$. Its pullback $g'^{-1}K^\bullet$ is still flat, exact over $\mathbb Z$, and $f'$-soft: the fibre restrictions are precisely those of $K^\bullet$ under the fibre homeomorphisms. Thus $G\otimes K^\bullet$ computes $Rf_!G$, while $g'^{-1}(G\otimes K^\bullet)$ computes $Rf'_!g'^{-1}G$. Apply the underived base-change isomorphism term by term to obtain $g^{-1}Rf_!G\simeq Rf'_!g'^{-1}G$ on $D^+$. For two base changes, either composite is pullback of the same sections in this model. Thus identity squares, open restrictions and pasted squares have the asserted canonical compatibilities. No compactness of $f$ itself is used.

### SH02-EX-BASECHANGE — Two exceptional base-change comparisons

Consider the cartesian square described in `SH02-EX-IMP-BC`. If $f_!$ has integral cohomological dimension at most $r$, so does $f'_!$, since their fibres over corresponding points are homeomorphic. There are two different exceptional comparisons:

\[
f^!Rg_*\xrightarrow{\sim}Rg'_*f'^!,
\qquad
\beta:g'^{-1}f^!\longrightarrow f'^!g^{-1}.
\tag{EX.17}
\]

The first is an isomorphism; the second is at this stage only a morphism.

For the first map, take $A\in D^+(k_Y)$ and $B\in D^+(k_{X'})$. The following natural sequence of bijections gives its definition and proof:

\[
\begin{aligned}
\operatorname{Hom}(A,f^!Rg_*B)
&\simeq\operatorname{Hom}(Rf_!A,Rg_*B)\\
&\simeq\operatorname{Hom}(g^{-1}Rf_!A,B)\\
&\simeq\operatorname{Hom}(Rf'_!g'^{-1}A,B)\\
&\simeq\operatorname{Hom}(g'^{-1}A,f'^!B)\\
&\simeq\operatorname{Hom}(A,Rg'_*f'^!B).
\end{aligned}
\]

The third line is the proper-support base-change bridge just proved. Every other line is one of the already specified adjunctions.

Define the second map by the requirement that its $Rf'_!\dashv f'^!$ transpose be

\[
Rf'_!g'^{-1}f^!F
\xrightarrow{\sim}g^{-1}Rf_!f^!F
\xrightarrow{g^{-1}\epsilon_f}g^{-1}F.
\tag{EX.18}
\]

This explicit definition is useful in calculations: it fixes which way the map goes and its normalization. For an identity square it gives the identity, by (EX.10). For two successive base changes, transpose the composite of their $\beta$ maps. Inserting (EX.18) first for the inner square and then for the outer one cancels the intermediate unit–counit pair by (EX.10). The resulting map is the pasted proper-support comparison followed by the pulled-back trace of $f$. The pasting compatibility proved in `SH02-EX-BASECHANGE-BRIDGE` identifies it with the transpose for the composite square. Since transposition is a bijection, the two $\beta$ maps agree.

For open $g$, (EX.16) shows that $\beta$ is invertible. A general closed change of base can fail to be invertible; a worked example below detects this failure with a shift.

### SH02-EX-COEFFICIENTS — Forgetting the coefficient action

Let $\phi$ denote the forgetful functor from $k$-module sheaves to abelian sheaves. The exceptional inverse images constructed with the two coefficient systems satisfy

\[
\phi_Y f_k^!F\simeq f_{\mathbb Z}^!(\phi_XF).
\tag{EX.19}
\]

For $A\in D^+(\mathbb Z_Y)$, its proof is the following chain of adjunctions:

\[
\begin{aligned}
\operatorname{Hom}_{\mathbb Z}(A,f_{\mathbb Z}^!\phi_XF)
&\simeq\operatorname{Hom}_{\mathbb Z}(Rf_!A,\phi_XF)\\
&\simeq\operatorname{Hom}_k(k_X\otimes_{\mathbb Z}^LRf_!A,F)\\
&\simeq\operatorname{Hom}_k(Rf_!(k_Y\otimes_{\mathbb Z}^LA),F)\\
&\simeq\operatorname{Hom}_k(k_Y\otimes_{\mathbb Z}^LA,f_k^!F)\\
&\simeq\operatorname{Hom}_{\mathbb Z}(A,\phi_Yf_k^!F).
\end{aligned}
\]

The middle line is (EX.11) over $\mathbb Z$. The tensor products stay bounded below because $\mathbb Z$ has global dimension one. Thus this argument permits torsion in $k$. Its canonical identification preserves the traces, since its construction uses precisely those traces in the two adjunctions. It asserts compatibility with forgetting the coefficient action, not an unrestricted theorem about extension of coefficients.

## SH02-EX-INTERNAL — Internal adjunction and its tensor structure

For $F\in D^+(k_X)$ and $G\in D^b(k_Y)$, there are canonical isomorphisms

\[
R\mathcal Hom_X(Rf_!G,F)
\simeq Rf_*R\mathcal Hom_Y(G,f^!F),
\tag{EX.20}
\]

\[
\mathbf{RHom}_X(Rf_!G,F)
\simeq\mathbf{RHom}_Y(G,f^!F).
\tag{EX.21}
\]

Here $\mathbf{RHom}_X(A,B)=R\Gamma(X;R\mathcal Hom_X(A,B))$ is a complex of $k$-modules; the script Hom denotes a sheaf on $X$. The finite dimension bound makes $Rf_!G$ bounded. Both internal Hom objects in (EX.20) are therefore in $D^+$, which is essential for the operations currently constructed.

To define the map from right to left in (EX.20), put $H=R\mathcal Hom_Y(G,f^!F)$. Evaluation, the ordinary counit $f^{-1}Rf_*H\to H$, (EX.11), and the exceptional trace give

\[
\begin{aligned}
Rf_!G\otimes^L Rf_*H
&\longrightarrow Rf_!(G\otimes^L f^{-1}Rf_*H)\\
&\longrightarrow Rf_!(G\otimes^L H)
\longrightarrow Rf_!f^!F\longrightarrow F.
\end{aligned}
\tag{EX.22}
\]

Currying (EX.22), with the tensor symmetry where needed, gives the desired morphism.

There is also a direct resolution proof, which verifies the map and works for modules over an arbitrary associative coefficient ring. Represent $G$ by a bounded complex and $F$ by a bounded-below injective complex $I$. The finite complex $L=f_!(G\otimes_{\mathbb Z}K^\bullet)$ represents $Rf_!G$. For every open $V\subset X$, the chain-level adjunction (EX.8), applied on $V$, identifies

\[
\operatorname{Hom}^\bullet_{V}(L|_V,I|_V)
\simeq
\operatorname{Hom}^\bullet_{f^{-1}V}
 (G|_{f^{-1}V},(J_KI)|_{f^{-1}V}).
\tag{EX.20a}
\]

These maps commute with open restriction, so they give an isomorphism of complexes of sheaves. For an injective $A$-module sheaf $J$, the sheaf $\mathcal Hom_A(E,J)$ is flabby as an abelian sheaf: a map on a smaller open extends by injectivity from the corresponding open extension of $E$ into the extension on the larger open. Boundedness of $G$ and $L$ makes every degree of the Hom complexes in (EX.20a) a finite sum of such flabby sheaves. They are bounded below and therefore compute both derived internal Hom and the required ordinary derived direct image. This proves (EX.20) directly. Its adjunction is the one in (EX.8), so in the commutative case it agrees with the evaluated map (EX.22).

For an open $V\subset X$, restriction identifies $Rf_!G|_V$ with $R(f_V)_!(G|_{f^{-1}V})$ and identifies $f^!F|_{f^{-1}V}$ by (EX.16). Taking $H^nR\Gamma(V;-)$ of (EX.22) therefore gives the adjunction bijection

\[
\operatorname{Hom}_{D(k_{f^{-1}V})}
  (G|_{f^{-1}V}, f_V^!(F|_V)[n])
\simeq
\operatorname{Hom}_{D(k_V)}
  ((Rf_!G)|_V,F|_V[n]).
\]

It is the same bijection because the last arrow in (EX.22) is the chosen trace. It is an isomorphism for every $V$ and every $n$. The cone of (EX.20) thus has zero derived sections on every open set; passing to stalks, or using the lowest nonzero cohomology sheaf locally, shows that cone is zero. This proves (EX.20). Applying $R\Gamma(X;-)$ proves (EX.21).

### SH02-EX-TENSOR — The normalized tensor comparison

For $A,B\in D^+(k_X)$, define

\[
\theta_{A,B}:f^!A\otimes_k^L f^{-1}B
\longrightarrow f^!(A\otimes_k^L B)
\tag{EX.23}
\]

to be the transpose of

\[
Rf_!(f^!A\otimes^L f^{-1}B)
\xrightarrow{\sim}Rf_!f^!A\otimes^L B
\xrightarrow{\epsilon_A\otimes1}A\otimes^L B.
\tag{EX.24}
\]

There is no invertibility assertion in this generality. The following identities fix the module structure of this comparison. Under the usual unit identification, $\theta_{A,k_X}$ is the identity. For $A,B,C\in D^+$, the composite which applies $\theta_{A,B}$ and then $\theta_{A\otimes B,C}$ agrees with $\theta_{A,B\otimes C}$, after associating the three tensor factors. To prove the unit identity, transpose it and use the unit compatibility of (EX.11): both maps become $\epsilon_A$. To prove associativity, transpose both composites. The defining equation (EX.24) replaces the outer trace by $\epsilon_A\otimes1_B\otimes1_C$; the projection associativity proved above identifies the source maps. The resulting transposes are equal, so the original maps are equal. The same argument with tensor symmetry supplies its Koszul signs.

The comparison also respects composition (EX.13). For $Z\xrightarrow gY\xrightarrow fX$, the map for $fg$ equals the composite

\[
g^!f^!A\otimes g^{-1}f^{-1}B
\xrightarrow{\theta_g}
g^!(f^!A\otimes f^{-1}B)
\xrightarrow{g^!\theta_f}
g^!f^!(A\otimes B).
\tag{EX.25}
\]

Transposing successively along $g$ and $f$ turns this into the trace (EX.14) tensored with $B$. The same transpose defines the left side, using the proper-support composition identification and the projection formula. Thus they coincide. This proof keeps the normalization of the composite trace visible.

### SH02-EX-HOM — Exceptional inverse image of internal Hom

For $A\in D^b(k_X)$ and $B\in D^+(k_X)$, there is a canonical isomorphism

\[
f^!R\mathcal Hom_X(A,B)
\xrightarrow{\sim}
R\mathcal Hom_Y(f^{-1}A,f^!B).
\tag{EX.26}
\]

Define its map by applying (EX.23) to $R\mathcal Hom(A,B)$ and $A$, then applying $f^!$ to evaluation, and finally currying. To prove it is invertible, test against an arbitrary $C\in D^+(k_Y)$:

\[
\begin{aligned}
\operatorname{Hom}(C,f^!R\mathcal Hom(A,B))
&\simeq\operatorname{Hom}(Rf_!C,R\mathcal Hom(A,B))\\
&\simeq\operatorname{Hom}(Rf_!C\otimes^L A,B)\\
&\simeq\operatorname{Hom}(Rf_!(C\otimes^L f^{-1}A),B)\\
&\simeq\operatorname{Hom}(C\otimes^L f^{-1}A,f^!B)\\
&\simeq\operatorname{Hom}(C,R\mathcal Hom(f^{-1}A,f^!B)).
\end{aligned}
\]

Each tensor belongs to $D^+$ because $A$ is bounded and the coefficient ring has finite global dimension. The map represented by this chain is the map just defined: tracing evaluation through the adjunction gives exactly (EX.24). Yoneda therefore proves (EX.26), including naturality. In particular, merely replacing the hypothesis $A\in D^b$ by $A\in D^-$ is not justified by this proof; tensoring such an $A$ with $C\in D^+$ can leave $D^+$. The [opposite-bounded-range proof](#SH02-EX-BOUNDED-ABOVE) supplies that broader first-input range by a finite resolution and coefficient exchange, without that tensor-boundedness assumption.

Composition compatibility of (EX.26) follows by applying its definition to evaluation and using (EX.25). Both composites are the curry of the same evaluated tensor map. Open restriction compatibility follows from (EX.16) and the open restriction of internal Hom. These are the compatibilities needed when using the identity on a diagonal or on a small neighborhood.

## SH02-EX-BOUNDED-ABOVE — Internal Hom with opposite bounded ranges

Retain the uniform integral dimension bound (EX.1). The internal comparisons have the following full bounded-above first-input forms:

\[
\begin{gathered}
R\mathcal Hom_X(Rf_!G,F)\\
\xrightarrow{\sim}Rf_*R\mathcal Hom_Y(G,f^!F),\\
G\in D^-(k_Y),\quad F\in D^+(k_X).
\end{gathered}
\tag{EXA.1}
\]

\[
\begin{gathered}
f^!R\mathcal Hom_X(A,B)\\
\xrightarrow{\sim}R\mathcal Hom_Y(f^{-1}A,f^!B),\\
A\in D^-(k_X),\quad B\in D^+(k_X).
\end{gathered}
\tag{EXA.2}
\]

No lower bound on $G$ or $A$ is imposed. These maps extend the bounded-first-input maps (EX.20) and (EX.26), with their normalizations. All the internal Hom objects in these two displays are bounded below. The proper direct image in (EXA.1) uses the unbounded derived functor, with the finite resolution model justified next. The right adjoint $f^!$ is still only being applied to bounded-below objects.

### The existing unbounded acyclic-model theorem applies

The module-sheaf categories are Grothendieck. K-injective resolutions, Theorems 4.1 and 5.1, supply termwise-injective K-injective replacements and the right derived functor of an additive functor on all complexes. Thus $Rf_!$ exists on the unbounded derived category. Proposition 5.5, the finite-dimensional acyclic-model theorem, proves that any complex of $f_!$-acyclic sheaves computes it termwise under a uniform bound. Its hypotheses match here: $f_!$ is left exact, and (EX.1) gives the same uniform bound $r$ for $k$-module sheaves by the coefficient comparison already proved above.

Let $K^\bullet$ be the flat relative-soft resolution (EX.4), in degrees $0,\ldots,r$. For any complex $G$, including an unbounded one, its augmentation

\[
G\longrightarrow G\otimes_{\mathbb Z}K^\bullet
\tag{EXA.3}
\]

is a quasi-isomorphism. Here is the convergence check. Each row obtained by tensoring the augmented resolution with $G^i$ is exact, since (EX.4)'s successive cokernels are flat over $\mathbb Z$. The cone of (EXA.3) is the total complex of these exact rows with the augmentation column included. The number of columns is bounded by $r+2$, independently of $i$. Filtering by the $G$ degree gives a filtration with at most $r+2$ nonzero steps in each total degree; its first cohomology calculation is the exact row. Equivalently, on each stalk a total cocycle can be cancelled successively from the rightmost column to the leftmost using row exactness; subtracting a chosen total boundary moves the remaining component one column to the left and terminates after at most $r+2$ steps. Hence that cone is acyclic. There is no infinite diagonal or limit interchange in this argument.

Every term of $G\otimes K^\bullet$ is a finite sum of $f$-soft sheaves, by the tensor lemma (EX.3), so Proposition 5.5 gives the canonical comparison

\[
Rf_!G\simeq T_K(G):=f_!(G\otimes_{\mathbb Z}K^\bullet).
\tag{EXA.4}
\]

This is an acyclic-model comparison to the existing derived functor, not a new functor defined only by its agreement on bounded objects. It is natural and independent of the choice of $K^\bullet$, by that proposition's K-injective comparison. It agrees with (EX.8) on the bounded-below range. If $G\in D^{\leq b}$, take a representative with terms zero above $b$; then $T_K(G)$ has terms zero above $b+r$. In particular $Rf_!D^{\leq b}\subset D^{\leq b+r}$.

### Direct-image internal adjunction

Represent $G\in D^{\leq b}$ by a complex zero above $b$, and $F\in D^{\geq a}$ by a bounded-below injective complex $I$ starting at $a$. The chain adjunction (EX.8), restricted to every open $V\subset X$, remains an isomorphism for this $G$:

\[
\mathcal Hom_X^\bullet(T_K(G),I)
\simeq
f_*\mathcal Hom_Y^\bullet(G,J_KI).
\tag{EXA.5}
\]

In total degree $n$, the left Hom has components only for $a-n\leq i\leq b+r$. On the right, $J_KI$ starts at $a-r$, so only $a-r-n\leq i\leq b$ occur. These are finite index ranges. The $K$ index also lies in $0,\ldots,r$. Thus the same reindexing and Hom differential used in (EX.8) apply, without replacing a direct sum by an infinite product. All maps commute with restriction of $V$.

Each sheaf $\mathcal Hom(E,J)$ with injective target $J$ is flabby, by the open-extension argument preceding (EX.20a). Finite sums of such sheaves are flabby. The two Hom complexes in (EXA.5) are bounded below, with lower bound $a-b-r$. The left computes derived internal Hom because $I$ remains K-injective after open restriction. The inner complex on the right likewise computes derived internal Hom because $J_KI$ is bounded-below injective. Its flabby terms compute the required $Rf_*$. The fact that a bounded-below injective complex computes morphisms from an arbitrary, not necessarily bounded, source is Lemma 3.2 and Theorem 3.3 of Injective modules and bounded-below derived functors. This proves (EXA.1).

The comparison is the sheafwise chain adjunction, so it has the adjunction normalization on every open. For bounded $G$ it is (EX.20a), hence agrees with (EX.22). No projection formula on an unrestricted unbounded tensor product was used to extend that formula outside its proved range.

### Inverse-image internal Hom: the coefficient exchange

For one term $K^p$ of the relative-soft resolution, write $T_p(E)=f_!(E\otimes_{\mathbb Z}K^p)$ and $J_p=J_{K^p}$. The following underived projection isomorphism holds for sheaves $E$ on $Y$ and $P$ on $X$:

\[
T_p(E)\otimes_k P\xrightarrow{\sim}
T_p(E\otimes_k f^{-1}P).
\tag{EXA.6}
\]

Its map pulls a coefficient section back and multiplies it with a properly supported section. To prove invertibility, first take $P=k_V$ for an open $V\subset X$, extended by zero. Both sides are the restriction of $T_p(E)$ to $V$ extended by zero; the map is the identity under the open-support comparison. Both functors of $P$ preserve coproducts and are right exact: tensor and inverse image have these properties, while $T_p$ is exact and preserves coproducts by (EX.3). Present arbitrary $P$ by two coproducts of such open generators, apply both functors and take cokernels. The isomorphisms on those two sums identify the cokernels and prove (EXA.6). This also proves naturality, compatibility with coefficient maps and the tensor-unit normalization.

For a flat $P$ and injective $I$, internal $\mathcal Hom_X(P,I)$ is injective: tensoring a monomorphism with $P$ stays monic, so the tensor–Hom adjunction converts extension into $I$ into extension into this Hom sheaf. Applying (EXA.6) and (EX.6) on every open subset of $Y$ gives

\[
J_p\mathcal Hom_X(P,I)
\simeq\mathcal Hom_Y(f^{-1}P,J_pI).
\tag{EXA.7}
\]

Indeed, testing the left side on an open $U\subset Y$ gives $\operatorname{Hom}_X(T_p(k_U),\mathcal Hom_X(P,I))$. Tensor–Hom adjunction makes this $\operatorname{Hom}_X(T_p(k_U)\otimes P,I)$. Formula (EXA.6) replaces its first argument by $T_p(k_U\otimes f^{-1}P)$, and (EX.6) gives the sections on $U$ of the right side. These identifications commute with restriction, proving (EXA.7) as a sheaf isomorphism.

### Resolving a bounded-above first input and checking signs

Take a bounded-above flat resolution $P\to A$, with $P^i=0$ for $i>b$, from Flat modules and K-flat resolutions, Lemma 4.1. Let $B\to I$ be a bounded-below injective resolution with $I^j=0$ for $j<a$. In degree $m$, the Hom complex $\mathcal Hom^\bullet(P,I)$ is a finite sum over $a-m\leq i\leq b$. Its terms are injective by flatness of each $P^i$, and it vanishes below $a-b$. It is therefore a bounded-below injective model of $R\mathcal Hom_X(A,B)$.

Consequently the two sides of (EXA.2) are computed by

\[
J_K\mathcal Hom^\bullet(P,I),
\qquad \mathcal Hom^\bullet(f^{-1}P,J_KI).
\tag{EXA.8}
\]

The inverse image of a flat sheaf is flat for constant coefficient rings, and $J_KI$ is bounded-below injective. Both complexes in (EXA.8) start at degree $a-b-r$. Formula (EXA.7) identifies their components. In total degree $n$ these components are indexed by $0\leq p\leq r$ and $a-n-p\leq i\leq b$, with target $I^{n+p+i}$, so every rearrangement is finite.

The component exchange multiplies by $(-1)^{pi}$: it moves the $K^p$ position past the $P^i$ position in the evaluated tensor. To check the differential, write a component of total degree $n$ before the exchange as $h_{p,i}$ and after it as $g_{i,p}=(-1)^{pi}h_{p,i}$. Suppressing only the fixed adjunction identifications of (EXA.7), the Hom differentials are

\[
\begin{aligned}
(Dh)_{p,i}
 &=d_Ih_{p,i}-(-1)^{n+p}h_{p,i+1}d_P
                     -(-1)^n h_{p+1,i}d_K,\\
(Dg)_{i,p}
 &=d_Ig_{i,p}-(-1)^{n+i}g_{i,p+1}d_K
                     -(-1)^n g_{i+1,p}d_P.
\end{aligned}
\tag{EXA.9}
\]

Substituting $g_{i,p}=(-1)^{pi}h_{p,i}$ in the second line gives $(-1)^{pi}$ times the first: the $d_K$ exponent is $n+i+i(p+1)\equiv n+pi$, and the $d_P$ exponent is $n+(i+1)p=n+pi+p$. Thus (EXA.7) with this sign is an isomorphism of complexes, proving (EXA.2).

The construction is natural for chain maps. K-injective comparison and the flat resolutions identify it under quasi-isomorphisms and hence under derived roofs, so it is independent of representatives. When $A$ is bounded, it is the curry of the same projection and trace used to define (EX.26): (EXA.7) was obtained from precisely that ordinary adjunction and coefficient projection. For a merely bounded-above $A$, in any fixed output degree and its two adjacent degrees only finitely many degrees of $P$ and $K$ occur. A sufficiently low brutal truncation of $P$ therefore gives those same components and differentials. This proves that the map and its compatibility equations extend the bounded-input ones degree by degree, rather than choosing an unrelated isomorphism.

In particular open restriction and exceptional composition retain the normalizations already checked for (EX.26). For two maps the finite-resolution widths add; the same finite-index argument applies to their composite. Equivalently, in (EXA.7) the underlying coefficient projection is pullback and multiplication, so its two iterated versions agree by associativity; the displayed graded exchanges supply the Koszul signs. This proves the required compatibilities without applying $f^!$ to an object outside $D^+$.

These results supply the bounded-above first-input contract used for conic internal Hom. The [unbounded supported-evaluation proof](#SH02-EX-UNBOUNDED-SUPPORT) establishes the additional projection and comparison identities needed for (EX.40)–(EX.41) without imposing boundedness on the first complex. The bounded support proof and its counterexample to a boundedness shortcut remain valid.

## SH02-EX-DIAGONAL — Diagonals and product tests

Assume $X$ has finite compact-support cohomological dimension over $\mathbb Z$. For the projections $q_1,q_2:X\times X\to X$ and the diagonal $\Delta$, let $F\in D^+(k_X)$ and $G\in D^b(k_X)$. Then

\[
R\mathcal Hom_X(G,F)
\simeq
Rq_{1*}R\Gamma_\Delta
R\mathcal Hom_{X\times X}(q_2^{-1}G,q_1^!F).
\tag{EX.27}
\]

The dimension assumption makes $q_1^!$ available, because its fibres are copies of $X$. Let $\delta:X\to X\times X$ be the diagonal embedding, which is closed by the Hausdorff hypothesis, and abbreviate the internal Hom on the right by $H$. Formula (EX.15) rewrites $R\Gamma_\Delta H$ as $\delta_*\delta^!H$. Since $q_1\delta=\mathrm{id}$, its ordinary direct image is $\delta^!H$. Now apply (EX.26) to $\delta$:

\[
\delta^!H
\simeq R\mathcal Hom_X(\delta^{-1}q_2^{-1}G,\delta^!q_1^!F)
\simeq R\mathcal Hom_X(G,F).
\]

The last equality uses both projection–diagonal composites and (EX.13), with their identity normalizations. Thus there is no extra dimension shift in this abstract formula.

### SH02-EX-RECTANGLE — A product test for duality

Let $X,Y$ be locally compact Hausdorff, with $Y$ of finite compact-support cohomological dimension over $\mathbb Z$. Denote the projections of $X\times Y$ by $q_X,q_Y$. For $F\in D^+(k_X)$ and $G\in D^b(k_Y)$,

\[
R\Gamma\bigl(X\times Y;
R\mathcal Hom(q_Y^{-1}G,q_X^!F)\bigr)
\simeq
\mathbf{RHom}_k\bigl(R\Gamma_c(Y;G),R\Gamma(X;F)\bigr).
\tag{EX.28}
\]

No finite cohomological dimension of $X$ is required here. Apply (EX.20) to $q_X$ and then take derived global sections. Proper-support base change for the square over a point gives

\[
Rq_{X!}q_Y^{-1}G\simeq a_X^{-1}R\Gamma_c(Y;G),
\]

where $a_X:X\to\{\mathrm{pt}\}$. The usual inverse-image/direct-image adjunction, in its derived Hom form, identifies

\[
\mathbf{RHom}_X(a_X^{-1}A,F)
\simeq\mathbf{RHom}_k(A,R\Gamma(X;F)).
\]

Take $A=R\Gamma_c(Y;G)$, which is bounded by the finite dimension assumption. Combining these two identities proves (EX.28). Its map is fixed by the proper-support base-change map, evaluation, and the traces already constructed.

The product formula remains valid for left modules over an arbitrary associative ring $A$, when both sides are interpreted as complexes of abelian groups and all Hom functors are $A$-linear. Use the direct proof (EX.20a) and the ordinary $A$-linear inverse-image/direct-image adjunction. This extension does not use a tensor product of two left $A$-modules and does not require commutativity.

The same coefficient clarification applies to the diagonal formula needed for homological-dimension estimates. Its internal Hom is an abelian sheaf, and the supported operation is the integral one. For a closed embedding $i$ one has the mixed identity

\[
i_{\mathbb Z}^!R\mathcal Hom_A(P,Q)
\simeq R\mathcal Hom_A(i^{-1}P,i_A^!Q)
\tag{EX.28a}
\]

for bounded $P$ and bounded-below $Q$. Here is a proof specific to the closed inclusion, so no noncommutative tensor convention is implicit. If $I$ is injective as an $A$-module sheaf, a local $A$-linear map into $I$ is supported on the closed subset exactly when its image lies in $\Gamma_ZI$. Consequently $\Gamma_Z\mathcal Hom_A(P,I)=\mathcal Hom_A(P,\Gamma_ZI)$ at the sheaf level. The terms $\mathcal Hom_A(P^j,I^l)$ are flabby, as above; flabby sheaves are acyclic for sheaf local cohomology on a closed subset, as follows from the localization sequence and surjectivity of restriction to the complementary open. Also $i^{-1}\Gamma_ZI=i_A^!I$ is injective, since $i_*$ is exact. Resolve $Q$ by injectives and totalize; the boundedness of $P$ keeps this a bounded-below calculation. These observations derive the sheaf identity and prove (EX.28a). Applying it to the closed diagonal proves (EX.27) for arbitrary associative $A$, with the same identity normalizations and no added shift.

## SH02-EX-DUALIZING — Dualizing objects and supported dual sections

For a map satisfying (EX.1), define its relative dualizing complex by

\[
\omega_{Y/X}=f^!k_X.
\]

If $a_X:X\to\{\mathrm{pt}\}$ has finite cohomological dimension for compact support, set $\omega_X=a_X^!k$. For $F\in D^b(k_X)$ define

\[
D_XF=R\mathcal Hom_X(F,\omega_X),\qquad
D'_XF=R\mathcal Hom_X(F,k_X).
\tag{EX.29}
\]

The first is Verdier duality as an operation; the name does not assert that its square is the identity on arbitrary sheaves. The second uses the constant sheaf rather than the dualizing object.

Taking $A=k_X$ in (EX.23) and using tensor symmetry gives

\[
f^{-1}B\otimes^L\omega_{Y/X}\longrightarrow f^!B.
\tag{EX.30}
\]

Its trace is integration against the relative dualizing object, tensored with $B$. Invertibility for topological submersions is proved, for every bounded-below input, in SH02-MD-SUBMERSION. Its rectangle test identifies this actual tensor comparison. It is not part of the definition of $\omega_{Y/X}$ and does not assert invertibility for an arbitrary map.

For composable maps to a point, (EX.13) gives $f^!\omega_X\simeq\omega_Y$. For $F\in D^b(k_X)$, (EX.26) therefore gives the useful typed identity

\[
f^!D_XF\simeq D_Y(f^{-1}F),
\tag{EX.31}
\]

whenever the dualizing objects and $f^!$ are defined under the stated finite dimension assumptions. This identity does not assume biduality of $F$.

### SH02-EX-DUAL-SECTIONS — Duality of ordinary and supported sections

If $X$ has finite compact-support cohomological dimension and $F\in D^b(k_X)$, (EX.21) for $a_X$ gives

\[
R\Gamma(X;D_XF)
\simeq\mathbf{RHom}_k(R\Gamma_c(X;F),k).
\tag{EX.32}
\]

Taking degree zero yields its ordinary derived-category Hom version. Restricting to an open subset $U$ and using (EX.16), (EX.26) and $\omega_U\simeq\omega_X|_U$ gives

\[
R\Gamma(U;D_XF)
\simeq\mathbf{RHom}_k(R\Gamma_c(U;F|_U),k).
\tag{EX.33}
\]

The open subset inherits the finite dimension bound, since open extension by zero is exact and preserves compactly supported cohomology.

For a compact subset $K\subset X$, write $i:K\hookrightarrow X$. It is closed. Formula (EX.31) identifies $i^!D_XF$ with $D_K(i^{-1}F)$. Hence

\[
R\Gamma_K(X;D_XF)
\simeq\mathbf{RHom}_k(R\Gamma(K;i^{-1}F),k).
\tag{EX.34}
\]

Indeed, the left side is $R\Gamma(K;i^!D_XF)$ by (EX.15); apply (EX.32) on $K$ and use compactness to replace compact support by ordinary global sections. The finite dimension bound on $K$ follows from the exact closed direct image into $X$. Notice that (EX.34) uses the restriction of $F$ to $K$, whereas the left side uses sections of its dual supported on $K$. These are different operations.

Finally, for a locally closed subset $Z\subset X$, apply (EX.21) to its extension-by-zero constant sheaf. With $R\Gamma_Z(X;-)$ denoting derived global sections with that locally closed support convention, this gives

\[
R\Gamma_Z(X;\omega_X)
\simeq\mathbf{RHom}_k(R\Gamma_c(Z;k_Z),k).
\tag{EX.35}
\]

The equality is also obtained directly by factoring the inclusion and using $i^!\omega_X=\omega_Z$. Its definition and independence of the factorization are those fixed in (EX.15).

## SH02-EX-SUPPORT-ERASURE — Forgetting support and checking the resulting maps

Let $\pi_f:Rf_!\to Rf_*$ be the natural transformation which forgets the proper-support condition. It is the derived transformation induced by inclusion of properly supported sections in all sections. The identities below distinguish several maps that would otherwise look identical in a formula containing only stars and exclamation marks.

Keep the cartesian square of `SH02-EX-BASECHANGE`. Put

\[
b_!:g^{-1}Rf_!\xrightarrow{\sim}Rf'_!g'^{-1},
\qquad
b_*:g^{-1}Rf_*\longrightarrow Rf'_*g'^{-1}.
\]

Here $b_*$ is the ordinary base-change morphism from inverse-image/direct-image adjunction; it need not be invertible. There is the compatibility

\[
(\pi_{f'}g'^{-1})\circ b_!
=b_*\circ(g^{-1}\pi_f).
\tag{EX.36}
\]

At the sheaf level, both maps take a properly supported section to its pullback regarded as an unrestricted section. To derive this equality with the canonical maps, choose the flat-soft model (EX.4) for $Rf_!$ and an injective resolution of that model for the ordinary direct images. The comparison from the soft model to the injective one induces $\pi_f$; inverse image is exact, and the adjunction definition of $b_*$ applied to that comparison is pullback of the same sections. The sheaf-level equality is therefore an equality of the induced morphisms in the derived category. Changing resolutions leaves it unchanged by functoriality of derived transformations. This argument also proves that $\pi$ respects compositions: forgetting support in two stages is the same inclusion of sections as forgetting it for the composite map.

The mixed proper/ordinary exchange map

\[
e:Rf_!Rg'_*\longrightarrow Rg_*Rf'_!
\tag{EX.37}
\]

is defined as follows. Apply $g^{-1}$, use $b_!$, and then apply the ordinary counit $g'^{-1}Rg'_*\to\mathrm{id}$; transpose the resulting map along $g^{-1}\dashv Rg_*$. It satisfies a useful two-path identity from $Rf_!Rg'_!$ to the ordinary direct image of the composite $fg'=gf'$. One path forgets both supports immediately. The other first applies $Rf_!\pi_{g'}$, then $e$, and finally $Rg_*\pi_{f'}$. The ordinary composition isomorphism identifies their targets, and the paths agree.

For a proof, transpose the second path along $g^{-1}\dashv Rg_*$. Its defining $e$ becomes $b_!$ followed by the ordinary counit. Move the map $\pi_{f'}$ past $b_!$ by (EX.36); this gives $b_*$ followed by the same counit. The latter is exactly the adjunction description of the ordinary direct image of $fg'=gf'$. The remaining support-forgetting map is $\pi$ for the composite, by its composition compatibility. This is the transpose of the first path. The adjunction bijection proves the claimed equality.

We will use the slightly stronger intermediate identity

\[
e\circ(Rf_!\pi_{g'})
=(\pi_g Rf'_!)\circ\kappa,
\quad
\kappa:Rf_!Rg'_!\xrightarrow{\sim}Rg_!Rf'_!.
\tag{EX.37a}
\]

The isomorphism $\kappa$ is proper-support composition along the equality $fg'=gf'$. To check (EX.37a), transpose along $g^{-1}\dashv Rg_*$. The left transpose is proper-support base change followed by the map $g'^{-1}Rg'_!\to\mathrm{id}$ which evaluates a properly supported section at its pulled-back germ. The right transpose uses the same evaluation after proper-support composition. At the sheaf level they evaluate the identical section; support is only forgotten in the outer $g$ direction. The proper-support resolutions, their composition comparison and the finite base-change bridge derive this equality, since all maps used are these same section maps on the resolutions. This proves (EX.37a) before applying $Rg_*\pi_{f'}$, and in particular proves the preceding two-path identity.

For a further exchange involving exceptional inverse image in the vertical direction, assume **also** that $g_!$ has finite integral cohomological dimension. Then $g'^!$ and $g^!$ exist, because $g'$ is a base change of $g$. Define

\[
c:Rf'_!g'^!\longrightarrow g^!Rf_!
\tag{EX.38}
\]

by transposing along $Rg_!\dashv g^!$ the composite

\[
Rg_!Rf'_!g'^!\simeq Rf_!Rg'_!g'^!
\xrightarrow{Rf_!\epsilon_{g'}}Rf_!.
\]

Let $d:Rf'_*g'^!\xrightarrow{\sim}g^!Rf_*$ be (EX.17), applied with the horizontal and vertical directions exchanged and then inverted to the displayed direction. The compatibility is

\[
(g^!\pi_f)\circ c=d\circ(\pi_{f'}g'^!).
\tag{EX.39}
\]

To check it, transpose both maps along $Rg_!\dashv g^!$. The left transpose is the composite defining $c$ followed by $\pi_f$. The transpose of $d$ on the right is the exchange $Rg_!Rf'_*\to Rf_*Rg'_!$ followed by $Rf_*\epsilon_{g'}$. Apply (EX.37a) with the two directions exchanged: precomposing that exchange with $Rg_!\pi_{f'}$ is proper-support composition followed by $\pi_f Rg'_!$. Naturality of $\pi_f$ moves this map past the trace $\epsilon_{g'}$. The result is exactly the left transpose. Thus the transposes, and hence the maps, agree.

The extra hypothesis in (EX.38) is necessary for the functors in its statement to have been constructed. Finite cohomological dimension of $f_!$ alone, which suffices for (EX.17) and (EX.37), does not supply $g^!$.

### SH02-EX-HOM-SUPPORT-COMPATIBILITY — Evaluation when either support is forgotten

Let $F\in D^+(k_X)$, $G\in D^b(k_Y)$, and set $H=R\mathcal Hom_Y(G,f^!F)$. There is a second supported evaluation map

\[
u:Rf_!H\longrightarrow R\mathcal Hom_X(Rf_*G,F).
\tag{EX.40}
\]

It is defined by currying the pairing obtained from the ordinary counit $f^{-1}Rf_*G\to G$, evaluation into $f^!F$, the projection isomorphism, and the trace $\epsilon_F$. In detail, its transpose as a tensor pairing is

\[
Rf_!H\otimes^L Rf_*G
\longrightarrow Rf_!(H\otimes^L f^{-1}Rf_*G)
\longrightarrow Rf_!(H\otimes^LG)
\longrightarrow Rf_!f^!F\longrightarrow F.
\]

The two paths from $Rf_!H$ to $R\mathcal Hom_X(Rf_!G,F)$ agree:

\[
R\mathcal Hom(\pi_G,F)\circ u
=v\circ\pi_H,
\tag{EX.41}
\]

where $v:Rf_*H\xrightarrow{\sim}R\mathcal Hom_X(Rf_!G,F)$ is (EX.20). To verify the identity, curry both sides back against $Rf_!G$. The first path pairs a properly supported section of $H$ with a properly supported section of $G$, after forgetting support on the second factor. The second path uses the same evaluation but forgets support on the first factor. Both sections together give the same evaluation in $f^!F$, with support contained in the intersection of the two supports, and then the same trace. On soft and flat resolutions the two evaluations are the same chain map, with the tensor symmetry signs already fixed in (EX.22). The support-forgetting and projection compatibilities therefore give (EX.41) in the derived category.

There is a boundedness issue if one attempts to state this entire diagram for unrestricted $G\in D^+$. Its object $H$ can be unbounded below, so $Rf_!H$ cannot be computed using only the $D^+$ acyclic-model criterion. For example, on a point over a field, take $G=\bigoplus_{n\geq0}k[-n]$ and $F=k$. Then $G\in D^+$, whereas $R\operatorname{Hom}(G,k)$ has nonzero cohomology in every degree $-n$. The unbounded proper-direct-image object is supplied by [the finite acyclic model (EXA.4)](#SH02-EX-BOUNDED-ABOVE). The following unbounded projection and supported-evaluation proof establishes (EX.40)–(EX.41) for these inputs, and for arbitrary unbounded first complexes. It does not infer that their internal Hom is bounded below.

### SH02-EX-UNBOUNDED-SUPPORT — The full supported-evaluation diagram

Retain the locally compact Hausdorff spaces, coefficient convention and uniform integral dimension bound (EX.1). In this section complexes in a tensor product or a first Hom argument may be unbounded in both directions. The duality target $F$ remains in $D^+(k_X)$, so every occurrence of $f^!F$ uses the already constructed functor. We prove (EX.40)–(EX.41) for every $G\in D(k_Y)$, including the full $D^+$ range described above.

The needed unbounded foundations are already available. Flat resolutions, Theorem 3.1, supplies a K-flat resolution with flat terms for every complex. Its Lemmas 2.1–2.4 prove tensor invariance, preservation by inverse image, and the required sum and tensor closure properties. The derived tensor product, Theorems 1.2 and 2.2, fixes their resolution-independent tensor, associativity and graded symmetry. Internal derived Hom, Theorems 2.2 and 3.1, supplies unbounded tensor–Hom adjunction and its actual evaluation. We use those constructions, not a bounded truncation of the inputs.

#### Projection on unbounded complexes

Write $T_K(P)=f_!(P\otimes_{\mathbb Z}K^\bullet)$ for the finite model in (EXA.4). It preserves quasi-isomorphisms: that formula identifies it naturally with the existing derived proper image on every complex. For arbitrary complexes $P$ on $Y$ and $Q$ on $X$, the coefficient exchange (EXA.6) gives a chain isomorphism

\[
\begin{gathered}
T_K(P)\otimes_k Q\xrightarrow{\rho_{P,Q}}
T_K(P\otimes_k f^{-1}Q).
\end{gathered}
\tag{EXU.1}
\]

Here both tensor totalizations use direct sums. The component with degrees $i,p,j$ has $P^i,K^p,Q^j$, with $0\leq p\leq r$. Apply (EXA.6) and move $K^p$ past $Q^j$, multiplying by $(-1)^{pj}$. Both sides have the same direct sum over $i+p+j=n$ in degree $n$: each $f_!(-\otimes K^p)$ commutes with coproducts and the $p$ range is finite. This is a direct-sum reindexing, not an exchange with an infinite product.

The differential check is explicit. Before exchange the three terms $d_P,d_K,d_Q$ have coefficients $1,(-1)^i,(-1)^{i+p}$. After exchange the order is $P,Q,K$, with coefficients $1,(-1)^i,(-1)^{i+j}$. For $d_P$ the two routes have exponent $pj$. For $d_K$ they have $i+(p+1)j$ and $pj+i+j$, which agree. For $d_Q$ they have $i+p+p(j+1)$ and $pj+i$, which differ by $2p$. Thus (EXU.1) is a chain isomorphism. On sheaf sections its unsigned component is exactly pullback and multiplication, so it has the same unit, associativity and restriction normalization as (EX.12).

If $P$ is K-flat, then $T_K(P)$ is K-flat. Indeed, for any acyclic complex $Q$ on $X$, exact inverse image makes $f^{-1}Q$ acyclic; K-flatness makes $P\otimes f^{-1}Q$ acyclic. Applying $T_K$ gives an acyclic complex, and (EXU.1) identifies this with $T_K(P)\otimes Q$. This is the defining K-flatness test, not an inference from flat terms alone.

Choose K-flat representatives of $G\in D(k_Y)$ and $B\in D(k_X)$. By (EXA.4), (EXU.1) and this K-flatness test, its two sides compute the derived objects, giving

\[
\begin{gathered}
Rf_!G\otimes_k^L B\xrightarrow{\sim}
Rf_!(G\otimes_k^L f^{-1}B),\\
G\in D(k_Y),\qquad B\in D(k_X).
\end{gathered}
\tag{EXU.2}
\]

The quasi-isomorphism invariance and common-refinement comparisons in the cited tensor lesson make this independent of representatives and natural for derived morphisms. Every coefficient map is the section map of (EX.12), with the same graded exchange, so the tensor-unit, association and symmetry identities follow from those chain identities. On bounded-below inputs it is (EX.11). No finite-amplitude assumption on either tensor factor was inserted.

We will also need precise acyclic representatives for support maps. If $P$ is K-flat with flat terms, put $A=P\otimes_{\mathbb Z}K^\bullet$. Then $A$ is K-flat with flat $k$-module terms, its terms are $f$-soft, and $f_!A=T_K(P)$ is K-flat. For K-flatness of $A$, tensor an acyclic $k$-complex with the bounded flat integral complex $K^\bullet$, then with $P$; both operations preserve acyclicity. Flatness of its terms follows since tensoring over $k$ with $P^i$, then over $\mathbb Z$ with $K^p$, is a composite of exact functors, and direct sums of flat sheaves are flat. Relative softness follows from (EX.3) and its coproduct property. In particular, $f_!A$ is an actual model, not a complex on which termwise acyclicity is merely presumed to suffice.

#### Adjunction with an arbitrary first complex

For $F\in D^+$ choose the bounded-below injective model $I$ used in (EX.7). The chain adjunction (EX.8) holds for every complex $G$, without boundedness. To check this point, take Hom products in each total degree, distribute each finite $K$-sum, and reindex the pairs $(i,p)$. Hom out of a direct sum is a product, and a product of finite products is the product over those pairs. Apply (EX.6) to each component. Its differentials are the same tensor–Hom differentials as (EX.8). No exactness of products of sheaves or commutation of stalks with products is used.

Both $I$ and $J_KI$ are bounded-below injective, hence K-injective. Maps into them are computed in the homotopy category even when the source is unbounded. Formula (EXA.4) consequently gives the natural bijection

\[
\begin{gathered}
\operatorname{Hom}_{D(k_X)}(Rf_!G,F)
\simeq\operatorname{Hom}_{D(k_Y)}(G,f^!F),\\
G\in D(k_Y),\qquad F\in D^+(k_X).
\end{gathered}
\tag{EXU.3}
\]

This extends the first variable of the existing adjunction. It neither defines $f^!$ on arbitrary unbounded targets nor applies it to $Rf_!G$ when that object lies outside $D^+$.

Set $H=R\mathcal Hom_Y(G,f^!F)$. Its ordinary direct image is defined on the unbounded category: the exact left-adjoint criterion, Proposition 5.2 of the K-injective lesson, shows that $f_*$ preserves K-injectives because $f^{-1}$ is exact. Resolving a target by such a complex proves the ordinary adjunction $f^{-1}\dashv Rf_*$ without a boundedness restriction.

For any $C\in D(k_X)$, those ordinary and internal adjunctions, (EXU.3), and (EXU.2) give

\[
\begin{aligned}
\operatorname{Hom}(C,Rf_*H)
&\simeq\operatorname{Hom}(f^{-1}C,H)\\
&\simeq\operatorname{Hom}(f^{-1}C\otimes^L G,f^!F)\\
&\simeq\operatorname{Hom}(Rf_!(f^{-1}C\otimes^L G),F)\\
&\simeq\operatorname{Hom}(C\otimes^L Rf_!G,F)\\
&\simeq\operatorname{Hom}(C,R\mathcal Hom_X(Rf_!G,F)).
\end{aligned}
\tag{EXU.4}
\]

The two groups with targets $H$ and $f^!F$ are taken in $D(k_Y)$; every other Hom group in (EXU.4) is taken in $D(k_X)$. Every arrow is natural in $C$. The representing-object comparison therefore supplies

\[
v:Rf_*H\xrightarrow{\sim}R\mathcal Hom_X(Rf_!G,F).
\tag{EXU.5}
\]

Uncurrying (EXU.4) describes $v$ exactly: use projection with the properly supported $G$ factor, pull back $Rf_*H$ by the ordinary counit, evaluate $H\otimes^L G\to f^!F$, and apply the same trace $\epsilon_F$. The graded symmetry places $H$ before $G$ in evaluation. Thus (EXU.5) agrees with (EX.20) and (EXA.1) on their respective ranges, including their maps and normalizations, not only their underlying objects.

#### The support-forgetting equality at the chain level

For any complex $E$, the map $\pi_E:Rf_!E\to Rf_*E$ is defined using a K-injective resolution: $f_!I_E\to f_*I_E$ is inclusion of properly supported sections. The uniform finite-dimensional acyclic-model theorem identifies $f_!I_E$ with $Rf_!E$. If $E$ is instead represented by a termwise $f$-soft complex $A$, a K-injective comparison $A\to I_A$ represents the same map by

\[
f_!A\longrightarrow f_!I_A\longrightarrow f_*I_A.
\tag{EXU.6}
\]

These are the actual support inclusions; changing resolutions gives the same derived transformation by naturality of the acyclic-model comparison.

We first prove a pairing identity for arbitrary $H,G\in D(k_Y)$. Resolve each by a K-flat complex with flat terms and tensor each with a finite relative-soft resolution. Write the resulting models as $A$ for $H$ and $B$ for $G$. The preceding model check makes $A,B,f_!A,f_!B$ K-flat, and all terms of $A,B$ are $f$-soft. Moreover $A\otimes_k B$ is termwise $f$-soft: after reindexing, its terms are finite sums of a sheaf tensored with two of the flat relative-soft integral terms, and (EX.3) applies successively. Hence

\[
f_!(A\otimes_k B)\simeq Rf_!(H\otimes_k^L G)
\tag{EXU.7}
\]

by the unbounded acyclic-model theorem.

There is a natural chain pairing

\[
\mu_{A,B}:f_!A\otimes_k f_!B\longrightarrow f_!(A\otimes_k B).
\tag{EXU.8}
\]

On an open $V\subset X$, each homogeneous component sends two sections on $f^{-1}V$ to their tensor product. Its support is contained in the intersection of their supports, a closed subset proper over $V$. This proves that the map really lands in $f_!$. Bilinearity and restriction give the sheaf map. Assemble the components using sheaf direct sums and the coproduct comparison for $f_!$; the tensor differential gives its chain-map identity. This does not identify global sections of a sheaf coproduct with a sum of global sections. Its graded symmetry is precisely the tensor flip, not an unsigned interchange.

The first route from $Rf_!H\otimes^L Rf_!G$ to $Rf_!(H\otimes^LG)$ forgets support on $G$, applies (EXU.2), and uses the ordinary counit for $G$. Choose $B\to I_B$ K-injective. By (EXU.6) that route is represented by

\[
\begin{gathered}
f_!A\otimes f_!B\longrightarrow f_!A\otimes f_*I_B\\
\xrightarrow{\rho}f_!(A\otimes f^{-1}f_*I_B)
\longrightarrow f_!(A\otimes I_B).
\end{gathered}
\tag{EXU.9}
\]

This is a valid derived model even though $I_B$ need not be K-flat: $A$ and $f_!A$ are K-flat. Every term of $A\otimes I_B$ is $f$-soft by the same finite-resolution tensor argument. The map $A\otimes B\to A\otimes I_B$ is a quasi-isomorphism by K-flatness of $A$, and its proper direct image is a quasi-isomorphism by the acyclic-model theorem. On sections, (EXU.9) takes $a,b$ to $a\otimes\iota_B(b)$, where $\iota_B:B\to I_B$ is the chosen comparison. Thus (EXU.9) equals $f_!(1_A\otimes\iota_B)\circ\mu_{A,B}$ as a chain map. Inverting that particular comparison in (EXU.7) identifies the first route with $\mu_{A,B}$.

For the second route forget support on $H$ instead, using $A\to I_A$, and project with $B$ as the supported factor. It equals $f_!(\iota_A\otimes1_B)\circ\mu_{A,B}$ after placing the factors in the order $H,G$. The verification is the same section calculation: the ordinary counit restricts the image of $a$, and the product is $\iota_A(a)\otimes b$. Explicitly, for total degrees $m,n$ the flip to put $B$ first contributes $(-1)^{mn}$, and the flip back contributes $(-1)^{nm}$, so their product is $1$. The resolution exchanges are already the signed chain isomorphisms (EXU.1). K-flatness of $B$ makes $A\otimes B\to I_A\otimes B$ a quasi-isomorphism, and its terms are again $f$-soft. Therefore this route too is $\mu_{A,B}$ under the canonical acyclic-model comparison. This proves equality of the two derived routes, not merely equality of stalk dimensions or an abstract isomorphism of targets.

Now take $H=R\mathcal Hom_Y(G,f^!F)$. Compose the common pairing with derived evaluation and trace:

\[
\begin{gathered}
Rf_!(H\otimes^L G)\longrightarrow Rf_!f^!F
\xrightarrow{\epsilon_F}F.
\end{gathered}
\tag{EXU.10}
\]

Currying the first route gives exactly $R\mathcal Hom_X(\pi_G,F)\circ u$, with $u$ defined by (EX.40)'s ordinary counit, projection, evaluation and trace. Currying the second gives $v\circ\pi_H$ by the explicit transpose of (EXU.5). The proved equality of their tensor pairings and tensor–Hom adjunction therefore yield (EX.41) for arbitrary $G\in D(k_Y)$ and $F\in D^+(k_X)$. All maps commute with open restriction because their section maps and resolution comparisons do. On bounded inputs the construction is the preceding proof, with the same support inclusion, trace and signs.

The point example above still has internal Hom unbounded below. It shows why the unbounded acyclic and K-flat models were required, not a restriction on the theorem just proved. The argument does not assert biduality or extend the target domain of $f^!$ beyond $D^+$.

### SH02-EX-COEFFICIENT-ACTION — The coefficient action and the relative dualizing map

For $A,B\in D^b(k_X)$, put $P=f^{-1}R\mathcal Hom_X(A,B)$ and write $\tau_C:f^{-1}C\otimes\omega_{Y/X}\to f^!C$ for (EX.30). There are two ways to obtain a map

\[
P\longrightarrow
R\mathcal Hom_Y(f^{-1}A\otimes\omega_{Y/X},f^!B).
\tag{EX.42}
\]

The first pulls Hom back in the ordinary sense, obtaining $P\to R\mathcal Hom(f^{-1}A,f^{-1}B)$, then tensors the represented maps with $\omega_{Y/X}$ and postcomposes with $\tau_B$. The second uses the action

\[
P\longrightarrow R\mathcal Hom(f^!A,f^!B)
\]

defined by currying $f^!A\otimes P\xrightarrow{\theta}f^!(A\otimes R\mathcal Hom(A,B))\to f^!B$, and then precomposes with $\tau_A$.

These two maps agree. Curry both against $f^{-1}A\otimes\omega_{Y/X}$. In the second composite, replace $\tau_A$ by $\theta_{k_X,A}$ and use the associativity identity for $\theta$. It becomes the tensor comparison for the single coefficient object $A\otimes R\mathcal Hom(A,B)$, followed by its evaluation to $B$. Naturality of $\theta$ moves evaluation before that comparison, producing $\tau_B$ after ordinary pullback of evaluation. This is the first composite, including the symmetry used to place the factors in evaluation order. All applications of $f^!$ here have bounded-below inputs. The internal Hom targets may be viewed in the unbounded derived category already supplied by the open internal-Hom prerequisite; no unbounded $Rf_!$ is applied in this argument.

## SH02-EX-EXAMPLE-DISCRETE — Worked tests and exercises with solutions

**An arbitrary discrete fibre.** Let $S$ be any discrete set and let $a:S\to\{\mathrm{pt}\}$. A compact subset of $S$ is finite, so $a_!$ is the direct sum functor on families of modules. It is exact and has cohomological dimension zero. Its right adjoint sends a module to the constant family with that module in each component:

\[
\operatorname{Hom}_k\left(\bigoplus_{s\in S}M_s,N\right)
=\prod_{s\in S}\operatorname{Hom}_k(M_s,N).
\]

Thus $a^!N=N_S$ and $\omega_S=k_S$, with no shift, for finite or infinite $S$. The trace $\bigoplus_SN\to N$ adds the finitely many nonzero components of each vector. For $S=\varnothing$ the right adjoint is the zero object in the zero sheaf category and its trace is $0\to N$. This example tests coproducts, units and the zero-dimensional bound without any finite-rank hypothesis.

### SH02-EX-EXERCISE-BASECHANGE — A noninvertible base-change map

**Exercise.** Let $i:\{0\}\hookrightarrow\mathbb R$ and pull $i$ back along itself. For a nonzero coefficient ring $k$, compute the exceptional inverse-image base-change map (EX.17) on $k_{\mathbb R}$ and decide whether it is invertible.

**Solution.** The cartesian top map and left map are identities of a point. Formula (EX.15) identifies $i^!k_{\mathbb R}$ with the local-cohomology complex at zero. On a small interval $V$ about zero, the localization triangle has middle term $R\Gamma(V;k)=k$ and complementary term $R\Gamma(V\setminus\{0\};k)=k\oplus k$, both in degree zero. These interval computations use SH02-CA-LOCAL-SYSTEM, which proves ordinary acyclicity and identifies the actual section-to-germ map for arbitrary coefficient modules. The intervening map is the diagonal $k\to k\oplus k$. Its kernel is zero and its cokernel is $k$, so the supported complex is $k[-1]$. The base-change map is consequently a map $k[-1]\to k$. Its degree-one source cohomology is $k$, whereas the target has no degree-one cohomology. It cannot be a quasi-isomorphism. This is the exceptional inverse-image comparison, not a counterexample to the proper-support base-change isomorphism used to define it.

### SH02-EX-EXERCISE-COMPONENTS — Open and closed components

**Exercise.** Let $X=U\sqcup Z$ be a disjoint union of two open and closed subspaces. Describe $j^!$, $i^!$ and the two traces for the inclusions. Check the localization triangle on an arbitrary $F\in D^+(k_X)$.

**Solution.** A sheaf or complex on $X$ is a pair $(F_U,F_Z)$. Both inclusions are open, so their exceptional inverse images are the corresponding restrictions. Both are closed, so supported local cohomology is the pair $(F_U,0)$ or $(0,F_Z)$. The traces are the inclusions of those summands. The localization triangle is the split triangle

\[
(0,F_Z)\longrightarrow(F_U,F_Z)\longrightarrow(F_U,0)
\longrightarrow(0,F_Z)[1],
\]

whose connecting map is zero. This directly reconciles the open and closed descriptions of an exceptional inverse image when both apply.

### SH02-EX-EXERCISE-AMPLITUDE — Dimension bounds under composition

**Exercise.** Suppose the integral dimensions of $g_!$ and $f_!$ are at most $s$ and $r$. Give a lower bound for $(fg)^!F$ if $F\in D^{\geq a}$, and compare the direct construction with successive exceptional inverse images. Explain why this is not a proof that $(fg)^!$ preserves bounded complexes.

**Solution.** The direct construction uses a finite flat-soft resolution of length at most $r+s$, hence gives $(fg)^!F\in D^{\geq a-r-s}$. The successive construction gives $f^!F\in D^{\geq a-r}$ and then $g^!f^!F\in D^{\geq a-r-s}$. Their normalized isomorphism (EX.13) identifies these conclusions. The construction uses an injective resolution of $F$, which need not terminate in the sheaf category, so no finite upper bound has been proved. Lower boundedness alone does not establish membership in $D^b$.

### SH02-EX-EXERCISE-TRACE — Testing the trace sign

**Exercise.** In (EX.23), replace the trace $\epsilon$ by $-\epsilon$ while retaining the same unit. Is this another normalized tensor comparison for the same adjunction? What changes if the coefficient ring has characteristic two?

**Solution.** The first triangle identity in (EX.10) becomes $-1$ rather than $1$, so this does not preserve the given adjunction unless $1=-1$ on all the relevant objects. It also makes $\theta_{A,k_X}$ equal to $-1$ instead of the required unit. In characteristic two these particular signs coincide, but that coincidence gives no freedom to alter formulas over a general coefficient ring. The question illustrates why identifying the underlying functor does not by itself fix an adjunction normalization.

## What this construction supports

The lesson supplies a resolution model for $f^!$, the trace and unit, restriction and composition, the two different base-change comparisons, tensor and internal-Hom identities, and the abstract dualizing objects. The exact topological imports are isolated in `SH02-EX-FOUNDATIONS`; the interval computation in the worked costalk test now uses the exact acyclicity proof linked there. SH02-MD-SUBMERSION identifies $\omega$ with the shifted relative orientation local system and proves the submersion tensor comparison invertible. SH02-MD-TRACE fixes its normalization and base-change compatibility. Biduality with its full finiteness hypotheses remains a separate theorem; it does not follow from the existence of these operations.

The same results are treated in Schapira, [*An Introduction to Sheaves on Grothendieck Topologies*](https://webusers.imj-prg.fr/~pierre.schapira/LectNotes/SHV.pdf), §§4.3–4.7: soft and compactly soft sheaves, finite cohomological dimension, projection, proper-support base change, exceptional adjunction, internal Hom and dual sections. The projection theorem there has bounded/ bounded-above input conventions, and the existence theorem for the exceptional right adjoint invokes Brown representability from a separate reference. It therefore does not replace the explicit finite soft resolution and representing-sheaf construction given here. Kashiwara and Schapira, [*Microlocal study of sheaves*](https://webusers.imj-prg.fr/~pierre.schapira/BooksMono/Ast128.pdf), §1.3.5, provides the manifold internal exceptional-Hom formulas with their bounded first input.

The construction above fixes every comparison by its adjoint evaluation or counit, retains finite cohomological dimension for proper-support image, and proves the stated bounded-below functor range with the finite flat/soft model. In particular the closed-embedding exceptional-to-ordinary map need not be invertible. The full bounded-above first-input internal-Hom comparisons and the unbounded proper-direct-image model are proved in [SH02-EX-BOUNDED-ABOVE](#SH02-EX-BOUNDED-ABOVE), using exact existing resolution providers. The [unbounded projection and supported-evaluation proof](#SH02-EX-UNBOUNDED-SUPPORT) supplies (EX.40)–(EX.41), with arbitrary first complexes and bounded-below duality targets. No right-adjoint construction on arbitrary unbounded targets is claimed. Original exposition, examples and reader code are dedicated under CC0 1.0 Universal; human works retain their own rights.
