1 Introduction

Throughout this paper we fix a Calabi–Yau 3-fold \(X\) with \(H^1(\mathcal {O}_X)=0\).

String theorists conjecture the modularity of certain generating functions of counts of supersymmetric D4–D2–D0 BPS states of \(X\) [4, 5, 12]. Motivated by this we define invariants of \(X\) which count 0- and 1-dimensional subschemes (i.e., D2–D0 branes) of hyperplanes (D4 branes) in \(X\). We briefly discuss the relationship to the physicists’ S-duality conjecture in Sect. 4.

We wish to count pairs of the form

$$\begin{aligned} Z\subset H\quad \mathrm {in\ \ }X, \end{aligned}$$
(1)

where \(H\) is a suitably ample hypersurface and \(Z\) is a one-dimensional subscheme of \(H\). While we demand that \(H\) be pure of dimension 2 (i.e., a divisor in \(X\)), the subscheme \(Z\) need not be pure, so is in general the union of a curve and a 0-dimensional subscheme.

Since \(H^1(X,\mathcal {O}_X)=0\), all deformations of \(H\) are in the same linear system

$$\begin{aligned} |H|:=\mathbb {P}(H^0(\mathcal {O}_X(H))). \end{aligned}$$

This carries a universal hyperplane

(2)

The data (1) are naturally parameterized by the relative Hilbert scheme of one-dimensional subschemes of the fibers of the family (2). That is, if we fix \(\beta \in H_2(X,\mathbb {Z})\) and \(n\in \mathbb {Z}\), then the moduli space of pairs (1) is the relative Hilbert scheme

$$\begin{aligned} \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|) \end{aligned}$$
(3)

of one-dimensional subschemes \(Z\) of the universal hyperplane whose pushforward to \(X\) has fundamental class \(\beta =[Z]=\mathrm{ch }_2(i_*\mathcal {O}_Z)\) and holomorphic Euler characteristic \(n=\chi (\mathcal {O}_Z)\).

We will produce a symmetric perfect obstruction theory on (3) by considering it as a moduli space of torsion sheaves of the form

$$\begin{aligned} i_*I_Z\,\in \,\mathrm{Coh }(X). \end{aligned}$$
(4)

Here \(i:H\hookrightarrow X\) is the inclusion, and \(I_Z\) denotes the ideal sheaf of \(Z\) considered as a subscheme of \(H\). So (4) is a torsion sheaf on \(X\) with rank 1 on its two-dimensional support \(H\). When \(Z\subset H\) is a Cartier divisor, it is the pushforward of a line bundle on \(H\).

Theorem 1

Suppose that \(H\) is sufficiently positive with respect to \(\beta \in H_2(X;\mathbb {Z})\) and \(n\in \mathbb {Z}\), in the sense of Definition 2.2. Then

$$\begin{aligned} \mathrm{Hilb }_{\beta ,n}(\mathcal H/|H|) \end{aligned}$$

is a locally complete moduli space of torsion sheaves (4) on \(X\). It admits a symmetric perfect obstruction theory and so a virtual cycle of virtual dimension 0.

There are two obvious problems to overcome in proving Theorem 1:

  • The sheaves (4) need not be (Gieseker) semistable when \(H\) is reducible or nonreduced.

  • Deformations of (4) might not, a priori, be sheaves of the same form. They could be arbitrary torsion sheaves of the same topological type, like the pushforward \(i_*L\) of a general line bundle on a hyperplane \(H\) (rather than one which is a subsheaf of \(\mathcal {O}_H\)).

We circumvent these by using certain Joyce–Song pairs [7]. These come with a different notion of stability which gets round the first problem. And for \(H\gg 0\), they allow us to see that deformations of (4) are also push forwards of ideal sheaves, so that \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) is indeed an open and closed subscheme of the stack of all coherent sheaves on \(X\).

Our Joyce–Song pairs are of the form

$$\begin{aligned} \Big (\mathcal {I}_{Z\,},\,s\in H^0(\mathcal {I}_Z(H))\Big ), \end{aligned}$$

where \(Z\) and \(H\) are as before, but \(\mathcal {I}_Z\) denotes the ideal sheaf of \(Z\) when considered as a subscheme of \(X\) (rather than \(H\)).Footnote 1 Since the torsion-free rank-1 sheaf \(\mathcal {I}_Z\) is automatically Gieseker stable, the only further stability condition we need is that \(s\) should be nonzero. Therefore we get an injection

