All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Gadget Decompose lawful

ArkLib.Lattices.Ajtai.gadgetDecompose_lawful

Plain-language statement

The base-b gadget decomposition is a lawful gadget decomposition.

Exact Lean statement

theorem gadgetDecompose_lawful {rows digits : Nat} (hd : 0 < digits) (h1 : 1 ≤ Φ.φ.natDegree)
    (dd : DigitDecomposition base digits) :
    IsLawfulGadgetDecomposition Φ base (gadgetDecompose Φ dd (rows := rows))

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem gadgetDecompose_lawful {rows digits : Nat} (hd : 0 < digits) (h1 : 1  Φ.φ.natDegree)    (dd : DigitDecomposition base digits) :    IsLawfulGadgetDecomposition Φ base (gadgetDecompose Φ dd (rows := rows)) := by  intro x  funext i  rw [gadgetMul_apply Φ base hd]  simp_rw [gadgetDecompose_apply Φ dd x i]  apply Subtype.ext  rw [CompPoly.CPolynomial.eq_iff_coeff]  intro k  have hsum : (∑ e : Fin digits,        Rq.constRq Φ (base ^ (e : )) * Rq.ofFinCoeff Φ Φ.φ.natDegree          (fun k' => dd.digit ((x i).1.coeff k') e)).1.coeff k      = ∑ e : Fin digits,        (Rq.constRq Φ (base ^ (e : )) * Rq.ofFinCoeff Φ Φ.φ.natDegree          (fun k' => dd.digit ((x i).1.coeff k') e)).1.coeff k := by    rw [ Rq.coeffHom_apply Φ k, map_sum]    simp only [Rq.coeffHom_apply]  have hterm :  e : Fin digits,      (Rq.constRq Φ (base ^ (e : )) * Rq.ofFinCoeff Φ Φ.φ.natDegree          (fun k' => dd.digit ((x i).1.coeff k') e)).1.coeff k        = base ^ (e : ) * (if k < Φ.φ.natDegree then dd.digit ((x i).1.coeff k) e else 0) := by    intro e    rw [Rq.constRq_mul_coeff Φ h1, Rq.ofFinCoeff_coeff Φ _ (Rq.phi_natDegree_le_degree Φ)]  rw [hsum]  simp_rw [hterm]  by_cases hk : k < Φ.φ.natDegree  · simp only [if_pos hk]    exact dd.reconstruct ((x i).1.coeff k)  · simp only [if_neg hk, mul_zero, Finset.sum_const_zero]    exact (Rq.coeff_eq_zero_of_natDegree_le Φ (x i) (not_lt.mp hk)).symm
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Commitments/Functional/Hachi/Gadget/Basic.lean:221-251

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 zmod l2Norm Sq le

ArkLib.Lattices.Ajtai.gadgetDecompose_zmod_l2NormSq_le

Plain-language statement

Each gadget-decomposition block is ℓ₂²-short: its centered squared-ℓ₂ norm is at most (deg φ)·(b-1)² (each of the deg φ coefficients contributes at most (b-1)²).

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record