Integer factorization, specifically the factorization of numbers of the form pq where p and q are prime, is very important to RSA cryptography. If an efficient way to factorize integers is found, then RSA will no longer be a secure way of encrypting data.
An algorithm will be judged to be polynomial time based on the consensus of the mathematical community. A Lean proof that an logarithm is polynomial time, along with a general consensus from the Lean community that the proof is valid, will be sufficient to judge an algorithm to be polynomial time.
I will consider an algorithm "non-galactic" if I can factor 2048-bit semiprimes on my computer in a reasonable amount of time, say, spending less than a week factoring a single number. (I will not actually spend a week running a factoring program on my computer; if a candidate algorithm is that slow, I'll estimate how long it would take based on smaller numbers. E.g. I'll time how long it takes me to factor smaller numbers, fit it to a polynomial with the relevant degree, then get an estimate for how long a 2048-bit semiprime would take).
If it seems ambiguous whether my computer can factor a 2048-bit semiprime in the required time limit, I'll err on the side of resolving YES, since a week is already shorter than what would be considered "galactic."
The market will resolve based on when the algorithm is first published/publicized. If an algorithm is discovered and it takes until e.g. 2029 for it to be generally agreed to meet my criteria, this market will resolve YES.