Schnorr identification is perfectly honest-verifier zero-knowledge
ProvedCryptologyCity.schnorr_hvzkLet generate a group of order , let be nonempty and let . The law of the honest transcript , for and , equals the law of the simulated transcript for , and .
import Definitions.Def_CryptologyCity_DLogIdentification open scoped ENNReal
namespace CryptologyCity
theorem schnorr_hvzk {G : Type*} [Group G] (g : G) (p : ℕ) [NeZero p]
(hg : IsCyclicGroupOfOrder g p) (C : Finset (ZMod p)) (hC : C.Nonempty) (x : ZMod p) :
schnorrHonestTranscript g p C hC x = schnorrSimTranscript g p C hC (g ^ x.val) := by sorry
end CryptologyCityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any group (no decidable-equality assumption needed), , a natural number (not required to be prime), and assume (every element of is an integer power of , and has order ). Let be finite and nonempty, and arbitrary. Then the two distributions on are exactly equal:
where samples uniformly and uniformly and independently and outputs , and samples uniformly and uniformly and independently and outputs . This is perfect (not statistical or computational) equality, for a single transcript.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.