%0 Journal Article %T Vafa-Witten invariants from modular anomaly %+ Laboratoire Charles Coulomb (L2C) %A Alexandrov, Sergey %< avec comité de lecture %Z L2C:20-039 %@ 1931-4523 %J Communications in Number Theory and Physics %I International Press %V 15 %N 1 %P 149-219 %8 2021-01-04 %D 2021 %Z 2005.03680 %R 10.4310/CNTP.2021.v15.n1.a4 %Z Physics [physics]/High Energy Physics - Theory [hep-th] %Z Physics [physics]/Mathematical Physics [math-ph] %Z Mathematics [math]/Algebraic Geometry [math.AG] %Z Mathematics [math]/Mathematical Physics [math-ph] %Z Mathematics [math]/Number Theory [math.NT]Journal articles %X Recently, a universal formula for a non-holomorphic modular completion of the generating functions of refined BPS indices in various theories with $N=2$ supersymmetry has been suggested. It expresses the completion through the holomorphic generating functions of lower ranks. Here we show that for $U(N)$ Vafa-Witten theory on Hirzebruch and del Pezzo surfaces this formula can be used to extract the holomorphic functions themselves, thereby providing the Betti numbers of instanton moduli spaces on such surfaces. As a result, we derive a closed formula for the generating functions and their completions for all $N$. Besides, our construction reveals in a simple way instances of fiber-base duality, which can be used to derive new non-trivial identities for generalized Appell functions. It also suggests the existence of new invariants, whose meaning however remains obscure. %G English %L hal-02571374 %U https://hal.science/hal-02571374 %~ CNRS %~ INSMI %~ L2C %~ TDS-MACS %~ MIPS %~ UNIV-MONTPELLIER %~ UM-2015-2021