Documentation

CslibFrontier.Crypto.Protocols.AnonymousToken.ACTMQPolyTime

Polynomial-time reduction witnesses for VOLE-ACT-MQ credit conservation #

This module certifies the reduction components of Cslib.Crypto.AnonymousToken.ACTMQ (CslibFrontier/Crypto/Protocols/AnonymousToken/ACTMQ.lean) in the uniform strict-PPT / oracle-PPT word calculus (tracked under #7068):

As in PolyTime and RandomTargetPolyTime, word-level adversaries emit arbitrary bit strings processed by total decoders (WordClawAdversary.toTyped via wordPairDecoder, wordClawClaimListDecoder, and decMsg; toActTyped via Conservation.wordRequestDecoder and Decoder.pair decMsg decTail), rather than rejecting non-codeword syntax under a PartialDecoder. Combining the novel word-level assumption WordStructuredClawUnforgeable with standard setup-parameterized CollisionResistantFor (CollisionResistant.lean, [BonehShoup2023] Section 8.1.1) via WordActMQOps.actMQConservationWordGame_succProbability_le yields asymptotic (V4) range-bounded VOLE-ACT-MQ credit conservation in negligible_actMQConservationWordGame_of_wordStructuredClawUnforgeable (built over ACTMQ.actMQConservation_succProbability_le while preserving finite-field Set.InjOn support without global Function.Injective).

Encodings, total decoders, and word claw game #

Word-level structured claw claim (message, opening, preimage).

  • message : List Bool

    Encoded semantic message bit string.

  • opening : List Bool

    Commitment opening bit string.

  • preimage : List Bool

    Candidate signature / preimage bit string.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.encWordClawClaim_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 x1 x2 : γ → List Bool} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encBits budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encBits budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn Turing.MultiTapeTM.encBits budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { message := x0 x, opening := x1 x, preimage := x2 x }) encIn encWordClawClaim budget

Encode a WordClawClaim with bit-string fields (same layout as encPair encBits (encPair encBits encBits)).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.encWordClawClaim_opening_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordClawClaim} :
theorem Cslib.Crypto.AnonymousToken.ACTMQ.encWordClawClaim_message_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordClawClaim} :
theorem Cslib.Crypto.AnonymousToken.ACTMQ.encWordClawClaim_preimage_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → WordClawClaim} :
theorem Cslib.Crypto.AnonymousToken.ACTMQ.encWordClawClaim_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List Bool} {T0 S0 : γ → ℕ} {x1 : γ → List Bool} {T1 S1 : γ → ℕ} {x2 : γ → List Bool} {T2 S2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encBits T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encBits T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encBits T2 S2) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { message := x0 x, opening := x1 x, preimage := x2 x }) encIn encWordClawClaim (fun (x : γ) => T0 x + (T1 x + T2 x)) fun (x : γ) => S0 x + (S1 x + S2 x)
@[reducible, inline]

Encode a list of word-level claw claims.

@[reducible, inline]

Encoding of a triple of bit strings (w₀, w₁, w₂).

Lift a WordSignatureScheme at parameter n along encT : Target → List Bool to a typed Signature.Scheme signing encoded targets.

@[simp]
theorem Cslib.Crypto.AnonymousToken.ACTMQ.targetScheme_keyGen (S : WordSignatureScheme) {Target : Type} (encT : Target → List Bool) (n : ℕ) :
(targetScheme S encT n).keyGen = S.keyGen n
@[simp]
theorem Cslib.Crypto.AnonymousToken.ACTMQ.targetScheme_sign (S : WordSignatureScheme) {Target : Type} (encT : Target → List Bool) (n : ℕ) :
(targetScheme S encT n).sign = fun (sk : List Bool) (tgt : Target) => S.sign sk (encT tgt)
@[simp]
theorem Cslib.Crypto.AnonymousToken.ACTMQ.targetScheme_verify (S : WordSignatureScheme) {Target : Type} (encT : Target → List Bool) (n : ℕ) :
(targetScheme S encT n).verify = fun (pk : List Bool) (tgt : Target) (sig : List Bool) => S.verify pk (encT tgt) sig

Any targetScheme lifted from a WordSignatureScheme satisfies Signature.Scheme.Correct.

@[reducible, inline]

A word-level adversary in the structured-target one-more claw game: given encWordPair (spk, paramWord), queries encWordPair (mWord, opening) and returns an encoded encWordClawClaimList.

