Plain-language statement
The commitment to a mathlib polynomial poly of maximum degree n is equal to g₁ ^ (poly.1.eval a).val
Exact Lean statement
theorem commit_eq {a : ZMod p} (hpG1 : Nat.card G₁ = p)
(poly : Polynomial.degreeLT (ZMod p) (n + 1)) :
commit (Groups.PowerSrs.tower g₁ a n) (Polynomial.degreeLTEquiv _ _ poly)
= g₁ ^ (poly.1.eval a).valFormal artifact
Lean source
theorem commit_eq {a : ZMod p} (hpG1 : Nat.card G₁ = p) (poly : Polynomial.degreeLT (ZMod p) (n + 1)) : commit (Groups.PowerSrs.tower g₁ a n) (Polynomial.degreeLTEquiv _ _ poly) = g₁ ^ (poly.1.eval a).val := by have {g₁ : G₁} (a b : ℕ) : g₁ ^ a = g₁ ^ b ↔ g₁ ^ (a : ℤ) = g₁ ^ (b : ℤ) := by simp only [zpow_natCast] simp only [commit, Groups.PowerSrs.tower, Fin.getElem_fin, Vector.getElem_ofFn] simp_rw [← pow_mul, Finset.prod_pow_eq_pow_sum, Polynomial.eval_eq_sum_degreeLTEquiv poly.property, this, ←orderOf_dvd_sub_iff_zpow_eq_zpow] have hordg₁ : g₁ = 1 ∨ orderOf g₁ = p := by have ord_g₁_dvd : orderOf g₁ ∣ p := by rw [← hpG1]; apply orderOf_dvd_natCard rw [Nat.dvd_prime hp.out, orderOf_eq_one_iff] at ord_g₁_dvd exact ord_g₁_dvd rcases hordg₁ with ord1 | ordp · simp [ord1] · simp only [ordp, Nat.cast_sum, Nat.cast_mul, Nat.cast_pow, ZMod.natCast_val, Subtype.coe_eta, ← ZMod.intCast_eq_intCast_iff_dvd_sub, ZMod.intCast_cast, ZMod.cast_id', id_eq, Int.cast_sum, Int.cast_mul, Int.cast_pow] apply Fintype.sum_congr intro x exact mul_comm _ _- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Commitments/Functional/KZG/Basic.lean:77-99
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
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...
Source project: ArkLib
Person-level attribution pending.
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.
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose lawful
ArkLib.Lattices.Ajtai.gadgetDecompose_lawful
Plain-language statement
The base-b gadget decomposition is a lawful gadget decomposition.
Source project: ArkLib
Person-level attribution pending.