Characterization and invariance of the Gram–Schmidt process #
Mathlib's InnerProductSpace.gramSchmidt 𝕜 f orthogonalizes a family f : ι → E indexed by a
locally finite linear order. This file adds the facts about it that lattice basis reduction uses.
gramSchmidt 𝕜 f i is the unique vector that differs from f i by an element of the span of the
earlier vectors and is orthogonal to that span
(InnerProductSpace.eq_gramSchmidt_of_sub_mem_of_mem_orthogonal). It follows that changing each
f i by a vector in the span of the earlier ones leaves the process unchanged
(InnerProductSpace.gramSchmidt_eq_of_sub_mem_span, InnerProductSpace.gramSchmidt_update_add).
Likewise each output vector depends only on the inputs up to its index
(InnerProductSpace.gramSchmidt_congr_Iic), and the process commutes with restriction to an
initial segment (InnerProductSpace.gramSchmidt_comp).
The coefficient InnerProductSpace.gramSchmidtCoeff 𝕜 f i j = ⟪f*ⱼ, fᵢ⟫ / ‖f*ⱼ‖², where
f*ⱼ = gramSchmidt 𝕜 f j, gives fᵢ = f*ᵢ + ∑_{j<i} μᵢⱼ f*ⱼ
(InnerProductSpace.gramSchmidt_add_sum_coeff). This is the matrix μ of
[LLL82], (1.2)–(1.3). The Gram determinant is the product of the squared
lengths of the orthogonalized vectors (InnerProductSpace.det_gram_eq_prod_norm_gramSchmidt_sq),
and ‖f*ᵢ‖ ≤ ‖fᵢ‖ (InnerProductSpace.norm_gramSchmidt_le). Every nonzero integer combination
of the fᵢ is at least as long as some f*ᵢ
(InnerProductSpace.exists_norm_gramSchmidt_le_of_mem_span_int), which is the first step of the
proof of [LLL82], (1.11). None of these statements assumes linear independence.
Main definitions #
InnerProductSpace.gramSchmidtCoeff: the Gram–Schmidt coefficientμᵢⱼ.
Main results #
InnerProductSpace.eq_gramSchmidt_of_sub_mem_of_mem_orthogonal: the characterization ofgramSchmidt 𝕜 f i.InnerProductSpace.gramSchmidt_eq_of_sub_mem_span: invariance under unitriangular changes.InnerProductSpace.gramSchmidt_comp: restriction to an initial segment.InnerProductSpace.det_gram_eq_prod_norm_gramSchmidt_sq:det (gram f) = ∏ ‖f*ᵢ‖².InnerProductSpace.exists_norm_gramSchmidt_le_of_mem_span_int: nonzero integer combinations are at least as long as somef*ᵢ.
References #
f*ᵢ - fᵢ lies in the span of the earlier vectors.
f*ᵢ is orthogonal to the span of the earlier vectors.
gramSchmidt 𝕜 f i is the unique vector that differs from f i by an element of the span
of the earlier vectors and is orthogonal to that span.
Changing each vector by an element of the span of the earlier ones does not change the Gram–Schmidt orthogonalization.
The Gram–Schmidt coefficient μᵢⱼ = ⟪f*ⱼ, fᵢ⟫ / ‖f*ⱼ‖² of [LLL82], (1.2).
fᵢ = f*ᵢ + ∑_{j<i} μᵢⱼ f*ⱼ, [LLL82], (1.3).
⟪f*ᵢ, fᵢ⟫ = ‖f*ᵢ‖².
The diagonal coefficient μᵢᵢ is 1 when f*ᵢ ≠ 0.
The coefficients above the diagonal vanish: μⱼₗ = 0 for j < l.
Orthogonalization does not increase lengths: ‖f*ᵢ‖ ≤ ‖fᵢ‖.
⟪f*ᵢ, ∑ⱼ cⱼ fⱼ⟫ = cᵢ ‖f*ᵢ‖² for integer coefficients that vanish above i.
If x = ∑ cⱼ fⱼ with integer coefficients whose last nonzero entry is at i, then
‖f*ᵢ‖ ≤ ‖x‖.
Every nonzero vector of the integer span of a finite family f is at least as long as some
Gram–Schmidt vector f*ᵢ.
Gram–Schmidt vectors depend only on the vectors up to their index.
Gram–Schmidt commutes with restriction along an order embedding onto an initial segment.
The Gram determinant is the product of the squared lengths of the Gram–Schmidt vectors.
Adding to f i a vector in the span of the earlier vectors leaves all Gram–Schmidt vectors
unchanged.