Documentation

CslibFrontier.Crypto.Protocols.AnonymousToken.ROBridge

Straight-line VOLEitH ROM bridges to AnonymousToken #

This module composes straight-line leaf_hash::shake VOLE-in-the-head ROM extraction (Cslib.Crypto.Protocols.VOLE.ROExtractor) with AnonymousToken.Basic and AnonymousToken.Conservation:

Because a single-issuer VOLE-ACT/token server only verifies client proofs (Issue, Spend, token certification) and never simulates proofs for the adversary ([ZPS26]; specializing [BBDdSG+23b], Lemma 4, pp. 19–20, to a single challenge repetition µ = 1), plain straight-line multi-verify ROM extraction suffices without simulation-extractability.

Main definitions #

Main results #

Scope and gaps #

References #

theorem Cslib.Crypto.AnonymousToken.isCostBounded_sample_bind_pure_zero {ι α β : Type} (spec : OracleSpec ι) {outCost : ι → ℕ} (m : ProbComp α) (f : α → β) :
OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) outCost) (do let x ← ProbOracleComp.sample m pure (f x)) 0

Zero-cost bound for sampling and mapping a pure return value under Sum.elim (fun _ => 0) outCost.

theorem Cslib.Crypto.AnonymousToken.run_interpret_sumUnif_isCostBounded {ιReq ιRO : Type} {ReqSpec : ιReq → Type} {ROSpec : ιRO → Type} {ιOut : Type} {OutSpec : ιOut → Type} {S α : Type} (inner : (q : ιReq ⊕ ιRO) → StateT S (ProbOracleComp OutSpec) (OracleSpec.sum ReqSpec ROSpec q)) (reqCost : ιReq → ℕ) (roCost : ιRO → ℕ) (outCost : ιOut → ℕ) (hReq : ∀ (req : ιReq) (s : S), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) outCost) ((inner (Sum.inl req)).run s) (reqCost req)) (hRO : ∀ (qRO : ιRO) (s : S), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) outCost) ((inner (Sum.inr qRO)).run s) (roCost qRO)) (prog : ProbOracleComp (OracleSpec.sum ReqSpec ROSpec) α) (s₀ : S) {B : ℕ} (hB : OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim reqCost roCost)) prog B) :

Lift per-query cost bounds through stateful OracleComp.interpret with unifFin sampling.

theorem Cslib.Crypto.AnonymousToken.bind_tsum_add_voleithKSBound_toNNReal {Keys : Type} (romGame extGame : Experiment) (keyDist : PMF Keys) (lhs rhs : Keys → PMF Bool) (bound : NNReal) (hkey_le : ∀ (k : Keys), (lhs k) true ≤ (rhs k) true + ↑bound) (hlhs : ProbComp.eval romGame = keyDist.bind lhs) (hrhs : ProbComp.eval extGame = keyDist.bind rhs) :
romGame.succProbability ≤ extGame.succProbability + bound

Transfer a pointwise additive ℝ≥0∞ game bound across a shared keyDist into ℝ≥0 succProbability.

Bridge to AnonymousToken.Basic #

structure Cslib.Crypto.AnonymousToken.ROMTokenRequest (Message Target : Type) (d comLen rowLen : ℕ) (Seed IV PreMsg : Type) :

Client signing request in the unextracted leaf_hash::shake ROM anonymous-token game: the client asks the signer to certify a public target while proving knowledge of an opening via a VOLEitH proof proof.

  • message : Message

    Semantic message bound into the token payload.

  • target : Target

    Blinded / committed target submitted to the signer.

  • proof : Protocols.VOLE.VOLEITHProof d comLen rowLen Seed IV PreMsg

    Straight-line extractable VOLEitH proof for (message, target).

@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMTokenRequest {Message✝ Target✝ : Type} {d✝ comLen✝ rowLen✝ : ℕ} {Seed✝ IV✝ PreMsg✝ : Type} [DecidableEq Message✝] [DecidableEq Target✝] [DecidableEq Seed✝] [DecidableEq IV✝] [DecidableEq PreMsg✝] :
DecidableEq (ROMTokenRequest Message✝ Target✝ d✝ comLen✝ rowLen✝ Seed✝ IV✝ PreMsg✝)
def Cslib.Crypto.AnonymousToken.instDecidableEqROMTokenRequest.decEq {Message✝ Target✝ : Type} {d✝ comLen✝ rowLen✝ : ℕ} {Seed✝ IV✝ PreMsg✝ : Type} [DecidableEq Message✝] [DecidableEq Target✝] [DecidableEq Seed✝] [DecidableEq IV✝] [DecidableEq PreMsg✝] (x✝ x✝¹ : ROMTokenRequest Message✝ Target✝ d✝ comLen✝ rowLen✝ Seed✝ IV✝ PreMsg✝) :
Decidable (x✝ = x✝¹)
def Cslib.Crypto.AnonymousToken.ROMTokenRequest.stmt {Message Target : Type} {d comLen rowLen : ℕ} {Seed IV PreMsg : Type} (req : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) :
Message × Target