Interpret a word-level claw adversary as a typed ACTMQ.ClawAdversary at (n, paramWord) by processing every query through wordPairDecoder and decM and every output through wordClawClaimListDecoder and decM (total decoding rather than rejecting non-codewords under a PartialDecoder).

noncomputable def Cslib.Crypto.AnonymousToken.ACTMQ.clawWordGame {Param : Type} (encParam : Param ↪ List Bool) (setup : ℕ → PMF Param) (S : WordSignatureScheme) (Message Tail : Param → Type) [(d : Param) → DecidableEq (Message d)] [(d : Param) → DecidableEq (Tail d)] (encMsg : (d : Param) → Message d ↪ List Bool) (decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)) (encTail : (d : Param) → Tail d ↪ List Bool) (J : (d : Param) → Message d → List Bool → Message d × Tail d) (C : WordClawAdversary) (n : ℕ) :

Word-level structured-target one-more claw game under parameter setup setup, target encoding encPair (encMsg d) (encTail d), and total decoders decMsg d and wordClawClaimListDecoder.

def Cslib.Crypto.AnonymousToken.ACTMQ.WordStructuredClawUnforgeable {Param : Type} (encParam : Param ↪ List Bool) (setup : ℕ → PMF Param) (S : WordSignatureScheme) (Message Tail : Param → Type) [(d : Param) → DecidableEq (Message d)] [(d : Param) → DecidableEq (Tail d)] (encMsg : (d : Param) → Message d ↪ List Bool) (decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)) (encTail : (d : Param) → Tail d ↪ List Bool) (J : (d : Param) → Message d → List Bool → Message d × Tail d) :

