Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4 (exact part) — the DLIN commitment of Figure 2 is a homomorphic proof commitment with perfect extraction and perfect non-erasure WI

Proved
GOSNIZK.DLINCommit.theorem_4

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

bilinear-pairingscommitment-schemescryptographyp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1zero-knowledge

Let (p,G,GT,e,g)(p, \mathbb G, \mathbb G_T, e, g)(p,G,GT​,e,g) be a DLIN bilinear group: ppp prime, G\mathbb GG and GT\mathbb G_TGT​ of order ppp, eee bilinear, ggg a generator of G\mathbb GG and e(g,g)e(g, g)e(g,g) a generator of GT\mathbb G_TGT​. The commitment scheme of Figure 2 (keys ck=(f,h,u,v,w)ck = (f, h, u, v, w)ck=(f,h,u,v,w), commitment com(m;r,s)=(umfr,vmhs,wmgr+s)\mathrm{com}(m; r, s) = (u^m f^r, v^m h^s, w^m g^{r+s})com(m;r,s)=(umfr,vmhs,wmgr+s), extractor, trapdoor opening and 0/1 proof (P01,V01)(P_{01}, V_{01})(P01​,V01​)) has all the following properties:

  1. it is homomorphic on every key of either kind;
  2. it is perfectly binding on every binding key;
  3. it has perfect extractability: Extxk(com(m;r,s))=m\mathrm{Ext}_{xk}(\mathrm{com}(m; r, s)) = mExtxk​(com(m;r,s))=m for m∈{0,1}m \in \{0,1\}m∈{0,1};
  4. it has perfect trapdoor opening and perfect trapdoor opening indistinguishability on every hiding key;
  5. the 0/1 proof is perfectly complete on every key of either kind;
  6. it is perfectly sound on every binding key: if V01(ck,c,π)V_{01}(ck, c, \pi)V01​(ck,c,π) accepts then c=com(m;r,s)c = \mathrm{com}(m; r, s)c=com(m;r,s) for some m∈{0,1}m \in \{0,1\}m∈{0,1};
  7. it is perfectly witness indistinguishable and, with the randomness simulator
S01(0,(r0,s0),(r1,s1),t)=t+r0s1−s0r1S_{01}(0, (r_0, s_0), (r_1, s_1), t) = t + r_0 s_1 - s_0 r_1S01​(0,(r0​,s0​),(r1​,s1​),t)=t+r0​s1​−s0​r1​

(and the inverse map when the proof was made with the opening to 111), perfectly non-erasure witness indistinguishable on every hiding key.

Together with key indistinguishability under the decisional linear assumption, which is not part of this statement, these are the properties that make the scheme a homomorphic proof commitment in the sense of §3, the building block of the NIZK proofs and arguments for Circuit SAT in Sections 6 and 7.

Formalization Note (i) The paper's theorem reads "if the decision linear assumption holds for GDLIN\mathcal G_{\mathrm{DLIN}}GDLIN​"; that assumption is used only for key indistinguishability, which is dropped. (ii) Each "for all adversaries, probability 1 (0)" is stated for every key in the support of the generator and every adversarial choice, and each "equal probabilities" as equality of distributions; for these perfect properties this is equivalent. (iii) The paper asks for some polynomial-time simulator for non-erasure WI; the statement names the simulator its proof constructs. (iv) P01P_{01}P01​ carries the corrected signs of ttt in π12\pi_{12}π12​ and π21\pi_{21}π21​; with the printed signs completeness is false. (v) The §3 requirement that the message space have order at least 3 holds exactly when p≥3p \ge 3p≥3 and is not part of the statement; all listed properties hold for every prime ppp.

Preamble
import Mathlib
import Definitions.Def_GOSNIZK_DLINCommit_Properties
Formal statement
namespace GOSNIZK.DLINCommit

variable {G GT : Type*} [CommGroup G] [Fintype G] [CommGroup GT] [Fintype GT]

/-- Theorem 4 (p. 11), exact part: the protocol of Figure 2 (with the corrected prover `P01`) is
homomorphic, perfectly binding, perfectly extractable, has perfect trapdoor opening and perfect trapdoor
opening indistinguishability, is perfectly complete and perfectly sound, perfectly witness
indistinguishable and perfectly non-erasure witness indistinguishable with the simulator `S01`. Key
indistinguishability (the decisional linear assumption) is not part of the statement. -/
theorem theorem_4 (S : DLINSetup G GT) :
    S.Homomorphic ∧ S.PerfectBinding ∧ S.PerfectExtractability ∧ S.PerfectTrapdoorOpening ∧
      S.PerfectTrapdoorOpeningIndist ∧ S.PerfectCompleteness ∧ S.PerfectSoundness ∧ S.PerfectWI ∧
      S.PerfectNonErasureWI S.S01 := by sorry

end GOSNIZK.DLINCommit
Source
Groth, Ostrovsky, Sahai, New Techniques for Noninteractive Zero-Knowledge, J. ACM 59(3) (2012), authors' version of March 7, 2011, p. 11, Theorem 4 (proof pp. 11–13; Figure 2, p. 12; definitions §3, pp. 7–8)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me