Public VOLEitH statement (req.message, req.target) proven by ROMTokenRequest.

def Cslib.Crypto.AnonymousToken.romTokenRel {Message Opening Target : Type} [DecidableEq Target] (targetFn : Message → Opening → Target) (stmt : Message × Target) (open_ : Opening) :

Relation verified in the ROM anonymous-token signing request: targetFn msg open_ = target.

@[reducible, inline]
abbrev Cslib.Crypto.AnonymousToken.ROMTokenSignSpec (Message Target : Type) (d comLen rowLen : ℕ) (Seed IV PreMsg Sig : Type) :
OracleSpec (ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg)

Signing oracle specification returning some sig on proof acceptance and none otherwise.

@[reducible, inline]
abbrev Cslib.Crypto.AnonymousToken.ROMTokenSpec (Message Target : Type) (d sdLen comLen rowLen : ℕ) (Seed IV PreMsg Chal Sig : Type) :
OracleSpec (ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg ⊕ Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)

Combined oracle specification exposed to an unextracted ROM token adversary.

structure Cslib.Crypto.AnonymousToken.ROMTokenExecution (PK Message Opening Sig : Type) :

Transcript of an unextracted ROM anonymous-token adversary execution.

  • publicKey : PK

    Signer public verification key.

  • output : Token Message Opening Sig

    Final forged token emitted by the adversary.

  • signedMessages : List Message

    Messages signed after VOLEitH proof verification succeeded.

def Cslib.Crypto.AnonymousToken.romTokenAccept {PK SK Message Opening Target Sig : Type} [DecidableEq Message] (S : Signature.Scheme PK SK Target Sig) (targetFn : Message → Opening → Target) (run : ROMTokenExecution PK Message Opening Sig) :

Winning condition for the unextracted ROM token adversary: valid token on a fresh message.

noncomputable def Cslib.Crypto.AnonymousToken.romTokenAcceptReal {d comLen rowLen : ℕ} {PK SK Message Target Seed IV PreMsg Sig : Type} (S : Signature.Scheme PK SK Target Sig) (keys : PK × SK) (req : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) (msgs : List Message) :
ProbComp (Option Sig × List Message)

Acceptance continuation for ROMTokenSpec that signs req.target and appends req.message to signedMessages.

noncomputable def Cslib.Crypto.AnonymousToken.runROMUnextractedToken {d sdLen comLen rowLen : ℕ} {PK SK Message Opening Target Seed IV PreMsg Chal Sig : Type} [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (chalToIdx : Chal → Fin (2 ^ d)) (checkRel : Message × Target → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (S : Signature.Scheme PK SK Target Sig) (A : PK → ProbOracleComp (ROMTokenSpec Message Target d sdLen comLen rowLen Seed IV PreMsg Chal Sig) (Token Message Opening Sig)) :
ProbComp (ROMTokenExecution PK Message Opening Sig)

Execute an unextracted ROM token adversary against the verifier-checked signing oracle and lazy two-channel ROM.

noncomputable def Cslib.Crypto.AnonymousToken.romUnextractedTokenExperiment {d sdLen comLen rowLen : ℕ} {PK SK Message Opening Target Seed IV PreMsg Chal Sig : Type} [DecidableEq Message] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (chalToIdx : Chal → Fin (2 ^ d)) (checkRel : Message × Target → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (S : Signature.Scheme PK SK Target Sig) (targetFn : Message → Opening → Target) (A : PK → ProbOracleComp (ROMTokenSpec Message Target d sdLen comLen rowLen Seed IV PreMsg Chal Sig) (Token Message Opening Sig)) :

Unextracted ROM anonymous-token unforgeability game, original to this library (note that ROMTokenRequest.message is sent publicly in the clear and logged against signedMessages, modeling declared-message token issuance rather than blind issuance / OMUF).

noncomputable def Cslib.Crypto.AnonymousToken.extractedForgerOfROM {d sdLen comLen rowLen : ℕ} {PK Message Opening Target Seed IV PreMsg Chal Sig : Type} [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → Opening) (chalToIdx : Chal → Fin (2 ^ d)) (checkRel : Message × Target → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (A : PK → ProbOracleComp (ROMTokenSpec Message Target d sdLen comLen rowLen Seed IV PreMsg Chal Sig) (Token Message Opening Sig)) :
ExtractedForger PK Message Opening Sig

Straight-line extracted-model ExtractedForger constructed from an unextracted ROM adversary A: simulates VOLEITHROSpec locally, checks voleithVerifyROM, and whenever a request verifies, extracts open* = extractWitnessFromTrace tr_leaf prf without rewinding and forwards ⟨req.message, open*⟩ to the ExtractedForger signing oracle.

theorem Cslib.Crypto.AnonymousToken.extractedForgerOfROM_isQueryBounded {d sdLen comLen rowLen : ℕ} {PK Message Opening Target Seed IV PreMsg Chal Sig : Type} [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → Opening) (chalToIdx : Chal → Fin (2 ^ d)) (checkRel : Message × Target → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (A : PK → ProbOracleComp (ROMTokenSpec Message Target d sdLen comLen rowLen Seed IV PreMsg Chal Sig) (Token Message Opening Sig)) {m : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) => 1) fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg) => 0)) (A pk) m) (pk : PK) :
(extractedForgerOfROM expand decWit chalToIdx checkRel A pk).IsQueryBounded m