Word-level structured-target one-more claw-freeness (novel to this library; closest sources [BFM+25], Appendix A, Definition 12, p. 38, and [ZPS26], #proof-status and #mq-zero-opening-forgery). Differs from Definition 12 in six respects:

  1. the oracle answers only structured (m, r) queries on J d m r rather than arbitrary targets (a weaker adversary);
  2. the budget counts distinct J-targets queried (queriedTargets.dedup.length < claims.length), stronger under randomized signers and required by clawReduction;
  3. output distinctness requires pairwise distinct J-targets (claimTargets.Nodup);
  4. adversaries run in the uniform strict oracle-PPT class IsOraclePPT encBits over public inputs encWordPair (spk, encParam d) rather than non-uniform PPT;
  5. queries and claim lists are processed by the total decoders wordPairDecoder, wordClawClaimListDecoder, and decMsg d rather than rejecting non-codewords under a PartialDecoder; and
  6. setup : ℕ → PMF Param is an arbitrary PMF Param family rather than an efficiently samplable parameter generator.

Plausibility: in any accepting ACTMQ.clawAccept run, claimTargets are pairwise distinct and satisfy queriedTargets.dedup.length < claims.length = claimTargets.length, so at least one verified claim target was never queried to the signing oracle (an ordinary EUF-CMA forgery). Hence WordStructuredClawUnforgeable follows from EUF-CMA of S on encoded targets whenever setup is efficiently samplable and J is word-computable; it is stated separately because raw MQ trapdoor signers (such as UOV without hashing/salting) are not EUF-CMA on raw targets.

No implication to or from [BFM+25] Definition 12 is established here. It is falsified on the word-level game by echo signing (AnonymousTokenACTMQPolyTime.not_wordStructuredClawUnforgeable_echoSigScheme); for the typed clawExperiment (without a running-time certificate), ACTMQ.zeroOpeningClawAttack constructs an attack whenever F 0 = 0, the verifier accepts homogeneously quadratic-rescaled signatures, and two scalars with distinct squares exist.

def Cslib.Crypto.AnonymousToken.ACTMQ.requestMapCommitment {Nullifier Context Opening C₁ C₂ Sig : Type} (f : C₁ → C₂) :
Conservation.Request Nullifier Context Opening C₁ Sig → Conservation.Request Nullifier Context Opening C₂ Sig

Map the commitment field (issue.commitment / spend.changeCommitment) of a conservation request.

@[simp]
theorem Cslib.Crypto.AnonymousToken.ACTMQ.requestMapCommitment_requestInRange {Nullifier Context Opening C₁ C₂ Sig : Type} (f : C₁ → C₂) (bound : ℕ) (req : Conservation.Request Nullifier Context Opening C₁ Sig) :

Interpret a Conservation.WordExtractedAdversary with typed (Message × Tail) commitments at (n, paramWord) by processing requests through Conservation.wordRequestDecoder and Decoder.pair decM decT (total decoding rather than rejecting non-codewords under a PartialDecoder).

Reduction 1: rangeBoundedAdversaryWord #

Uniform word-level realization of ACTMQ.rangeBoundedAdversary: decodes each Request word via Conservation.wordRequestDecoder, checks requestInRange (bound n) against binary bound n, returns encOption encBits none immediately when out of range, and otherwise forwards the query with reply truncation replyBound n (keys.length + req.2.length) + 1.

Reduction 2: clawReductionWord #

def Cslib.Crypto.AnonymousToken.ACTMQ.clawReductionWord {M' : Type} {encM' : M' ↪ List Bool} (D : Turing.MultiTapeTM.Decoder encM') (S : WordSignatureScheme) (sigBound : ℕ → ℕ → ℕ) (targetWord : List Bool → List Bool → List Bool → List Bool) (embedWord : List Bool → M' → List Bool) (B : WordExtractedForgerOf M') :

Uniform word-level realization of ACTMQ.clawReduction: executes B against the claw oracle and prepends the final output token as a WordClawClaim when it verifies on an unlogged J-target, returning encWordClawClaimList [] otherwise.

clawReductionWord is uniform strict oracle PPT whenever sigBound, targetWord, embedWord, and B are efficient.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.eval_runClaw_clawReductionWord_eq {M' Message Tail : Type} {encM' : M' ↪ List Bool} {encM : Message ↪ List Bool} {encT : Tail ↪ List Bool} [DecidableEq Message] [DecidableEq Tail] (D : Turing.MultiTapeTM.Decoder encM') (decM : Turing.MultiTapeTM.Decoder encM) (S : WordSignatureScheme) (sigBound : ℕ → ℕ → ℕ) (targetWord : List Bool → List Bool → List Bool → List Bool) (embedWord : List Bool → M' → List Bool) (J : Message → List Bool → Message × Tail) (embed : M' → Message) (n : ℕ) (paramWord : List Bool) (hembedEq : ∀ (m' : M'), embedWord paramWord m' = encM (embed m')) (htargetEq : ∀ (w r : List Bool), targetWord paramWord w r = (Turing.MultiTapeTM.encPair encM encT) (J (decM.decode w) r)) (hbound : ∀ (pk sk : List Bool), (pk, sk) ∈ (S.keyGen n).eval.support → ∀ (msg sig : List Bool), sig ∈ (S.sign sk msg).eval.support → sig.length ≤ sigBound n msg.length) (B : WordExtractedForgerOf M') :
(runClaw (targetScheme S (⇑(Turing.MultiTapeTM.encPair encM encT)) n) J (WordClawAdversary.toTyped decM (clawReductionWord D S sigBound targetWord embedWord B) n paramWord)).eval = (runClaw (targetScheme S (⇑(Turing.MultiTapeTM.encPair encM encT)) n) J (clawReduction (targetScheme S (⇑(Turing.MultiTapeTM.encPair encM encT)) n) J embed (WordExtractedForgerOf.toTyped D (B.atKey paramWord) n))).eval

At every (n, paramWord), (clawReductionWord ... B).toTyped decM n paramWord has the exact PMF law of ACTMQ.clawReduction inside ACTMQ.runClaw on targetScheme S (encPair encM encT) n and WordExtractedForgerOf.toTyped D (B.atKey paramWord) n.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.eval_clawExperiment_clawReductionWord_eq {M' Message Tail : Type} {encM' : M' ↪ List Bool} {encM : Message ↪ List Bool} {encT : Tail ↪ List Bool} [DecidableEq Message] [DecidableEq Tail] (D : Turing.MultiTapeTM.Decoder encM') (decM : Turing.MultiTapeTM.Decoder encM) (S : WordSignatureScheme) (sigBound : ℕ → ℕ → ℕ) (targetWord : List Bool → List Bool → List Bool → List Bool) (embedWord : List Bool → M' → List Bool) (J : Message → List Bool → Message × Tail) (embed : M' → Message) (n : ℕ) (paramWord : List Bool) (hembedEq : ∀ (m' : M'), embedWord paramWord m' = encM (embed m')) (htargetEq : ∀ (w r : List Bool), targetWord paramWord w r = (Turing.MultiTapeTM.encPair encM encT) (J (decM.decode w) r)) (hbound : ∀ (pk sk : List Bool), (pk, sk) ∈ (S.keyGen n).eval.support → ∀ (msg sig : List Bool), sig ∈ (S.sign sk msg).eval.support → sig.length ≤ sigBound n msg.length) (B : WordExtractedForgerOf M') :
ProbComp.eval (clawExperiment (targetScheme S (⇑(Turing.MultiTapeTM.encPair encM encT)) n) J (WordClawAdversary.toTyped decM (clawReductionWord D S sigBound targetWord embedWord B) n paramWord)) = ProbComp.eval (clawExperiment (targetScheme S (⇑(Turing.MultiTapeTM.encPair encM encT)) n) J (clawReduction (targetScheme S (⇑(Turing.MultiTapeTM.encPair encM encT)) n) J embed (WordExtractedForgerOf.toTyped D (B.atKey paramWord) n)))

Exact clawExperiment PMF law equality between clawReductionWord and ACTMQ.clawReduction.

Reduction 3: gCollisionReductionWord and CollisionResistantFor bridge #

def Cslib.Crypto.AnonymousToken.ACTMQ.gCollisionReductionWord {Message : Type} {encM : Message ↪ List Bool} (S : WordSignatureScheme) (targetWord : ℕ → List Bool → Message → List Bool → List Bool) (D : Turing.MultiTapeTM.Decoder encM) (B : WordExtractedForgerOf Message) (n : ℕ) (paramWord : List Bool) :

Uniform word-level realization of ACTMQ.gCollisionReduction: runs bindingReductionWord on targetWord and extracts the opening pair (w.first.opening, w.second.opening).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.isPPTOn_gCollisionReductionWord {Message : Type} {encM : Message ↪ List Bool} (S : WordSignatureScheme) {targetWord : ℕ → List Bool → Message → List Bool → List Bool} (htarget : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : ℕ × List Bool × Message × List Bool) => targetWord p.1 p.2.1 p.2.2.1 p.2.2.2) (encTargetArgsOf encM) Turing.MultiTapeTM.encBits) (D : Turing.MultiTapeTM.Decoder encM) {B : WordExtractedForgerOf Message} (hB : Probability.IsOraclePPT (encTokenOf encM) B) :