$$\begin{aligned} \mathcal {O}(-H)\mathop {\longrightarrow }\limits ^{s}\mathcal {I}_Z \end{aligned}$$
(5)

whose cokernel \(i_*I_Z\) is the torsion sheaf (4). That is, if we let \(I^\bullet \in D(X)\) denote the two term complex formed by (5), then

the Joyce-Song complexes \(I^\bullet \) [5] are quasi-isomorphic to the torsion sheaves [4].

More globally we show in Proposition 2.1 that this observation gives an isomorphism between

  • an open and closed subscheme of the moduli space of Joyce–Song pairs (5), and

  • the relative Hilbert scheme (3) parameterizing the sheaves (4).

Finally, for \(H\gg 0\), Joyce and Song show that the deformation theory of the complexes \(I^\bullet \in D(X)\) gives this space a symmetric perfect obstruction theory. Since \(I^\bullet \) is quasi-isomorphic to \(i_*I_Z\in D(X)\), this shows that the deformation theory of the sheaf \(i_*I_Z\) indeed endows \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) with a symmetric perfect obstruction theory.

Using Theorem 1 we can define an invariant

$$\begin{aligned} N^H_{\beta ,n}(X):=\int _{[\mathrm{Hilb }_{\beta ,n}(\mathcal H/|H|)]^{vir}}1. \end{aligned}$$

Since the obstruction theory is symmetric, by [1] this can also be written as a weighted Euler characteristic of \(\mathrm{Hilb }_{\beta ,n}(\mathcal H/|H|)\). The invariants \(N^H_{\beta ,n}\) are closely related to the MNOP invariants \(I_{\beta ,n}(X)\) counting the ideal sheaves \(\mathcal {I}_Z\) of \(X\).

Theorem 2

Under the conditions of Theorem 1 we have

$$\begin{aligned} N^H_{\beta ,n}=(-1)^{\mathsf {c}-1}\,\mathsf {c} \cdot I_{\beta ,n}\,, \end{aligned}$$

where \(\mathsf {c}=\mathsf {c}(\beta ,n,H,X)\) is the topological number

$$\begin{aligned} \int _X\Big (\frac{1}{6}H^3+H^2\mathrm{td }_2(X) -H \cdot \beta \Big )-n. \end{aligned}$$

Example 1.1

Most of the examples worked out explicitly in [5, Sections 2.1–2.6] fit into the setting of this section and hence, the corresponding invariants are captured by the invariants \(N^H_{\beta ,n}\). As an illustration, we work out the following two simple cases for linear hyperplane sections \(H\) of the quintic Calabi–Yau threefold \(X\).

  • \(\mathcal {I}_p\) is the ideal sheaf of a point \(p\in X\), so \(\beta =0\), \(n=1\) and

    $$\begin{aligned} \mathsf {c}=\mathrm{td }_2(X)\cdot H+H^3/6-1=25/6+5/6-1=4. \end{aligned}$$

    Also \(I_{0,1}=-\chi (X)=200\), so Theorem 2 gives

    $$\begin{aligned} N^{H}_{0,1}=(-1)^3\times 4\times 200=-800. \end{aligned}$$
  • \(\mathcal {I}_C\) is the ideal sheaf of a line \(C\subset X\), so \(\beta \cdot H=1,\ n=1\), and hence

    $$\begin{aligned} \mathsf {c}=25/6+5/6-1=3. \end{aligned}$$

    Also \(I_{\beta ,1}=2875\), the number of rational degree 1 curves in a generic quintic, giving \(N^H_{\beta ,1}=(-1)^2\times 3\times 2875=8625\). \(\oslash \)

2 Proof of Theorem 1

A Joyce–Song stable pair [7] is a pair

$$\begin{aligned} \Big (E,\,s\in H^0(E(H))\Big ), \end{aligned}$$

such that

  • \(E\) is coherent sheaf on \(X\), Gieseker semistable with respect to \(H\), and

  • \(s\) is a section which does not factor through any destabilizing subsheaf of \(E\).

A family of such pairs over a base scheme \(B\) is a sheaf \(\mathcal {E}\) over \(X\times B\), flat over \(B\), and a section of \(\mathcal {E}\otimes \pi _X^*\mathcal {O}(H)\) such that the restriction of \((\mathcal {E},s)\) to any fiber \(X\times \{b\}\) is a stable pair in the above sense. Fixing a Chern character \(c\in H^{\mathrm {ev}}(X,\mathbb {Q})\), there is a projective scheme

