Gadget Mul zmod coeff nat Abs le
ArkLib.Lattices.Ajtai.gadgetMul_zmod_coeff_natAbs_le
Plain-language statement
Core recomposition coefficient bound. Each centered coefficient of an entry of the gadget product G_{b,rows} ·ᵥ v is at most (∑_{u<digits} bᵘ) · γ whenever ‖v‖∞ ≤ γ. The wraparound of the ZMod q powers bᵘ is immaterial: the integer ∑ₑ bᵉ·valMinAbs(vₑ.coeff k) is an explicit representative of the output coefficient, and the centered represe...
Exact Lean statement
theorem gadgetMul_zmod_coeff_natAbs_le {b rows digits : ℕ} (hd : 0 < digits)
(h1 : 1 ≤ Φ.φ.natDegree) {γ : ℕ} (v : PolyVec (Rq Φ) (rows * digits))
(hv : vecLInftyNorm Φ v ≤ γ) (i : Fin rows) {k : ℕ} (hk : k < Φ.φ.natDegree) :
((gadgetMul Φ (b : ZMod q) v i).1.coeff k).valMinAbs.natAbs
≤ (∑ u ∈ Finset.range digits, b ^ u) * γFormal artifact
Lean source
theorem gadgetMul_zmod_coeff_natAbs_le {b rows digits : ℕ} (hd : 0 < digits) (h1 : 1 ≤ Φ.φ.natDegree) {γ : ℕ} (v : PolyVec (Rq Φ) (rows * digits)) (hv : vecLInftyNorm Φ v ≤ γ) (i : Fin rows) {k : ℕ} (hk : k < Φ.φ.natDegree) : ((gadgetMul Φ (b : ZMod q) v i).1.coeff k).valMinAbs.natAbs ≤ (∑ u ∈ Finset.range digits, b ^ u) * γ := by -- the coefficient of the gadget product is the digit-weighted sum of block coefficients have hcoeff : (gadgetMul Φ (b : ZMod q) v i).1.coeff k = ∑ e : Fin digits, (b : ZMod q) ^ (e : ℕ) * (v (finProdFinEquiv (i, e))).1.coeff k := by rw [gadgetMul_apply Φ (b : ZMod q) hd v i, ← Rq.coeffHom_apply Φ k, map_sum] simp only [Rq.coeffHom_apply] exact Finset.sum_congr rfl fun e _ => Rq.constRq_mul_coeff Φ h1 _ _ k -- the explicit integer representative of that coefficient have hrep : ((∑ e : Fin digits, (b : ℤ) ^ (e : ℕ) * ((v (finProdFinEquiv (i, e))).1.coeff k).valMinAbs : ℤ) : ZMod q) = (gadgetMul Φ (b : ZMod q) v i).1.coeff k := by rw [hcoeff, Int.cast_sum] refine Finset.sum_congr rfl fun e _ => ?_ rw [Int.cast_mul, Int.cast_pow, Int.cast_natCast, ZMod.coe_valMinAbs] -- entrywise range bound from the ℓ∞ hypothesis have hentry : ∀ e : Fin digits, ((v (finProdFinEquiv (i, e))).1.coeff k).valMinAbs.natAbs ≤ γ := fun e => calc ((v (finProdFinEquiv (i, e))).1.coeff k).valMinAbs.natAbs ≤ Rq.lInftyNorm Φ (v (finProdFinEquiv (i, e))) := Finset.le_sup (f := fun k => ((v (finProdFinEquiv (i, e))).1.coeff k).valMinAbs.natAbs) (Finset.mem_range.mpr hk) _ ≤ vecLInftyNorm Φ v := Finset.le_sup (f := fun j => Rq.lInftyNorm Φ (v j)) (Finset.mem_univ _) _ ≤ γ := hv -- minimality of the centered representative + triangle over the integer representative calc ((gadgetMul Φ (b : ZMod q) v i).1.coeff k).valMinAbs.natAbs ≤ (∑ e : Fin digits, (b : ℤ) ^ (e : ℕ) * ((v (finProdFinEquiv (i, e))).1.coeff k).valMinAbs).natAbs := valMinAbs_natAbs_le _ hrep _ ≤ ∑ e : Fin digits, ((b : ℤ) ^ (e : ℕ) * ((v (finProdFinEquiv (i, e))).1.coeff k).valMinAbs).natAbs := Int.natAbs_sum_le _ _ _ = ∑ e : Fin digits, b ^ (e : ℕ) * ((v (finProdFinEquiv (i, e))).1.coeff k).valMinAbs.natAbs := by refine Finset.sum_congr rfl fun e _ => ?_ rw [Int.natAbs_mul, Int.natAbs_pow, Int.natAbs_natCast] _ ≤ ∑ e : Fin digits, b ^ (e : ℕ) * γ := Finset.sum_le_sum fun e _ => Nat.mul_le_mul_left _ (hentry e) _ = (∑ u ∈ Finset.range digits, b ^ u) * γ := by rw [← Finset.sum_mul, Fin.sum_univ_eq_sum_range (fun u => b ^ u) digits]- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Commitments/Functional/Hachi/Gadget/Norms.lean:165-208
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.