1: \begin{abstract}
2:
3: \vskip 0.1in
4:
5:
6: The use of supersymmetric localisation has recently led to modular covariant expressions for certain
7: integrated correlators of half-BPS operators in $\mathcal{N} = 4$ supersymmetric Yang--Mills theory with a general
8: classical gauge group $G_N$. Here we determine generating functions that encode such integrated correlators
9: for any classical gauge group and provide a proof of previously conjectured formulae. This gives a systematic understanding of the relation between
10: properties of these correlators at finite $N$ and their expansions at large $N$. In particular, it determines
11: a duality-invariant non-perturbative completion of the large-$N$ expansion in terms of a sum of novel
12: non-holomorphic modular functions. These functions are exponentially suppressed at large
13: $N$ and have the form of a sum of contributions from coincident $(p, q)$-string world-sheet instantons.
14:
15: \end{abstract}