Schnorr identification is special sound
ProvedCryptologyCity.schnorr_special_soundnesscryptographycryptology-citydiscrete-logarithm
Let be prime and let generate a group of order . For all and , if the verifier for accepts both and and , then
Preamble
import Definitions.Def_CryptologyCity_DLogIdentification open scoped ENNReal
Formal statement
namespace CryptologyCity
theorem schnorr_special_soundness {G : Type*} [Group G] [DecidableEq G] (g : G) (p : ℕ)
[Fact p.Prime] (hg : IsCyclicGroupOfOrder g p) (h a : G) (e z e' z' : ZMod p)
(h₁ : schnorrAccepts g h a e z = true) (h₂ : schnorrAccepts g h a e' z' = true)
(hne : e ≠ e') :
h = g ^ ((z - z') * (e - e')⁻¹).val := by sorry
end CryptologyCitySource
Cryptology City, DLOG ⇒ Schnorr identification, https://cryptology.city/Reductions/dlog-to-schnorr-signatures-sch91 (Statement: special sound). Schnorr, J. Cryptology 1991, https://doi.org/10.1007/BF00196725.
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any group with decidable equality, , prime, and assume (every element of is an integer power of , and has order ). Let be arbitrary and . Assume
- (the Schnorr verifier for key accepts ),
- (it accepts ),
- (as elements of ).
Then
where is the multiplicative inverse in the field (nonzero since ), the product is in , and the exponent is its canonical representative. No challenge set is involved; range over all of .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.