KR00 chameleon hash is uniform
ProvedCryptologyCity.kr00_uniformcryptographycryptology-citydiscrete-logarithm
Let be prime and let generate a finite group of order . For every trapdoor and every message , the law of for uniform is the uniform law on . In particular it does not depend on .
Preamble
import Definitions.Def_CryptologyCity_DLogCommitments open scoped ENNReal
Formal statement
namespace CryptologyCity
theorem kr00_uniform {G : Type*} [Group G] [Fintype G] (g : G) (p : ℕ) [Fact p.Prime]
(hg : IsCyclicGroupOfOrder g p) (x : ZMod p) (hx : x ≠ 0) (m : ZMod p) :
(PMF.uniformOfFintype (ZMod p)).map (fun r => pedersen g (g ^ x.val) m r) =
PMF.uniformOfFintype G := by sorry
end CryptologyCitySource
Cryptology City, DLOG ⇒ Chameleon hash (Krawczyk–Rabin), https://cryptology.city/Reductions/prime-order-dlog-to-chameleon-hash-function-kr00 (Sketch: uniformity). Uniformity: https://cryptology.city/Primitives/chameleon-hash-function#uniformity.
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite group, , and a prime with : every element of is an integer power of and has order exactly (so ). Let with , and arbitrary; put . The theorem asserts equality of distributions on :
i.e. for each fixed non-zero trapdoor and message , the hash value under uniformly random is exactly uniform over all of . Here is the canonical representative.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.