Documentation

CslibFrontier.Crypto.Protocols.VOLE.PRGLeafEquivocation

Chosen-witness identification and unbounded PRG-leaf soundness #

Chosen-witness exact-opening recovery and unbounded-extractor soundness are different goals. For a fixed satisfiable statement an extractor can return any one valid witness as a constant, independently of the proof. This need not identify the witness actually chosen by the prover. Nor does uniqueness of a preimage imply efficient inversion.

Main definitions #

Main results #

References #

noncomputable def Cslib.Crypto.Protocols.VOLE.exactOpeningGame {Trace Stmt Proof Wit : Type} [DecidableEq Wit] (stmt : Stmt) (w : Bool → Wit) (view : Bool → PMF (Trace × Proof)) (ext : Trace → Stmt → Proof → Option Wit) :

A fair hidden bit selects the execution. The extractor receives the complete designated view and a common statement, and wins only by returning the witness actually selected.

theorem Cslib.Crypto.Protocols.VOLE.exactOpening_half_bounds {Trace Stmt Proof Wit : Type} [DecidableEq Wit] (stmt : Stmt) (w : Bool → Wit) (view : Bool → PMF (Trace × Proof)) (hw : w false ≠ w true) (hv : view false = view true) (ext : Trace → Stmt → Proof → Option Wit) :
(exactOpeningGame stmt w view ext) true ≤ 2⁻¹ ∧ 2⁻¹ ≤ (exactOpeningGame stmt w view ext) false

Identification step toward #7068: any extractor on a common visible distribution is correct for at most one of the two distinct choices per view. This is not an existential knowledge lower bound, and the statement does not assume that an extractor lacks the public statement.

noncomputable def Cslib.Crypto.Protocols.VOLE.prgProverView {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg Chal Wit : Type} [DecidableEq Key] [DecidableEq IV] [DecidableEq Stmt] [DecidableEq Msg] [Fintype Chal] [Nonempty Chal] (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) (encode : Wit → BitString rowLen) (hide : Chal → Fin (2 ^ d)) (pre : (Fin d → BitString rowLen) → BitString rowLen → BitString rowLen → Msg) (dummy : Key) (iv : IV) (stmt : Stmt) (keys : Fin (2 ^ d) → Key) (w : Wit) :
PMF (VOLEITHTraceState d sdLen comLen rowLen Stmt Key IV Msg Chal × VOLEITHProof d comLen rowLen Key IV Msg)

Run the actual local prover from empty tables. Expose both the full leaf and FS trace as well as the proof, so an extractor limited to just the leaf trace is also covered.

theorem Cslib.Crypto.Protocols.VOLE.prgProverView_eq {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg Chal Wit : Type} [DecidableEq Key] [DecidableEq IV] [DecidableEq Stmt] [DecidableEq Msg] [Fintype Chal] [Nonempty Chal] (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) (encode : Wit → BitString rowLen) (hide : Chal → Fin (2 ^ d)) (pre : (Fin d → BitString rowLen) → BitString rowLen → BitString rowLen → Msg) (dummy : Key) (iv : IV) (stmt : Stmt) (keys : Fin (2 ^ d) → Key) (w : Wit) :
prgProverView leaf expand encode hide pre dummy iv stmt keys w = PMF.map (fun (z : Chal) => have p := prgLeafProofOfDelta expand leaf encode hide pre dummy iv keys w z; (([], [(VOLEITHProof.fsQuery stmt p, z)]), p)) (Probability.PMF.uniformOfFintype Chal)

The sole hash query fixes the proof; there are no leaf queries.

theorem Cslib.Crypto.Protocols.VOLE.prgExactOpening_half_bounds {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg Chal Wit : Type} [DecidableEq Key] [DecidableEq IV] [DecidableEq Stmt] [DecidableEq Msg] [Fintype Chal] [Nonempty Chal] (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) (encode : Wit → BitString rowLen) (hide : Chal → Fin (2 ^ d)) (pre : (Fin d → BitString rowLen) → BitString rowLen → BitString rowLen → Msg) (dummy : Key) (iv : IV) (stmt : Stmt) [DecidableEq Wit] (keys : Bool → Fin (2 ^ d) → Key) (w : Bool → Wit) (hw : w false ≠ w true) (hp : ∀ (z : Chal), prgLeafProofOfDelta expand leaf encode hide pre dummy iv (keys false) (w false) z = prgLeafProofOfDelta expand leaf encode hide pre dummy iv (keys true) (w true) z) (ext : VOLEITHTraceState d sdLen comLen rowLen Stmt Key IV Msg Chal → Stmt → VOLEITHProof d comLen rowLen Key IV Msg → Option Wit) :
have view := fun (b : Bool) => prgProverView leaf expand encode hide pre dummy iv stmt (keys b) (w b); (exactOpeningGame stmt w view ext) true ≤ 2⁻¹ ∧ 2⁻¹ ≤ (exactOpeningGame stmt w view ext) false

