Theta lifts for Lorentzian lattices and coefficients of mock theta functions

We evaluate regularized theta lifts for Lorentzian lattices in three different ways. In particular, we obtain formulas for their values at special points involving coefficients of mock theta functions. By comparing the different evaluations, we derive recurrences for the coefficients of mock theta functions, such as Hurwitz class numbers, Andrews’ spt-function, and Ramanujan’s mock theta functions.


Introduction
Special values of modular forms at complex multiplication points play a prominent role in number theory. For instance, they are crucial in explicit class field theory and in the Chowla-Selberg formula. Moreover, the evaluation of automorphic Green functions at CM points determines archimedean height pairings appearing in the Gross-Zagier formula and some of its generalizations [24]. These can be computed using suitable see-saw dual pairs for regularized theta lifts of harmonic Maass forms to orthogonal groups of signature (2, n), see [35] or [15], for example.
In the present paper, we study similar special values of regularized theta lifts for Lorentzian lattices, that is, for even lattices of signature (1, n). It was shown in [16] that these values appear naturally as vanishing orders of Borcherds products along boundary divisors of toroidal compactifications of orthogonal Shimura varieties. Here we compute the special values in several different ways. As an application, we derive general recursive formulas for the coefficients of mock theta functions. These include the Hurwitz-Kronecker class number relations and some generalizations as special cases. We give a more detailed outline of our results now.

Theta lifts for Lorentzian lattices
Let L be an even lattice of signature (1, n) with n ≥ 1. Let L denote its dual lattice and let Gr(L) be the Grassmannian of positive lines in L ⊗ R. The associated Siegel theta function L (τ, z) is defined on H × Gr(L) and takes values in the group ring C[L /L]. As a function of τ ∈ H it transforms like a modular form of weight (1 − n)/2 for the Weil representation ρ L associated to L. Furthermore, it is invariant in z under the subgroup of O(L) fixing L /L. Following Borcherds [4], for a harmonic Maass form f of weight (1 − n)/2 for ρ L we define the regularized theta lift where F T denotes the standard fundamental domain for SL 2 (Z), cut off at height v = T , and ·, · is the natural inner product on C[L /L] which is antilinear in the second variable.
One of the special features in signature (1, n) is that the theta lift ( f , z) converges without the additional regularization employed by Borcherds in [4]. Another peculiarity is the fact that ( f , z) defines a continuous function on Gr(L) which is real-analytic up to singularities along certain sub-Grassmannians of signature (1, n − 1), whose shape is determined by the principal part of the input harmonic Maass form f . In this article, we study three different evaluations of the theta lift ( f , z). First, by writing f as a linear combination of Maass Poincaré series and using the unfolding argument we obtain an invariant representation of ( f , z) as a convergent series. Second, using the unfolding argument on (a Poincaré series representation of) the Siegel theta function L (τ, z) we obtain the Fourier expansion of ( f , z). Finally, we evaluate the theta lift at special points w ∈ Gr(L), which means that w is defined over Q. In this case, we consider the positive definite one-dimensional and negative definite n-dimensional sublattices Then P ⊕ N has finite index in L. For simplicity, let us assume in the introduction that L = P ⊕ N . Then the Siegel theta function for L, evaluated at w, naturally splits as a tensor product of the Siegel theta functions associated to P and N . Note that P (τ ) is a holomorphic unary theta series of weight 1/2. We choose a harmonic Maass form P (τ ) of weight 3/2 which maps to P (τ ) under the ξ -operator and then use Stokes' Theorem to evaluate the regularized integral defining ( f , w). To describe the resulting expression, let us assume for the moment that f is weakly holomorphic. Then we obtain where CT denotes the constant term of a q-series, + P is the holomorphic part of the harmonic Maass form P , and N − is the holomorphic theta series associated to the positive definite n-dimensional lattice N − = (N , −Q). A similar method for the evaluation of theta lifts at special points has been used by several authors, see [15,20,35], for example.
Note that + P (τ ) is a mock theta function of weight 3/2. Hence, by comparing the three evaluations of the theta lift, one can obtain recurrences for the coefficients of mock theta functions. A classical example of such recurrences are the Hurwitz-Kronecker class number relations for m ∈ N, where H (n) are the Hurwitz class numbers and σ 1 (m) = d|m d is the usual divisor sum. Note that the Hurwitz class numbers are the coefficients of the holomorphic part of Zagier's weight 3/2 non-holomorphic Eisenstein series [38]. In other words, they are the coefficients of a mock theta function. We will see in Sect. 4 that the class number relations can be deduced by comparing the different evaluations of the theta lift for the even unimodular lattice of signature (1, 1).
The problem of finding recurrences for the Hurwitz class numbers has a long history, which goes back at least to Kronecker [30] and Hurwitz [26], and has been further investigated by Eichler [21] and Cohen [18], amongst others. By now, there is a very rich literature on recurrences for Hurwitz class numbers and, more generally, for the coefficients of mock theta functions. Such relations can be proved, for example, by studying Fourier coefficients of Eisenstein series (see [18,25,36,37]) or using the method of holomorphic projection (see [1,6,19,27,31,32]). Our work yields a new and quite flexible method for finding recurrences of mock theta functions, which offers a lot of freedom in the choice of the lattice L and the special point w ∈ Gr(L).
We explain our results in an example in signature (1, 2) in more detail now.

