The omnipotence of Allah means that He does everything as He likes. But at the same time, don’t forget that His doings are according to the truth. So we can’t say that He is not Omnipotent because of existence of the theorem that He cannot disprove.
Discovery of the theorem is just to approach to the truth of Allah’s creature, the Absolute, the Omnipotent, the One. And discovery of scientific principles is an approach to the truth with which God created the heavens and the earth and everything in between.
For example, Ramsey's theorem is not a principle that controls the power of God, but is just an expression of a part of the truth of God Almighty.
So the power of God is never shaken by human discovery of scientific principles or the belief in them. On the other hand, power of human is so shaky that the discovery always takes a long time. Although the uncertainty principle, for example, is known very well, no one knew it a mere one hundred years ago
Modern science is defined qualitative or quantitative description of the perceived world as the results of the creation of God Almighty. So without the omnipotence of God and its truth, no theorem, principle nor modern science exists.
In brief, God created the light upon which modern sciences depend, so God is greater than the light, because the Creator is greater than anything to be created by Him.
Therefore, we should know what we can see is a mere part of God's truth, as long as we look at it from the inside of the light created by God, because the truth of God is far faster than the light created by God.
The ability of the Creator is absolute, and the ability of human beings is imperfect.