All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Fixed Subring coeff eq zero

ArkLib.Lattices.CyclotomicModulus.fixedSubring_coeff_eq_zero

Plain-language statement

Support of a fixed element (Eq. 7). Every x ∈ R_q^H has its nonzero coefficients on multiples of d/2k = 2^{α-κ-1}: for p < d with 2^{α-κ-1} ∤ p, x.1.coeff p = 0. This comes from the symmetric vElt basis (fixedBasisMap is surjective by card_fixedSubring_eq), each of whose elements is supported , by vElt_coeff_full , on the two multipl...

Exact Lean statement

theorem fixedSubring_coeff_eq_zero (α κ : ℕ) (h2 : (2 : ZMod q) ≠ 0) (hk : 2 * 2 ^ κ ∣ 2 ^ α)
    (x : fixedSubring (R := ZMod q) α (2 ^ κ)) {p : ℕ} (hp : p < 2 ^ α)
    (hdvd : ¬ (2 ^ (α - κ - 1) ∣ p)) :
    (x : Rq (powTwoCyclotomic (R := ZMod q) α)).1.coeff p = 0

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem fixedSubring_coeff_eq_zero (α κ : ) (h2 : (2 : ZMod q)  0) (hk : 2 * 2 ^ κ ∣ 2 ^ α)    (x : fixedSubring (R := ZMod q) α (2 ^ κ)) {p : } (hp : p < 2 ^ α)    (hdvd : ¬ (2 ^- κ - 1) ∣ p)) :    (x : Rq (powTwoCyclotomic (R := ZMod q) α)).1.coeff p = 0 := by  have hκ : κ + 1  α := succ_le_of_two_mul_two_pow_dvd hk  have hbij : Function.Bijective (fixedBasisMap q α κ hκ) := by    rw [Fintype.bijective_iff_injective_and_card]    exact fixedBasisMap_injective q α κ h2 hκ, by      rw [Fintype.card_fun, Fintype.card_fin, card_fixedSubring_eq q α κ h2 hk]  obtain c, hc := hbij.surjective x  set D : fixedSubring (R := ZMod q) α (2 ^ κ) →+ ZMod q :=    (Rq.coeffHom (powTwoCyclotomic (R := ZMod q) α) p).comp      (fixedSubring (R := ZMod q) α (2 ^ κ)).subtype.toAddMonoidHom with hD  change D x = 0  rw [ hc, fixedBasisMap, map_sum]  refine Finset.sum_eq_zero (fun s _ => ?_)  rw [map_nsmul]  change (c s).val • (vElt α κ hκ s).val.1.coeff p = _  rw [vElt_coeff_full α κ hκ s hp]  have hdvd2 : 2 ^- κ - 1) ∣ 2 ^ α := pow_dvd_pow 2 (by omega)  have hz : (if (s : ) = 0 then (if p = 0 then (2 : ZMod q) else 0)      else if p = 2 ^- κ - 1) * (s : ) then 1           else if p = 2 ^ α - 2 ^- κ - 1) * (s : ) then -1 else 0) = 0 := by    split_ifs with h1 h2 h3 h4    · exact absurd (h2 ▸ dvd_zero _) hdvd    · rfl    · exact absurd _, h3 hdvd    · exact absurd (h4 ▸ Nat.dvd_sub hdvd2 _, rfl) hdvd    · rfl  rw [hz, smul_zero]
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/Lattices/CyclotomicRing/Subfield/Cardinality.lean:109-138

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