Cma to nma advantage bound
FiatShamir.cma_to_nma_advantage_bound
Plain-language statement
CMA-to-NMA reduction for Fiat-Shamir signatures built from a Sigma protocol. The reduction runs the CMA adversary with simulated signing transcripts and a managed random oracle, then appends a single explicit live random-oracle query for the forgery's hash point so that the verification challenge is part of the forkable transcript (the `nmaAdvFromCmaWithF...
Exact Lean statement
theorem cma_to_nma_advantage_bound
[DecidableEq M] [DecidableEq Commit] [SampleableType Stmt] [SampleableType Wit]
[Finite Stmt] [Finite Commit] [Finite Resp]
[Finite Chal] [Inhabited Chal] [SampleableType Chal]
(simTranscript : Stmt → ProbComp (Commit × Chal × Resp))
(ζ_zk : ℝ) (hζ_zk : 0 ≤ ζ_zk)
(hHVZK : σ.HVZK simTranscript ζ_zk)
(β : ENNReal)
(hPredSim : σ.simCommitPredictability simTranscript β)
(adv : SignatureAlg.unforgeableAdv
(FiatShamir (m := OracleComp (unifSpec + (M × Commit →ₒ Chal))) σ hr M))
(qS qH : ℕ)
(hQ : ∀ pk, signHashQueryBound (M := M) (Commit := Commit) (Chal := Chal)
(S' := Commit × Resp) (oa := adv.main pk) qS qH) :
∃ nmaAdv : SignatureAlg.managedRoNmaAdv
(FiatShamir (m := OracleComp (unifSpec + (M × Commit →ₒ Chal))) σ hr M),
adv.advantage (runtime M) ≤
Fork.advantage σ hr M nmaAdv qH +
ENNReal.ofReal ((qS : ℝ) * ζ_zk) + (qS : ENNReal) * (qS + qH) * βFormal artifact
Lean source
theorem cma_to_nma_advantage_bound [DecidableEq M] [DecidableEq Commit] [SampleableType Stmt] [SampleableType Wit] [Finite Stmt] [Finite Commit] [Finite Resp] [Finite Chal] [Inhabited Chal] [SampleableType Chal] (simTranscript : Stmt → ProbComp (Commit × Chal × Resp)) (ζ_zk : ℝ) (hζ_zk : 0 ≤ ζ_zk) (hHVZK : σ.HVZK simTranscript ζ_zk) (β : ENNReal) (hPredSim : σ.simCommitPredictability simTranscript β) (adv : SignatureAlg.unforgeableAdv (FiatShamir (m := OracleComp (unifSpec + (M × Commit →ₒ Chal))) σ hr M)) (qS qH : ℕ) (hQ : ∀ pk, signHashQueryBound (M := M) (Commit := Commit) (Chal := Chal) (S' := Commit × Resp) (oa := adv.main pk) qS qH) : ∃ nmaAdv : SignatureAlg.managedRoNmaAdv (FiatShamir (m := OracleComp (unifSpec + (M × Commit →ₒ Chal))) σ hr M), adv.advantage (runtime M) ≤ Fork.advantage σ hr M nmaAdv qH + ENNReal.ofReal ((qS : ℝ) * ζ_zk) + (qS : ENNReal) * (qS + qH) * β := ⟨Stateful.nmaAdvFromCmaWithFinalQuery σ hr M adv simTranscript, Stateful.cma_advantage_le_fork_bound_of_h1h2 σ hr M simTranscript ζ_zk hζ_zk hHVZK β hPredSim adv qS qH hQ (le_of_eq <| (Stateful.publicUnforgeableAdvantage_eq_statefulPostKeygenFreshAdvantage (σ := σ) (hr := hr) (M := M) (Commit := Commit) (Chal := Chal) (Resp := Resp) adv).trans (Stateful.statefulPostKeygenFreshAdvantage_eq_cmaRealRunProb_signedFreshAdv (σ := σ) (hr := hr) (M := M) (Commit := Commit) (Chal := Chal) (Resp := Resp) adv))⟩- Project
- VCVio
- License
- Apache-2.0
- Commit
- 2ceb2d825ee3
- Source
- VCVio/CryptoFoundations/FiatShamir/Sigma/Reductions.lean:56-81
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Expected Cost Nat eq sum tail probs of pathwise Cost At Most
AddWriterT.expectedCostNat_eq_sum_tail_probs_of_pathwiseCostAtMost
Plain-language statement
Finite tail-sum formula for natural-valued writer cost under a pathwise upper bound. If every execution path of oa incurs cost at most n, then the tail probabilities vanish above n, so the infinite tail sum truncates to Finset.range n.
Source project: VCVio
Person-level attribution pending.
IND CPA advantage to Real le sum step signed Advantage Real abs
AsymmEncAlg.IND_CPA_advantage_toReal_le_sum_step_signedAdvantageReal_abs
Plain-language statement
Planned generic one-time-to-many-time lift: bounded multi-query IND-CPA advantage is at most the sum of the extracted one-time signed advantages over the first q fresh LR queries.
Source project: VCVio
Person-level attribution pending.
IND CPA LR hybrid Game q eval Dist eq left of Makes At Most Queries
AsymmEncAlg.IND_CPA_LR_hybridGame_q_evalDist_eq_left_of_MakesAtMostQueries
Plain-language statement
If an adversary makes at most q fresh LR queries, then the leftUntil = q LR-hybrid is the all-left endpoint game.
Source project: VCVio
Person-level attribution pending.