Same-statement identification step (#7068): if the two genuine prover proofs agree for every challenge of the chosen experiment, even seeing both complete query logs cannot identify the chosen witness with probability above one half. For injective encode, hp and hw force hide to be constant, so this covers only the fixed-hidden-index experiment. Equality at only one challenge of a larger random challenge space is insufficient.

structure Cslib.Crypto.Protocols.VOLE.PRGTargetList (IV Tweak Image : Type) (Qout : ℕ) :

Exactly Qout submitted tweak/image targets sharing one IV, modeling the adversary output in [BBB+26b], Definition 27 (printed p. 18).

  • iv : IV

    Common initialization vector shared across all submitted targets.

  • targets : Vector (Tweak × Image) Qout

    Fixed-length list of tweak/image target pairs submitted under iv.

def Cslib.Crypto.Protocols.VOLE.prgAmbiguous {Key IV Tweak Image : Type} (g : Key → IV → Tweak → Image) (iv : IV) (twk : Tweak) (y : Image) :

A target is ambiguous if two distinct keys map to it for this IV and tweak.

def Cslib.Crypto.Protocols.VOLE.prgBatchAmbiguous {Key IV Tweak Image : Type} {Qout : ℕ} (g : Key → IV → Tweak → Image) (out : PRGTargetList IV Tweak Image Qout) :

Existential winning condition over the entire submitted list, not just a hidden index.

noncomputable def Cslib.Crypto.Protocols.VOLE.almostInjectiveBadProb {Key IV Tweak Image : Type} {Qout : ℕ} (g : Key → IV → Tweak → Image) (A : PMF (PRGTargetList IV Tweak Image Qout)) :

Concrete output-law advantage for one finite key space and output count, following [BBB+26b], Definition 27, printed p. 18. No PPT or negligibility assertion.

noncomputable def Cslib.Crypto.Protocols.VOLE.prgPreimage {Key IV Tweak Image : Type} [Fintype Key] [DecidableEq Image] (g : Key → IV → Tweak → Image) (iv : IV) (twk : Tweak) (y : Image) :
Option Key

Exhaustively select a preimage from the full finite key space, returning none outside its image. No efficient running-time guarantee is intended.

theorem Cslib.Crypto.Protocols.VOLE.prgPreimage_eq_of_open {Key IV Tweak Image : Type} [Fintype Key] [DecidableEq Image] (g : Key → IV → Tweak → Image) {iv : IV} {twk : Tweak} {y : Image} {k : Key} (h : g k iv twk = y) (hu : ¬prgAmbiguous g iv twk y) :
prgPreimage g iv twk y = some k

Unique-image inversion step: an actual opening is recovered off ambiguity.

theorem Cslib.Crypto.Protocols.VOLE.prgPreimage_none_iff {Key IV Tweak Image : Type} [Fintype Key] [DecidableEq Image] (g : Key → IV → Tweak → Image) (iv : IV) (twk : Tweak) (y : Image) :
prgPreimage g iv twk y = none ↔ ∀ (k : Key), g k iv twk ≠ y

Missing images are detected rather than silently treated as keys.

def Cslib.Crypto.Protocols.VOLE.prgTargetsOfFS {d comLen rowLen : ℕ} {IV Stmt Msg : Type} (r : FSQuery d comLen rowLen Stmt IV Msg) :
PRGTargetList IV (Fin (2 ^ d)) (BitString comLen) (2 ^ d)

Extract the fixed-length Definition 27 submission from a pre-challenge FS request.

noncomputable def Cslib.Crypto.Protocols.VOLE.prgCanonicalRows {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg : Type} (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) [Fintype Key] (r : FSQuery d comLen rowLen Stmt IV Msg) :
Fin (2 ^ d) → BitString rowLen

Fix all candidate rows from public committed data before the challenge: retain the selected preimage's seedOut on success, or use a zero candidate row when no preimage exists.

noncomputable def Cslib.Crypto.Protocols.VOLE.prgUnboundedWitness {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg Wit : Type} (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) [Fintype Key] (decode : BitString rowLen → Wit) (r : FSQuery d comLen rowLen Stmt IV Msg) :
Wit

Unbounded prospective witness for the whole first message.

def Cslib.Crypto.Protocols.VOLE.prgResponseProof {d comLen rowLen : ℕ} {Key IV Stmt Msg : Type} (r : FSQuery d comLen rowLen Stmt IV Msg) (keys : Fin (2 ^ d) → Key) :
VOLEITHProof d comLen rowLen Key IV Msg

Only the openings can depend on the challenge, not stmt, commitments or corrections.

theorem Cslib.Crypto.Protocols.VOLE.prgLeafVerify_at_recorded_challenge {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg Chal : Type} (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) (hide : Chal → Fin (2 ^ d)) (check : Stmt → (Fin d → BitString rowLen) → BitString rowLen → Msg → Chal → Bool) [DecidableEq Stmt] [DecidableEq IV] [DecidableEq Msg] [DecidableEq Key] [Fintype Chal] [Nonempty Chal] (r : FSQuery d comLen rowLen Stmt IV Msg) (z : Chal) (keys : Fin (2 ^ d) → Key) (tr : LeafTrace d sdLen comLen Key IV) :
ProbOracleComp.runWith voleithMemoize (prgLeafVerify expand leaf hide check r.stmt (prgResponseProof r keys)) (tr, [(r, z)]) = PMF.pure (prgVerifyAt expand leaf hide check r z keys, tr, [(r, z)])

Execution step: answering the actual prgLeafVerify hash query with z agrees with the fixed-challenge verifier prgVerifyAt from PRGLeafSeparation and does not change either oracle log.

theorem Cslib.Crypto.Protocols.VOLE.prgAccepted_canonical_check {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg Chal : Type} (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) (hide : Chal → Fin (2 ^ d)) (check : Stmt → (Fin d → BitString rowLen) → BitString rowLen → Msg → Chal → Bool) [Fintype Key] (r : FSQuery d comLen rowLen Stmt IV Msg) (z : Chal) (keys : Fin (2 ^ d) → Key) (hgood : ¬prgBatchAmbiguous (fun (k : Key) (v : IV) (j : Fin (2 ^ d)) => (leaf k v j).com) (prgTargetsOfFS r)) (ha : prgVerifyAt expand leaf hide check r z keys = true) :

Soundness step: on a nonambiguous batch, every opened coordinate passing its check must agree with the fixed canonical row. The hidden coordinate is unnecessary for this equality.

noncomputable def Cslib.Crypto.Protocols.VOLE.prgUnboundedFailureGame {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg Chal Wit Aux : Type} (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) (hide : Chal → Fin (2 ^ d)) (check : Stmt → (Fin d → BitString rowLen) → BitString rowLen → Msg → Chal → Bool) [Fintype Key] [Fintype Chal] [Nonempty Chal] (decode : BitString rowLen → Wit) (rel : Stmt → Wit → Bool) (first : PMF Aux) (request : Aux → FSQuery d comLen rowLen Stmt IV Msg) (respond : Aux → Chal → PMF (Fin (2 ^ d) → Key)) :

Failure in a flat game with an arbitrary joint first-stage law, one independent uniform challenge, then adversarial randomized openings.

theorem Cslib.Crypto.Protocols.VOLE.prgUnboundedFailure_le {d sdLen comLen rowLen : ℕ} {Key IV Stmt Msg Chal Wit Aux : Type} (leaf : Key → IV → Fin (2 ^ d) → LeafOutput sdLen comLen) (expand : BitString sdLen → BitString rowLen) (hide : Chal → Fin (2 ^ d)) (check : Stmt → (Fin d → BitString rowLen) → BitString rowLen → Msg → Chal → Bool) [Fintype Key] [Fintype Chal] [Nonempty Chal] (decode : BitString rowLen → Wit) (rel : Stmt → Wit → Bool) {ε : NNReal} (hs : VOLEITHSoundnessError decode hide rel check ε) (first : PMF Aux) (request : Aux → FSQuery d comLen rowLen Stmt IV Msg) (respond : Aux → Chal → PMF (Fin (2 ^ d) → Key)) :
(prgUnboundedFailureGame leaf expand hide check decode rel first request respond).toOuterMeasure {true} ≤ almostInjectiveBadProb (fun (k : Key) (v : IV) (j : Fin (2 ^ d)) => (leaf k v j).com) (PMF.map (prgTargetsOfFS ∘ request) first) + ↑ε

Bounded conditional step toward #7068 and #4987: charge the finite any-target ambiguity probability plus the underlying fixed-row challenge error. This does not assume the extraction bound; the submitted list is exactly the actual commitments at all indices.