Theta lifts in signature (1, 2)
We consider the lattice L = Z 3 with the quadratic form Q(a, b, c) = −b 2 + ac. It is an even lattice of signature (1,2). The Grassmannian of L can be identified with the complex upper half-plane H, and the action of the modular group = SL 2 (Z) by fractional linear transformations on H corresponds to its natural action on L by isometries, so we can view the theta lift ( f , z) as a -invariant function on H. Moreover, vector-valued modular forms for the Weil representation associated to L can be identified with scalar-valued modular forms f for 0 (4) satisfying the Kohnen plus space condition, so we can use scalar-valued modular forms f as inputs for the theta lift. Finally, the set of vectors in the dual lattice L of fixed norm −D/4 may be identified with the set Q D of integral binary quadratic forms [a, b, c] of discriminant D = b 2 − 4ac. These simplifications allow us to describe our results in a more classical language in the introduction. We also refer the reader to Sect. 4.4 for more details on the translation of the results from the body of the paper to the language used in the introduction. We let M ! −1/2 be the space of weakly holomorphic modular forms f = n −∞ a f (n)q n of weight −1/2 for 0 (4) satisfying the Kohnen plus space condition a f (n) = 0 for n ≡ 1, 2 (mod 4). For every discriminant D > 0 there exists a unique weakly holomorphic modular form f D ∈ M ! −1/2 whose Fourier expansion starts f D = q −D + O(1), and these forms constitute a basis of M ! −1/2 . The function f D can be explicitly constructed as a Maass Poincaré series. Using the unfolding argument, we obtain the following expression as an infinite series for the theta lift ( f D , z).
The series on the right-hand side converges absolutely.
We refer the reader to Theorem 3.1 for the general result for lattices of signature (1, n). We would like to remark that a direct computation shows that the image of ( f D , z) under the Maass lowering operator L = −2iy 2 ∂ ∂z is a multiple of the weight −2 locally harmonic Maass form F −1,D (z) investigated in [7].
To describe our second expression for ( f D , z) we require the L-function where we wrote D = D 0 f 2 with a fundamental discriminant D 0 and a suitable f ∈ N (compare [29, p. 188]). Moreover, L D 0 (s) denotes the usual Dirichlet L-function associated to the quadratic character χ D 0 = D 0 · , μ is the Moebius function and σ s (n) = d|n d s is a generalized divisor sum. The special values L D (1 − k) at negative integers 1 − k appear as Fourier coefficients of Cohen's Eisenstein series of weight k + 1/2, compare [18]. Using Cohen's Eisenstein series of weight 5/2 and the residue theorem one can show that the constant coefficient of the weakly holomorphic modular form f D is given by a f D (0) = −120L D (−1). The following expression for ( f D , z) can be obtained by writing the theta function as a Poincaré type series and using the unfolding argument.

Theorem 1.2 The theta lift ( f D , z) has the Fourier expansion
where B 2 (x) is the one-periodic function which agrees with the Bernoulli polynomial B 2 (x) = x 2 − x + 1 6 for 0 ≤ x < 1, and δ D= equals 1 or 0 according to whether D is a square or not.
The general version of this result can be found in Theorem 3.3.

Remark 1.3 (1)
The condition a|z| 2 + bx + c > 0 > a means that the geodesic C Q = {z ∈ H : a|z| 2 + bx + c = 0} is a semi-circle centered at the real line and that z lies in the interior of the bounded component of H\C Q . This implies that the sum on the right-hand side in the theorem is finite for fixed z, and vanishes for all y > √ D. In particular, the above theorem gives a finite expression for ( f D , z).
(2) It is easy to see from the above evaluation of ( f D , z) that the special value of the lift at a CM point z of discriminant d < 0 is a rational multiple of π √ |d|.
We next describe another evaluation of ( f D , z) at CM points z ∈ H. Note that the special points in Gr(L) precisely correspond to the CM points in H. The crucial observation here is that the Siegel theta function L (τ, z), evaluated at a CM point z ∈ H, splits as a tensor product of two Siegel theta functions P (τ ) and N (τ ) associated to a positive definite one-dimensional sublattice P and a negative definite two-dimensional sublattice N . We can then use Stokes' Theorem to evaluate the theta integral ( f D , z) in terms of the Fourier coefficients of f D (τ ) and the coefficients of the holomorphic part of a harmonic Maass form P (τ ) of weight 3/2 which maps to the unary theta function P (τ ) under the antilinear differential operator where we wrote τ = u + iv ∈ H.
To simplify the exposition in the introduction, we consider the CM point z = i. In this case, the unary theta function P (τ ) is essentially equal to the usual Jacobi theta function θ(τ ) = n∈Z q n 2 . We let θ(τ ) be a harmonic Maass form of weight 3/2 for 0 (4) which maps to θ(τ ) under ξ 3/2 . We have the following result.

