Tsum prob Output simulate Q run mul of rel
OracleComp.DeferredSampling.tsum_probOutput_simulateQ_run_mul_of_rel
Plain-language statement
State-relation transfer for an expected output functional. Let impl : QueryImpl spec (StateT σ ProbComp) and let Rel : σ → σ → Prop be a relation on the handler state. Suppose: * every query step transfers Rel: for Rel-related start states and any Rel-invariant continuation functional K, the per-query expected K agrees at the two states...
Exact Lean statement
theorem tsum_probOutput_simulateQ_run_mul_of_rel
{ι : Type} {spec : OracleSpec ι} {σ : Type}
(impl : QueryImpl spec (StateT σ ProbComp))
{γ : Type} (oa : OracleComp spec γ)
(Rel : σ → σ → Prop)
(hstep : ∀ (t : spec.Domain) (s₁ s₂ : σ), Rel s₁ s₂ →
∀ (K : spec.Range t → σ → ℝ≥0∞),
(∀ (b : spec.Range t) (t₁ t₂ : σ), Rel t₁ t₂ → K b t₁ = K b t₂) →
(∑' p : spec.Range t × σ, Pr[= p | (impl t).run s₁] * K p.1 p.2)
= ∑' p : spec.Range t × σ, Pr[= p | (impl t).run s₂] * K p.1 p.2) :
∀ (F : γ → σ → ℝ≥0∞), (∀ (g : γ) (s₁ s₂ : σ), Rel s₁ s₂ → F g s₁ = F g s₂) →
∀ (s₁ s₂ : σ), Rel s₁ s₂ →
(∑' z : γ × σ, Pr[= z | (simulateQ impl oa).run s₁] * F z.1 z.2)
= ∑' z : γ × σ, Pr[= z | (simulateQ impl oa).run s₂] * F z.1 z.2Formal artifact
Lean source
theorem tsum_probOutput_simulateQ_run_mul_of_rel {ι : Type} {spec : OracleSpec ι} {σ : Type} (impl : QueryImpl spec (StateT σ ProbComp)) {γ : Type} (oa : OracleComp spec γ) (Rel : σ → σ → Prop) (hstep : ∀ (t : spec.Domain) (s₁ s₂ : σ), Rel s₁ s₂ → ∀ (K : spec.Range t → σ → ℝ≥0∞), (∀ (b : spec.Range t) (t₁ t₂ : σ), Rel t₁ t₂ → K b t₁ = K b t₂) → (∑' p : spec.Range t × σ, Pr[= p | (impl t).run s₁] * K p.1 p.2) = ∑' p : spec.Range t × σ, Pr[= p | (impl t).run s₂] * K p.1 p.2) : ∀ (F : γ → σ → ℝ≥0∞), (∀ (g : γ) (s₁ s₂ : σ), Rel s₁ s₂ → F g s₁ = F g s₂) → ∀ (s₁ s₂ : σ), Rel s₁ s₂ → (∑' z : γ × σ, Pr[= z | (simulateQ impl oa).run s₁] * F z.1 z.2) = ∑' z : γ × σ, Pr[= z | (simulateQ impl oa).run s₂] * F z.1 z.2 := by induction oa using OracleComp.inductionOn with | pure a => intro F hF s₁ s₂ hs simp only [simulateQ_pure, StateT.run_pure, tsum_probOutput_pure_mul] exact hF a s₁ s₂ hs | query_bind t ob ih => intro F hF s₁ s₂ hs simp only [simulateQ_bind, simulateQ_spec_query, StateT.run_bind, tsum_probOutput_bind_mul] set K : spec.Range t → σ → ℝ≥0∞ := fun b u => ∑' z : γ × σ, Pr[= z | (simulateQ impl (ob b)).run u] * F z.1 z.2 with hK have hKinv : ∀ (b : spec.Range t) (t₁ t₂ : σ), Rel t₁ t₂ → K b t₁ = K b t₂ := fun b t₁ t₂ ht => ih b F hF t₁ t₂ ht exact hstep t s₁ s₂ hs K hKinv- Project
- VCVio
- License
- Apache-2.0
- Commit
- 2ceb2d825ee3
- Source
- VCVio/OracleComp/QueryTracking/RandomOracle/DeferredSampling.lean:261-287
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.