$$\begin{aligned} J_c(X) \end{aligned}$$

representing the moduli functor which assigns to a scheme \(B\) the set of isomorphism classesFootnote 2 of Joyce–Song stable pairs over \(B\).

Forgetting the section \(s\) and passing to the S-equivalence class of the sheaf \(E\) gives a morphism

$$\begin{aligned} J_{c}(X)\longrightarrow M_{c}(X) \end{aligned}$$

to the moduli space of Gieseker semistable sheaves \(E\) of Chern character \(c\).

We take

$$\begin{aligned} c=(1,0,-\beta ,-n). \end{aligned}$$

Then the Hilbert scheme \( I_n(X,\beta )\) of ideal sheaves \(\mathcal {I}_Z\) defines an open and closed subschemeFootnote 3 of \(M_{c}(X)\) (see for instance the proof of Theorem 2.7 in [13] for a careful proof of this fact). Thus its inverse image

$$\begin{aligned} J_n(X,\beta ):=J_{c}(X)\times _{M_{c}(X)} I_n(X,\beta ) \end{aligned}$$

is both open and closed in \(J_{c}(X)\). It therefore has the same deformation theory as \(J_{c}(X)\), so we can use the results of Joyce and Song.

Proposition 2.1

\(J_n(X,\beta )\cong \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\).

Proof

\(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) carries a pair of universal subschemes

$$\begin{aligned} \mathcal Z\subset \mathcal {H}\subset X\times \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|). \end{aligned}$$
(6)

Letting \(i\) denote the second inclusion, we get the right hand column and central row of the following commutative diagram of short exact sequences.

(7)

Filling in the diagram gives the top row, producing the flat family of stable pairs

$$\begin{aligned} \mathcal {O}\mathop {\longrightarrow }\limits ^{s}\mathcal {I}_{\mathcal Z}(\mathcal {H}-\pi _X^*H)\otimes \pi _X^*\mathcal {O}(H) \end{aligned}$$
(8)

over the base \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\). This is classified by a map from the base to the moduli space of stable pairs:

$$\begin{aligned} \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\longrightarrow J_n(X,\beta ). \end{aligned}$$
(9)

Similarly, \(X\times J_n(X,\beta )\) carries a universal stable pair

$$\begin{aligned} \mathcal {O}\longrightarrow \mathcal E\otimes \pi _X^*\mathcal {O}(H), \end{aligned}$$
(10)

flat over \(J_n(X,\beta )\). Since the restriction of \(\mathcal E\) to each \(X\)-fiber is torsion-free of rank 1, its double dual \(\mathcal E^{\vee \vee }\) is locally free by [8, Lemma 6.13]. Therefore it defines a map from \(J_n(X,\beta )\) to \(\mathrm{Pic }(X)\) which takes closed points to the trivial line bundle \(\mathcal {O}_X\). But \(H^1(X,\mathcal {O}_X)=0\) so \(\mathrm{Pic }(X)\) is a union of discrete reduced points and the map is constant. Pulling back a Poincaré line bundle shows that \(\mathcal E^{\vee \vee }\) is the pullback \(\pi _J^*L\) of some line bundle \(L\) on \(J_n(X,\beta )\). Therefore \(\mathcal E\subset \mathcal E^{\vee \vee }\) must take the form

$$\begin{aligned} \mathcal E\,\cong \,\pi _J^*L\otimes \mathcal {I}_{\mathcal Z} \end{aligned}$$
(11)

for some subscheme \(\mathcal Z\subset X\times J_n(X,\beta )\). Since \(\mathcal E\) is flat over \(J_n(X,\beta )\), so \(\mathcal Z\) must be too.

Composing the section (10) with \(\mathcal E\rightarrow \mathcal E^{\vee \vee }\) gives a section

$$\begin{aligned} \mathcal {O}_{X\times J_n(X,\beta )}\longrightarrow \mathcal {O}(H)\boxtimes L, \end{aligned}$$
(12)

nonzero on each \(X\)-fiber by stability. Its zero locus is a divisor

$$\begin{aligned} \mathcal {H}\in |\mathcal {O}(H)\boxtimes L|, \end{aligned}$$

giving a classifying map \(J_n(X,\beta )\rightarrow |H|\) such that the pullback of \(\mathcal {O}_{X\times |H|}(\mathcal {H})\) is \(\mathcal {O}(H)\boxtimes L\). Since the section (12) factors through (11) it follows that