Theorem 1.4
The special value of ( f D , z) at z = i is given by where a f D (−d) and a + θ (d) denote the coefficients of f D (τ ) and the holomorphic part of θ(τ ), respectively.
The general formula for lattices of signature (1, n) is given in Theorem 3.5.

Remark 1.5
The choice of θ(τ ) is not unique, but two ξ -preimages of θ(τ ) may differ by a weakly holomorphic modular form of weight 3/2. Since the left-hand side in Theorem 1.4 does not depend on the choice of θ(τ ), we obtain the formula d∈Z a f D (−d) x,y∈Z x≡d (2) a g (d − x 2 − y 2 ) = 0 for every weakly holomorphic modular form g = n −∞ a g (n)q n ∈ M ! 3/2 and every discriminant D > 0. This vanishing result can also be explained from the fact that the sum on the left-hand side is the constant coefficient of a weakly holomorphic modular form of weight 2 for SL 2 (Z), which is essentially obtained by multiplying f D (τ )g(τ ) with a weight one binary theta series, compare Theorem 3.5 below.
Note that the holomorphic part of θ(τ ) is a mock theta function of weight 3/2. For other CM points z ∈ H the right-hand side will involve the coefficients of a mock theta function of weight 3/2 of higher level (depending on the discriminant of z).
In the current situation, there is a canonical preimage θ(τ ) of θ(τ ). Namely, Zagier [38] showed that the generating series ∞ n=0 H (n)q n of Hurwitz class numbers H (n), with H (0) = −1/12, is the holomorphic part of a harmonic Maass form of weight 3/2 for 0 (4) which maps to −(1/16π)θ(τ ) under ξ 3/2 . In particular, Theorem 1.4 yields the formula Here we used that a f D (0) = −120L D (−1). Comparing this evaluation of ( f D , i) and the one from Theorem 1.2, we obtain the following recurrence for the Hurwitz class numbers.
To further illustrate the formulas that we can obtain using theta lifts for lattices of signature (1, n), we give another example in signature (1, 1). We consider Andrews' smallest parts function spt(n), which counts the total number of smallest parts in the partitions of n. For n ∈ N 0 we let with the partition function p(n). It follows from work of Bringmann [5] that the generating series is a mock theta function of weight 3/2 whose shadow is a multiple of the Dedekind eta function. By comparing our different evaluations of the theta lift for a certain lattice of signature (1, 1), we obtain the following recurrences for s(n).
for all m ∈ N.
We refer the reader to Example 4.4 for more details on the proof of the above proposition. Using the method of holomorphic projection, similar recursions for the spt-function were derived by Ahlgren and Andersen in [1], and by Dabholkar, Murty and Zagier in [19, Example 3 in Section 7.1].
Finally, we would like to remark that our different evaluations of the theta lift only yield recurrences for mock theta functions of weight 3/2. However, one can use the methods of this paper to study a similar theta lift obtained by replacing L (τ, z) with a modified theta function * L (τ, z), in order to find recurrences for mock theta functions of weight 1/2. We will sketch this method, which yields recurrences for some of Ramanujan's classical mock theta functions, in Sect. 4.3.
This work is organized as follows. In Sect. 2 we collect the necessary preliminaries about vector-valued harmonic Maass forms for the Weil representation, Siegel theta functions and their splittings at special points, and different models of the Grassmannian Gr(L). In Sect. 3, which is the technical heart of this work, we compute the theta lift for lattices of signature (1, n) in three different ways. Finally, in Sect. 4 we discuss several applications of these different evaluations and obtain recurrences for the coefficients of some mock theta functions.

Preliminaries
Throughout this section, we let L be an even lattice of signature ( p, q) with quadratic form Q and associated bilinear form (·, ·). The dual lattice of L will be denoted by L .

The Weil representation
Let C[L /L] be the group ring of L, which is generated by the standard basis vectors e γ for γ ∈ L /L. We let ·, · be the natural inner product on C[L /L] which is antilinear in the second variable. Let Mp 2 (Z) be the metaplectic double cover of SL 2 (Z), realized as the set where we put e(x) = e 2πi x for x ∈ C. The Weil representation ρ L − associated to the lattice L − = (L, −Q) will be called the dual Weil representation associated to L.