extractedForgerOfROM preserves signing-query budgets: every VOLEITHROSpec call costs 0 signing queries and every signing request calls the extracted signing oracle at most once.

theorem Cslib.Crypto.AnonymousToken.unextractedTokenExperiment_succProbability_le_extracted {d sdLen comLen rowLen : ℕ} {PK SK Message Opening Target Seed IV PreMsg Chal Sig : Type} [DecidableEq Message] [DecidableEq Target] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [LawfulBEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)] [LawfulBEq (Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → Opening) (chalToIdx : Chal → Fin (2 ^ d)) (S : Signature.Scheme PK SK Target Sig) (targetFn : Message → Opening → Target) (checkRel : Message × Target → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) {ε_rel : NNReal} (hSound : Protocols.VOLE.VOLEITHSoundnessError decWit chalToIdx (romTokenRel targetFn) checkRel ε_rel) (A : PK → ProbOracleComp (ROMTokenSpec Message Target d sdLen comLen rowLen Seed IV PreMsg Chal Sig) (Token Message Opening Sig)) {m Q_leaf Q_FS : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) => 1) fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg) => 0)) (A pk) m) (hleaf : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) => 0) Protocols.VOLE.voleithLeafCost)) (A pk) Q_leaf) (hfs : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) => 0) Protocols.VOLE.voleithFSCost)) (A pk) Q_FS) :
(romUnextractedTokenExperiment expand chalToIdx checkRel S targetFn A).succProbability ≤ (extractedExperiment S targetFn (extractedForgerOfROM expand decWit chalToIdx checkRel A)).succProbability + Protocols.VOLE.voleithKSBound d comLen (Q_leaf + m * (2 ^ d - 1)) (Q_FS + m) ε_rel

Concrete query-bounded advantage bound (not an asymptotic PPT security theorem): any unextracted ROM adversary making at most m signing queries, Q_leaf leaf queries, and Q_FS Fiat–Shamir queries reduces straight-line (no rewinding) to the extracted-model adversary extractedForgerOfROM ... A with additive loss voleithKSBound in Game.succProbability.

theorem Cslib.Crypto.AnonymousToken.unextractedTokenExperiment_succProbability_le {d sdLen comLen rowLen : ℕ} {PK SK Message Opening Target Seed IV PreMsg Chal Sig : Type} [DecidableEq Message] [DecidableEq Target] [Inhabited Sig] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [LawfulBEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)] [LawfulBEq (Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → Opening) (chalToIdx : Chal → Fin (2 ^ d)) (S : Signature.Scheme PK SK Target Sig) (targetFn : Message → Opening → Target) (checkRel : Message × Target → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) {ε_rel : NNReal} (hSound : Protocols.VOLE.VOLEITHSoundnessError decWit chalToIdx (romTokenRel targetFn) checkRel ε_rel) (A : PK → ProbOracleComp (ROMTokenSpec Message Target d sdLen comLen rowLen Seed IV PreMsg Chal Sig) (Token Message Opening Sig)) {m Q_leaf Q_FS : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) => 1) fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (Message × Target) IV PreMsg) => 0)) (A pk) m) (hleaf : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) => 0) Protocols.VOLE.voleithLeafCost)) (A pk) Q_leaf) (hfs : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMTokenRequest Message Target d comLen rowLen Seed IV PreMsg) => 0) Protocols.VOLE.voleithFSCost)) (A pk) Q_FS) :
(romUnextractedTokenExperiment expand chalToIdx checkRel S targetFn A).succProbability ≤ (S.eufCmaExperiment (targetForger targetFn (extractedForgerOfROM expand decWit chalToIdx checkRel A))).succProbability + (bindingExperiment S targetFn (extractedForgerOfROM expand decWit chalToIdx checkRel A)).succProbability + Protocols.VOLE.voleithKSBound d comLen (Q_leaf + m * (2 ^ d - 1)) (Q_FS + m) ε_rel

Concrete query-bounded advantage bound (not an asymptotic PPT security theorem): end-to-end ROM reduction for AnonymousToken.Basic composing straight-line leaf extraction with AnonymousToken.extracted_succProbability_le to bound an unextracted ROM adversary's forgery probability by EUF-CMA + target binding + voleithKSBound.

Bridge to AnonymousToken.Conservation #

