IND CPA Game eq IND CCA Game to IND CCA
KEMScheme.IND_CPA_Game_eq_IND_CCA_Game_toIND_CCA
Plain-language statement
The one-stage IND-CPA game is exactly the IND-CCA game instantiated with the trivial CPA-to-CCA embedding (toIND_CCA) that never uses the decryption oracle.
Exact Lean statement
theorem IND_CPA_Game_eq_IND_CCA_Game_toIND_CCA
{kem : KEMScheme (OracleComp spec) K PK SK C}
(runtime : ProbCompRuntime (OracleComp spec))
(adversary : kem.IND_CPA_Adversary) :
kem.IND_CPA_Game runtime adversary = kem.IND_CCA_Game runtime adversary.toIND_CCAFormal artifact
Lean source
theorem IND_CPA_Game_eq_IND_CCA_Game_toIND_CCA {kem : KEMScheme (OracleComp spec) K PK SK C} (runtime : ProbCompRuntime (OracleComp spec)) (adversary : kem.IND_CPA_Adversary) : kem.IND_CPA_Game runtime adversary = kem.IND_CCA_Game runtime adversary.toIND_CCA := by have h : ∀ (impl₂ : QueryImpl (C →ₒ Option K) (OracleComp spec)) {α : Type} (oa : OracleComp spec α), simulateQ ((HasQuery.toQueryImpl (spec := spec) (m := OracleComp spec)) + impl₂) (simulateQ (HasQuery.toQueryImpl (spec := spec) (m := OracleComp (spec + (C →ₒ Option K)))) oa) = oa := by intro impl₂ α oa rw [← QueryImpl.simulateQ_compose] have : (HasQuery.toQueryImpl (spec := spec) (m := OracleComp spec) + impl₂) ∘ₛ HasQuery.toQueryImpl (spec := spec) (m := OracleComp (spec + (C →ₒ Option K))) = QueryImpl.id' spec := by ext t simp only [QueryImpl.compose, QueryImpl.id'] change simulateQ (QueryImpl.id' spec + impl₂) (liftM (liftM (spec.query t) : OracleQuery (spec + (C →ₒ Option K)) _)) = _ simp [simulateQ_query] rw [this, simulateQ_id'] simp only [IND_CPA_Game, IND_CCA_Game, IND_CPA_Adversary.toIND_CCA, IND_CCA_preChallengeImpl, IND_CCA_postChallengeImpl, IND_CCA_oracleSpec, h]- Project
- VCVio
- License
- Apache-2.0
- Commit
- 2ceb2d825ee3
- Source
- VCVio/CryptoFoundations/KeyEncapMech.lean:169-192
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.