$$\begin{aligned} \mathcal Z\subset \mathcal H, \end{aligned}$$

giving us a classifying map from our base \(J_n(X,\beta )\) to \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\). By inspection it is the inverse of the map (9). \(\square \)

Definition 2.2

Assume that \(\beta \in H_2(X;\mathbb {Z})\) and \(n\in \mathbb {Z}\) are given. We say \(H\) is sufficiently positive with respect to \(\beta ,n\) if

$$\begin{aligned} H^i(X,\mathcal {I}_Z(H))=0 \end{aligned}$$
(13)

for \(i>0\) for any ideal sheaf \(\mathcal {I}_Z\in I_n(X,\beta )\). For fixed \((\beta ,n)\) the ideal sheaves \(\mathcal {I}_Z\in I_n(X,\beta )\) form a bounded family, so (13) is satisfied for all \(H\) sufficiently positive. \(\oslash \)

Corollary 2.3

Suppose that \(H^1(X,\mathcal {O}_X)=0\) and \(\beta ,n,H\) satisfy (13). Then, using the same notation as in (6), the deformation-obstruction theory of the sheaves \(i_*I_Z\) (4) given by [6, Section 4.4],

$$\begin{aligned} \tau ^{[1,2]}R\pi _{H*}R\mathcal {H}om(i_*I_{\mathcal Z},i_*I_{\mathcal Z})[2]\longrightarrow \mathbb {L}_{\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|),} \end{aligned}$$
(14)

defines a symmetric perfect obstruction theory on \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\).

In (14), \(\pi _H\) denotes the projection from \(X\times \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) to its second factor. We recall the definition of the arrow [6, Section 4]. Project the Atiyah class

$$\begin{aligned} \mathrm{At }(i_*I_{\mathcal Z})\,\in \,\mathrm{Ext }^1\big (i_*I_{\mathcal Z},\,i_*I_{\mathcal Z}\otimes \mathbb L_{X\times \mathrm{Hilb }}\big ) \end{aligned}$$

to

$$\begin{aligned} \mathrm{Ext }^1\big (i_*I_{\mathcal Z},\,i_*I_{\mathcal Z}\otimes \pi _H^*\mathbb L_{\mathrm{Hilb }}\big ) \end{aligned}$$

and consider the resulting element as a map

$$\begin{aligned} \pi _H^*\mathbb L_{\mathrm{Hilb }}^\vee \longrightarrow R\mathcal {H}om(i_*I_{\mathcal Z},i_*I_{\mathcal Z})[1]. \end{aligned}$$
(15)

By adjunction this induces

$$\begin{aligned} \mathbb L_{\mathrm{Hilb }}^\vee \longrightarrow R\pi _{H*}R\mathcal {H}om(i_*I_{\mathcal Z},i_*I_{\mathcal Z})[1]. \end{aligned}$$
(16)

Next we project to the \(\tau ^{\ge 0}\) truncation of the right hand side. In turn this receives a map from the truncation \(\tau ^{[0,1]}\), and in [6, Section 4.4] it is shown that the map from \(\mathbb L_{\mathrm{Hilb }}^\vee \) lifts uniquely to it. Dualizing and using Serre duality down the fibers of \(\pi _H\) gives (14).

Proof of corolloary 2.3  For \(H\gg 0\), Joyce and Song [7, Theorem 12.20] give a symmetric perfect obstruction theory on \(J_c(X)\):

$$\begin{aligned} \tau ^{[1,2]}R\pi _{J*}R\mathcal {H}om(\mathbb {I}^\bullet ,\mathbb {I}^\bullet )[2]\longrightarrow \mathbb L_{J_c(X)}. \end{aligned}$$
(17)

Here \(\pi _J\) is the projection \(X\times J_c(X)\rightarrow J_c(X)\) and \(\mathbb {I}^\bullet \in D(X\times J_c(X))\) is the 2-term complex

$$\begin{aligned} \mathcal {O}_{X\times J_c(X)}(-\pi _X^*H)\longrightarrow \mathcal {E}\end{aligned}$$

defined by the universal stable pair \(\mathcal {O}\rightarrow \mathcal {E}\otimes \pi _X^*\mathcal {O}(H)\). (From now on we suppress the \(\pi _X^*\).) The arrow in (17) is the composition of Serre duality for \(R\pi _{J*}R\mathcal {H}om(\mathbb {I}^\bullet , \mathbb {I}^\bullet )\) and the Atiyah class of \(\mathbb {I}^\bullet \), just as in (16).

