All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Mem of pure accepting

Verifier.mem_of_pure_accepting

Plain-language statement

Converse of pure_accepting_of_mem: if a verifier deterministically outputs out on (stmt, tr) and its run is accepted into lang with probability one, then out ∈ lang.

Exact Lean statement

theorem mem_of_pure_accepting
    (V : Verifier oSpec StmtIn StmtOut pSpec)
    (stmt : StmtIn) (tr : pSpec.FullTranscript)
    (lang : Set StmtOut) (out : StmtOut)
    (hV : V.verify stmt tr = pure out)
    (hAcc : Pr[ (· ∈ lang) |
      OptionT.mk do (simulateQ impl (V.run stmt tr)).run' (← init)] = 1) :
      out ∈ lang

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem mem_of_pure_accepting    (V : Verifier oSpec StmtIn StmtOut pSpec)    (stmt : StmtIn) (tr : pSpec.FullTranscript)    (lang : Set StmtOut) (out : StmtOut)    (hV : V.verify stmt tr = pure out)    (hAcc : Pr[ (·  lang) |      OptionT.mk do (simulateQ impl (V.run stmt tr)).run' ( init)] = 1) :      out  lang := by  rw [probEvent_eq_one_iff] at hAcc  obtain hFail, hmem := hAcc  -- The underlying probabilistic computation is `init >>= fun _ => pure (some out)`.  have hrun : (do (simulateQ impl (V.run stmt tr)).run' ( init) :      ProbComp (Option StmtOut)) = (init >>= fun _ => pure (some out)) := by    simp only [Verifier.run, hV]    congr 1  refine hmem out ?_  -- `init` has nonempty support, else the whole computation would fail with probability one.  have hne : (support init).Nonempty := by    by_contra hempty    rw [Set.not_nonempty_iff_eq_empty] at hempty    have hcfail : Pr[⊥ |        (init >>= fun _ => pure (some out) : ProbComp (Option StmtOut))] = 0 := by      have h2 := hFail      rw [OptionT.probFailure_eq, OptionT.run_mk, hrun] at h2      exact (add_eq_zero.mp h2).1    have hcsupp :        support (init >>= fun _ => pure (some out) : ProbComp (Option StmtOut)) =:= by      rw [support_bind_const, support_pure]; simp [hempty]    rw [probFailure_eq_one hcsupp] at hcfail    exact one_ne_zero hcfail  rw [OptionT.mem_support_iff, OptionT.run_mk, hrun, support_bind_const, support_pure]  exact Set.mem_singleton _, hne
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/OracleReduction/Security/CoordinateWiseSpecialSoundness/SeqCompose.lean:53-84

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.31.0

Affine gaps lifted to interleaved codes

affine_gaps_lifted_to_interleaved_codes

Project documentation

This lemma proves the final algebraic step in the DG25 Theorem 3.1 proof. It shows that if R > e + 1, then e * (R / (R - 1)) < e + 1. The intuition is that the fraction R / (R - 1) is always greater than 1, but as R gets larger, it gets closer to 1. The hypothesis R > e + 1 provides a strong enough bound to ensure the product e * (fraction) do...

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Gadget Decompose coeff

ArkLib.Lattices.Ajtai.gadgetDecompose_coeff

Plain-language statement

The k-th coefficient (k < deg φ) of a gadget-decomposition block is exactly the corresponding digit of the corresponding input coefficient.

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Gadget Decompose lawful

ArkLib.Lattices.Ajtai.gadgetDecompose_lawful

Plain-language statement

The base-b gadget decomposition is a lawful gadget decomposition.

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record