KR00 collision resistance from DLOG:
ProvedCryptologyCity.kr00_collision_resistanceLet be prime and let generate a group of order . For every collision finder against the KR00 chameleon hash, whose key is for uniform in , define the DLOG adversary . It outputs if , and otherwise runs and outputs , computed from 's output . Then
import Definitions.Def_CryptologyCity_DLogCommitments open scoped ENNReal
namespace CryptologyCity
theorem kr00_collision_resistance {G : Type*} [Group G] [DecidableEq G] (g : G) (p : ℕ)
[Fact p.Prime] (hg : IsCyclicGroupOfOrder g p) (A : KR00Adversary G p) :
kr00CollisionAdv g p A ≤
dlogAdv g p (fun X => if X = 1 then PMF.pure 0 else
(A X).map fun out => (out.1.1 - out.2.1) * (out.2.2 - out.1.2)⁻¹) := by sorry
end CryptologyCityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a group with decidable equality (finiteness is not assumed separately), , and a prime with : every element of is an integer power of and has order exactly . Let be an arbitrary (unbounded, randomized) KR00 collision adversary, mapping to a distribution over .
Define the explicit DLOG adversary : on input , if output with probability one; otherwise sample and output
with (so the output is when ). does not check 's output.
The theorem asserts
in , with factor and no additive term. The left side is the probability, over uniform on , , and 's coins, that outputs with and ; the right side is the probability, over uniform on all of (including ) and 's coins, that . The hash key distributions on the two sides differ: non-zero exponents on the left, all exponents on the right. No running-time relation is stated beyond the explicit form of .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.