Documentation

CslibFrontier.Algorithms.LatticeReduction.Reduced

LLL-reduced bases and the approximation to the shortest vector #

A family b : Fin n → E in a real inner product space has Gram–Schmidt vectors b*ᵢ = gramSchmidt ℝ b i and coefficients μᵢⱼ = gramSchmidtCoeff ℝ b i j. Following [LLL82], (1.4)–(1.5), with the constant 3/4 replaced by a parameter δ as allowed by the remark after their (1.5), b is δ-reduced (Cslib.Algorithms.LatticeReduction.IsReduced δ b) when

For 1/4 < δ, consecutive Gram–Schmidt lengths then satisfy ‖b*ᵢ‖² ≤ 4/(4δ-1) · ‖b*ᵢ₊₁‖² (norm_sq_gramSchmidt_le_of_exchangeCondAt), the first step of the proof of Proposition (1.6). Chaining these steps and using that every nonzero lattice vector is at least as long as some b*ᵢ gives Proposition (1.11): for b : Fin (n + 1) → E and every nonzero x in the integer span of b, ‖b₀‖² ≤ (4/(4δ-1))ⁿ ‖x‖² (Cslib.Algorithms.LatticeReduction.IsReduced.norm_sq_le). For δ = 3/4 this is ‖b₀‖ ≤ 2^{n/2} ‖x‖ (Cslib.Algorithms.LatticeReduction.IsReduced.norm_le_sqrt_two_pow_mul), i.e. b₀ approximates the shortest nonzero lattice vector within a factor 2^{(d-1)/2} in dimension d = n + 1.

The statements hold in an arbitrary real inner product space and do not assume that b is linearly independent. The source works with b a basis of a lattice in ℝⁿ.

Main definitions #

Main results #

References #

Size reduction, condition (1.4) of [LLL82]: |μᵢⱼ| ≤ 1/2 for j < i.

The exchange condition (1.5) of [LLL82] with parameter δ in place of 3/4, at indices i and j: δ ‖b*ᵢ‖² ≤ ‖b*ⱼ + μⱼᵢ b*ᵢ‖². It is used at j = i + 1.

A δ-reduced family ([LLL82], (1.4)–(1.5)): size reduced, with the exchange condition at every pair of consecutive indices.

  • sizeReduced : IsSizeReduced b

    Condition (1.4).

  • exchange (i j : Fin n) : ↑j = ↑i + 1 → ExchangeCondAt δ b i j

    Condition (1.5) at every pair of consecutive indices.

The first step of the proof of (1.6) in [LLL82], for δ > 1/4: size reduction and the exchange condition give ‖b*ᵢ‖² ≤ 4/(4δ-1) · ‖b*ⱼ‖².

theorem Cslib.Algorithms.LatticeReduction.IsReduced.norm_sq_gramSchmidt_chain {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {n : ℕ} {δ : ℝ} {b : Fin n → E} (hb : IsReduced δ b) (hδ : 1 / 4 < δ) (j : Fin n) (k : ℕ) (hk : ↑j + k < n) :

Iterating the previous step: ‖b*ⱼ‖² ≤ (4/(4δ-1))ᵏ ‖b*ⱼ₊ₖ‖² in a δ-reduced family.

theorem Cslib.Algorithms.LatticeReduction.IsReduced.norm_sq_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {n : ℕ} {δ : ℝ} {b : Fin (n + 1) → E} (hb : IsReduced δ b) (hδ : 1 / 4 < δ) (hδ1 : δ ≤ 1) {x : E} (hx : x ∈ Submodule.span ℤ (Set.range b)) (hx0 : x ≠ 0) :
‖b 0‖ ^ 2 ≤ (4 / (4 * δ - 1)) ^ n * ‖x‖ ^ 2

Proposition (1.11) of [LLL82] for a parameter δ ∈ (1/4, 1] in place of 3/4 (the remark after their (1.5) allows 1/4 < δ < 1, and the remark after (1.6) replaces the powers of 2 by powers of 4/(4δ-1)): if b : Fin (n + 1) → E is δ-reduced, then ‖b₀‖² ≤ (4/(4δ-1))ⁿ ‖x‖² for every nonzero x in the integer span of b.

theorem Cslib.Algorithms.LatticeReduction.IsReduced.norm_le_sqrt_two_pow_mul {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {n : ℕ} {b : Fin (n + 1) → E} (hb : IsReduced (3 / 4) b) {x : E} (hx : x ∈ Submodule.span ℤ (Set.range b)) (hx0 : x ≠ 0) :

Proposition (1.11) of [LLL82], δ = 3/4: the first vector of a reduced family b : Fin (n + 1) → E satisfies ‖b₀‖ ≤ (√2)ⁿ ‖x‖ for every nonzero x in the integer span of b.