Modular inverse computation - avoiding Euclidean algorithm
Statement
Modular inverse is known to be computable by Extended Euclidean algorithm which is the reaping the rewards of computing the GCD of two numbers or proving two numbers are coprime.
If we already know the numbers are coprime then do we know any better way to compute without Euclidean algorithm?
Essentially can we solve the integer program:
\begin{gather*} \exists u,v\in\mathbb Z \\ -q/2<u<q/2 \\ -a/2<v<a/2 \\ au+qv=1 \end{gather*}
without LLL algorithm?
Why cannot we think differently than the Euclidean algorithm? Is there any barrier?
Implicit in the question is why cannot we NC reduce Extended GCD algorithm to GCD computation itself as we can replace last constraint by where now is (now assumed may not be coprime)?
stands for Nick's class. Essentially Euclidean algorithm is performed on sequential steps where is number of bits in and on a single processor. Can we increase the number of processors to and reduce the number of steps to ? This question is captured by the class .
Posed by Turbo · nt.number-theory, computational-complexity, lattices, computational-number-theory
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-444233.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-444233.lean
import Mathlib /-! # Modular inverse computation - avoiding Euclidean algorithm Source: https://mathoverflow.net/questions/444233 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_444233 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_444233