Did the theoretical math lead to the invention of GPS, cryptography, lasers, etc? Or did we encounter a real physical problem, then we found that someone had done some theoretical math before that would be useful for this application? If we run into a real physical problem today, can we just have AI invent the math on the spot to solve the problem without a human having done the theoretical math in the past?
For cryptography, perhaps you would enjoy reading the paper of Diffie and Hellman that proposed public-key crypto: https://ee.stanford.edu/~hellman/publications/24.pdf
You will find they were inspired by the NP-hard knapsack problem, and inspired a bunch of later research that led to RSA.
I think the tapestry of history would suggest the answer to the question "is math responsible for this invention" a lot more complicated than it appears. For lasers, Einstein proposed the idea based on purely theoretical physics, and it was made possible in 1960. Is that "theoretical math leading to the invention of lasers"? Surely he was at least relying on a lot of additional theoretical work for that. On the other hand, much theoretical that came out of Bell Labs were responses to needs for better vacuum tube technology, better amplifiers, etc., which were a deep collaboration between theory, practice, and tradesman with a strong intuition for how to build with various materials and at varying scales.
Moreover, it’s not clear that if (and when as I believe) they do, creating technologies with no human understanding of the framework is possible or desirable.
If we give it a real problem to solve, it may just have to invent a new form of math to solve.
This depends on unanswered questions on what math actually is and it's causal connectivity.
Imagine we have problem A that needs to connect to math solution Z.
The problem is the A -> Z route can only occur in polynomial time in which you need to burn the visible universe to solve. So, that itself is not workable.
As you look at the problem space of A there are a potentially infinite number of paths you could take in the problem topology so again you'd have to brute force the path... mostly unworkable on a lot of problems.
The breakthroughs tend to occur when somewhere in between A and Z there is another mathematical construct M that can link them together. M was very likely discovered something so completely and wildly different you would never link them by brute force. By M existing you narrow the problem space to NP time. M might have sat in the toolbox 100 years unused before that point.