All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Psi summand coeff eq zero of ne mod

ArkLib.Lattices.CyclotomicModulus.psi_summand_coeff_eq_zero_of_ne_mod

Plain-language statement

Vanishing outside the matching residue classes. If j's index does not match p's residue class mod d/2k, the p-th coefficient of the j-th packed summand a_j · X^{packExp j} is 0. Combined with packExp_mod_eq and the support of fixed elements (fixedSubring_coeff_eq_zero), only summands whose index agrees with p mod d/2k can contrib...

Exact Lean statement

theorem psi_summand_coeff_eq_zero_of_ne_mod (α κ : ℕ) (h2 : (2 : ZMod q) ≠ 0)
    (hk : 2 * 2 ^ κ ∣ 2 ^ α) (a : Fin (2 ^ α / 2 ^ κ) → fixedSubring (R := ZMod q) α (2 ^ κ))
    {p : ℕ} (hp : p < 2 ^ α) (j : Fin (2 ^ α / 2 ^ κ))
    (hne : p % 2 ^ (α - κ - 1) ≠ (j : ℕ) % 2 ^ (α - κ - 1)) :
    ((a j : Rq (powTwoCyclotomic (R := ZMod q) α))
      * Xpow (powTwoCyclotomic α) (packExp α (2 ^ κ) (j : ℕ))).1.coeff p = 0

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem psi_summand_coeff_eq_zero_of_ne_mod (α κ : ) (h2 : (2 : ZMod q)  0)    (hk : 2 * 2 ^ κ ∣ 2 ^ α) (a : Fin (2 ^ α / 2 ^ κ)  fixedSubring (R := ZMod q) α (2 ^ κ))    {p : } (hp : p < 2 ^ α) (j : Fin (2 ^ α / 2 ^ κ))    (hne : p % 2 ^- κ - 1)  (j : ) % 2 ^- κ - 1)) :    ((a j : Rq (powTwoCyclotomic (R := ZMod q) α))      * Xpow (powTwoCyclotomic α) (packExp α (2 ^ κ) (j : ))).1.coeff p = 0 := by  have hκ : κ + 1  α := succ_le_of_two_mul_two_pow_dvd hk  rw [Xpow_mul_coeff α (packExp α (2 ^ κ) (j : )) (packExp_lt α κ hk j)    (a j : Rq (powTwoCyclotomic (R := ZMod q) α)) hp]  split_ifs with hle  · apply fixedSubring_coeff_eq_zero q α κ h2 hk (a j) (by omega)    intro hdvd    apply hne    have hmeq : packExp α (2 ^ κ) (j : ) % 2 ^- κ - 1) = p % 2 ^- κ - 1) :=      (Nat.modEq_iff_dvd' hle).mpr hdvd    rw [packExp_mod_eq α κ hk j] at hmeq; omega  · rw [fixedSubring_coeff_eq_zero q α κ h2 hk (a j) (by omega) (by      intro hdvd      apply hne      have hle2 : packExp α (2 ^ κ) (j : )  p + 2 ^ α := by        have := packExp_lt α κ hk j; omega      have hmeq : packExp α (2 ^ κ) (j : ) % 2 ^- κ - 1)          = (p + 2 ^ α) % 2 ^- κ - 1) := (Nat.modEq_iff_dvd' hle2).mpr hdvd      have h2z : (2 : ) ^ α % 2 ^- κ - 1) = 0 := by        rw [show (2 : ) ^ α = 2 ^- κ - 1) * 2 ^+ 1) from by          rw [ pow_add]; congr 1; omega, Nat.mul_mod_right]      rw [packExp_mod_eq α κ hk j, Nat.add_mod, h2z, Nat.add_zero, Nat.mod_mod] at hmeq      omega),      neg_zero]
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/Lattices/CyclotomicRing/Subfield/NormBound.lean:50-78

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