structure Cslib.Crypto.AnonymousToken.ROMIssueStatement (Context Commitment : Type) :

Public issuance statement proven by a client in the unextracted ROM conservation game.

  • ctx : Context

    Issuer context bound into the issued note commitment.

  • amount : ℕ

    Issued credit amount.

  • commitment : Commitment

    Commitment hiding (nullifier, opening) under ctx and amount.

@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMIssueStatement {Context✝ Commitment✝ : Type} [DecidableEq Context✝] [DecidableEq Commitment✝] :
DecidableEq (ROMIssueStatement Context✝ Commitment✝)
def Cslib.Crypto.AnonymousToken.instDecidableEqROMIssueStatement.decEq {Context✝ Commitment✝ : Type} [DecidableEq Context✝] [DecidableEq Commitment✝] (x✝ x✝¹ : ROMIssueStatement Context✝ Commitment✝) :
Decidable (x✝ = x✝¹)
structure Cslib.Crypto.AnonymousToken.ROMSpendStatement (Nullifier Context Commitment : Type) :

Public spend statement proven by a client in the unextracted ROM conservation game.

  • ctx : Context

    Issuer context bound into both input note and change commitment.

  • nullifier : Nullifier

    Spent input nullifier revealed publicly to prevent double-spending.

  • debit : ℕ

    Publicly debited credit amount.

  • refund : ℕ

    Public refund amount granted by the issuer on the change note.

  • changeCommitment : Commitment

    Commitment to the fresh change note (newNullifier, ctx, newCredit, newOpening).

@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMSpendStatement {Nullifier✝ Context✝ Commitment✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Context✝] [DecidableEq Commitment✝] :
DecidableEq (ROMSpendStatement Nullifier✝ Context✝ Commitment✝)
def Cslib.Crypto.AnonymousToken.instDecidableEqROMSpendStatement.decEq {Nullifier✝ Context✝ Commitment✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Context✝] [DecidableEq Commitment✝] (x✝ x✝¹ : ROMSpendStatement Nullifier✝ Context✝ Commitment✝) :
Decidable (x✝ = x✝¹)
inductive Cslib.Crypto.AnonymousToken.ROMConservationQuery (Nullifier Context Commitment : Type) :

Public issue or spend query sent to the unextracted ROM issuer oracle (without secret note openings, old note balances, or the input signature).

@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMConservationQuery {Nullifier✝ Context✝ Commitment✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Context✝] [DecidableEq Commitment✝] :
DecidableEq (ROMConservationQuery Nullifier✝ Context✝ Commitment✝)
def Cslib.Crypto.AnonymousToken.instDecidableEqROMConservationQuery.decEq {Nullifier✝ Context✝ Commitment✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Context✝] [DecidableEq Commitment✝] (x✝ x✝¹ : ROMConservationQuery Nullifier✝ Context✝ Commitment✝) :
Decidable (x✝ = x✝¹)
def Cslib.Crypto.AnonymousToken.ROMConservationQuery.signedMessage {Nullifier Context Commitment Target : Type} (tag : Commitment → ℕ → Target) :
ROMConservationQuery Nullifier Context Commitment → Target

Signed output message produced when the issuer accepts a public conservation query.

structure Cslib.Crypto.AnonymousToken.ROMConservationStmt (PK Nullifier Context Commitment : Type) :

Public VOLEitH statement binding the issuer public key publicKey and public query.

  • publicKey : PK

    Issuer public verification key bound into the Fiat–Shamir query.

  • query : ROMConservationQuery Nullifier Context Commitment

    Public issuance or spend statement proven in zero knowledge.

def Cslib.Crypto.AnonymousToken.instDecidableEqROMConservationStmt.decEq {PK✝ Nullifier✝ Context✝ Commitment✝ : Type} [DecidableEq PK✝] [DecidableEq Nullifier✝] [DecidableEq Context✝] [DecidableEq Commitment✝] (x✝ x✝¹ : ROMConservationStmt PK✝ Nullifier✝ Context✝ Commitment✝) :
Decidable (x✝ = x✝¹)
@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMConservationStmt {PK✝ Nullifier✝ Context✝ Commitment✝ : Type} [DecidableEq PK✝] [DecidableEq Nullifier✝] [DecidableEq Context✝] [DecidableEq Commitment✝] :
DecidableEq (ROMConservationStmt PK✝ Nullifier✝ Context✝ Commitment✝)
structure Cslib.Crypto.AnonymousToken.ROMIssueWitness (Nullifier Opening : Type) :

Secret witness extracted from a valid issuance proof.

  • nullifier : Nullifier

    Hidden nullifier committed inside the issued note.

  • opening : Opening

    Commitment randomness opening the issued commitment.

