All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Function binding game ext support srs

KZG.CommitmentScheme.function_binding_game_ext_support_srs

Plain-language statement

Extract the sampled SRS equation from a supported extended function-binding game output.

Exact Lean statement

lemma function_binding_game_ext_support_srs {n L : ℕ} {AuxState : Type} [SampleableType G₁]
    (adversary : KzgFunctionBindingAdversary p G₁ G₂ n unifSpec L AuxState)
    {τ : ZMod p} {srs : Vector G₁ (n + 1) × Vector G₂ 2} {cm : G₁}
    {queryOf responseOf : Fin L → ZMod p} {accepts : Fin L → Bool} {proofs : Fin L → G₁}
    (hgame : (τ, srs, cm, queryOf, responseOf, accepts, proofs) ∈
      support (functionBindingGameExt (g₁ := g₁) (g₂ := g₂) AuxState adversary
        (kzg (n := n) (g₁ := g₁) (g₂ := g₂) (pairing := pairing)))) :
    srs = Groups.PowerSrs.generate (g₁ := g₁) (g₂ := g₂) n τ

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma function_binding_game_ext_support_srs {n L : } {AuxState : Type} [SampleableType G₁]    (adversary : KzgFunctionBindingAdversary p G₁ G₂ n unifSpec L AuxState)    {τ : ZMod p} {srs : Vector G₁ (n + 1) × Vector G₂ 2} {cm : G₁}    {queryOf responseOf : Fin L  ZMod p} {accepts : Fin L  Bool} {proofs : Fin L  G₁}    (hgame : (τ, srs, cm, queryOf, responseOf, accepts, proofs)       support (functionBindingGameExt (g₁ := g₁) (g₂ := g₂) AuxState adversary        (kzg (n := n) (g₁ := g₁) (g₂ := g₂) (pairing := pairing)))) :    srs = Groups.PowerSrs.generate (g₁ := g₁) (g₂ := g₂) n τ := by  simp only [functionBindingGameExt, kzg] at hgame  obtain τ', _, hgame := OptionT.mem_support_bind_mk _ _ hgame  refine OptionT.aux_mem_support_simulateQ_run' _ _ _    (fun y => y.2.1 = Groups.PowerSrs.generate (g₁ := g₁) (g₂ := g₂) n y.1) ?_ hgame  intro x hx y hxy  rw [hxy] at hx  rw [mem_support_bind_iff] at hx  obtain ⟨⟨cm', queryOf', responseOf', stateOf', _, hx := hx  rw [mem_support_bind_iff] at hx  obtain resultPairs, _, hx := hx  have hx' : some y =      ((Option.map (fun resultOf i => (resultOf i).1) resultPairs).bind fun accepts =>        Option.map          (fun proofs =>            (τ', Groups.PowerSrs.generate (g₁ := g₁) (g₂ := g₂) n τ', cm', queryOf',              (fun i => responseOf' i), accepts, proofs))          (Option.map (fun resultOf i => (resultOf i).2) resultPairs)) := by    exact (mem_support_pure_iff _ _).mp hx  cases hres : resultPairs with  | none => simp [hres] at hx'  | some resultOf =>      simp only [hres, Option.map_some, Option.bind_some] at hx'      have hy := Option.some.inj hx'      rw [hy]
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Commitments/Functional/KZG/FunctionBinding/Basic.lean:274-305

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