All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257

Support simulate Q run' subset

OracleComp.support_simulateQ_run'_subset

Plain-language statement

Simulating an OracleComp through a stateful implementation in monad m can only shrink the support: any output reachable after simulation was already reachable in the original computation (where oracle queries may return any value). This is the support-level analogue of evalDist_simulateQ_run'_eq_evalDist.

Exact Lean statement

theorem support_simulateQ_run'_subset
    {n : Type w → Type _} [Monad n] [LawfulMonad n] [MonadLiftT n SetM] [LawfulMonadLiftT n SetM]
    {σ : Type w}
    (impl : QueryImpl spec (StateT σ n))
    (oa : OracleComp spec α) (s : σ) :
    support ((simulateQ impl oa).run' s) ⊆ support oa

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem support_simulateQ_run'_subset    {n : Type w  Type _} [Monad n] [LawfulMonad n] [MonadLiftT n SetM] [LawfulMonadLiftT n SetM]    {σ : Type w}    (impl : QueryImpl spec (StateT σ n))    (oa : OracleComp spec α) (s : σ) :    support ((simulateQ impl oa).run' s)  support oa := by  induction oa using OracleComp.inductionOn generalizing s with  | pure x => simp  | query_bind t k ih =>    intro x hx    simp only [simulateQ_bind, simulateQ_spec_query, StateT.run'_eq, StateT.run_bind, support_map,      support_bind, Set.mem_image, Set.mem_iUnion, exists_prop] at hx     obtain ⟨⟨a, s', ⟨⟨u, s'', -, hsupp, rfl := hx    refine u, mem_support_query t u, ih u s'' ?_    rw [StateT.run'_eq, support_map]    exact Set.mem_image_of_mem _ hsupp
Project
VCVio
License
Apache-2.0
Commit
2ceb2d825ee3
Source
VCVio/OracleComp/SimSemantics/StateT/Basic.lean:295-310

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

Project-declaredLean 4.32.0

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.

program verificationseparation logiccryptography

Source project: VCVio

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

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.

program verificationseparation logiccryptography

Source project: VCVio

Person-level attribution pending.

View proof record