What the Sheaf pt. I

If you're like me and hoped to understand the following tweet someday: meme but were afraid it was beyond hope, then fret not. Today, we are going to start a soft introduction into a multipart series of sheaves. In a perfect world, I would like to do a categorical-free approach, but this is unfortunately, not feasible. I will try to keep the category theory jargon to a minimum, and indeed, a background in category theory is not needed, but it may be helpful.

So what is a sheaf? Perhaps, "a contravariant functor from the opposite category of open sets" means nothing to you, and that's ok. The definition is much simpler than it may initially appear. We begin by fixing a topological space $X$. To avoid pathologies, we usually require $X$ to be Hausdorff, second countable etc. (some nerds even require Tychonoff but this is not necessary). Then a sheaf is a contravariant functor $\mathscr{F}: \mathrm{Open}_X^{\mathrm{opp}}\to \mathscr{B}$ where $\mathscr{B}$ is a category. So for an open $U\subseteq X$, $\mathscr{F}(U)$ assigns an object of $\mathscr{B}$. In most cases in algebraic geometry, $\mathscr{B}$ is the category of rings or $A$-modules. So sheaves eat open sets, and spit out (usually) rings or $A$-modules. More concretely, to each open set in $X$, a sheaf assigns a ring. In our case, keep the ring of real-valued smooth functions $C^\infty(\mathbb{R})$ in mind as your working example.

Ok, I kind of lied. Before we can go much further, we need to mention the notion of a germ. A germ is just the data of a function on some open neighborhood about a point. So at some point $p \in U$, a germ of $p$ captures some local behavior of a function. So a germ is usually written as a pair $(f,U)$. Furthermore, two germs $(f,U)$ and $(g,V)$ are equivalent if they agree on some smaller set $W$. If we collect all the germs about a point, that is, all the possible local behavior of functions about that point, we get the stalk at $p$, usually denoted $\mathscr{F}_p$. For those familiar with vector bundles, the stalk is similar to a collection of sections of a vector bundle (as it turns out, vector bundles are special cases of sheaves). Then a sheaf, is a special gluing of these germs together.

Ok, I lied even more. I gave some motivation for sheaves, but we need to backtrack even more and talk about presheaves. I'm tired right now, however, so we will pick this up later with a discussion of presheaves and get into the nitty gritty later.