Trace H Xpow neg one sq
ArkLib.Lattices.CyclotomicModulus.traceH_Xpow_neg_one_sq
Plain-language statement
Generalized Claim 3: Tr_H(X^j) = 0 for any j with X^{2j} = -1 (equivalently 2j ≡ d mod 2d, i.e. j an odd multiple of d/2). Proven by a fixed-point-free involution on H: conjugation m ↦ -m sends X^{j·m} to its negation, since (X^{j·m})² = (X^{2j})^m = (-1)^m = -1 (m odd) and conjugation inverts a square-root of -1.
Exact Lean statement
theorem traceH_Xpow_neg_one_sq (α k j : ℕ) (hk2pow : ∃ κ, k = 2 ^ κ) (hk : 2 * k ∣ 2 ^ α)
(hsq : Xpow (powTwoCyclotomic (R := R) α) (2 * j) = -1) :
traceH α k (Xpow (powTwoCyclotomic (R := R) α) j) = 0Formal artifact
Lean source
theorem traceH_Xpow_neg_one_sq (α k j : ℕ) (hk2pow : ∃ κ, k = 2 ^ κ) (hk : 2 * k ∣ 2 ^ α) (hsq : Xpow (powTwoCyclotomic (R := R) α) (2 * j) = -1) : traceH α k (Xpow (powTwoCyclotomic (R := R) α) j) = 0 := by have hHlt : ∀ m, m ∈ Hexp α k → m < 2 ^ (α + 1) := by intro m hmem rw [Hexp, Finset.mem_biUnion] at hmem obtain ⟨a, _, hma⟩ := hmem rw [Finset.mem_insert, Finset.mem_singleton] at hma rcases hma with rfl | rfl <;> exact Nat.mod_lt _ (by positivity) have hmem : ∀ m, m ∈ Hexp α k → (conjExp α * m) % 2 ^ (α + 1) ∈ Hexp α k := by intro m hm rw [← Hexp_generator_smul α k (conjExp α) hk2pow hk (Or.inl rfl)] exact Finset.mem_image_of_mem _ hm rw [traceH_Xpow' α k j] refine Finset.sum_involution (fun m _ => (conjExp α * m) % 2 ^ (α + 1)) ?_ ?_ hmem ?_ · intro m hm have hmodd : Odd m := Hexp_odd_mem α k m hm have hstep : Xpow (powTwoCyclotomic (R := R) α) (j * ((conjExp α * m) % 2 ^ (α + 1))) = Xpow (powTwoCyclotomic (R := R) α) ((j * m) * conjExp α) := by apply Xpow_congr_mod exact calc j * ((conjExp α * m) % 2 ^ (α + 1)) ≡ j * (conjExp α * m) [MOD 2 ^ (α + 1)] := Nat.ModEq.mul_left _ (Nat.mod_modEq _ _) _ = (j * m) * conjExp α := by ring have hsqm : Xpow (powTwoCyclotomic (R := R) α) (2 * (j * m)) = -1 := by rw [show 2 * (j * m) = (2 * j) * m from by ring, Xpow_mul, hsq, hmodd.neg_one_pow] rw [hstep, Xpow_mul_conjExp α (j * m) hsqm, add_neg_cancel] · intro m hm _ hgm have hmodd : Odd m := Hexp_odd_mem α k m hm have hmlt : m < 2 ^ (α + 1) := hHlt m hm have hα : 1 ≤ α := by obtain ⟨κ, rfl⟩ := hk2pow have := succ_le_of_two_mul_two_pow_dvd hk; omega have hcong : conjExp α * m ≡ m [MOD 2 ^ (α + 1)] := by rw [Nat.ModEq, hgm, Nat.mod_eq_of_lt hmlt] have hdvd : 2 ^ (α + 1) ∣ 2 * m := by have e1 : conjExp α * m + m = 2 ^ (α + 1) * m := by have hc : conjExp α + 1 = 2 ^ (α + 1) := by have h1 : 1 ≤ 2 ^ (α + 1) := Nat.one_le_two_pow rw [conjExp]; omega calc conjExp α * m + m = (conjExp α + 1) * m := by ring _ = 2 ^ (α + 1) * m := by rw [hc] have h2m : 2 * m ≡ 0 [MOD 2 ^ (α + 1)] := calc 2 * m = m + m := by ring _ ≡ conjExp α * m + m [MOD 2 ^ (α + 1)] := Nat.ModEq.add_right m hcong.symm _ = 2 ^ (α + 1) * m := e1 _ ≡ 0 [MOD 2 ^ (α + 1)] := (Nat.modEq_zero_iff_dvd).mpr ⟨m, rfl⟩ exact (Nat.modEq_zero_iff_dvd).mp h2m have hdvd2 : 2 ^ α ∣ m := by have he : 2 ^ (α + 1) = 2 * 2 ^ α := by rw [pow_succ]; ring rw [he] at hdvd exact (Nat.mul_dvd_mul_iff_left (by norm_num : 0 < 2)).mp hdvd have h2m : 2 ∣ m := dvd_trans (dvd_pow_self 2 (by omega : α ≠ 0)) hdvd2 obtain ⟨t, ht⟩ := hmodd omega · intro m hm have hmlt : m < 2 ^ (α + 1) := hHlt m hm have hcsq : conjExp α * conjExp α ≡ 1 [MOD 2 ^ (α + 1)] := by have hid : conjExp α * conjExp α = 2 ^ (α + 1) * (2 ^ (α + 1) - 2) + 1 := by have hM2 : 2 ≤ 2 ^ (α + 1) := by calc 2 = 2 ^ 1 := rfl _ ≤ 2 ^ (α + 1) := Nat.pow_le_pow_right (by norm_num) (by omega) obtain ⟨t, ht⟩ := Nat.exists_eq_add_of_le hM2 rw [conjExp, ht] simp only [show 2 + t - 1 = t + 1 from by omega, show 2 + t - 2 = t from by omega] ring rw [Nat.ModEq, hid, Nat.mul_add_mod] have key : conjExp α * ((conjExp α * m) % 2 ^ (α + 1)) ≡ m [MOD 2 ^ (α + 1)] := calc conjExp α * ((conjExp α * m) % 2 ^ (α + 1)) ≡ conjExp α * (conjExp α * m) [MOD 2 ^ (α + 1)] := Nat.ModEq.mul_left _ (Nat.mod_modEq _ _) _ = (conjExp α * conjExp α) * m := by ring _ ≡ 1 * m [MOD 2 ^ (α + 1)] := Nat.ModEq.mul_right m hcsq _ = m := one_mul m have heq : (conjExp α * ((conjExp α * m) % 2 ^ (α + 1))) % 2 ^ (α + 1) = m % 2 ^ (α + 1) := key rw [heq, Nat.mod_eq_of_lt hmlt]- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/Lattices/CyclotomicRing/Subfield/TraceVanishing.lean:249-323
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.