math.LO — Logic
The Euclidean algorithm is not optimal among uniform processes
Reusing a stored Euclidean prefix, we show that every pair has a derivation of from with applications of the remainder function alone; Euclid's algorithm needs order in the worst case. These derivations bound the intrinsic complexity of gcd and coprimeness by the same order, refuting Moschovakis's conjectured logarithmic lower bounds for uniform processes; by his best-uniform-process theorem, a single uniform process attains this bound. The Main Conjecture for algorithms remains open. We also prove an lower bound on this complexity for almost all coprime pairs and give, for each , a nondeterministic register program computing gcd that, on every input , has a successful computation using at most remainder calls. The upper bound also answers negatively an open problem of van den Dries and Moschovakis on the closure depth of the gcd. The main bounds and the refutations are formalised in Lean 4; the best-uniform-process theorem is cited.