def Cslib.Crypto.AnonymousToken.instDecidableEqROMIssueWitness.decEq {Nullifier✝ Opening✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Opening✝] (x✝ x✝¹ : ROMIssueWitness Nullifier✝ Opening✝) :
Decidable (x✝ = x✝¹)
@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMIssueWitness {Nullifier✝ Opening✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Opening✝] :
DecidableEq (ROMIssueWitness Nullifier✝ Opening✝)
structure Cslib.Crypto.AnonymousToken.ROMSpendWitness (Nullifier Opening Sig : Type) :

Secret witness extracted from a valid spend proof.

  • oldCredit : ℕ

    Hidden credit balance on the spent input note.

  • oldOpening : Opening

    Commitment opening for the spent input note.

  • oldRefund : ℕ

    Hidden refund balance on the spent input note.

  • signature : Sig

    Issuer signature certifying the spent input note target.

  • newNullifier : Nullifier

    Fresh nullifier hidden in the change commitment.

  • newCredit : ℕ

    Remaining credit balance committed in the change note.

  • newOpening : Opening

    Commitment randomness for the change note.

@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMSpendWitness {Nullifier✝ Opening✝ Sig✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Opening✝] [DecidableEq Sig✝] :
DecidableEq (ROMSpendWitness Nullifier✝ Opening✝ Sig✝)
def Cslib.Crypto.AnonymousToken.instDecidableEqROMSpendWitness.decEq {Nullifier✝ Opening✝ Sig✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Opening✝] [DecidableEq Sig✝] (x✝ x✝¹ : ROMSpendWitness Nullifier✝ Opening✝ Sig✝) :
Decidable (x✝ = x✝¹)
inductive Cslib.Crypto.AnonymousToken.ROMConservationWitness (Nullifier Opening Sig : Type) :

Extracted conservation witness matching ROMConservationQuery.

@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMConservationWitness {Nullifier✝ Opening✝ Sig✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Opening✝] [DecidableEq Sig✝] :
DecidableEq (ROMConservationWitness Nullifier✝ Opening✝ Sig✝)
def Cslib.Crypto.AnonymousToken.instDecidableEqROMConservationWitness.decEq {Nullifier✝ Opening✝ Sig✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Opening✝] [DecidableEq Sig✝] (x✝ x✝¹ : ROMConservationWitness Nullifier✝ Opening✝ Sig✝) :
Decidable (x✝ = x✝¹)
structure Cslib.Crypto.AnonymousToken.ROMConservationRequest (Nullifier Context Commitment : Type) (d comLen rowLen : ℕ) (Seed IV PreMsg : Type) :

Client request in the unextracted ROM conservation game, pairing a public query with its straight-line extractable VOLEitH proof.

def Cslib.Crypto.AnonymousToken.instDecidableEqROMConservationRequest.decEq {Nullifier✝ Context✝ Commitment✝ : Type} {d✝ comLen✝ rowLen✝ : ℕ} {Seed✝ IV✝ PreMsg✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Context✝] [DecidableEq Commitment✝] [DecidableEq Seed✝] [DecidableEq IV✝] [DecidableEq PreMsg✝] (x✝ x✝¹ : ROMConservationRequest Nullifier✝ Context✝ Commitment✝ d✝ comLen✝ rowLen✝ Seed✝ IV✝ PreMsg✝) :
Decidable (x✝ = x✝¹)
@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.instDecidableEqROMConservationRequest {Nullifier✝ Context✝ Commitment✝ : Type} {d✝ comLen✝ rowLen✝ : ℕ} {Seed✝ IV✝ PreMsg✝ : Type} [DecidableEq Nullifier✝] [DecidableEq Context✝] [DecidableEq Commitment✝] [DecidableEq Seed✝] [DecidableEq IV✝] [DecidableEq PreMsg✝] :
DecidableEq (ROMConservationRequest Nullifier✝ Context✝ Commitment✝ d✝ comLen✝ rowLen✝ Seed✝ IV✝ PreMsg✝)
def Cslib.Crypto.AnonymousToken.romConservationRel {PK SK Nullifier Context Opening Commitment Target Sig : Type} [DecidableEq Commitment] (com : Nullifier → Context → ℕ → Opening → Commitment) (tag : Commitment → ℕ → Target) (S : Signature.Scheme PK SK Target Sig) (stmt : ROMConservationStmt PK Nullifier Context Commitment) :
ROMConservationWitness Nullifier Opening Sig → Bool

Public VOLEitH relation checked in the ROM credit-conservation game: an issuance proof opens the issued commitment, and a spend proof proves a valid input signature, change commitment opening, and note balance conservation oldCredit + oldRefund = newCredit + debit.

def Cslib.Crypto.AnonymousToken.romConservationToPublicQuery {Nullifier Context Opening Commitment Sig : Type} :
Conservation.Request Nullifier Context Opening Commitment Sig → ROMConservationQuery Nullifier Context Commitment

Project a full Conservation.Request onto its public ROMConservationQuery.

