Schnorr identification, passive attack:
ProvedCryptologyCity.schnorr_passive_securityLet be prime and let generate a group of order . Let be nonempty. For every passive impersonator against the Schnorr protocol with challenge space , let and let be the rewinding reduction schnorrRewind. If , then
import Definitions.Def_CryptologyCity_DLogIdentification open scoped ENNReal
namespace CryptologyCity
theorem schnorr_passive_security {G : Type*} [Group G] [DecidableEq G] (g : G) (p : ℕ)
[Fact p.Prime] (hg : IsCyclicGroupOfOrder g p) (C : Finset (ZMod p)) (hC : C.Nonempty)
{St : Type*} (A : SchnorrPassiveImpersonator G p St)
(hε : 1 / (C.card : ℝ) ≤ (schnorrPassiveAdv g p C hC A).toReal) :
((schnorrPassiveAdv g p C hC A).toReal - 1 / C.card) ^ 2 ≤
(dlogAdv g p (schnorrRewind g p C hC A)).toReal := by sorry
end CryptologyCityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any group with decidable equality, , and a prime number, and assume : every element of is an integer power of and has order exactly (so ). Let be a finite nonempty challenge set, any type, and any passive Schnorr impersonator with state type (it observes honest transcripts , , , for the secret key and public key ; it then commits to , receives , responds with , and wins iff ). Write , taken as a real number (it lies in , so the conversion from extended reals is lossless).
Hypothesis: .
Conclusion:
where is the specific rewinding DLOG adversary defined in the definition file: on input it feeds simulated transcripts , , ; runs commit once to get ; draws two independent challenges ; runs respond independently on each from , getting ; and outputs if both transcripts verify for and , else . The DLOG advantage is the probability that this output equals when , uniform. No efficiency condition on or appears. If the hypothesis forces and the left side is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.