Operators on vector-valued modular forms
For k ∈ 1 2 Z we let A k,L be the set of all functions f : H → C that transform like modular forms of weight k for ρ L , which means that f is invariant under the slash operator which are defined for f ∈ A k,L and γ ∈ K /K by and for g ∈ A k,K and γ ∈ L /L by They are adjoint with respect to the inner products on C[L /L] and C[K /K ]. We refer the reader to [10, Section 3] , or [34,Section 4], for more details.

Harmonic Maass forms
Recall from [12] that a harmonic Maass form of weight k ∈ 1 2 Z for ρ L is a smooth function f : H → C which is annihilated by the weight k Laplace operator which transforms like a modular form of weight k for ρ L , and which is at most of linear exponential growth at the cusp ∞. The space of harmonic Maass forms of weight k for ρ L is denoted by H k,L . We let M ! k,L be subspace of weakly holomorphic modular forms, which consists of the forms that are holomorphic on H. The antilinear differential operator where a ± f (γ , n) ∈ C, q = e 2πiτ , and (s,

Maass Poincaré series
Examples of harmonic Maass forms of weight k ≤ 0 can be constructed using Maass Poincaré series, compare [9, Section 1.3] . For s ∈ C and v > 0 we let with the usual M-Whittaker function. For β ∈ L /L and m ∈ Z − Q(β) with m > 0, and s ∈ C with (s) > 1 we define the Maass Poincaré series where ∞ is the subgroup of Mp 2 (Z) generated by T = 1 1 0 1 , 1 . It converges absolutely for (s) > 1, it transforms like a modular form of weight k for ρ L , and it is an eigenform of the Laplace operator k with eigenvalue s(1 − s) + (k 2 − 2k)/4. For k = 0 the Maass Poincaré series is also called a Niebur Poincaré series [33]. It has a meromorphic continuation in s to C which is obtained from its Fourier expansion and which is holomorphic at s = 1. For all k ≤ 0 the special value defines a harmonic Maass form in H cusp k,L whose Fourier expansion starts with In particular, for k ≤ 0 every harmonic Maass form f ∈ H cusp k,L with Fourier expansion as in (2.1) can be written as a linear combination of Maass Poincaré series and a constant c ∈ C[L /L], which may be non-zero only if k = 0.

Siegel theta functions and special points
As before, we let L be an even lattice of signature ( p, q). Let Gr(L) be the Grassmannian of positive definite p-dimensional subspaces of V = L ⊗R. The Siegel theta function associated to L is defined by where τ = u + iv ∈ H and z ∈ Gr(L), and λ z denotes the orthogonal projection of λ to z. The Siegel theta function transforms like a modular form of weight p−q 2 for ρ L in τ (see [4,Theorem 4.1] ) and is invariant in z under the subgroup of O(L) fixing L /L.
For a special point w ∈ Gr(L) its orthogonal complement w ⊥ in V is also defined over Q and we obtain the positive and negative definite lattices Note that P ⊕ N is a sublattice of L of finite index. The Siegel theta functions associated to L and P ⊕ N are related by with the trace operator defined in Sect. 2.2. Moreover, at the special point w the Siegel theta function associated to P ⊕ N splits as a tensor product These two observations can be proved by direct calculations using the definition of the Siegel theta function.

Unary theta series and Atkin-Lehner operators
For d ∈ N the one-dimensional positive definite lattice Z(d) = (Z, dx 2 ) has level 4d and its discriminant group is isomorphic to Z/2dZ with the Q/Z-valued quadratic form x → x 2 /4d. The unary theta series are holomorphic modular forms for the Weil representation associated to Z(d) of weight 1/2 and 3/2, respectively. For an exact divisor c || d the Atkin-Lehner involution σ c on Z/2dZ is the map defined by the equations σ c (x) ≡ −x(2c) and σ c (x) ≡ x(2d/c). The Atkin-Lehner involutions act on vector-valued modular forms for the Weil representation associated to Z(d) by

The upper half-space model of Gr(L)
Let L be a lattice of signature (1, n) with n ≥ 1. In this case, the Grassmannian Gr(L) can be identified with hyperbolic n-space, as we now explain. For simplicity, we assume that L contains two primitive isotropic vectors and with ( , ) = 1, that is, L splits a hyperbolic plane over Z. We consider the negative definite lattice Note that L /L ∼ = K /K . We can identify Gr(L) with one of the two connected components of the set of norm 1 vectors in V = L ⊗ R. We choose the component and identify V 1 with the Grassmannian by mapping z ∈ Gr(L) to This is called the hyperboloid model of hyperbolic space. Furthermore, we can identify V 1 with the upper half-space model by mapping (x, y) ∈ H n to the norm 1 vector Note that we can write λ ∈ V as λ = b + a + c with b ∈ K ⊗ R and a, c ∈ R. Then Q(λ) = Q(b) + ac. In the hyperboloid model and the upper half-space model the quantity Q(λ z ) is given by This can be used to translate the formulas from Theorems 3.1 and 3.3 into the corresponding statements in the introduction.

The regularized theta lift
Let L be a Lorentzian lattice, that is, an even lattice of signature (1, n) with n ≥ 1. Throughout, we let k = (1−n)/2 and we let f ∈ H cusp k,L be a harmonic Maass form with Fourier expansion as in (2.1). Following Borcherds [4], for z ∈ Gr(L) we define the regularized theta lift In this section we evaluate the regularized theta lift of f ∈ H cusp k,L in three ways. For simplicity, we assume throughout that the constant c in (2.2) vanishes also in the case n = 1.
(1) We write f as a linear combination of Maass Poincaré series F β,m as in (2.2) and use the unfolding argument to compute (F β,m , z). This yields an invariant representation of ( f , z) as an infinite series. (2) By unfolding against the theta function and using the shape of the singularities of the theta lift, one can compute the Fourier expansion of ( f , z) on all of Gr(L). (3) At special points w ∈ Gr(L) we can compute ( f , w) by using the splitting (2.4) of the Siegel theta function and applying Stokes' theorem. We obtain a formula for ( f , w) involving the coefficients of a mock theta function of weight 3/2.

An invariant representation of the theta lift
Let k = (1 − n)/2 as before. We have the following representation of ( f , z) as an infinite series.

Theorem 3.1 For f ∈ H
cusp k,L and z ∈ Gr(L) we have a, b, c; x) denotes Gauss' hypergeometric function. The series on the right-hand side converges absolutely. we find