def Cslib.Crypto.AnonymousToken.romHasSpentNullifier {Nullifier Context Commitment : Type} [DecidableEq Nullifier] [DecidableEq Context] (qs : List (ROMConservationQuery Nullifier Context Commitment)) (ctx : Context) (nf : Nullifier) :

Nullifier spend check on public conservation queries.

def Cslib.Crypto.AnonymousToken.romAcceptQuery {Nullifier Context Commitment : Type} [DecidableEq Nullifier] [DecidableEq Context] (accepted : List (ROMConservationQuery Nullifier Context Commitment)) :
ROMConservationQuery Nullifier Context Commitment → Bool

Public nullifier-freshness check applied by the ROM issuer after proof verification.

def Cslib.Crypto.AnonymousToken.romIssuedAmount {Nullifier Context Commitment : Type} [DecidableEq Context] (qs : List (ROMConservationQuery Nullifier Context Commitment)) (ctx : Context) :

Total issued credit in ctx over public queries.

def Cslib.Crypto.AnonymousToken.romGrantedRefund {Nullifier Context Commitment : Type} [DecidableEq Context] (qs : List (ROMConservationQuery Nullifier Context Commitment)) (ctx : Context) :

Total granted refunds in ctx over public queries.

def Cslib.Crypto.AnonymousToken.romSpentDebit {Nullifier Context Commitment : Type} [DecidableEq Context] (qs : List (ROMConservationQuery Nullifier Context Commitment)) (ctx : Context) :

Total spent debits in ctx over public queries.

theorem Cslib.Crypto.AnonymousToken.romHasSpentNullifier_map {Nullifier Context Opening Commitment Sig : Type} [DecidableEq Nullifier] [DecidableEq Context] (reqs : List (Conservation.Request Nullifier Context Opening Commitment Sig)) (ctx : Context) (nf : Nullifier) :

romHasSpentNullifier agrees under romConservationToPublicQuery with Conservation.hasSpentNullifier.

theorem Cslib.Crypto.AnonymousToken.romIssuedAmount_map {Nullifier Context Opening Commitment Sig : Type} [DecidableEq Context] (reqs : List (Conservation.Request Nullifier Context Opening Commitment Sig)) (ctx : Context) :

romIssuedAmount agrees under romConservationToPublicQuery with Conservation.issuedAmount.

theorem Cslib.Crypto.AnonymousToken.romGrantedRefund_map {Nullifier Context Opening Commitment Sig : Type} [DecidableEq Context] (reqs : List (Conservation.Request Nullifier Context Opening Commitment Sig)) (ctx : Context) :

romGrantedRefund agrees under romConservationToPublicQuery with Conservation.grantedRefund.

theorem Cslib.Crypto.AnonymousToken.romSpentDebit_map {Nullifier Context Opening Commitment Sig : Type} [DecidableEq Context] (reqs : List (Conservation.Request Nullifier Context Opening Commitment Sig)) (ctx : Context) :

romSpentDebit agrees under romConservationToPublicQuery with Conservation.spentDebit.

@[reducible, inline]
abbrev Cslib.Crypto.AnonymousToken.ROMConservationIssuerSpec (Nullifier Context Commitment : Type) (d comLen rowLen : ℕ) (Seed IV PreMsg Sig : Type) :
OracleSpec (ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg)

Signing oracle specification returning some sig on accepted ROM conservation requests and none otherwise.

@[reducible, inline]
abbrev Cslib.Crypto.AnonymousToken.ROMConservationSpec (Nullifier Context Commitment : Type) (d sdLen comLen rowLen : ℕ) (PK Seed IV PreMsg Chal Sig : Type) :
OracleSpec (ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg ⊕ Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)

Combined oracle specification exposed to an unextracted ROM conservation adversary.

structure Cslib.Crypto.AnonymousToken.ROMConservationExecution (PK Nullifier Context Commitment : Type) :

Transcript of an unextracted ROM credit-conservation adversary execution.

  • publicKey : PK

    Issuer public verification key.

  • targetCtx : Context

    Target context output by the adversary.

  • acceptedQueries : List (ROMConservationQuery Nullifier Context Commitment)

    Public queries accepted by the ROM issuer in order.

def Cslib.Crypto.AnonymousToken.romConservationAccept {PK Nullifier Context Commitment : Type} [DecidableEq Context] (run : ROMConservationExecution PK Nullifier Context Commitment) :

Winning condition for the unextracted ROM conservation adversary: overspending run.targetCtx against issuedAmount + grantedRefund.

noncomputable def Cslib.Crypto.AnonymousToken.romConsAcceptReal {d comLen rowLen : ℕ} {PK SK Nullifier Context Commitment Target Seed IV PreMsg Sig : Type} [DecidableEq Nullifier] [DecidableEq Context] (tag : Commitment → ℕ → Target) (S : Signature.Scheme PK SK Target Sig) (keys : PK × SK) (req : ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg) (accepted : List (ROMConservationQuery Nullifier Context Commitment)) :
ProbComp (Option Sig × List (ROMConservationQuery Nullifier Context Commitment))