We restrict their result to \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) using Proposition 2.1. Their precise \(H\gg 0\) condition is that the sheaves in their stable pairs are \(H\)-regular; this becomes the cohomology vanishing condition (13). The first row of the diagram (7) gives the quasi-isomorphism

$$\begin{aligned} \mathbb {I}^\bullet \otimes \mathcal {O}(H-\mathcal {H})\ =\ \big \{\mathcal {O}_{X\times \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)}(-\mathcal {H})\rightarrow \mathcal {I}_{\mathcal Z}\big \}\ \simeq \ i_*I_{\mathcal Z}. \end{aligned}$$

Using the line bundle \(\mathcal {O}(1)\) pulled back from the projective space \(|H|\), we have the isomorphism

$$\begin{aligned} \mathcal {O}(\mathcal H)\cong \mathcal {O}(H)\boxtimes \mathcal {O}(1). \end{aligned}$$

In particular, \(\mathbb {I}^\bullet \simeq i_*I_{\mathcal Z}(\mathcal {H}-H)\cong i_*I_{\mathcal Z}(1)\), so (17) can be written

$$\begin{aligned} \tau ^{[1,2]}R\pi _{H*}R\mathcal {H}om(i_*I_{\mathcal Z}(1),i_*I_{\mathcal Z}(1))[2] \longrightarrow \mathbb L_{\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|).} \end{aligned}$$

Again the arrow is given by the composition of Serre duality and the Atiyah class of \(i_*I_{\mathcal Z}(1)\).

This is almost identical to (14, 16) except for the twist by \(\mathcal {O}(1)\). Now

$$\begin{aligned} \mathrm{At }(i_*I_{\mathcal Z}(1))\,=\,\mathrm{At }(i_*I_{\mathcal Z})+\mathrm{id }_{i_*I_{\mathcal Z}}\otimes \mathrm{At }(\mathcal {O}(1)) \end{aligned}$$

in \(\mathrm{Ext }^1\big (i_*I_{\mathcal Z}(1),\,i_*I_{\mathcal Z}(1)\otimes \pi _H^*\mathbb L_{\mathrm{Hilb }}\big )\cong \mathrm{Ext }^1\big (i_*I_{\mathcal Z},\,i_*I_{\mathcal Z}\otimes \pi _H^*\mathbb L_{\mathrm{Hilb }}\big )\). That is, tensoring with \(\mathcal {O}(1)\) changes the map (15) by addition of the following composition

Therefore (16) changes by addition of the composition

The truncation procedure gives unique lifts to the \(\tau ^{[0,1]}\) truncation of the central and right hand terms. But our \(H^1(X,\mathcal {O}_X)=0\) condition means that \(\tau ^{[0,1]}\) applied to the central term is zero.

Corollary 2.3 completes the proof of Theorem 1.

3 Proof of Theorem 2

By Corollary 2.3 we define the invariants associated to \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\). These invariants give a virtual count of the pairs (1). Then we will relate them to the MNOP invariants \(I_{\beta ,n}\) counting subschemes \(Z\subset X\).

Definition 3.1

Let \(X\) be a Calabi–Yau 3-fold with \(H^1(X,\mathcal {O}_X)=0\) and suppose that \(H\) is sufficiently positive with respect to \(\beta ,n\) in the sense of Definition 2.2.

The perfect obstruction theories of Corollary 2.3 and [14] respectively endow \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) and \( I_n(X,\beta )\) with virtual cycles of dimension zero. We define

$$\begin{aligned} N^H_{\beta ,n}:=\int _{[\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)]^{vir}}1\,,\qquad I_{\beta ,n}:=\int _{[ I_n(X,\beta )]^{vir}}1\,. \end{aligned}$$

Since these obstruction theories are symmetric, by [1] the invariants can also be written as weighted Euler characteristics

$$\begin{aligned} N^H_{\beta ,n}&= \chi \big (\!\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|),\nu _{\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)}\big ), \\ I_{\beta ,n}&= \chi \big ( I_n(X,\beta ),\nu _{ I_n(X,\beta )}\big ), \nonumber \end{aligned}$$
(18)

where \(\nu _M\) denotes the Behrend function [1] of a scheme \(M\). \(\oslash \)

