Expansions and contractions against orthonormal bases #
Finite sums over orthonormal bases recover linear maps from their matrix coefficients and contract tensors in orthonormal frames, for instance when tracing the Ricci tensor to scalar curvature:
OrthonormalBasis.sum_apply_mul_inner: a linear functionalℓsatisfies∑ i, ℓ (b i) * ⟪b i, a⟫ = ℓ a, the expansion ofainbpushed throughℓ.OrthonormalBasis.sum_inner_smul_rankOne: an operator is the sum of its matrix coefficients times the corresponding rank-one operators.OrthonormalBasis.sum_sum_inner_mul_inner_mul_inner: the two-basis expansion⟪x, T y⟫ = ∑ᵢ ∑ⱼ ⟪x, uᵢ⟫ ⟪uᵢ, T vⱼ⟫ ⟪vⱼ, y⟫.OrthonormalBasis.sum_inner_self:∑ i, ⟪b i, b i⟫ = card ι, the trace of the identity.OrthonormalBasis.inner_eq_sum_repr: the inner product in coordinates,⟪x, y⟫ = ∑ i, conj (b.repr x i) * b.repr y i.OrthonormalBasis.real_inner_fin_two: in a real plane with orthonormal basisb,⟪x, y⟫ = ⟪x, b₀⟫ ⟪y, b₀⟫ + ⟪x, b₁⟫ ⟪y, b₁⟫.Complex.isometryOfOrthonormal_symm_apply_eq_mk: in the same plane, the complex coordinate ofxgiven byComplex.isometryOfOrthonormal bis⟪x, b₀⟫ + i ⟪x, b₁⟫.
A linear functional is recovered from its values on an orthonormal basis:
∑ i, ℓ (b i) * ⟪b i, a⟫ = ℓ a.
The vectors of an orthonormal basis have unit length, so ∑ i, ⟪b i, b i⟫ = card ι.
The inner product in the coordinates of an orthonormal basis:
⟪x, y⟫ = ∑ i, conj (b.repr x i) * b.repr y i.
The real inner product in the two coordinates of an orthonormal basis b of a plane:
⟪x, y⟫ = ⟪x, b₀⟫ ⟪y, b₀⟫ + ⟪x, b₁⟫ ⟪y, b₁⟫.
Expansion in rank-one operators. For orthonormal bases (uᵢ) of E and (vⱼ) of F,
every C : F →L[𝕜] E is the sum of its matrix coefficients ⟪uᵢ, C vⱼ⟫ times the rank-one
operators rankOne 𝕜 uᵢ vⱼ : x ↦ ⟪vⱼ, x⟫ uᵢ.
Matrix coefficients of an inner product. For orthonormal bases (uᵢ) of E and (vⱼ) of
F, ⟪x, T y⟫ = ∑ᵢ ∑ⱼ ⟪x, uᵢ⟫ ⟪uᵢ, T vⱼ⟫ ⟪vⱼ, y⟫ for every linear map T : F →ₗ[𝕜] E.
The complex coordinate of x given by Complex.isometryOfOrthonormal b is
⟪x, b₀⟫ + i ⟪x, b₁⟫.