Pack Exp lt
ArkLib.Lattices.CyclotomicModulus.packExp_lt
Plain-language statement
Packing exponents stay in range: for 2·2^κ ∣ 2^α, every packed exponent packExp α (2^κ) j lands below the ring dimension d = 2^α, for j ranging over the packed index set Fin (d/2^κ).
Exact Lean statement
theorem packExp_lt (α κ : ℕ) (hk : 2 * 2 ^ κ ∣ 2 ^ α) (j : Fin (2 ^ α / 2 ^ κ)) :
packExp α (2 ^ κ) (j : ℕ) < 2 ^ αFormal artifact
Lean source
theorem packExp_lt (α κ : ℕ) (hk : 2 * 2 ^ κ ∣ 2 ^ α) (j : Fin (2 ^ α / 2 ^ κ)) : packExp α (2 ^ κ) (j : ℕ) < 2 ^ α := by have hκ : κ + 1 ≤ α := succ_le_of_two_mul_two_pow_dvd hk have hMle : 2 ^ (α - κ - 1) ≤ 2 ^ (α - 1) := Nat.pow_le_pow_right (by norm_num) (by omega) have hd2 : (2 : ℕ) ^ α = 2 * 2 ^ (α - 1) := by rw [← pow_succ']; congr 1; omega have hN : 2 ^ α / 2 ^ κ = 2 * 2 ^ (α - κ - 1) := by have hfac : (2 : ℕ) ^ κ * (2 * 2 ^ (α - κ - 1)) = 2 ^ α := by rw [← Nat.mul_assoc, show (2 : ℕ) ^ κ * 2 = 2 ^ (κ + 1) from by rw [pow_succ], ← pow_add] congr 1; omega rw [← hfac, Nat.mul_div_cancel_left _ (by positivity : 0 < 2 ^ κ)] have hMM : 2 ^ α / (2 * 2 ^ κ) = 2 ^ (α - κ - 1) := by rw [show 2 * 2 ^ κ = 2 ^ (κ + 1) from by rw [pow_succ]; ring, Nat.pow_div (by omega) (by norm_num), show α - (κ + 1) = α - κ - 1 from by omega] have hj : (j : ℕ) < 2 * 2 ^ (α - κ - 1) := hN ▸ j.isLt unfold packExp; rw [hMM]; split_ifs with h <;> omega- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/Lattices/CyclotomicRing/Subfield/Packing.lean:62-76
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.