By the usual arguments [6, 7, 14] these invariants are unchanged under smooth deformation of \(X\).

There is an obvious forgetful map

$$\begin{aligned} \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\longrightarrow I_n(X,\beta ), \qquad (Z\subset H)\mapsto Z. \end{aligned}$$
(19)

The fiber over \(Z\subset X\) is \(\mathbb {P}(H^0(\mathcal {I}_Z(H)))\). More globally we have the following result. We use the notation

$$\begin{aligned} \mathcal Z\subset X\times I_n(X,\beta )\mathop {\longrightarrow }\limits ^{\pi _I}I_n(X,\beta ) \end{aligned}$$

for the universal subscheme and the projection to the second factor.

Lemma 3.2

Supposing again that \(\beta ,n,H\) satisfy (13), then the map (19) is the projective bundle

$$\begin{aligned} \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\cong \mathbb {P}(\pi _{I*}\mathcal {I}_{\mathcal Z}(H)). \end{aligned}$$

Proof

The cohomology vanishing condition (13) ensures that \(\pi _{I*}\mathcal {I}_{\mathcal Z}(H)\) is a vector bundle. Its pullback to \(\mathbb {P}(\pi _{I*}\mathcal {I}_{\mathcal Z}(H))\) carries a tautological subbundle

$$\begin{aligned} \mathcal {O}(-1)\hookrightarrow \pi _{I*}\mathcal {I}_{\mathcal Z}(H), \end{aligned}$$

where again we have suppressed the pullback map. By adjunction we get

$$\begin{aligned} \pi _I^*\mathcal {O}(-1)\hookrightarrow \mathcal {I}_{\mathcal Z}(H) \end{aligned}$$

and so a nowhere vanishing section of \(\mathcal {I}_{\mathcal Z}(H)\boxtimes \mathcal {O}(1)=\mathcal {I}_{\mathcal Z}(\mathcal H)\). This is a family of stable pairs over the base \(\mathbb {P}(\pi _{I*}\mathcal {I}_{\mathcal Z}(H))\), classified by a map

$$\begin{aligned} \mathbb {P}(\pi _{I*}\mathcal {I}_{\mathcal Z}(H))\longrightarrow J_n(X,\beta )\,\cong \,\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|). \end{aligned}$$
(20)

Conversely, \(X\times \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) carries the universal family of stable pairs (8). Twisting by \(\mathcal {O}(-1)\) (pulled back from \(|H|\)) gives

$$\begin{aligned} \mathcal {O}(-1)\mathop {\longrightarrow }\limits ^{s}\mathcal {I}_{\mathcal Z}(H). \end{aligned}$$

Pushing down to \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) gives

$$\begin{aligned} \mathcal {O}(-1)\hookrightarrow \pi _{H*}\mathcal {I}_{\mathcal Z}(H). \end{aligned}$$
(21)

Now \(\pi _{H*}\mathcal {I}_{\mathcal Z}(H)\) on \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) is the pullback of the bundle \(\pi _{I*}\mathcal {I}_{\mathcal Z}(H)\) on \(I_n(X,\beta )\) via the map (19). Therefore the line subbundle (21) is classified by a map \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\rightarrow \mathbb {P}(\pi _{I*}\mathcal {I}_{\mathcal Z}(H))\), the inverse of (20). \(\square \)

Corollary 3.3

For \(H^1(X,\mathcal {O}_X)=0\) and \(\beta ,n,H\) satisfying (13), the invariants of Definition 3.1 satisfy

$$\begin{aligned} N^H_{\beta ,n}=(-1)^{\mathsf {c}-1}\,\mathsf {c}\cdot I_{\beta ,n\,}, \end{aligned}$$

where \(\mathsf {c}=\mathsf {c}(\beta ,n,H,X)\) is the topological number

$$\begin{aligned} \mathsf {c}=\chi (\mathcal {I}_Z(H))=\int _X\Big (\frac{1}{6}H^3+H^2\mathrm{td }_2(X) -H \cdot \beta \Big )-n. \end{aligned}$$

Proof

By Lemma 3.2, the map (19)

$$\begin{aligned} \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\longrightarrow I_n(X,\beta ) \end{aligned}$$

is smooth of relative dimension \(\chi (\mathcal {I}_Z(H))-1\). Therefore by [1, Proposition 1.5(i)], the Behrend function of \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) is the pullback of that of \( I_n(X,\beta )\), multiplied by \((-1)^{\chi (\mathcal {I}(H))-1}\). Since the fibers of the map (19) have Euler characteristic \(\chi (\mathcal {I}_Z(H))\), the formulas (18) give the result.

