Machine learning in pure : mathematics and theoretical physics (World Scientific, 2023)