Prob Output ddh Exp Rand cdh To DDHReduction eq uniform Scalar
DiffieHellman.probOutput_ddhExpRand_cdhToDDHReduction_eq_uniformScalar
Plain-language statement
In the random DDH game, the CDH-to-DDH reduction only matches the target with the uniform baseline probability. The bijectivity assumption identifies scalar samples with uniformly sampled group elements in the subgroup generated by g.
Exact Lean statement
theorem probOutput_ddhExpRand_cdhToDDHReduction_eq_uniformScalar
[Fintype F] (g : G) (hg : Function.Bijective (· • g : F → G))
(adversary : CDHAdversary F G) :
Pr[= true | ddhExpRand g (cdhToDDHReduction (F := F) adversary)] =
(Fintype.card F : ℝ≥0∞)⁻¹Formal artifact
Lean source
theorem probOutput_ddhExpRand_cdhToDDHReduction_eq_uniformScalar [Fintype F] (g : G) (hg : Function.Bijective (· • g : F → G)) (adversary : CDHAdversary F G) : Pr[= true | ddhExpRand g (cdhToDDHReduction (F := F) adversary)] = (Fintype.card F : ℝ≥0∞)⁻¹ := by simp only [ddhExpRand, cdhToDDHReduction] have key : ∀ a b : F, Pr[= true | ($ᵗ F) >>= fun c => adversary g (a • g) (b • g) >>= fun h => pure (decide (h = c • g))] = (Fintype.card F : ℝ≥0∞)⁻¹ := by intro a b rw [probOutput_bind_bind_swap, probOutput_bind_of_const _ fun h _ => probOutput_decide_smul_eq_inv_card g hg h] simp [probFailure_of_liftM_PMF] rw [probOutput_bind_of_const _ fun a _ => probOutput_bind_of_const _ fun b _ => key a b] simp [probFailure_of_liftM_PMF]- Project
- VCVio
- License
- Apache-2.0
- Commit
- 2ceb2d825ee3
- Source
- VCVio/CryptoFoundations/HardnessAssumptions/DiffieHellman.lean:232-249
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.