Suppose a function on has least period and is injective on each period. A Fourier sample gives the candidate denominator . If equality of function values can be tested efficiently, then is the full period exactly when , so each successful run is certified. A sample succeeds with probability , and an inverse-polylogarithmic lower bound for this ratio permits amplification to constant success probability with polynomially many repetitions.
Codex Wiki