Hello I would like to solve this : $$ \lim_{x \rightarrow 1^-} \sum_{n=0}^{+\infty}(-1)^{n}x^{n^2}=\dfrac{1}{2} $$ So my idea was to use the triple product of Jacobi wich is the following : $$\sum_{n=-\infty}^{\infty}z^nq^{n^2}=\prod_{n\geq 0}(1-q^{2n+2})(1+zq^{2n+1})(1+z^{-1}q^{2n+1})$$ But I have some problems like the negative infinity and others things ...
Could someone help me ?