2)
and for n = 2 and f ∈ H cusp −1/2,L we obtain Using Q(λ z ⊥ ) = Q(λ) − Q(λ z ) together with (2.5) one can translate the above series representation of ( f , z) into the upper half-space model, which yields Theorem 1.1.

Proof of Theorem 3.1
Write f as a linear combination of Maass Poincaré series F β,m as in (2.2). Recall that we assume c = 0 also in the case n = 1. We have As in [9, Theorem 2.13], we can compute (F β,m (·, s), z) by unfolding against F β,m (τ, s) and get We plug in s = 1 − k/2 = (3 + n)/4 to obtain the stated formula. For k < 0 the absolute convergence of the series on the right-hand side of the theorem is contained in [9, Theorem 2.13], and for k = 0, that is, signature (1, 1), it follows from the more explicit formulas for the series given in Theorem 4.1 and Theorem 4.5 (together with Remark 4.6) below.

The Fourier expansion of the theta lift
In order to state the Fourier expansion of the theta lift we need to assume that L contains a primitive isotropic vector . Moreover, to simplify the exposition, we further assume in this section that L contains another primitive isotropic vector with ( , ) = 1 and a negative definite sublattice K of rank n − 1 such that as an orthogonal direct sum. In other words, we assume that L splits a hyperbolic plane over Z. Note that in this case we have L /L ∼ = K /K .
It is convenient now to use the upper half-space model of Gr(L), compare Sect. 2.7. The theta lift ( f , (x, y)), viewed as a function on the upper half-space H n , has the following Fourier expansion.  , (x, y) where B 2 (x) is the one-periodic function which agrees with the Bernoulli polynomial B 2 (x) = x 2 − x + 1/6 for 0 ≤ x < 1 and K 1−k (x) denotes the K -Bessel function.

