All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Four pow i geom zero

ArkLib.Lattices.CyclotomicModulus.four_pow_i_geom_zero

Plain-language statement

The geometric sum ∑_{j<d/2k} (X^{4ki})^j = 0 when d/2k ∤ i. The ratio r = X^{4ki} satisfies r^{d/2k} = X^{2di} = 1, and r - 1 is a unit (Xpow_sub_one_isUnit, since X^{4ki·2^t} = -1 for a suitable t extracted from the 2-adic valuation of i).

Exact Lean statement

theorem four_pow_i_geom_zero (α κ i : ℕ) (h2 : (2 : R) ≠ 0) (hκ : κ + 1 ≤ α)
    (hi0 : ¬ 2 ^ (α - κ - 1) ∣ i) :
    ∑ j ∈ Finset.range (2 ^ (α - κ - 1)),
      (Xpow (powTwoCyclotomic (R := R) α) (4 * 2 ^ κ * i)) ^ j = 0

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem four_pow_i_geom_zero (α κ i : ) (h2 : (2 : R)  0) (hκ : κ + 1  α)    (hi0 : ¬ 2 ^- κ - 1) ∣ i) :    ∑ j  Finset.range (2 ^- κ - 1)),      (Xpow (powTwoCyclotomic (R := R) α) (4 * 2 ^ κ * i)) ^ j = 0 := by  apply geom_sum_eq_zero_of_isUnit  · rw [ Xpow_mul]    have he : 4 * 2 ^ κ * i * 2 ^- κ - 1) = 2 ^+ 1) * i := by      have h4 : (4 : ) * 2 ^ κ * 2 ^- κ - 1) = 2 ^+ 1) := by        rw [show (4 : ) = 2 ^ 2 from rfl, mul_assoc,  pow_add,  pow_add]; congr 1; omega      calc 4 * 2 ^ κ * i * 2 ^- κ - 1) = (4 * 2 ^ κ * 2 ^- κ - 1)) * i := by ring        _ = 2 ^+ 1) * i := by rw [h4]    rw [he, Xpow_mul, Xpow_conductor, one_pow]  · have hine : i  0 := by rintro rfl; exact hi0 (dvd_zero _)    have hα2 : κ + 2  α := by      rcases Nat.lt_or_ge α (κ + 2) with h | h      · exact absurd (show 2 ^- κ - 1) ∣ i from by          rw [show α - κ - 1 = 0 from by omega, pow_zero]; exact one_dvd i) hi0      · exact h    obtain w, i', hi'odd, hieq := Nat.exists_eq_two_pow_mul_odd hine    have hw : w  α - κ - 2 := by      by_contra hge      exact hi0 (hieq ▸ Dvd.dvd.mul_right (pow_dvd_pow 2 (by omega : α - κ - 1  w)) i')    apply Xpow_sub_one_isUnit α h2 (t := α - κ - 2 - w)    have he2 : 4 * 2 ^ κ * i * 2 ^- κ - 2 - w) = 2 ^ α * i' := by      rw [hieq, show 4 * 2 ^ κ * (2 ^ w * i') * 2 ^- κ - 2 - w)          = (4 * 2 ^ κ * 2 ^ w * 2 ^- κ - 2 - w)) * i' from by ring]      congr 1      rw [show (4 : ) = 2 ^ 2 from rfl,  pow_add,  pow_add,  pow_add]; congr 1; omega    rw [he2, Xpow_mul, Xpow_natDegree, hi'odd.neg_one_pow]
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/Lattices/CyclotomicRing/Subfield/TraceVanishing.lean:75-103

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