Reset Lemma for Schnorr, sharp form:
ProvedCryptologyCity.schnorr_resetLet be prime and let generate a group of order . Let be nonempty. For every passive impersonator , with and = schnorrRewind,
import Definitions.Def_CryptologyCity_DLogIdentification open scoped ENNReal
namespace CryptologyCity
theorem schnorr_reset {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) :
(schnorrPassiveAdv g p C hC A).toReal ^ 2 - (schnorrPassiveAdv g p C hC A).toReal / C.card ≤
(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
Same setting as above: any group with decidable equality, , prime, (every element of is an integer power of , and has order ), finite nonempty, any type, and any passive Schnorr impersonator with state type . Let as a real number (passive impersonation game: , honest transcripts for , commit to , challenge , response , win iff ). There is no hypothesis relating to .
Conclusion:
where is the rewinding DLOG adversary of the definition file (simulated transcripts for the input ; one commit; two independent challenges ; two independent responses from the same state; output if both verify and , else ), and is the probability that it outputs on input with uniform. When the left-hand side is negative and the statement is trivially true. No efficiency condition appears.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.