Remark 3.4
(1) If f ∈ M ! k,L is weakly holomorphic, then the second line in the theorem vanishes. All remaining sums are finite, so the above expansion gives a finite expression for ( f , (x, y)) for weakly holomorphic f .
then the set λ ⊥ (consisting of all z ∈ Gr(L) orthogonal to λ) is in the upper half-space model given by The third line in the above Fourier expansion reproduces the singularities of ( f , (x, y)) along those λ ⊥ with a = 0, while the sum involving the function B 2 (x) in the first line gives the singularities along those λ ⊥ with a = 0.
Proof of Theorem 3. 3 We first show that the sum in the last line of the theorem is finite for fixed (x, y) ∈ H n , and vanishes for all y big enough, independently of x. We can split the sum into a finite sum over those m < 0 with a + f (b, m) = 0 for some b ∈ K , and a sum over a, c ∈ Z, b ∈ K with Q(b) + ac = m and a(y 2 − Q(x)) + (b, x) + c > 0 > a. For a, c ∈ Z and b ∈ K with a < 0 and Q(b) + ac = m, we have where we used the Cauchy-Schwarz inequality in the first step. In particular, for fixed (x, y) ∈ H n we have which is positive only for finitely many a ∈ Z, a < 0. Furthermore, this shows that a(y 2 − Q(x)) + (b, x) + c > 0 > a implies y ≤ √ |m|, so each summand in the third line of the theorem vanishes for y > √ |m|. Fix one of the finitely many a < 0 for which ay 2 + m a is positive. Then we can write Since (b, x) − Q(b) a is positive only for finitely many b ∈ K , we see that the sum in the third line of the theorem is finite for fixed (x, y) ∈ H n .
We now write f as a linear combination of Maass Poincaré series F β,m in order to apply results from [9]. First, equation (3.11) in [9] gives an expression for the Fourier expansion of (F β,m , v 1 ) for v 1 ∈ V 1 (the hyperboloid model of Gr(L), see Sect. 2.7) with ( , v 1 ) small enough. The constant K β,m appearing in this formula can be evaluated using [9, Theorem 2.13]. We obtain for ( , v 1 ) small enough the expansion Recall that we can write λ ∈ V as λ = b + a + c with b ∈ K ⊗ R and a, c ∈ R. In the upper half-space model we have Hence, in the coordinates of H n , we find for y big enough the expansion On the other hand, by [9, Theorem 2.11], the theta lift ( f , (x, y)) has a singularity of type − 2π y a,c∈Z,b∈K at a point (x 0 , y 0 ) ∈ H n . Recall that this means that there exists a neighbourhood U of (x 0 , y 0 ) such that ( f , (x, y)) and the expression in (3.4) are defined on a dense subset of U and such that their difference extends to a real-analytic function on all of U . It is not hard to see that the expression on the right-hand side in the theorem has the same singularities as ( f , (x, y)) on H n and agrees with ( f , (x, y)) for y big enough. In other words, the difference between ( f , (x, y)) and the expression on the right-hand side of the theorem extends to a real-analytic function on all of H n and vanishes for y big enough, and hence has to vanish identically on all of H n . This finishes the proof.

Evaluation of the theta lift at special points
Let w ∈ Gr(L) be a special point and let P = L ∩ w and N = L ∩ w ⊥ be the positive and negative definite sublattices corresponding to w as in Sect. 2.5. Recall that k = (1 − n)/2.

Theorem 3.5 For f ∈ H
cusp k,L and a special point w ∈ Gr(L) we have the evaluation where CT denotes the constant coefficient of a Fourier series, f P⊕N denotes the image of f under the restriction map defined in Sect. 2.2, and P ∈ H hol 3/2,P − is a ξ 3/2 -preimage of P .

Remark 3.6
By plugging in the Fourier expansions of f and + P , the constant term on the right-hand side of Theorem 3.5 can be evaluated more explicitly as Note that all sums on the right-hand side are finite. Theorem 1.4 in the introduction can easily be derived from this expression.

Proof of Theorem 3.5
The proof is similar to the proof of [20, Theorem 3.5], so we omit some details for brevity. We first compute for arbitrary z ∈ Gr(L) where we used the relation (2.3) and the fact that the trace and restriction operators from Sect. 2.2 are adjoint to each other. Now we plug in z = w and use the splitting (2.4) to obtain Let P ∈ H hol 3/2,P − be a harmonic Maass form of weight 3/2 for ρ P − such that ξ 3/2 P = P . Then we can write Now applying Stokes' theorem we obtain Here we used that N − is holomorphic. Note that the integral in the first line picks out the Fourier coefficient of index 0 of the integrand. If we split f P⊕N and P into their holomorphic and non-holomorphic parts, and use that the non-holomorphic parts vanish as v → ∞, we obtain the stated formula.

Recurrences for the coefficients of mock theta functions
As an application of the different evaluations of the regularized theta lift we derive recurrences for the coefficients of some mock theta functions. We obtain relations for Hurwitz class numbers, Andrews' spt-function and some of Ramanujan's mock theta functions. We only consider lattices of signature (1, 1) such that every harmonic Maass form in H cusp 0,L is actually weakly holomorphic, that is, we have H cusp 0,L = M ! 0,L . (1, 1) We consider the rational quadratic space Q 2 with the quadratic form Q(a, b) = ab. Let L be an even lattice in Q 2 . Then L has signature (1, 1) and is isotropic. Let w ∈ Gr(L) be a special point and let y = (y 1 , y 2 ) ∈ L be its primitive generator with y 1 , y 2 > 0. Furthermore, let y ⊥ ∈ L be the primitive generator of w ⊥ whose second coordinate is positive. Then y ⊥ is a positive multiple of (−y 1 , y 2 ). We let d P = y 1 y 2 and d N = y ⊥ 1 y ⊥ 2 . Then P ∼ = (Z, d P x 2 ) and N ∼ = (Z, −d N x 2 ). In particular, we may identify