Acceptance continuation for ROMConservationSpec that checks romAcceptQuery, signs req.query.signedMessage tag, and logs req.query.

noncomputable def Cslib.Crypto.AnonymousToken.runROMUnextractedConservation {d sdLen comLen rowLen : ℕ} {PK SK Nullifier Context Commitment Target Seed IV PreMsg Chal Sig : Type} [DecidableEq Nullifier] [DecidableEq Context] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (chalToIdx : Chal → Fin (2 ^ d)) (tag : Commitment → ℕ → Target) (checkRel : ROMConservationStmt PK Nullifier Context Commitment → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (S : Signature.Scheme PK SK Target Sig) (A : PK → ProbOracleComp (ROMConservationSpec Nullifier Context Commitment d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig) Context) :
ProbComp (ROMConservationExecution PK Nullifier Context Commitment)

Execute an unextracted ROM credit-conservation adversary against the VOLEitH-checked issuer oracle and lazy two-channel ROM.

noncomputable def Cslib.Crypto.AnonymousToken.romUnextractedConservationExperiment {d sdLen comLen rowLen : ℕ} {PK SK Nullifier Context Commitment Target Seed IV PreMsg Chal Sig : Type} [DecidableEq Nullifier] [DecidableEq Context] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (chalToIdx : Chal → Fin (2 ^ d)) (tag : Commitment → ℕ → Target) (checkRel : ROMConservationStmt PK Nullifier Context Commitment → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (S : Signature.Scheme PK SK Target Sig) (A : PK → ProbOracleComp (ROMConservationSpec Nullifier Context Commitment d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig) Context) :

Unextracted ROM credit-conservation experiment, original to this library (client query fields are public, while note commitments, openings, old balances, and input signatures are proven in zero knowledge): wins if the accepted ROM query transcript overspends run.targetCtx.

noncomputable def Cslib.Crypto.AnonymousToken.extractedAdversaryOfROM {d sdLen comLen rowLen : ℕ} {PK Nullifier Context Opening Commitment Seed IV PreMsg Chal Sig : Type} [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] [Inhabited Nullifier] [Inhabited Opening] [Inhabited Sig] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → ROMConservationWitness Nullifier Opening Sig) (chalToIdx : Chal → Fin (2 ^ d)) (checkRel : ROMConservationStmt PK Nullifier Context Commitment → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (A : PK → ProbOracleComp (ROMConservationSpec Nullifier Context Commitment d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig) Context) :
Conservation.ExtractedAdversary Nullifier Context Opening Commitment PK Sig

Straight-line extracted-model Conservation.ExtractedAdversary constructed from an unextracted ROM conservation adversary A: simulates VOLEITHROSpec locally, checks voleithVerifyROM, and whenever a request verifies, extracts the witness without rewinding and forwards romConservationToExtractedRequest req wit to the extracted issuer oracle.

theorem Cslib.Crypto.AnonymousToken.extractedAdversaryOfROM_isQueryBounded {d sdLen comLen rowLen : ℕ} {PK Nullifier Context Opening Commitment Seed IV PreMsg Chal Sig : Type} [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] [Inhabited Nullifier] [Inhabited Opening] [Inhabited Sig] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → ROMConservationWitness Nullifier Opening Sig) (chalToIdx : Chal → Fin (2 ^ d)) (checkRel : ROMConservationStmt PK Nullifier Context Commitment → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) (A : PK → ProbOracleComp (ROMConservationSpec Nullifier Context Commitment d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig) Context) {m : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg) => 1) fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg) => 0)) (A pk) m) (pk : PK) :
(extractedAdversaryOfROM expand decWit chalToIdx checkRel A pk).IsQueryBounded m

extractedAdversaryOfROM preserves issuer-query budgets: every VOLEITHROSpec call costs 0 extracted issuer queries and every ROM request calls the extracted issuer at most once.

theorem Cslib.Crypto.AnonymousToken.unextractedConservationExperiment_succProbability_le_extracted {d sdLen comLen rowLen : ℕ} {PK SK Nullifier Context Opening Commitment Target Seed IV PreMsg Chal Sig : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Commitment] [Inhabited Nullifier] [Inhabited Opening] [Inhabited Sig] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [LawfulBEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)] [LawfulBEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → ROMConservationWitness Nullifier Opening Sig) (chalToIdx : Chal → Fin (2 ^ d)) (com : Nullifier → Context → ℕ → Opening → Commitment) (tag : Commitment → ℕ → Target) (S : Signature.Scheme PK SK Target Sig) (checkRel : ROMConservationStmt PK Nullifier Context Commitment → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) {ε_rel : NNReal} (hSound : Protocols.VOLE.VOLEITHSoundnessError decWit chalToIdx (romConservationRel com tag S) checkRel ε_rel) (A : PK → ProbOracleComp (ROMConservationSpec Nullifier Context Commitment d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig) Context) {m Q_leaf Q_FS : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg) => 1) fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg) => 0)) (A pk) m) (hleaf : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg) => 0) Protocols.VOLE.voleithLeafCost)) (A pk) Q_leaf) (hfs : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg) => 0) Protocols.VOLE.voleithFSCost)) (A pk) Q_FS) :
(romUnextractedConservationExperiment expand chalToIdx tag checkRel S A).succProbability ≤ (Conservation.extractedConservationExperiment com tag S (extractedAdversaryOfROM expand decWit chalToIdx checkRel A)).succProbability + Protocols.VOLE.voleithKSBound d comLen (Q_leaf + m * (2 ^ d - 1)) (Q_FS + m) ε_rel

