CvHP91 hash :
ProvedCryptologyCity.cvhp91_collision_resistanceLet be prime and let generate a finite group of order . For every collision finder against with key 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 cvhp91_collision_resistance {G : Type*} [Group G] [Fintype G] [DecidableEq G] (g : G)
(p : ℕ) [Fact p.Prime] (hg : IsCyclicGroupOfOrder g p) (A : CvHPAdversary G p) :
cvhpCollisionAdv 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 finite group with decidable equality, , and a prime with : every element of is an integer power of and has order exactly . Let be an arbitrary (unbounded, randomized) CvHP91 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 that 's output is a collision.
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 ; the right side is the probability, over uniform on all of (including ) and 's coins, that . 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.