Isotropic lattices in signature
with the unary theta function θ 1/2,d defined in Sect. 2.6. Combining Theorems 3.1 and 3.5 we obtain the following evaluations of the theta lift for isotropic lattices at special points.

Theorem 4.1 Suppose that L is as above. Then the evaluation of the regularized theta lift
where we wrote γ P = α P 2d P y ∈ P and γ N = α N 2d N y ⊥ ∈ N , and θ 1/2,d P is a ξ 3/2 -preimage of the unary theta function θ 1/2,d P . The sum in the first line is finite.
By comparing the two finite formulas on the right-hand side of Theorem 4.1 we obtain non-trivial recurrence relations for the coefficients of the mock theta function θ + 1/2,d P . We illustrate this in some examples.

Example 4.2
Let L be the lattice spanned by the vectors (1, 0) and (0, 1), that is, a hyperbolic plane. Note that L is unimodular, so vector-valued modular forms for ρ L are just scalar-valued modular forms for SL 2 (Z). By [33, Theorem 1], for m ∈ N the Maass (or Niebur) Poincaré series F β,m ∈ M ! 0,L is given by the weakly holomorphic modular form 2 j m + 48σ 1 (m), where j m denotes the unique modular function for SL 2 (Z) whose Fourier expansion starts q −m + O(q).
Zagier [38] showed that the C[Z/2Z]-valued generating series It was shown in [23] that it is a mock modular form of weight 3/2 for the dual Weil representation associated to the lattice (Z, N x 2 ) whose shadow is given by We sum up formula (4.1) for all special points of discriminant 2N , which are precisely the points y = (d, N /d) for d | N , to obtain the relation We remark that there is a vast literature on recurrences for Hurwitz class numbers, see for example [6,8,18,21,[30][31][32]36,37].
In this case we have L = Zy/2 + Zy ⊥ /2. In particular, L /L is isomorphic to (Z/2Z) 2 , so we can write the elements of L /L in the form β = (β 1 , β 2 ) with β 1 , β 2 ∈ Z/2Z. We apply Theorem 4.1 to f = F β,m with β = (0, 0) and β = (1, 1), respectively. As a ξpreimage of the unary theta function θ 1/2,1 we again choose the generating series of Hurwitz class numbers from the last example. The formula in Theorem 4.1 involves the constant coefficients a F β,m (γ , 0) of F β,m , for isotropic γ ∈ L /L. It follows from the residue theorem that this coefficient is given by the negative of the (β, m)-th coefficient of the vector-valued Eisenstein series E γ studied in [13], and hence can be computed in terms of divisor sums using the explicit formulas given there. Alltogether, we obtain the formulas We leave the details of the simplification to the reader. This generalizes some of the formulas found by Brown et al. [8], where the authors studied restricted class number sums for m = p being an odd prime. We also refer to [6,36,37] for similar formulas involving restricted class number sums.

