Documentation

CslibFrontier.Crypto.Protocols.AnonymousToken.ACTMQ

Structured-target one-more claw-freeness and VOLE-ACT-MQ credit conservation #

This module formalizes the extracted-model credit-conservation reduction and structural adversaries for VOLE-ACT-MQ ([ZPS26], Instantiations / VOLE-ACT-MQ #mq-commitment, and Security Considerations / Proof status #proof-status). Every game, reduction, and theorem in this file is original to this library; the source draft provides neither a formal claw-freeness game nor a security reduction.

Scope and assumption status #

Main definitions #

Main results #

References #

Structured-target one-more claw-freeness and G-collision games #

A candidate claw pairing a semantic message message : M and commitment opening opening : R with a preimage/signature preimage : Sig certifying J message opening.

  • message : M

    Semantic message input to the structured target.

  • opening : R

    Commitment opening input to the structured target.

  • preimage : Sig

    Candidate signature or trapdoor preimage certifying J message opening.

@[instance_reducible]
instance Cslib.Crypto.AnonymousToken.ACTMQ.instDecidableEqClawClaim {M✝ R✝ Sig✝ : Type} [DecidableEq M✝] [DecidableEq R✝] [DecidableEq Sig✝] :
DecidableEq (ClawClaim M✝ R✝ Sig✝)
def Cslib.Crypto.AnonymousToken.ACTMQ.instDecidableEqClawClaim.decEq {M✝ R✝ Sig✝ : Type} [DecidableEq M✝] [DecidableEq R✝] [DecidableEq Sig✝] (x✝ x✝¹ : ClawClaim M✝ R✝ Sig✝) :
Decidable (x✝ = x✝¹)
@[reducible, inline]

An adaptive adversary in the structured-target one-more claw-freeness experiment. Given the public key pk, it queries a signing oracle on chosen pairs (m, r) to receive signatures on J m r, and outputs a list of candidate claws.

The public key, candidate claws, and ordered signing log of a structured one-more run.

  • publicKey : PK

    Public verification key sampled by key generation.

  • claims : List (ClawClaim M R Sig)

    Candidate claws output by the adversary.

  • log : List ((M × R) × Sig)

    Every (m, r) query and reply recorded in call order.

def Cslib.Crypto.AnonymousToken.ACTMQ.runClaw {PK SK M R Target Sig : Type} (S : Signature.Scheme PK SK Target Sig) (J : M → R → Target) (A : ClawAdversary PK M R Sig) :
ProbComp (ClawExecution PK M R Sig)

Execute A against the honest signer on J, recording all queries and replies.

def Cslib.Crypto.AnonymousToken.ACTMQ.clawAccept {PK SK M R Target Sig : Type} [DecidableEq Target] (S : Signature.Scheme PK SK Target Sig) (J : M → R → Target) (run : ClawExecution PK M R Sig) :

Acceptance predicate of the structured-target one-more claw-freeness game: the adversary outputs strictly more claims than distinct J-targets queried in run.log (so repeated or colliding target queries add zero cost to the budget), the claims' J-targets are pairwise distinct, and every claim verifies under S.verify run.publicKey.

def Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment {PK SK M R Target Sig : Type} [DecidableEq Target] (S : Signature.Scheme PK SK Target Sig) (J : M → R → Target) (A : ClawAdversary PK M R Sig) :

Structured-target one-more claw-freeness experiment, original to this library. Unlike Signature.oneMoreExperiment, targets are adversary-chosen via (m, r) ↦ J m r rather than sampled independently at random, and the oracle budget counts distinct J-targets queried (which is stronger than query-counting when signers are randomized, since repeated queries on one target cost 1, as required by clawReduction).

def Cslib.Crypto.AnonymousToken.ACTMQ.gCollisionAccept {R Tail : Type} [DecidableEq R] [DecidableEq Tail] (G : R → Tail) :
Option (R × R) → Bool

Acceptance predicate for a collision r₁ ≠ r₂ with G r₁ = G r₂ in the binding block G.

Keyless collision-resistance experiment for a fixed public binding block G : R → Tail (meaningful only when instantiated with an explicit reduction such as gCollisionReduction).

def Cslib.Crypto.AnonymousToken.ACTMQ.anyInvalidReply {PK SK R Target Sig Message : Type} (S : Signature.Scheme PK SK Target Sig) (target : Message → R → Target) (run : Execution PK Message R Sig) :

Whether any oracle reply in an ExtractedForger execution fails S.verify.

def Cslib.Crypto.AnonymousToken.ACTMQ.invalidReplyExperiment {PK SK R Target Sig Message : Type} (S : Signature.Scheme PK SK Target Sig) (target : Message → R → Target) (B : ExtractedForger PK Message R Sig) :

Explicit experiment measuring whether any issuer oracle reply during runExtracted S target B fails verification. Equals PMF.pure false when S.Correct holds.

Explicit reductions from ExtractedForger to clawExperiment and gCollisionExperiment #

def Cslib.Crypto.AnonymousToken.ACTMQ.clawReduction {PK SK M R Target Sig Message : Type} [DecidableEq Target] (S : Signature.Scheme PK SK Target Sig) (J : M → R → Target) (embed : Message → M) (B : ExtractedForger PK Message R Sig) :
ClawAdversary PK M R Sig

Explicit reduction from AnonymousToken.ExtractedForger to ClawAdversary: runs B while forwarding each query (m, r) to (embed m, r) and collecting one verified claw per distinct queried J-target. When B's output token verifies on a J-target absent from all logged claims, prepends it to output one more verified distinct-target claw; otherwise returns [].

def Cslib.Crypto.AnonymousToken.ACTMQ.gCollisionReduction {PK SK R Target Sig Message : Type} [DecidableEq Target] (S : Signature.Scheme PK SK Target Sig) (target : Message → R → Target) (B : ExtractedForger PK Message R Sig) :

Explicit reduction from ExtractedForger target collisions to G-collisions in R.

VOLE-ACT-MQ commitment and tag encoders #

def Cslib.Crypto.AnonymousToken.ACTMQ.actCom {Message Tail Nullifier Context Opening : Type} [Add Message] (F : Opening → Message) (G : Opening → Tail) (encodeState : Nullifier → Context → ℕ → Message) (nf : Nullifier) (ctx : Context) (t : ℕ) (r : Opening) :
Message × Tail

VOLE-ACT-MQ commitment Com(nf, ctx, t, r) = (F r + encodeState nf ctx t, G r) ([ZPS26], #mq-com), with encodeState nf ctx t encoding (nf, ctx, t, 0) into the message block Message.

def Cslib.Crypto.AnonymousToken.ACTMQ.actTag {Message Tail : Type} [Add Message] (refundEmbed : ℕ → Message) (c : Message × Tail) (x : ℕ) :
Message × Tail

VOLE-ACT-MQ additive tag Tag(c, x) = (c.1 + refundEmbed x, c.2) ([ZPS26], #mq-tag), shifting only the first block without altering G(r).

def Cslib.Crypto.AnonymousToken.ACTMQ.actEmbed {Message Nullifier Context : Type} [Add Message] (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (note : Credit.Note Nullifier Context) :
Message

Combined semantic-state and refund embedding μ = encodeState nf ctx t + refundEmbed x into Message ([ZPS26], #mq-com and #mq-tag).

def Cslib.Crypto.AnonymousToken.ACTMQ.NoteInRange {Nullifier Context : Type} (bound : ℕ) (note : Credit.Note Nullifier Context) :

(V4) credit and refund range predicate for semantic notes: credit < bound and refund < bound (in [VOLEACT2026], #spending, bound = 2^(8*L)).

def Cslib.Crypto.AnonymousToken.ACTMQ.requestInRange {Sig Nullifier Context Opening Commitment : Type} (bound : ℕ) :
Conservation.Request Nullifier Context Opening Commitment Sig → Bool

(V4) range predicate enforced on extracted VOLE-ACT requests before oracle signing: issuance checks amount < bound ∧ 0 < bound; spend checks oldCredit < bound, oldRefund < bound, newCredit < bound, refund < bound, and debit < bound.

def Cslib.Crypto.AnonymousToken.ACTMQ.rangeBoundedAdversary {PK Sig Nullifier Context Opening Commitment : Type} (bound : ℕ) (A : Conservation.ExtractedAdversary Nullifier Context Opening Commitment PK Sig) :
Conservation.ExtractedAdversary Nullifier Context Opening Commitment PK Sig

Adversary wrapper modeling an extracted VOLE-ACT issuer that enforces requestInRange bound: out-of-range requests return none immediately without calling or logging at the underlying issuer oracle.

def Cslib.Crypto.AnonymousToken.ACTMQ.actMQConservationExperiment {PK SK Target Sig Nullifier Context Opening Commitment : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Commitment] (bound : ℕ) (com : Nullifier → Context → ℕ → Opening → Commitment) (tag : Commitment → ℕ → Target) (S : Signature.Scheme PK SK Target Sig) (A : Conservation.ExtractedAdversary Nullifier Context Opening Commitment PK Sig) :

(V4) range-bounded extracted VOLE-ACT credit-conservation experiment: executes Conservation.extractedConservationExperiment with requestInRange bound enforced on every issuer query via rangeBoundedAdversary bound A.

Helper lemmas and query bounds #

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawAccept_imp_budget_lt {PK SK M R Target Sig : Type} [DecidableEq Target] {S : Signature.Scheme PK SK Target Sig} {J : M → R → Target} {run : ClawExecution PK M R Sig} (h : clawAccept S J run = true) :
(List.map (fun (x : (M × R) × Sig) => match x with | (q, snd) => J q.1 q.2) run.log).dedup.length < run.claims.length

Any accepted ClawExecution contains at least one claim, and strictly more claims than distinct J-targets queried in the log.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment_eq_false_of_claims_nil {PK SK M R Target Sig : Type} [DecidableEq Target] (S : Signature.Scheme PK SK Target Sig) (J : M → R → Target) (A : ClawAdversary PK M R Sig) (hnil : ∀ run ∈ (runClaw S J A).eval.support, run.claims = []) :

An execution of clawExperiment whose claims are always empty fails unconditionally.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.invalidReplyExperiment_eq_zero_of_correct {PK SK R Target Sig Message : Type} {S : Signature.Scheme PK SK Target Sig} (hS : S.Correct) (target : Message → R → Target) (B : ExtractedForger PK Message R Sig) :

When S.Correct holds, invalidReplyExperiment has success probability zero.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.rangeBoundedAdversary_queryBound {PK Sig Nullifier Context Opening Commitment : Type} (bound : ℕ) (A : Conservation.ExtractedAdversary Nullifier Context Opening Commitment PK Sig) (pk : PK) {q : ℕ} (hA : (A pk).IsQueryBounded q) :

rangeBoundedAdversary preserves any q-query bound from the underlying adversary A.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawReduction_queryBound {PK SK M R Target Sig Message : Type} [DecidableEq Target] (S : Signature.Scheme PK SK Target Sig) (J : M → R → Target) (embed : Message → M) (B : ExtractedForger PK Message R Sig) (pk : PK) {q : ℕ} (hB : (B pk).IsQueryBounded q) :
(clawReduction S J embed B pk).IsQueryBounded q

clawReduction makes at most q signing queries whenever the input ExtractedForger makes at most q queries. No runtime bound follows from this query bound alone (for the word-level runtime certificate, see ACTMQPolyTime).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.credit_target_actCom_actTag {Message Tail Nullifier Context Opening : Type} [AddCommGroup Message] (F : Opening → Message) (G : Opening → Tail) (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (note : Credit.Note Nullifier Context) (r : Opening) :
Credit.target (actCom F G encodeState) (actTag refundEmbed) note r = UOV.structuredTarget F G (actEmbed encodeState refundEmbed note) r

Credit.target instantiated with actCom and actTag equals UOV.structuredTarget at actEmbed.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.actEmbed_injOn_of_disjoint {Nullifier Context I F : Type} [AddCommGroup F] (bound : ℕ) (isRefund : I → Bool) (encodeState : Nullifier → Context → ℕ → I → F) (refundEmbed : ℕ → I → F) (hstate_slot : ∀ (nf : Nullifier) (ctx : Context) (t : ℕ) (i : I), isRefund i = true → encodeState nf ctx t i = 0) (hrefund_slot : ∀ (x : ℕ) (i : I), isRefund i = false → refundEmbed x i = 0) (hstate_inj : ∀ {nf₁ nf₂ : Nullifier} {ctx₁ ctx₂ : Context} {t₁ t₂ : ℕ}, t₁ < bound → t₂ < bound → encodeState nf₁ ctx₁ t₁ = encodeState nf₂ ctx₂ t₂ → nf₁ = nf₂ ∧ ctx₁ = ctx₂ ∧ t₁ = t₂) (hrefund_inj : Set.InjOn refundEmbed {x : ℕ | x < bound}) :
Set.InjOn (actEmbed encodeState refundEmbed) {note : Credit.Note Nullifier Context | NoteInRange bound note}

Disjoint-slot Set.InjOn injectivity for actEmbed on range-bounded notes NoteInRange bound: works over any finite field/ring whose prime/cardinality is at least bound (such as 𝔽_q with bound = 2^(8*L)).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.actEmbed_injective_of_disjoint {Nullifier Context I F : Type} [AddCommGroup F] (isRefund : I → Bool) (encodeState : Nullifier → Context → ℕ → I → F) (refundEmbed : ℕ → I → F) (hstate_slot : ∀ (nf : Nullifier) (ctx : Context) (t : ℕ) (i : I), isRefund i = true → encodeState nf ctx t i = 0) (hrefund_slot : ∀ (x : ℕ) (i : I), isRefund i = false → refundEmbed x i = 0) (hstate_inj : ∀ {nf₁ nf₂ : Nullifier} {ctx₁ ctx₂ : Context} {t₁ t₂ : ℕ}, encodeState nf₁ ctx₁ t₁ = encodeState nf₂ ctx₂ t₂ → nf₁ = nf₂ ∧ ctx₁ = ctx₂ ∧ t₁ = t₂) (hrefund_inj : Function.Injective refundEmbed) :
Function.Injective (actEmbed encodeState refundEmbed)

Disjoint-slot global injectivity for actEmbed on unbounded Credit.Note Nullifier Context (forces I → F to be infinite because credit, refund : ℕ).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.structuredTarget_collision_on {R Message Tail Message' : Type} [AddCommGroup Message] (F : R → Message) (G : R → Tail) (embed : Message' → Message) {Sset : Set Message'} (hembed : Set.InjOn embed Sset) {m₁ m₂ : Message'} (hm₁ : m₁ ∈ Sset) (hm₂ : m₂ ∈ Sset) {r₁ r₂ : R} (hm : m₁ ≠ m₂) (htarg : UOV.structuredTarget F G (embed m₁) r₁ = UOV.structuredTarget F G (embed m₂) r₂) :
r₁ ≠ r₂ ∧ G r₁ = G r₂

Under semantic-message injectivity of embed on Sset, any collision of UOV.structuredTarget F G (embed ·) · between distinct m₁, m₂ ∈ Sset forces r₁ ≠ r₂ and G r₁ = G r₂.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.structuredTarget_collision {R Message Tail Message' : Type} [AddCommGroup Message] (F : R → Message) (G : R → Tail) (embed : Message' → Message) (hembed : Function.Injective embed) {m₁ m₂ : Message'} {r₁ r₂ : R} (hm : m₁ ≠ m₂) (htarg : UOV.structuredTarget F G (embed m₁) r₁ = UOV.structuredTarget F G (embed m₂) r₂) :
r₁ ≠ r₂ ∧ G r₁ = G r₂

Global-injectivity specialization of structuredTarget_collision_on.

Reduction proofs and extracted VOLE-ACT-MQ credit conservation #

theorem Cslib.Crypto.AnonymousToken.ACTMQ.extractedExperiment_succProbability_le_claw_add_binding_add_invalid {PK SK M R Target Sig Message : Type} [DecidableEq Message] [DecidableEq Target] (S : Signature.Scheme PK SK Target Sig) (J : M → R → Target) (embed : Message → M) (target : Message → R → Target) (htarget : ∀ (m : Message) (r : R), target m r = J (embed m) r) (B : ExtractedForger PK Message R Sig) :

Concrete bound decomposing AnonymousToken.extractedExperiment into structured-target one-more claw-freeness (clawExperiment), target binding collisions (bindingExperiment), and invalid oracle replies (invalidReplyExperiment).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.bindingExperiment_structuredTarget_le_gCollision_on {PK SK R Sig Message Tail Message' : Type} [DecidableEq Message'] [DecidableEq Message] [DecidableEq R] [DecidableEq Tail] [AddCommGroup Message] (F : R → Message) (G : R → Tail) (embed : Message' → Message) (P : Message' → Prop) (hembed : Set.InjOn embed {m : Message' | P m}) (target : Message' → R → Message × Tail) (htarget : ∀ (m : Message') (r : R), target m r = UOV.structuredTarget F G (embed m) r) (S : Signature.Scheme PK SK (Message × Tail) Sig) (B : ExtractedForger PK Message' R Sig) (hB : ∀ run ∈ (runExtracted S target B).eval.support, P run.output.payload.message ∧ ∀ entry ∈ run.log, P entry.1.message) :

When every supported execution of B keeps its output message and all logged messages in {m | P m}, and embed is Set.InjOn on {m | P m}, target binding collisions against UOV.structuredTarget F G (embed ·) · reduce to G-collisions in R.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.bindingExperiment_structuredTarget_le_gCollision {PK SK R Sig Message Tail Message' : Type} [DecidableEq Message'] [DecidableEq Message] [DecidableEq R] [DecidableEq Tail] [AddCommGroup Message] (F : R → Message) (G : R → Tail) (embed : Message' → Message) (hembed : Function.Injective embed) (target : Message' → R → Message × Tail) (htarget : ∀ (m : Message') (r : R), target m r = UOV.structuredTarget F G (embed m) r) (S : Signature.Scheme PK SK (Message × Tail) Sig) (B : ExtractedForger PK Message' R Sig) :

Global-injectivity specialization of bindingExperiment_structuredTarget_le_gCollision_on.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.extractedExperiment_succProbability_le_structuredClaw_on {PK SK R Sig Message Tail Message' : Type} [DecidableEq Message'] [DecidableEq Message] [DecidableEq R] [DecidableEq Tail] [AddCommGroup Message] (F : R → Message) (G : R → Tail) (embed : Message' → Message) (P : Message' → Prop) (hembed : Set.InjOn embed {m : Message' | P m}) (target : Message' → R → Message × Tail) (htarget : ∀ (m : Message') (r : R), target m r = UOV.structuredTarget F G (embed m) r) (S : Signature.Scheme PK SK (Message × Tail) Sig) (B : ExtractedForger PK Message' R Sig) (hB : ∀ run ∈ (runExtracted S target B).eval.support, P run.output.payload.message ∧ ∀ entry ∈ run.log, P entry.1.message) :

Restricted-domain version of extractedExperiment_succProbability_le_structuredClaw under Set.InjOn embed {m | P m} and the support invariant hB.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.extractedExperiment_succProbability_le_structuredClaw {PK SK R Sig Message Tail Message' : Type} [DecidableEq Message'] [DecidableEq Message] [DecidableEq R] [DecidableEq Tail] [AddCommGroup Message] (F : R → Message) (G : R → Tail) (embed : Message' → Message) (hembed : Function.Injective embed) (target : Message' → R → Message × Tail) (htarget : ∀ (m : Message') (r : R), target m r = UOV.structuredTarget F G (embed m) r) (S : Signature.Scheme PK SK (Message × Tail) Sig) (B : ExtractedForger PK Message' R Sig) :

Global-injectivity specialization of extractedExperiment_succProbability_le_structuredClaw_on.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.actMQConservation_succProbability_le {PK SK R Sig Message Tail Nullifier Context : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Message] [DecidableEq Tail] [DecidableEq R] [AddCommGroup Message] [Inhabited Nullifier] [Inhabited Context] [Inhabited R] [Inhabited Sig] (bound : ℕ) (F : R → Message) (G : R → Tail) (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (hembed : Set.InjOn (actEmbed encodeState refundEmbed) {note : Credit.Note Nullifier Context | NoteInRange bound note}) (S : Signature.Scheme PK SK (Message × Tail) Sig) (A : Conservation.ExtractedAdversary Nullifier Context R (Message × Tail) PK Sig) :
(actMQConservationExperiment bound (actCom F G encodeState) (actTag refundEmbed) S A).succProbability ≤ (clawExperiment S (UOV.structuredTarget F G) (clawReduction S (UOV.structuredTarget F G) (actEmbed encodeState refundEmbed) (Conservation.noteForger (actCom F G encodeState) (actTag refundEmbed) S (rangeBoundedAdversary bound A)))).succProbability + (gCollisionExperiment G (gCollisionReduction S (Credit.target (actCom F G encodeState) (actTag refundEmbed)) (Conservation.noteForger (actCom F G encodeState) (actTag refundEmbed) S (rangeBoundedAdversary bound A)))).succProbability + (invalidReplyExperiment S (Credit.target (actCom F G encodeState) (actTag refundEmbed)) (Conservation.noteForger (actCom F G encodeState) (actTag refundEmbed) S (rangeBoundedAdversary bound A))).succProbability

Range-bounded extracted VOLE-ACT-MQ credit conservation. Under Set.InjOn of actEmbed encodeState refundEmbed on notes satisfying NoteInRange bound (which holds over finite fields 𝔽_q when bound ≤ q, unlike unbounded Function.Injective), any adversary winning actMQConservationExperiment bound yields a win in clawExperiment, a G-collision via gCollisionReduction, or an invalid issuer reply (zero when S.Correct).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.actMQConservation_unbounded_succProbability_le {PK SK R Sig Message Tail Nullifier Context : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Message] [DecidableEq Tail] [DecidableEq R] [AddCommGroup Message] [Inhabited Nullifier] [Inhabited Context] [Inhabited R] [Inhabited Sig] (F : R → Message) (G : R → Tail) (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (hembed : Function.Injective (actEmbed encodeState refundEmbed)) (S : Signature.Scheme PK SK (Message × Tail) Sig) (A : Conservation.ExtractedAdversary Nullifier Context R (Message × Tail) PK Sig) :
(Conservation.extractedConservationExperiment (actCom F G encodeState) (actTag refundEmbed) S A).succProbability ≤ (clawExperiment S (UOV.structuredTarget F G) (clawReduction S (UOV.structuredTarget F G) (actEmbed encodeState refundEmbed) (Conservation.noteForger (actCom F G encodeState) (actTag refundEmbed) S A))).succProbability + (gCollisionExperiment G (gCollisionReduction S (Credit.target (actCom F G encodeState) (actTag refundEmbed)) (Conservation.noteForger (actCom F G encodeState) (actTag refundEmbed) S A))).succProbability + (invalidReplyExperiment S (Credit.target (actCom F G encodeState) (actTag refundEmbed)) (Conservation.noteForger (actCom F G encodeState) (actTag refundEmbed) S A)).succProbability

Unbounded-note corollary of extractedExperiment_succProbability_le_structuredClaw: assumes global Function.Injective (actEmbed encodeState refundEmbed), which forces Message to be infinite (since Credit.Note.credit, refund : ℕ).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.actMQClawReduction_queryBound {PK SK R Sig Message Tail Nullifier Context : Type} [DecidableEq Nullifier] [DecidableEq Context] [DecidableEq Message] [DecidableEq Tail] [AddCommGroup Message] [Inhabited Nullifier] [Inhabited Context] [Inhabited R] [Inhabited Sig] (bound : ℕ) (F : R → Message) (G : R → Tail) (encodeState : Nullifier → Context → ℕ → Message) (refundEmbed : ℕ → Message) (S : Signature.Scheme PK SK (Message × Tail) Sig) (A : Conservation.ExtractedAdversary Nullifier Context R (Message × Tail) PK Sig) (pk : PK) {q : ℕ} (hA : (A pk).IsQueryBounded q) :
(clawReduction S (UOV.structuredTarget F G) (actEmbed encodeState refundEmbed) (Conservation.noteForger (actCom F G encodeState) (actTag refundEmbed) S (rangeBoundedAdversary bound A)) pk).IsQueryBounded q

The composed ACT-MQ claw reduction preserves a q-query bound from the extracted credit-conservation adversary A.

Structural adversaries and separations #

def Cslib.Crypto.AnonymousToken.ACTMQ.gCollisionForger {PK R Sig Message : Type} [AddCommGroup Message] (F : R → Message) (r₁ r₂ : R) (μ : Message) :
ExtractedForger PK Message R Sig

One-query forgery exploiting a G-collision (r₁ ≠ r₂, G r₁ = G r₂): queries (μ, r₁) once and outputs a fresh semantic message μ + F r₁ - F r₂ under opening r₂ with the same signature. Since both payloads map to the same UOV.structuredTarget, it wins Basic.extractedExperiment whenever F r₁ ≠ F r₂ and the single reply verifies, while producing no extra distinct-target claw in clawExperiment.

def Cslib.Crypto.AnonymousToken.ACTMQ.zeroOpeningClawAttack {PK R Sig Message K : Type} [Mul K] [SMul K Message] [Zero R] (scaleSig : K → Sig → Sig) (scalars : List K) (μ : Message) :
ClawAdversary PK Message R Sig

One-query zero-opening scaling adversary against clawExperiment ([ZPS26], #mq-zero-opening-forgery): queries (μ, 0) once and emits one candidate claw ⟨(a * a) • μ, 0, scaleSig a σ⟩ for each scalar a ∈ scalars. scaleSig handles both raw preimages (fun a s => a • s) and optional preimages (fun a => Option.map (a • ·)).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.gCollisionForger_queryBound {PK R Sig Message : Type} [AddCommGroup Message] (F : R → Message) (r₁ r₂ : R) (μ : Message) (pk : PK) :
(gCollisionForger F r₁ r₂ μ pk).IsQueryBounded 1

gCollisionForger makes exactly one oracle call.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.gCollisionForger_extractedExperiment_eq {PK SK R Sig Message Tail : Type} [DecidableEq Message] [AddCommGroup Message] (S : Signature.Scheme PK SK (Message × Tail) Sig) (F : R → Message) (G : R → Tail) {r₁ r₂ : R} (μ : Message) (hG : G r₁ = G r₂) (hF : F r₁ ≠ F r₂) :

Given a G-collision G r₁ = G r₂ with F r₁ ≠ F r₂, gCollisionForger's success in Basic.extractedExperiment equals the signer's reply-validity rate at UOV.structuredTarget F G μ r₁ (probability 1 when S.Correct holds).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.gCollisionForger_extractedExperiment_eq_pure_true {PK SK R Sig Message Tail : Type} [DecidableEq Message] [AddCommGroup Message] {S : Signature.Scheme PK SK (Message × Tail) Sig} (hS : S.Correct) (F : R → Message) (G : R → Tail) {r₁ r₂ : R} (μ : Message) (hG : G r₁ = G r₂) (hF : F r₁ ≠ F r₂) :

Corollary: when S.Correct holds, a G-collision with F r₁ ≠ F r₂ breaks Basic.extractedExperiment with probability 1.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment_clawReduction_gCollisionForger_eq_pure_false {PK SK R Sig Message Tail : Type} [DecidableEq Message] [DecidableEq Tail] [AddCommGroup Message] (S : Signature.Scheme PK SK (Message × Tail) Sig) (F : R → Message) (G : R → Tail) {r₁ r₂ : R} (μ : Message) (hG : G r₁ = G r₂) :

Separation witness for the gCollisionExperiment term: for any G-collision G r₁ = G r₂, forwarding gCollisionForger through clawReduction returns [] on every execution and wins clawExperiment with probability 0. Thus gCollisionExperiment cannot be dropped for clawReduction from extractedExperiment_succProbability_le_structuredClaw or actMQConservation_succProbability_le.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.zeroOpeningClawAttack_queryBound {PK R Sig Message K : Type} [Mul K] [SMul K Message] [Zero R] (scaleSig : K → Sig → Sig) (scalars : List K) (μ : Message) (pk : PK) :
(zeroOpeningClawAttack scaleSig scalars μ pk).IsQueryBounded 1

zeroOpeningClawAttack makes at most one oracle call on every execution path.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment_zeroOpeningClawAttack_eq_pure_true {PK SK R Sig Message Tail K : Type} [Field K] [AddCommGroup Message] [Module K Message] [DecidableEq Message] [DecidableEq Tail] [Zero R] (S : Signature.Scheme PK SK (Message × Tail) Sig) (F : R → Message) (G : R → Tail) (hF : F 0 = 0) (scaleSig : K → Sig → Sig) (scalars : List K) (hlen : 2 ≤ scalars.length) (hnodup : (List.map (fun (a : K) => a * a) scalars).Nodup) (μ : Message) (hμ : μ ≠ 0) (hverify : ∀ keys ∈ S.keyGen.eval.support, ∀ σ ∈ (S.sign keys.2 (UOV.structuredTarget F G μ 0)).eval.support, ∀ a ∈ scalars, S.verify keys.1 (UOV.structuredTarget F G ((a * a) • μ) 0) (scaleSig a σ) = true) :

When F 0 = 0, μ ≠ 0, and scalars contains at least two elements with pairwise distinct squares whose scaled oracle replies verify (as furnished by UOV.verify_scale_of_quadratic / UOV.verify_scale_option_of_quadratic whenever F 0 = 0 and G 0 = 0), zeroOpeningClawAttack wins clawExperiment with probability 1 using a single query ([ZPS26], #mq-zero-opening-forgery).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment_zeroOpeningClawAttack_succProbability_eq_one {PK SK R Sig Message Tail K : Type} [Field K] [AddCommGroup Message] [Module K Message] [DecidableEq Message] [DecidableEq Tail] [Zero R] (S : Signature.Scheme PK SK (Message × Tail) Sig) (F : R → Message) (G : R → Tail) (hF : F 0 = 0) (scaleSig : K → Sig → Sig) (scalars : List K) (hlen : 2 ≤ scalars.length) (hnodup : (List.map (fun (a : K) => a * a) scalars).Nodup) (μ : Message) (hμ : μ ≠ 0) (hverify : ∀ keys ∈ S.keyGen.eval.support, ∀ σ ∈ (S.sign keys.2 (UOV.structuredTarget F G μ 0)).eval.support, ∀ a ∈ scalars, S.verify keys.1 (UOV.structuredTarget F G ((a * a) • μ) 0) (scaleSig a σ) = true) :

Corollary: zeroOpeningClawAttack achieves Experiment.succProbability = 1 under the same hypotheses.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment_zeroOpeningClawAttack_eq_pure_true_of_quadratic {PK SK R Message Tail K X : Type} [Field K] [AddCommGroup X] [Module K X] [AddCommGroup Message] [Module K Message] [AddCommGroup Tail] [Module K Tail] [Zero R] [DecidableEq Message] [DecidableEq Tail] (pubMap : PK → QuadraticMap K X (Message × Tail)) (S : Signature.Scheme PK SK (Message × Tail) X) (hS : S.Correct) (hver : ∀ (pk : PK) (target : Message × Tail) (s : X), S.verify pk target s = decide ((pubMap pk) s = target)) (F : R → Message) (G : R → Tail) (hF : F 0 = 0) (hG : G 0 = 0) (scalars : List K) (hlen : 2 ≤ scalars.length) (hnodup : (List.map (fun (a : K) => a * a) scalars).Nodup) (μ : Message) (hμ : μ ≠ 0) :
ProbComp.eval (clawExperiment S (UOV.structuredTarget F G) (zeroOpeningClawAttack (fun (a : K) (s : X) => a • s) scalars μ)) = PMF.pure true

Composed zero-opening scaling attack (Sig = X): when S is a correct homogeneous quadratic scheme and both F 0 = 0 and G 0 = 0, zeroOpeningClawAttack breaks clawExperiment with probability 1 ([ZPS26], #mq-zero-opening-forgery).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment_zeroOpeningClawAttack_option_eq_pure_true_of_quadratic {PK SK R Message Tail K X : Type} [Field K] [AddCommGroup X] [Module K X] [AddCommGroup Message] [Module K Message] [AddCommGroup Tail] [Module K Tail] [Zero R] [DecidableEq Message] [DecidableEq Tail] (pubMap : PK → QuadraticMap K X (Message × Tail)) (S : Signature.Scheme PK SK (Message × Tail) (Option X)) (hS : S.Correct) (hver : ∀ (pk : PK) (target : Message × Tail) (opt : Option X), S.verify pk target opt = match opt with | none => false | some s => decide ((pubMap pk) s = target)) (F : R → Message) (G : R → Tail) (hF : F 0 = 0) (hG : G 0 = 0) (scalars : List K) (hlen : 2 ≤ scalars.length) (hnodup : (List.map (fun (a : K) => a * a) scalars).Nodup) (μ : Message) (hμ : μ ≠ 0) :
ProbComp.eval (clawExperiment S (UOV.structuredTarget F G) (zeroOpeningClawAttack (fun (a : K) => Option.map fun (x : X) => a • x) scalars μ)) = PMF.pure true

Optional-preimage (Sig = Option X, matching the verifier shape of UOV.idealRawScheme) counterpart of clawExperiment_zeroOpeningClawAttack_eq_pure_true_of_quadratic.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment_zeroOpeningClawAttack_option_eq_false_of_tail_ne_zero {PK SK R Message Tail K X : Type} [Field K] [AddCommGroup X] [Module K X] [AddCommGroup Message] [Module K Message] [AddCommGroup Tail] [Module K Tail] [Zero R] [DecidableEq Message] [DecidableEq Tail] (pubMap : PK → QuadraticMap K X (Message × Tail)) (S : Signature.Scheme PK SK (Message × Tail) (Option X)) (hver : ∀ (pk : PK) (target : Message × Tail) (opt : Option X), S.verify pk target opt = match opt with | none => false | some s => decide ((pubMap pk) s = target)) (F : R → Message) (G : R → Tail) (htail : G 0 ≠ 0) (scalars : List K) (hlen : 2 ≤ scalars.length) (hnodup : (List.map (fun (a : K) => a * a) scalars).Nodup) (μ : Message) (hsign : ∀ keys ∈ S.keyGen.eval.support, ∀ opt ∈ (S.sign keys.2 (UOV.structuredTarget F G μ 0)).eval.support, ∀ (s : X), opt = some s → (pubMap keys.1) s = UOV.structuredTarget F G μ 0) :
ProbComp.eval (clawExperiment S (UOV.structuredTarget F G) (zeroOpeningClawAttack (fun (a : K) => Option.map fun (x : X) => a • x) scalars μ)) = PMF.pure false

A nonzero constant tail G 0 ≠ 0 defeats zeroOpeningClawAttack for every scalar list of length at least two with distinct squares, over optional-preimage (Option X) homogeneous quadratic verifiers: any answer returned by the signer either is none (failing verification) or verifies at J μ 0 and triggers UOV.rescale_ne_zeroOpening_of_tail_ne_zero on some a with a * a ≠ 1.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.clawExperiment_zeroOpeningClawAttack_eq_false_of_tail_ne_zero {PK SK R Message Tail K X : Type} [Field K] [AddCommGroup X] [Module K X] [AddCommGroup Message] [Module K Message] [AddCommGroup Tail] [Module K Tail] [Zero R] [DecidableEq Message] [DecidableEq Tail] (pubMap : PK → QuadraticMap K X (Message × Tail)) (S : Signature.Scheme PK SK (Message × Tail) X) (hver : ∀ (pk : PK) (target : Message × Tail) (s : X), S.verify pk target s = decide ((pubMap pk) s = target)) (F : R → Message) (G : R → Tail) (htail : G 0 ≠ 0) (scalars : List K) (hlen : 2 ≤ scalars.length) (hnodup : (List.map (fun (a : K) => a * a) scalars).Nodup) (μ : Message) (hsign : ∀ keys ∈ S.keyGen.eval.support, ∀ s ∈ (S.sign keys.2 (UOV.structuredTarget F G μ 0)).eval.support, (pubMap keys.1) s = UOV.structuredTarget F G μ 0) :
ProbComp.eval (clawExperiment S (UOV.structuredTarget F G) (zeroOpeningClawAttack (fun (a : K) (s : X) => a • s) scalars μ)) = PMF.pure false

Raw-preimage (Sig = X) counterpart of clawExperiment_zeroOpeningClawAttack_option_eq_false_of_tail_ne_zero.