A visualisation of Serre duality and Hodge diamonds
The functionality outlined below, and much more, is implemented in Hodge diamond cutter, which can be used in Sage. If you use it for your research, please cite it using .
Summary: look at the page cohomology-tables/index.html
, it gives you numbers if you move the sliders. It's fun. If you wish to understand what the numbers mean, read on. If you want to take a look at the code: see pbelmans/cohomology-tables.
Serre duality
A few days ago I wanted to visualise Serre duality for twists of the structure sheaf $\mathcal{O}_X(r)$, for $X$ a complete intersection. By visualise I mean write down the dimensions of the cohomology spaces. That way it becomes clear which spaces are dual to eachother, and it also shows the vanishing results that are applicable in that situation.
The main theorem that I needed for this to work is proposition 5 (in paragraph 78) of Serre's Faisceaux algébriques cohérents:
Proposition 5. Soit $V$ une intersection complète, définie par des polynômes homogènes $P_1,\dots,P_{r-p}$ de degrés $m_1,\dots,m_{r-p}$.
- L'application $S(V)_n\to\mathrm{H}^0(V,\mathcal{O}_V(n))$ est bijective pour tout $n\in\mathbb{Z}$.
- $\mathrm{H}^q(V,\mathcal{O}_V(n))=0$ pour $0<q<p$ et tout $n\in\mathbb{Z}$.
- $\mathrm{H}^p(V,\mathcal{O}_V(n))$ est isomorphe à l'espace vectoriel dual de $\mathrm{H}^0(V,\mathcal{O}_V(N-n))$ avec $N=\sum_{i=1}^{r-p}m_i-r-1$.
The notation $S(V)_n$ in the statement refers to the degree $n$ part of the homogeneous coordinate ring of $V$ (i.e. the quotient of $k[x_0,\dotsc,x_n]$ by $I=(P_1,\dotsc,P_{r-p})$, where $V$ is a complete intersection in $\mathbb{P}_k^r$. This means that the codimension of $V$ is as high as it can be: with each equation $P_i$ it can drop with at most 1, and hence if it drops each time we get a $r-p$-dimensional variety.
This statement allows us easily to give the dimensions of the cohomology spaces, as in degree 0 we get a bijection with an explicit vectorspace, in intermediate degrees we have a vanishing result, and for the top degree we get an explicit duality with degree 0 information. The only part missing is computing the dimension of the degree 0 spaces. For this we use the fact that the Hilbert series of such a complete intersection (in the notation of Serre) is given by $$ \displaystyle\frac{\prod_{i=1}^{r-p}(1-t^{p_i})}{(1-t)^r}. $$
Hence if we can compute the coefficients in this series we have the dimensions we are looking for. This is just manipulating series, and is part of any computer algebra system.
But I wanted a HTML version of this. So I wrote an implementation of power series (in one variable) in Javascript. Using this implementation and a little HTML5 magic I then obtained the following tool to display the dimensions of the cohomology spaces of $\mathcal{O}_X(r)$.
Hodge diamonds
Another class of interesting numbers related to cohomology of complete intersections can be found in the Hodge diamond. Now we don't look at the structure sheaf and its twists, but at $\Omega_X^p$, the differential $p$-forms and its cohomology. This algorithm is based on Nicolas Addington's complete_intersection.cpp
. It uses:
- Hilbert polynomials are additive with respect to exact sequences
- the Euler exact sequence (and its exterior powers) relating the structure sheaf to differential forms, to get Hilbert polynomials for these objects
- the adjunction formula (and its exterior powers) relating the differential forms of the ambient space to the hypersurface (i.e. this is done inductively for each hypersurface)
- the Lefschetz hyperplane theorem to compute the dimensions of the cohomology spaces (with an error term for the top degree, as this is where the Lefschetz hyperplane theorem doesn't apply immediately).
By implementing this in Javascript (I claim no originality here, it is a straightforward port of the C++ code) we obtain the following tool to display the Hodge diamond. I thank Johan de Jong for the suggestion on the Hodge diamonds.
Disclaimer It might not work in browsers different from Google Chrome and Safari. And be careful, if you push the limits of the Hodge diamond (high dimensions, high degrees of equations) it might run into (silent) overflows. I might fix this later on.