V Elt coeff full
ArkLib.Lattices.CyclotomicModulus.vElt_coeff_full
Plain-language statement
Full coefficient formula for the basis element v_j. For every position p < d, the p-th coefficient of v_j = X^{(d/2k)·j} + σ_{-1}(X^{(d/2k)·j}) is: 2 at p = 0 when j = 0; otherwise +1 at p = (d/2k)·j, -1 at the complementary position p = d - (d/2k)·j, and 0 elsewhere. This extends vElt_coeff (which only covers the positions `...
Exact Lean statement
theorem vElt_coeff_full (α κ : ℕ) (hκ : κ + 1 ≤ α) (j : Fin (2 ^ κ)) {p : ℕ} (hp : p < 2 ^ α) :
(vElt α κ hκ j).val.1.coeff p
= if (j : ℕ) = 0 then (if p = 0 then (2 : R) else 0)
else if p = 2 ^ (α - κ - 1) * (j : ℕ) then 1
else if p = 2 ^ α - 2 ^ (α - κ - 1) * (j : ℕ) then -1 else 0Formal artifact
Lean source
theorem vElt_coeff_full (α κ : ℕ) (hκ : κ + 1 ≤ α) (j : Fin (2 ^ κ)) {p : ℕ} (hp : p < 2 ^ α) : (vElt α κ hκ j).val.1.coeff p = if (j : ℕ) = 0 then (if p = 0 then (2 : R) else 0) else if p = 2 ^ (α - κ - 1) * (j : ℕ) then 1 else if p = 2 ^ α - 2 ^ (α - κ - 1) * (j : ℕ) then -1 else 0 := by have hα : 1 ≤ α := by omega have hhalf : (2 : ℕ) ^ (α - 1) = 2 ^ (α - κ - 1) * 2 ^ κ := by rw [← pow_add]; congr 1; omega have hd2 : (2 : ℕ) ^ α = 2 * 2 ^ (α - 1) := by rw [← pow_succ']; congr 1; omega rw [vElt_coe, Rq.add_val, CPolynomial.coeff_add] set e := 2 ^ (α - κ - 1) * (j : ℕ) with he_def have hej : e < 2 ^ (α - 1) := by rw [he_def, hhalf]; exact mul_lt_mul_of_pos_left j.isLt (by positivity) have hejα : e < 2 ^ α := by omega rw [Xpow_coeff_of_lt α hejα p] by_cases hj0 : (j : ℕ) = 0 · have he0 : e = 0 := by rw [he_def, hj0, Nat.mul_zero] rw [if_pos hj0, he0, conjAut_Xpow, Nat.zero_mul, Xpow_coeff_of_lt α (by positivity) p] split_ifs with h <;> norm_num · have hepos : 0 < e := by rw [he_def]; exact Nat.mul_pos (by positivity) (Nat.pos_of_ne_zero hj0) rw [if_neg hj0, conjAut_Xpow_eq_neg α hepos hejα, Rq.neg_val, CPolynomial.coeff_neg, Xpow_coeff_of_lt α (by omega : 2 ^ α - e < 2 ^ α) p] split_ifs with h1 h2 <;> first | (exfalso; omega) | ring- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/Lattices/CyclotomicRing/Subfield/Basis.lean:557-579
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.