Example 4.4
The smallest parts function spt(n), introduced by Andrews in [3], counts the total number of smallest parts in the partitions of n (with spt(0) = 0). For n ∈ N 0 we let with the partition function p(n). In particular, s(0) = −1/12. We consider the function Bringmann [5] showed that F(24τ ) is a harmonic Maass form of weight 3 2 for 0 (576) with character 12 · . Moreover, we have ξ 3/2 F = (− for all m ∈ N.

Anisotropic lattices in signature (1, 1)
It is a rational quadratic space with the quadratic form given by the norm The associated bilinear form is given by the trace (ν, μ) = tr F/Q (νμ ) = νμ + ν μ.
Let L ⊂ F be an even lattice. Then L has signature (1, 1) and is anisotropic.
We let w ∈ Gr(L) be a special point and we let y ∈ L be the primitive generator of w with y, y > 0. Furthermore, we let y ⊥ be the primitive generator of w ⊥ with y ⊥ < 0 and y ⊥ > 0. Let d P = yy and d N = y ⊥ y ⊥ . Then P ∼ = (Z , d P x 2 ) and N ∼ = (Z, −d N x 2 ).
Using similar arguments as in the proof of Theorem 4.1 we obtain the following formula.

Remark 4.6
Note that the sum in the first line of the theorem is not finite due to the existence of units. However, according to the discussion after Theorem 9 in Section 4 of [11], it can be rewritten as a finite sum as follows. First, we can split the sum as is finite, and by Dirichlet's unit theorem the set of all λ ∈ L ± β with λ > 0 and λλ = m is given by For λ ∈ R(m) and n ∈ Z we have Thus we obtain Let β = 0 for simplicity. Then ε 0 is the smallest unit > 1 of norm 1 (which is either the fundamental unit of F or its square). The coefficient of index (0, 0) of the Niebur Poincaré series F 0,m is given by the negative of the coefficient of index (0, m) of the weight 2 Eisenstein series E = 2 e 0 +O(q) for the dual Weil representation, compare [9, Proposition 1.14]. By results of Zhang [39], holomorphic vector-valued modular forms of weight k for the Weil representation associated with O F can be identified with a certain space M k (D, χ D ) of scalarvalued modular forms for 0 (D) with character χ D = D · . In particular, by [39,Section 4], the coefficient of index (0, m) of the vector-valued Eisenstein series E is equal to the Dm-th coefficient of the scalar-valued weight 2 Eisenstein series E (D) with the usual Dirichlet L-function L(s, χ D ) and the twisted divisor sum σ (D) where χ m denotes the m-part of χ D and we write χ D = χ m χ m .
We choose the special point y = ε 0 , such that d P = yy = 1. Its orthogonal complement is spanned by y ⊥ = √ Dε 0 . Thus d N = y ⊥ y ⊥ = D. The space of cusp forms of weight 2 for ρ L − is trivial for a fundamental discriminant D if and only if D ≤ 21 (see Lemma 2 in [37]). This implies that the Maass-Poincaré series F 0,m is weakly holomorphic for every m. We apply Theorem 4.5 for f = F 0,m with the generating series of Hurwitz class numbers and obtain after some simplification the formula for D = 5, 8, 12, 13, 17, 21. Note that L(−1, χ D ) is a rational number. These relations were first discovered by Williams [37] by comparing the Fourier coefficients of vector-valued Hirzebruch-Zagier series and Eisenstein series for the Weil representation.

Ramanujan's mock theta functions
By using a different theta function, the methods of this work can also be applied to obtain relations between the coefficients of ξ 1/2 -preimages of unary theta series of weight 3/2, e.g., of the coefficients of the classical mock theta functions of Ramanujan. We indicate the necessary steps but omit some details. Let L be an even lattice of signature (1, 1). We fix an isotropic vector ∈ V and define the modified theta function * It has weight 0 in τ for ρ L , and at a special point w ∈ Gr(L) it splits as a tensor product of unary theta functions of weight 3/2, similarly as in (2.4). The corresponding theta lift * ( f , z) is defined analogously to (3.1). Theorems 3.1 and 3.5 have similar looking analogs whose proofs require only minor modifications. In particular, if L is a hyperbolic plane, we obtain the formula with the same notation as in (4.1).

A lattice of signature (1, 2)
Here we discuss the example from the introduction. The lattice Z 3 with the quadratic form Q(a, b, c) = −b 2 + ac can also be realized as the set : a, b, c ∈ Z of traceless integral 2 by 2 matrices with the quadratic form Q(λ) = det(λ) and the associated bilinear form (λ, μ) = − tr(λμ). Its dual lattice is given by : a, b, c ∈ Z .
In particular, L has level 4 and L /L can be identified with Z/2Z. By the results of [22,Section 5], vector-valued modular forms of weight k for the Weil representation ρ L can be identified with scalar-valued modular forms of weight k for 0 (4) satisfying the Kohnen plus space condition via the map f 0 (τ ) e 0 + f 1 (τ ) e 1 → f 0 (4τ ) + f 1 (4τ ).
In particular, we can use scalar-valued modular forms as inputs for the theta lift. Under the above map the vector-valued Maass Poincaré series F β,m of weight −1/2 corresponds to the scalar-valued weakly holomorphic modular form 2 f D with D = 4m, where f D = q −D + O(1) is the modular form described in the introduction. Note that f D is weakly holomorphic since the Kohnen plus space of cusp forms of weight 5/2 for 0 (4) is trivial, which in turn follows from the fact that it is isomorphic to the space of cusp forms of weight 6 for SL 2 (Z) under the Shimura correspondence.
We can now explain how the theorems in the introduction follow from the results from the body of the paper.
Proof of Theorem 1.1 Using the above evaluations of Q(λ z ) and Q(λ z ⊥ ), from Theorem 3.1 and Remark 3.2 we obtain the series representation Clearly, we can identify hyperbolic 2-space H 2 with the complex upper half-plane H. Using Theorem 3.3 we now easily obtain Theorem 1.2 from the introduction.
Proof of Theorem 1. 4 The CM point i ∈ H corresponds to the special point w ∈ Gr(L) generated by the matrix 0 1 −1 0 . The corresponding positive and negative definite lattices are given by In particular, we see that P is isomorphic to (Z, x 2 ) and N is isomorphic to (Z 2 , −a 2 −b 2 ). If we now apply Theorem 3.5 together with Remark 3.6 to Zagier's C[Z/2Z]-valued generating of Hurwitz class numbers discussed in Example 4.2, we obtain Theorem 1.4.