Corollary 3.3 finishes the proof of Theorem 2. Note that if \(H^2(X,\mathbb {Z})\) is torsion-free then \(I_n(X,\beta )\cong M_{c}(X)\) for \(c=(1,0,-\beta ,-n)\), and \(J_{c}(X)\cong \mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) by Proposition 2.1. In this case Corollary 3.3 is a special case of the wall-crossing formula [7, Theorem 5.27].

4 S-duality and modularity

Our motivation for defining the invariants \(N^H_{\beta ,n}\) was to try to understand how to define the “supersymmetric BPS invariants associated to supersymmetric D4–D2–D0 systems” studied by string theorists [4, 5, 12]. Based on relation of D4-D2-D0 branes with two-dimensional conformal field theory [9], the generating series of these BPS invariants are argued to be modular forms [2, 4]. This remarkable modularity can also be deduced from the S-duality (electric-magnetic duality) of string theory [3].

Most of the examples of D4-D2-D0 systems studied in [5, Sections 2.1–2.6] are of the form (4) above, which is what led to our definition. However it seems that in general one should count all (semi)stable torsion sheaves with two-dimensional support of the right topological type, not just those of the form (4). Assuming that the physical count is given by Joyce–Song’s generalized DT invariant, the S-duality predictions take the following form.

Assume for simplicity that \(\mathrm{Pic } X\) is generated by an ample divisor \(L\). Fix \(k\in \mathbb {Z}_{>0}\) and let \(H\) be a smooth element of \(|kL|\). Denoting the generator of \(H^4(X,\mathbb {Z})\cong \mathbb {Z}\) by \(\ell \) and fixing \(i,n\in \mathbb {Z}\), we let

$$\begin{aligned} c=c(i,n)=(0,\,H,\,H^2/2-i \ell ,\,\chi (\mathcal {O}_{H})-H\cdot \mathrm{td }_2 (X)-n). \end{aligned}$$

Then there is a moduli space \(M_c(X)\) of Gieseker-semistable sheaves on \(X\) with Chern character \(c\), and Joyce–Song’s generalized Donaldson–Thomas invariant \(\overline{DT}(c)\in \mathbb {Q}\) [7]. We define the generating function of these invariants with fixed 1st and 2nd Chern characters by

$$\begin{aligned} Z^{H}_i(q)=\sum _{n\in \mathbb {Z}}\overline{DT}(c(i,n))q^n. \end{aligned}$$

Tensoring by \(\mathcal {O}(\pm L)\) induces isomorphisms of the moduli spaces \(M_c(X)\), so the generating series \(Z^{H}_i(q)\) and \(Z^{H}_{i\pm kL^3}(q)\) only differ by a shift in the power of \(q\).

According to [4, 5] the vector of generating series

$$\begin{aligned} \Big (q^{a_i}Z^{H}_i(q)\Big )_{i=0}^{kL^3-1} \end{aligned}$$

should be a holomorphic vector-valued modular form of weight \(-3/2\), where

$$\begin{aligned} a_i\ =\ \frac{(2i+H^3)^2}{8H^3}-\frac{H^3}{8}-\frac{\chi (H)}{24}\ \in \ \mathbb {Q}. \end{aligned}$$

When all of the sheaves (4) are stableFootnote 4 one can think of \(N^H_{\beta ,n}\) as the contribution of the component \(\mathrm{Hilb }_{\beta ,n}(\mathcal {H}/|H|)\) of the moduli space of torsion sheaves to the physicists’ numbers. But more generally one would expect to be able to relate our invariants \(N^H_{\beta ,n}\) to the \(\overline{DT}(c)\) via a sequence of wall crossings.Footnote 5 Ideally these would be in the space of Bridgeland stability conditions on \(D(X)\), starting from a stability condition that approximates Joyce–Song stability for the complexes (5), and ending with one approximating Gieseker stability for the quasi-isomorphic sheaves (4).

In combination with Corollary 3.3 this would express the MNOP invariants \(I_{\beta ,n}\) in terms of modular forms via universal formulae arising from the wall crossing. This would constrain the \(I_{\beta ,n}\) enormously, so that calculation of a finite number of these invariants should determine all the rest. We plan to return to this in future work.