All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Zmod eq of srs power eq

KZG.CommitmentScheme.zmod_eq_of_srs_power_eq

Plain-language statement

Equality with the second SRS power identifies a field element as the trapdoor.

Exact Lean statement

lemma zmod_eq_of_srs_power_eq {α τ : ZMod p}
    (hn : 1 ≤ n) (srs : Vector G₁ (n + 1) × Vector G₂ 2)
    (hsrs : srs = Groups.PowerSrs.generate (g₁ := g₁) (g₂ := g₂) n τ)
    (hord : orderOf g₁ = p)
    (hpow : srs.1[0] ^ α.val = srs.1[1]'(Nat.lt_add_of_pos_left hn)) :
    α = τ

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma zmod_eq_of_srs_power_eq {α τ : ZMod p}    (hn : 1  n) (srs : Vector G₁ (n + 1) × Vector G₂ 2)    (hsrs : srs = Groups.PowerSrs.generate (g₁ := g₁) (g₂ := g₂) n τ)    (hord : orderOf g₁ = p)    (hpow : srs.1[0] ^ α.val = srs.1[1]'(Nat.lt_add_of_pos_left hn)) :    α = τ := by  have h_srs0 : srs.1[0] = g₁ := by    rw [hsrs]    simp [Groups.PowerSrs.generate, Groups.PowerSrs.tower]  have h_srs1 : srs.1[1]'(Nat.lt_add_of_pos_left hn) = g₁ ^ τ.val := by    rw [hsrs]    simp [Groups.PowerSrs.generate, Groups.PowerSrs.tower]  have hpow' : g₁ ^ α.val = g₁ ^ τ.val := by    rw [h_srs0, h_srs1] at hpow    exact hpow  have hmod : α.val ≡ τ.val [MOD orderOf g₁] := pow_eq_pow_iff_modEq.mp hpow'  rw [hord] at hmod  have h_eq : α.val = τ.val := by    have hm : α.val % p = τ.val % p := hmod    rwa [Nat.mod_eq_of_lt (ZMod.val_lt α), Nat.mod_eq_of_lt (ZMod.val_lt τ)] at hm  exact ZMod.val_injective p h_eq
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Commitments/Functional/KZG/FunctionBinding/TauInQueries.lean:83-103

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