On choosing the correct square root of $g^{4n}$ modulo primes
Statement
Let be prime congruent to modulo .
The discrete logarithm problem asks: given such that , find .
Assume is of maximal multiplicative order.
In an attack on it, one may try to compute the square root of , but the problem is there are two square roots and we don't know which one to choose.
For integer , the correct square root modulo of is .
EDIT Earlier revision asked about all , but comments disproved it.
Define .
It is folklore that if is square , so computes one square root of and this might give additional structure in choosing the root in the discrete logarithm.
We believe we the following hold.
• .
• .
• .
In we can distinguish , but can't find to use (1) and (2).
On the other hand we have determinism of computing the square root of and we choose the correct root from .
We get experimental support for the claims and try …
Posed by joro · nt.number-theory, cryptography
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-436630.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-436630.lean
import Mathlib
/-!
# On choosing the correct square root of $g^{4n}$ modulo primes
Source: https://mathoverflow.net/questions/436630
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_436630
-- definitions the statement needs (no sorry, no axiom)
theorem main : sorry := by
sorry
end OMA.S_mo_436630