Consider the following: • X: a
closed symplectic manifold of dimension 2k, • A : a 2-dimensional homology class in X, • g : a non-negative integer, • n : a non-negative integer. Now we define the Gromov–Witten invariants associated to the 4-tuple: (X,A,g,n). Let \overline{\mathcal{M}}_{g, n} be the
Deligne–Mumford moduli space of curves of genus g with n marked points and \overline{\mathcal{M}}_{g, n}(X, A) denote the moduli space of
stable maps into X of class A, for some chosen
almost complex structure J on X compatible with its symplectic form. The elements of \overline{\mathcal{M}}_{g, n}(X, A) are of the form: :::(C, x_1, \ldots, x_n, f), where C is a (not necessarily stable) curve with n marked points x_1,\dots ,x_n and f:C\to X is
pseudoholomorphic. The moduli space has real dimension :::d := 2 c_1^X (A) + (2k - 6) (1 - g) + 2 n. Let :::\mathrm{st}(C, x_1, \ldots, x_n) \in \overline{\mathcal{M}}_{g, n} denote the
stabilization of the curve. Let :::Y := \overline{\mathcal{M}}_{g, n} \times X^n, which has real dimension 6g- 6 + 2(k + 1)n. There is an evaluation map ::: \begin{cases} \mathrm{ev}: \overline{\mathcal{M}}_{g, n}(X, A) \to Y \\ \mathrm{ev}(C, x_1, \ldots, x_n, f) = \left(\operatorname{st}(C, x_1, \ldots, x_n), f(x_1), \ldots, f(x_n) \right). \end{cases} The evaluation map sends the
fundamental class of \overline{\mathcal{M}}_{g, n}(X, A) to a d-dimensional rational homology class in Y, denoted :::GW_{g, n}^{X, A} \in H_d(Y, \Q). In a sense, this homology class is the
Gromov–Witten invariant of X for the data g, n, and A. It is an
invariant of the symplectic isotopy class of the symplectic manifold X. To interpret the Gromov–Witten invariant geometrically, let \beta be a homology class in \overline{\mathcal{M}}_{g, n} and \alpha_1, \ldots, \alpha_n homology classes in X, such that the sum of the codimensions of \beta, \alpha_1, \ldots, \alpha_n equals d. These induce homology classes in Y by the
Künneth formula. Let :GW_{g, n}^{X, A}(\beta, \alpha_1, \ldots, \alpha_n) := GW_{g, n}^{X, A} \cdot \beta \cdot \alpha_1 \cdots \alpha_n \in H_0(Y, \Q), where \cdot denotes the
intersection product in the rational homology of Y. This is a rational number, the
Gromov–Witten invariant for the given classes. This number gives a "virtual" count of the number of pseudoholomorphic curves (in the class A, of genus g, with domain in the \beta-part of the Deligne–Mumford space) whose n marked points are mapped to cycles representing the \alpha_i. There are numerous variations on this construction, in which cohomology is used instead of homology, integration replaces intersection,
Chern classes pulled back from the Deligne–Mumford space are also integrated, etc. ==Computational techniques==