Suppose we are given a sheaf G {\displaystyle {\mathcal {G}}} on Y {\displaystyle Y} and that we want to transport G {\displaystyle {\mathcal {G}}} to X {\displaystyle X} using a continuous map f : X → Y {\displaystyle f\colon X\to Y} .
We will call the result the inverse image or pullback sheaf f − 1 G {\displaystyle f^{-1}{\mathcal {G}}} . If we try to imitate the direct image by setting
for each open set U {\displaystyle U} of X {\displaystyle X} , we immediately run into a problem: f ( U ) {\displaystyle f(U)} is not necessarily open. The best we could do is to approximate it by open sets, and even then we will get a presheaf and not a sheaf. Consequently, we define f − 1 G {\displaystyle f^{-1}{\mathcal {G}}} to be the sheaf associated to the presheaf:
(Here U {\displaystyle U} is an open subset of X {\displaystyle X} and the colimit runs over all open subsets V {\displaystyle V} of Y {\displaystyle Y} containing f ( U ) {\displaystyle f(U)} .)
For example, if f {\displaystyle f} is just the inclusion of a point y {\displaystyle y} of Y {\displaystyle Y} , then f − 1 ( F ) {\displaystyle f^{-1}({\mathcal {F}})} is just the stalk of F {\displaystyle {\mathcal {F}}} at this point.
The restriction maps, as well as the functoriality of the inverse image follows from the universal property of direct limits.
When dealing with morphisms f : X → Y {\displaystyle f\colon X\to Y} of locally ringed spaces, for example schemes in algebraic geometry, one often works with sheaves of O Y {\displaystyle {\mathcal {O}}_{Y}} -modules, where O Y {\displaystyle {\mathcal {O}}_{Y}} is the structure sheaf of Y {\displaystyle Y} . Then the functor f − 1 {\displaystyle f^{-1}} is inappropriate, because in general it does not even give sheaves of O X {\displaystyle {\mathcal {O}}_{X}} -modules. In order to remedy this, one defines in this situation for a sheaf of O Y {\displaystyle {\mathcal {O}}_{Y}} -modules G {\displaystyle {\mathcal {G}}} its inverse image by
However, the morphisms G → f ∗ f − 1 G {\displaystyle {\mathcal {G}}\rightarrow f_{*}f^{-1}{\mathcal {G}}} and f − 1 f ∗ F → F {\displaystyle f^{-1}f_{*}{\mathcal {F}}\rightarrow {\mathcal {F}}} are almost never isomorphisms. For example, if i : Z → Y {\displaystyle i\colon Z\to Y} denotes the inclusion of a closed subset, the stalk of i ∗ i − 1 G {\displaystyle i_{*}i^{-1}{\mathcal {G}}} at a point y ∈ Y {\displaystyle y\in Y} is canonically isomorphic to G y {\displaystyle {\mathcal {G}}_{y}} if y {\displaystyle y} is in Z {\displaystyle Z} and 0 {\displaystyle 0} otherwise. A similar adjunction holds for the case of sheaves of modules, replacing i − 1 {\displaystyle i^{-1}} by i ∗ {\displaystyle i^{*}} .