Pedersen binding from DLOG:
ProvedCryptologyCity.pedersen_bindingLet be prime and let generate a finite group of order . For every binding adversary against the Pedersen commitment, 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 pedersen_binding {G : Type*} [Group G] [Fintype G] [DecidableEq G] (g : G) (p : ℕ)
[Fact p.Prime] (hg : IsCyclicGroupOfOrder g p) (A : PedersenBindingAdversary G p) :
pedersenBindingAdv g p A ≤
dlogAdv g p (fun X => if X = 1 then PMF.pure 0 else
(A X).map fun out => (out.2.1.1 - out.2.2.1) * (out.2.2.2 - out.2.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 such that holds: every element of is an integer power of and has order exactly (so ). Let be an arbitrary (unbounded, randomized) Pedersen binding adversary, i.e. a map from to a distribution over .
Define the explicit DLOG adversary by: on input , if output with probability one; otherwise sample and output
with the convention (so outputs whenever ). ignores and does not check that the openings are valid.
The theorem asserts
an inequality between values in with multiplicative factor and no additive loss. Here the left side is the probability, over uniform on and 's coins, that returns and two openings with and ; the right side is the probability, over uniform on all of (including , where ) and 's coins, that . No running-time relation between and is stated beyond the explicit definition of .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.