gCollisionReductionWord is uniform strict PPT in (n, paramWord) whenever targetWord and B are efficient.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.eval_gCollisionReductionWord_eq {Message Target : Type} {encM : Message ↪ List Bool} [DecidableEq Target] (S : WordSignatureScheme) (encT : Target ↪ List Bool) (targetWord : ℕ → List Bool → Message → List Bool → List Bool) (D : Turing.MultiTapeTM.Decoder encM) (target : Message → List Bool → Target) (n : ℕ) (paramWord : List Bool) (htargetEq : ∀ (m : Message) (r : List Bool), targetWord n paramWord m r = encT (target m r)) (B : WordExtractedForgerOf Message) :
(gCollisionReductionWord S targetWord D B n paramWord).eval = (gCollisionReduction (targetScheme S (⇑encT) n) target (WordExtractedForgerOf.toTyped D (B.atKey paramWord) n)).eval

Exact PMF law equality between gCollisionReductionWord and ACTMQ.gCollisionReduction on targetScheme S encT n.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.eval_gCollisionExperiment_gCollisionReductionWord_eq {Message Tail Target : Type} {encM : Message ↪ List Bool} [DecidableEq Tail] [DecidableEq Target] (S : WordSignatureScheme) (encT : Target ↪ List Bool) (G : List Bool → Tail) (targetWord : ℕ → List Bool → Message → List Bool → List Bool) (D : Turing.MultiTapeTM.Decoder encM) (target : Message → List Bool → Target) (n : ℕ) (paramWord : List Bool) (htargetEq : ∀ (m : Message) (r : List Bool), targetWord n paramWord m r = encT (target m r)) (B : WordExtractedForgerOf Message) :

Exact gCollisionExperiment PMF law equality for gCollisionReductionWord.

def Cslib.Crypto.AnonymousToken.ACTMQ.gCollisionFinderWord {Param : Type} (encParam : Param ↪ List Bool) {Message : Type} {encM : Message ↪ List Bool} (S : WordSignatureScheme) (targetWord : ℕ → List Bool → Message → List Bool → List Bool) (D : Turing.MultiTapeTM.Decoder encM) (B : WordExtractedForgerOf Message) :