Concrete query-bounded advantage bound (not an asymptotic PPT security theorem): reduction from the unextracted ROM credit-conservation game to Conservation.extractedConservationExperiment: an adversary making at most m signing queries, Q_leaf leaf RO queries, and Q_FS Fiat–Shamir queries loses at most voleithKSBound d comLen (Q_leaf + m * (2 ^ d - 1)) (Q_FS + m) ε_rel when lifted to the extracted conservation experiment via extractedAdversaryOfROM.

theorem Cslib.Crypto.AnonymousToken.unextractedConservationExperiment_succProbability_le_prod_mk {d sdLen comLen rowLen : ℕ} {K PK SK Nullifier Context Opening Commitment Seed IV PreMsg Chal Sig : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Commitment] [Inhabited Nullifier] [Inhabited Context] [Inhabited Opening] [Inhabited Sig] [BEq (Protocols.VOLE.LeafQuery d Seed IV)] [LawfulBEq (Protocols.VOLE.LeafQuery d Seed IV)] [BEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)] [LawfulBEq (Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg)] [DecidableEq IV] [Fintype Chal] [Nonempty Chal] (expand : BitString sdLen → BitString rowLen) (decWit : BitString rowLen → ROMConservationWitness Nullifier Opening Sig) (chalToIdx : Chal → Fin (2 ^ d)) (com : Nullifier → Context → ℕ → Opening → Commitment) (CS : Crypto.Commitment.Scheme K (Nullifier × Context × ℕ) Commitment Opening) (hverify : ∀ (k : K) (nf : Nullifier) (ctx : Context) (t : ℕ) (c : Commitment) (o : Opening), CS.verify k (nf, ctx, t) c o = decide (com nf ctx t o = c)) (S : Signature.Scheme PK SK (Commitment × ℕ) Sig) (checkRel : ROMConservationStmt PK Nullifier Context Commitment → (Fin d → BitString rowLen) → BitString rowLen → PreMsg → Chal → Bool) {ε_rel : NNReal} (hSound : Protocols.VOLE.VOLEITHSoundnessError decWit chalToIdx (romConservationRel com Prod.mk S) checkRel ε_rel) (A : PK → ProbOracleComp (ROMConservationSpec Nullifier Context Commitment d sdLen comLen rowLen PK Seed IV PreMsg Chal Sig) Context) {m Q_leaf Q_FS : ℕ} (hm : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg) => 1) fun (x : Protocols.VOLE.LeafQuery d Seed IV ⊕ Protocols.VOLE.FSQuery d comLen rowLen (ROMConservationStmt PK Nullifier Context Commitment) IV PreMsg) => 0)) (A pk) m) (hleaf : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg) => 0) Protocols.VOLE.voleithLeafCost)) (A pk) Q_leaf) (hfs : ∀ (pk : PK), OracleComp.IsCostBounded (Sum.elim (fun (x : ℕ) => 0) (Sum.elim (fun (x : ROMConservationRequest Nullifier Context Commitment d comLen rowLen Seed IV PreMsg) => 0) Protocols.VOLE.voleithFSCost)) (A pk) Q_FS) :
(romUnextractedConservationExperiment expand chalToIdx Prod.mk checkRel S A).succProbability ≤ (S.eufCmaExperiment (targetForger (Credit.target com Prod.mk) (Conservation.noteForger com Prod.mk S (extractedAdversaryOfROM expand decWit chalToIdx checkRel A)))).succProbability + (CS.bindingExperiment (Conservation.commitmentBindingReduction com S (extractedAdversaryOfROM expand decWit chalToIdx checkRel A))).succProbability + Protocols.VOLE.voleithKSBound d comLen (Q_leaf + m * (2 ^ d - 1)) (Q_FS + m) ε_rel

Concrete query-bounded advantage bound (not an asymptotic PPT security theorem): end-to-end ROM reduction for AnonymousToken.Conservation composing straight-line leaf extraction with Conservation.extractedConservationExperiment_succProbability_le_prod_mk to bound an unextracted ROM conservation adversary's overspending probability by EUF-CMA against noteForger, commitment binding against commitmentBindingReduction, and voleithKSBound.