Commit eq c polynomial
KZG.commit_eq_c_polynomial
Plain-language statement
The commitment to a computable polynomial (CPolynomial) poly of maximum degree n is equal to g₁ ^ (poly.eval a).val.
Exact Lean statement
theorem commit_eq_c_polynomial {a : ZMod p} (hpG1 : Nat.card G₁ = p)
(poly : CPolynomial (ZMod p)) (hn : poly.degree ≤ n) :
commit (Groups.PowerSrs.tower g₁ a n)
((coeff poly) ∘ Fin.val)
= g₁ ^ (poly.eval a).valFormal artifact
Lean source
theorem commit_eq_c_polynomial {a : ZMod p} (hpG1 : Nat.card G₁ = p) (poly : CPolynomial (ZMod p)) (hn : poly.degree ≤ n) : commit (Groups.PowerSrs.tower g₁ a n) ((coeff poly) ∘ Fin.val) = g₁ ^ (poly.eval a).val := by have h_mem : poly.toPoly ∈ Polynomial.degreeLT (ZMod p) (n + 1) := by rw [Polynomial.mem_degreeLT, ← degree_toPoly] exact lt_of_le_of_lt hn (WithBot.coe_lt_coe.mpr (Nat.lt_succ_self n)) rw [show poly.eval a = poly.toPoly.eval a from eval_toPoly a poly] rw [show ((coeff poly) ∘ Fin.val : Fin (n + 1) → ZMod p) = Polynomial.degreeLTEquiv (ZMod p) (n + 1) ⟨poly.toPoly, h_mem⟩ from by ext i; simp only [Function.comp_apply, Polynomial.degreeLTEquiv]; exact coeff_toPoly poly i] exact commit_eq hpG1 ⟨poly.toPoly, h_mem⟩- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Commitments/Functional/KZG/Basic.lean:104-116
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.