Parameterized CollisionFinderFor adapter built from gCollisionReductionWord by mapping none to ([], []).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.isPPTOn_gCollisionFinderWord {Param : Type} {encParam : Param ↪ List Bool} (hencParam : Turing.MultiTapeTM.ComputableInPolyTime (⇑encParam) encParam Turing.MultiTapeTM.encBits) {Message : Type} {encM : Message ↪ List Bool} (S : WordSignatureScheme) {targetWord : ℕ → List Bool → Message → List Bool → List Bool} (htarget : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : ℕ × List Bool × Message × List Bool) => targetWord p.1 p.2.1 p.2.2.1 p.2.2.2) (encTargetArgsOf encM) Turing.MultiTapeTM.encBits) (D : Turing.MultiTapeTM.Decoder encM) {B : WordExtractedForgerOf Message} (hB : Probability.IsOraclePPT (encTokenOf encM) B) :

gCollisionFinderWord is uniform strict PPT in (n, encParam d).

Section 5: Word-level ACT-MQ primitives, actNoteForgerWord, and conservation #

structure Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps {Param : Type} (encParam : Param ↪ List Bool) {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} (decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)) {encTail : (d : Param) → Tail d ↪ List Bool} (decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)) (F : (d : Param) → List Bool → Message d) (G : (d : Param) → List Bool → Tail d) (encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d) (refundEmbed : (d : Param) → ℕ → Message d) :

Word-level computational implementation of VOLE-ACT-MQ cryptographic primitives (F, G, encodeState, refundEmbed) relative to parameter encoding encParam, message decoders decMsg, and tail decoders decTail.

def Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.comWord {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (paramWord nf ctx : List Bool) (credit : ℕ) (opening : List Bool) :

Word-level realization of ACTMQ.actCom.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.comWord_eq {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (d : Param) (nf ctx : List Bool) (credit : ℕ) (opening : List Bool) :
ops.comWord (encParam d) nf ctx credit opening = (Turing.MultiTapeTM.encPair (encMsg d) (encTail d)) (actCom (F d) (G d) (encodeState d) nf ctx credit opening)
theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.comWord_polyTime {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) :
def Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.embedWord {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (paramWord : List Bool) (note : Credit.Note (List Bool) (List Bool)) :

Word-level realization of ACTMQ.actEmbed.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.embedWord_eq {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (d : Param) (note : Credit.Note (List Bool) (List Bool)) :
ops.embedWord (encParam d) note = (encMsg d) (actEmbed (encodeState d) (refundEmbed d) note)
theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.embedWord_polyTime {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) :
def Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.targetWord {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (paramWord mWord r : List Bool) :

Word-level realization of UOV.structuredTarget F G.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.targetWord_eq {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (d : Param) (w r : List Bool) :
ops.targetWord (encParam d) w r = (Turing.MultiTapeTM.encPair (encMsg d) (encTail d)) (UOV.structuredTarget (F d) (G d) ((decMsg d).decode w) r)
theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.targetWord_polyTime {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) :
def Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.actAcceptRequestWord {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (S : WordSignatureScheme) (paramWord spk : List Bool) (accepted : List (Conservation.Request (List Bool) (List Bool) (List Bool) (List Bool) (List Bool))) :

Word-level Conservation.acceptRequest check for VOLE-ACT-MQ over WordActMQOps and S.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.actAcceptRequestWord_eq {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (S : WordSignatureScheme) (n : ℕ) (d : Param) [DecidableEq (Message d)] [DecidableEq (Tail d)] (spk : List Bool) (accepted : List (Conservation.Request (List Bool) (List Bool) (List Bool) (List Bool) (List Bool))) (req : Conservation.Request (List Bool) (List Bool) (List Bool) (List Bool) (List Bool)) :
ops.actAcceptRequestWord S (encParam d) spk accepted req = Conservation.acceptRequest (actCom (F d) (G d) (encodeState d)) (actTag (refundEmbed d)) (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) spk (List.map (requestMapCommitment ((decMsg d).pair (decTail d)).decode) accepted) (requestMapCommitment ((decMsg d).pair (decTail d)).decode req)
def Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.actNoteForgerWord {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (sigBound : ℕ → ℕ → ℕ) (S : WordSignatureScheme) (A : Conservation.WordExtractedAdversary) :

Word-level semantic note-forgery reduction corresponding to Conservation.noteForger on VOLE-ACT-MQ: instantiates Conservation.noteForgerWordOf with actNoteForgerHandlerWord.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.isOraclePPTOn_actNoteForgerWord {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) {sigBound : ℕ → ℕ → ℕ} (hsigBound : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : ℕ × ℕ) => sigBound p.1 p.2) encNatPair Turing.MultiTapeTM.encUnary) (S : WordSignatureScheme) {A : Conservation.WordExtractedAdversary} (hA : Probability.IsOraclePPT Turing.MultiTapeTM.encBits A) :

actNoteForgerWord is uniform strict oracle PPT whenever sigBound, ops, and A are efficient.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.eval_runExtracted_actNoteForgerWord_eq {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) [(d : Param) → DecidableEq (Message d)] [(d : Param) → DecidableEq (Tail d)] (S : WordSignatureScheme) (sigBound : ℕ → ℕ → ℕ) (hbound : ∀ (n : ℕ) (pk sk : List Bool), (pk, sk) ∈ (S.keyGen n).eval.support → ∀ (msg sig : List Bool), sig ∈ (S.sign sk msg).eval.support → sig.length ≤ sigBound n msg.length) (B : Conservation.WordExtractedAdversary) (n : ℕ) (d : Param) :
(runExtractedWord S (fun (x : ℕ) (paramWord : List Bool) (note : Credit.Note (List Bool) (List Bool)) (r : List Bool) => ops.targetWord paramWord (ops.embedWord paramWord note) r) Conservation.creditNoteDecoder (ops.actNoteForgerWord sigBound S B) n (encParam d)).eval = (runExtracted (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) (Credit.target (actCom (F d) (G d) (encodeState d)) (actTag (refundEmbed d))) (Conservation.noteForger (actCom (F d) (G d) (encodeState d)) (actTag (refundEmbed d)) (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) (toActTyped (decMsg d) (decTail d) B n (encParam d)))).eval

Exact runExtracted PMF law equality between actNoteForgerWord and Conservation.noteForger on targetScheme at (actCom, actTag).

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.eval_clawExperiment_actNoteForgerWord_rangeBounded_eq {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) [(d : Param) → DecidableEq (Message d)] [(d : Param) → DecidableEq (Tail d)] (S : WordSignatureScheme) (sigBound replyBound : ℕ → ℕ → ℕ) (bound : ℕ → ℕ) (hbound : ∀ (n : ℕ) (pk sk : List Bool), (pk, sk) ∈ (S.keyGen n).eval.support → ∀ (msg sig : List Bool), sig ∈ (S.sign sk msg).eval.support → sig.length ≤ sigBound n msg.length) (hreplyBound : ∀ (n : ℕ) (pk sk : List Bool), (pk, sk) ∈ (S.keyGen n).eval.support → ∀ (d : Param) (req : Unit × List Bool) (sig : List Bool), have p := (Conservation.wordRequestDecoder.decode req.2).outputPayload; sig ∈ (S.sign sk (ops.targetWord (encParam d) (ops.embedWord (encParam d) p.message) p.opening)).eval.support → sig.length ≤ replyBound n ((encWordPair (pk, encParam d)).length + req.2.length)) (A : Conservation.WordExtractedAdversary) (n : ℕ) (d : Param) :
ProbComp.eval (clawExperiment (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) (UOV.structuredTarget (F d) (G d)) (WordClawAdversary.toTyped (decMsg d) (clawReductionWord Conservation.creditNoteDecoder S sigBound ops.targetWord ops.embedWord (ops.actNoteForgerWord sigBound S (rangeBoundedAdversaryWord replyBound bound A))) n (encParam d))) = ProbComp.eval (clawExperiment (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) (UOV.structuredTarget (F d) (G d)) (clawReduction (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) (UOV.structuredTarget (F d) (G d)) (actEmbed (encodeState d) (refundEmbed d)) (Conservation.noteForger (actCom (F d) (G d) (encodeState d)) (actTag (refundEmbed d)) (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) (rangeBoundedAdversary (bound n) (toActTyped (decMsg d) (decTail d) A n (encParam d))))))

Under clawExperiment, running clawReductionWord on ops.actNoteForgerWord and rangeBoundedAdversaryWord matches ACTMQ.clawReduction on Conservation.noteForger and ACTMQ.rangeBoundedAdversary.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.eval_gCollisionExperiment_actNoteForgerWord_rangeBounded_eq {Param : Type} {encParam : Param ↪ List Bool} {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] {encMsg : (d : Param) → Message d ↪ List Bool} {decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)} {encTail : (d : Param) → Tail d ↪ List Bool} {decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)} {F : (d : Param) → List Bool → Message d} {G : (d : Param) → List Bool → Tail d} {encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d} {refundEmbed : (d : Param) → ℕ → Message d} (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) [(d : Param) → DecidableEq (Message d)] [(d : Param) → DecidableEq (Tail d)] (S : WordSignatureScheme) (sigBound replyBound : ℕ → ℕ → ℕ) (bound : ℕ → ℕ) (hbound : ∀ (n : ℕ) (pk sk : List Bool), (pk, sk) ∈ (S.keyGen n).eval.support → ∀ (msg sig : List Bool), sig ∈ (S.sign sk msg).eval.support → sig.length ≤ sigBound n msg.length) (hreplyBound : ∀ (n : ℕ) (pk sk : List Bool), (pk, sk) ∈ (S.keyGen n).eval.support → ∀ (d : Param) (req : Unit × List Bool) (sig : List Bool), have p := (Conservation.wordRequestDecoder.decode req.2).outputPayload; sig ∈ (S.sign sk (ops.targetWord (encParam d) (ops.embedWord (encParam d) p.message) p.opening)).eval.support → sig.length ≤ replyBound n ((encWordPair (pk, encParam d)).length + req.2.length)) (A : Conservation.WordExtractedAdversary) (n : ℕ) (d : Param) :
ProbComp.eval (collisionExperiment G (fun (x : ℕ) (x_1 : Param) (x_2 : List Bool) => true) (gCollisionFinderWord encParam S (fun (x : ℕ) (paramWord : List Bool) (note : Credit.Note (List Bool) (List Bool)) (r : List Bool) => ops.targetWord paramWord (ops.embedWord paramWord note) r) Conservation.creditNoteDecoder (ops.actNoteForgerWord sigBound S (rangeBoundedAdversaryWord replyBound bound A))) n d) = ProbComp.eval (gCollisionExperiment (G d) (gCollisionReduction (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) (Credit.target (actCom (F d) (G d) (encodeState d)) (actTag (refundEmbed d))) (Conservation.noteForger (actCom (F d) (G d) (encodeState d)) (actTag (refundEmbed d)) (targetScheme S (⇑(Turing.MultiTapeTM.encPair (encMsg d) (encTail d))) n) (rangeBoundedAdversary (bound n) (toActTyped (decMsg d) (decTail d) A n (encParam d))))))

Under collisionExperiment (CollisionResistantFor), running gCollisionFinderWord on ops.actNoteForgerWord and rangeBoundedAdversaryWord matches ACTMQ.gCollisionExperiment on ACTMQ.gCollisionReduction applied to Conservation.noteForger and rangeBoundedAdversary.

noncomputable def Cslib.Crypto.AnonymousToken.ACTMQ.actMQConservationWordGame {Param : Type} (encParam : Param ↪ List Bool) (setup : ℕ → PMF Param) (bound : ℕ → ℕ) {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] [(d : Param) → DecidableEq (Message d)] [(d : Param) → DecidableEq (Tail d)] {encMsg : (d : Param) → Message d ↪ List Bool} (decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)) {encTail : (d : Param) → Tail d ↪ List Bool} (decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)) (F : (d : Param) → List Bool → Message d) (G : (d : Param) → List Bool → Tail d) (encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d) (refundEmbed : (d : Param) → ℕ → Message d) (S : WordSignatureScheme) (A : Conservation.WordExtractedAdversary) (n : ℕ) :

Word-level (V4) range-bounded extracted credit-conservation game for VOLE-ACT-MQ over parameter setup setup, range bound bound, domain maps (F, G, encodeState, refundEmbed), and word signature scheme S.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.WordActMQOps.actMQConservationWordGame_succProbability_le {Param : Type} {encParam : Param ↪ List Bool} (setup : ℕ → PMF Param) (bound : ℕ → ℕ) {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] [(d : Param) → DecidableEq (Message d)] [(d : Param) → DecidableEq (Tail d)] {encMsg : (d : Param) → Message d ↪ List Bool} (decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)) {encTail : (d : Param) → Tail d ↪ List Bool} (decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)) (F : (d : Param) → List Bool → Message d) (G : (d : Param) → List Bool → Tail d) (encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d) (refundEmbed : (d : Param) → ℕ → Message d) (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (hembed : ∀ (n : ℕ), ∀ d ∈ (setup n).support, Set.InjOn (actEmbed (encodeState d) (refundEmbed d)) {note : Credit.Note (List Bool) (List Bool) | NoteInRange (bound n) note}) (S : WordSignatureScheme) (sigBound replyBound : ℕ → ℕ → ℕ) (hreplyOut : ∀ (n : ℕ) (pk sk : List Bool), (pk, sk) ∈ (S.keyGen n).eval.support → ∀ (d : Param) (req : Unit × List Bool) (sig : List Bool), have p := (Conservation.wordRequestDecoder.decode req.2).outputPayload; sig ∈ (S.sign sk (ops.targetWord (encParam d) (ops.embedWord (encParam d) p.message) p.opening)).eval.support → sig.length ≤ replyBound n ((encWordPair (pk, encParam d)).length + req.2.length)) (hbound : ∀ (n : ℕ), ∀ keys ∈ (S.keyGen n).eval.support, ∀ (msg sig : List Bool), sig ∈ (S.sign keys.2 msg).eval.support → sig.length ≤ sigBound n msg.length) (A : Conservation.WordExtractedAdversary) (n : ℕ) :
(actMQConservationWordGame encParam setup bound decMsg decTail F G encodeState refundEmbed S A n).succProbability ≤ (clawWordGame encParam setup S Message Tail encMsg decMsg encTail (fun (d : Param) => UOV.structuredTarget (F d) (G d)) (clawReductionWord Conservation.creditNoteDecoder S sigBound ops.targetWord ops.embedWord (ops.actNoteForgerWord sigBound S (rangeBoundedAdversaryWord replyBound bound A))) n).succProbability + (collisionGameFor setup G (fun (x : ℕ) (x_1 : Param) (x_2 : List Bool) => true) (gCollisionFinderWord encParam S (fun (x : ℕ) (paramWord : List Bool) (note : Credit.Note (List Bool) (List Bool)) (r : List Bool) => ops.targetWord paramWord (ops.embedWord paramWord note) r) Conservation.creditNoteDecoder (ops.actNoteForgerWord sigBound S (rangeBoundedAdversaryWord replyBound bound A))) n).succProbability

Concrete single-parameter advantage reduction from actMQConservationWordGame to clawWordGame and collisionGameFor.

theorem Cslib.Crypto.AnonymousToken.ACTMQ.negligible_actMQConservationWordGame_of_wordStructuredClawUnforgeable {Param : Type} {encParam : Param ↪ List Bool} (hencParam : Turing.MultiTapeTM.ComputableInPolyTime (⇑encParam) encParam Turing.MultiTapeTM.encBits) (setup : ℕ → PMF Param) (bound : ℕ → ℕ) (hboundPoly : Turing.MultiTapeTM.ComputableInPolyTime bound Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encNat) {Message Tail : Param → Type} [(d : Param) → AddCommGroup (Message d)] [(d : Param) → DecidableEq (Message d)] [(d : Param) → DecidableEq (Tail d)] {encMsg : (d : Param) → Message d ↪ List Bool} (decMsg : (d : Param) → Turing.MultiTapeTM.Decoder (encMsg d)) {encTail : (d : Param) → Tail d ↪ List Bool} (decTail : (d : Param) → Turing.MultiTapeTM.Decoder (encTail d)) (F : (d : Param) → List Bool → Message d) (G : (d : Param) → List Bool → Tail d) (encodeState : (d : Param) → List Bool → List Bool → ℕ → Message d) (refundEmbed : (d : Param) → ℕ → Message d) (ops : WordActMQOps encParam decMsg decTail F G encodeState refundEmbed) (hembed : ∀ (n : ℕ), ∀ d ∈ (setup n).support, Set.InjOn (actEmbed (encodeState d) (refundEmbed d)) {note : Credit.Note (List Bool) (List Bool) | NoteInRange (bound n) note}) (S : WordSignatureScheme) (hClaw : WordStructuredClawUnforgeable encParam setup S Message Tail encMsg decMsg encTail fun (d : Param) => UOV.structuredTarget (F d) (G d)) (hG : CollisionResistantFor encParam setup G) (A : Conservation.WordExtractedAdversary) (hA : Probability.IsOraclePPT Turing.MultiTapeTM.encBits A) :
Negligible fun (n : ℕ) => (actMQConservationWordGame encParam setup bound decMsg decTail F G encodeState refundEmbed S A n).succProbability

Asymptotic credit conservation for VOLE-ACT-MQ in the extracted model (#7068): assuming WordStructuredClawUnforgeable on UOV.structuredTarget F G, CollisionResistantFor on G, efficient encParam, binary-encoded range bound bound, efficient domain ops ops, and (V4)-range injectivity hembed on supported setup parameters, every oracle-PPT adversary A has negligible winning probability in actMQConservationWordGame. Because WordStructuredClawUnforgeable fails when zero-opening rescaling applies, this bound is informative only for (F, G, S) instantiations where zero-opening rescaling is blocked.