Principal angles between two subspaces #
For subspaces U and V of an inner product space with orthogonal projections P_U and P_V,
the relative position of U and V is recorded by the two cross-projections
- the cosine map
P_V P_U, which projects vectors ofUontoV, and - the directed sine map
P_{Vᗮ} P_U, which keeps the component of a vector ofUorthogonal toV,
together with the double-angle operator 2 P_{Uᗮ} P_V P_U, the off-diagonal U → Uᗮ block of
2 P_V, in which sin 2Θ bounds are stated.
In finite dimension the singular values of the cosine map and of the directed sine map are the
principal cosines and the principal sines of U and V, each listed in nonincreasing order
and padded with zeros, and the principal angles are the arcsines of the principal sines, so they
lie in [0, π/2]. These are the quantities in which perturbation bounds for spectral subspaces
(the Davis–Kahan sin Θ theorems) are stated; the operator norm of the directed sine map is the
directed gap Submodule.directedProjectionGap U V.
The map Submodule.sinThetaEmbedding Z U restricts the directed sine projection to a
subspace Z, so it has source Z rather than the ambient space. Its singular values are
the directed principal sines, including the zero tail.
The principal cosines are symmetric in U and V. The principal sines are symmetric only when
U and V have the same finite dimension (Submodule.principalSines_comm), the main result of
this file. Without the dimension hypothesis the statement fails: for a line U inside a plane
V, all principal sines of U and V vanish but one principal sine of V and U is 1.
When U is the range of an isometry X : F →L[𝕜] E, for instance the trial map of the
Rayleigh–Ritz procedure, the angles are read off X directly: the sine embedding P_{Vᗮ} X and
the cosine embedding P_V X have as singular values the principal sines and cosines of U and
V, and the operator norm of the sine embedding is the directed gap from U to V.
Main definitions #
Submodule.cosThetaMap U V: the cosine mapP_V P_U.Submodule.sinThetaMap U V: the directed sine mapP_{Vᗮ} P_U.Submodule.sinThetaEmbedding Z U: the projection ontoUᗮrestricted toZ, viewed as a continuous linear map fromZinto the ambient space.Submodule.sinTwoAngleOperator U V: the double-angle operator2 P_{Uᗮ} P_V P_U.Submodule.principalCosines U V,Submodule.principalSines U V: the singular values of the cosine map and of the directed sine map.Submodule.principalAngles U V: the arcsines of the principal sines.
Main results #
Submodule.sinThetaEmbedding_apply,Submodule.singularValues_sinThetaEmbedding: the sine embedding acts by projection ontoUᗮand has directed principal sines as its singular values, without an equal-dimension assumption.Submodule.principalSines_range_eq_singularValues,Submodule.principalCosines_range_eq_singularValues: for an isometryX, the principal sines and cosines ofrange XandVare the singular values of the sine and cosine embeddings.Submodule.norm_starProjection_orthogonal_comp: the operator norm of the sine embedding of an isometry is the directed gap.Submodule.principalCosines_comm: the principal cosines are symmetric inUandV.Submodule.principalSines_comm,Submodule.principalAngles_comm: for subspaces of the same dimension, the principal sines and the principal angles are symmetric inUandV.Submodule.principalSines_eq_zero_iff,Submodule.principalAngles_eq_zero_iff: all principal angles ofUandVvanish exactly whenU ≤ V; in particular the principal angles of a subspace with itself vanish (Submodule.principalAngles_self).Submodule.principalCosines_eq_zero_iff: all principal cosines vanish exactly whenU ⟂ V.Submodule.sin_principalAngles: the sine of thei-th principal angle is thei-th principal sine.Submodule.principalSines_zero: the largest principal sine is the directed gap‖P_{Vᗮ} P_U‖; henceSubmodule.forall_principalSines_lt_iff: all principal sines are belowcexactly when the directed gap is.Submodule.ncard_ofPred_principalAngles_eq_pi_div_two: the number of principal angles fromUtoVequal toπ/2isdim (U ⊓ Vᗮ); henceSubmodule.forall_principalAngles_lt_pi_div_two_iff: all of them are strictly belowπ/2exactly when no nonzero vector ofUis orthogonal toV.Submodule.directedProjectionGap_lt_one_iff: the directed gap fromUtoVis less than1exactly when no nonzero vector ofUis orthogonal toV.Submodule.forall_principalAngles_lt_iff: all principal angles are below a thresholdθ ∈ [-π/2, π/2]exactly when the directed gap is less thansin θ; in particular (Submodule.forall_principalAngles_lt_pi_div_four_iff) they are belowπ/4exactly when the directed gap is less than√2/2.Submodule.norm_sinTwoAngleOperator_le_one: the double-angle operator is a contraction, andSubmodule.sinTwoAngleOperator_eq_zero_iff: it vanishes exactly whenP_UandP_Vcommute.
References #
- Å. Björck, G. H. Golub, Numerical methods for computing angles between linear subspaces, Math. Comp. 27 (1973), 579–594.
- C. Davis, W. M. Kahan, The rotation of eigenvectors by a perturbation. III, SIAM J. Numer. Anal. 7 (1970), 1–46.
- R. Bhatia, Matrix Analysis, Graduate Texts in Mathematics 169, Springer (1997), §VII.1.
The cross-projections #
The cosine map P_V P_U of two subspaces with orthogonal projections.
Instances For
The directed sine map P_{Vᗮ} P_U of two subspaces with orthogonal projections: it keeps the
component orthogonal to V of the projection of a vector onto U.
Instances For
The cosine and sine maps split the projection onto U: P_V P_U + P_{Vᗮ} P_U = P_U.
The operator norm of the directed sine map is the directed gap from U to V.
The cosine map vanishes exactly when U and V are orthogonal.
The directed sine map vanishes exactly when U ≤ V.
The double-angle operator #
The double-angle operator 2 P_{Uᗮ} P_V P_U of two subspaces with orthogonal projections: the
off-diagonal U → Uᗮ block of 2 P_V relative to E = U ⊕ Uᗮ. It is the operator in which
sin 2Θ perturbation bounds for spectral subspaces are stated.
Instances For
The double-angle operator is twice the directed sine map from V to U composed with the
cosine map from U to V: 2 P_{Uᗮ} P_V P_U = 2 (P_{Uᗮ} P_V) (P_V P_U).
The double-angle operator is a contraction: ‖2 P_{Uᗮ} P_V P_U‖ ≤ 1, the operator form of
sin 2θ ≤ 1.
The double-angle operator vanishes when U ≤ V.
The double-angle operator vanishes when U and V are orthogonal.
The double-angle operator vanishes exactly when the orthogonal projections onto U and V
commute.
Principal cosines, sines and angles #
In a finite-dimensional space every submodule has an orthogonal projection
(Submodule.HasOrthogonalProjection.ofCompleteSpace), so the principal cosines, sines and angles
take their two subspaces without that hypothesis.
The principal cosines of U and V: the singular values of the cosine map P_V P_U, in
nonincreasing order and padded with zeros.
Instances For
The principal sines of U and V: the singular values of the directed sine map
P_{Vᗮ} P_U, in nonincreasing order and padded with zeros.
Instances For
The principal angles of U and V: the arcsines of the principal sines. They lie in
[0, π/2] and are listed in nonincreasing order.
Instances For
The sine of the i-th principal angle is the i-th principal sine.
The largest principal sine from U to V is the directed gap ‖P_{Vᗮ} P_U‖.
All principal sines from U to V are below c exactly when the largest one, the directed
gap ‖P_{Vᗮ} P_U‖, is.
There are at most dim U nonzero principal cosines.
There are at most dim U nonzero principal sines.
There are at most dim U nonzero principal angles.
The principal cosines of U and V all vanish exactly when U and V are orthogonal.
The principal sines of U and V all vanish exactly when U ≤ V.
The principal angles of U and V all vanish exactly when U ≤ V.
The principal angles of a subspace with itself vanish.
The principal cosines are symmetric in the two subspaces.
Symmetry of the principal sines #
Equal-rank symmetry of the principal sines. For subspaces of the same dimension, the
principal sines of U and V are those of V and U.
Equal-rank symmetry of the principal angles. For subspaces of the same dimension, the
principal angles of U and V are those of V and U.
Right principal angles #
Counting right principal angles. The number of principal angles from U to V equal to
π/2 is the dimension of U ⊓ Vᗮ, the subspace of vectors of U orthogonal to V.
All principal angles from U to V are strictly below π/2 exactly when no nonzero vector
of U is orthogonal to V.
For a threshold θ ∈ [-π/2, π/2], all principal angles from U to V are strictly below
θ exactly when the directed gap ‖P_{Vᗮ} P_U‖, the largest principal sine, is less than
sin θ.
All principal angles from U to V are strictly below π/2 exactly when the directed gap
‖P_{Vᗮ} P_U‖, the largest principal sine, is less than 1.
In finite dimension, the directed gap ‖P_{Vᗮ} P_U‖ from U to V is less than 1 exactly
when no nonzero vector of U is orthogonal to V.
All principal angles from U to V are strictly below π/4 exactly when the directed gap
‖P_{Vᗮ} P_U‖ is less than √2/2.
Angles of the range of an isometry #
The operator norm of the sine embedding P_{Vᗮ} X of an isometry X is the directed gap
from range X to V.
The principal cosines of the range of an isometry X and of V are the singular values of
the cosine embedding P_V X.
The principal sines of the range of an isometry X and of V are the singular values of the
sine embedding P_{Vᗮ} X.
Directed sine embedding of a subspace #
The directed sine embedding from Z to U: orthogonally project Z onto Uᗮ,
viewed as a map into the ambient space.
Instances For
The directed sine embedding is orthogonal projection onto Uᗮ
composed with the inclusion of Z into E.
The directed sine embedding acts by projection onto Uᗮ.
The singular values of the directed sine embedding are the principal sines
from Z to U, including the zero tail. No equality of subspace ranks is required.
The ambient adjoint of the trial map acts on a sine left singular vector by the same singular relation, including at a zero singular value.
Adapted from the Kitware DKPS formalization,
DavisKahan/FiniteDimensional/TanTheta/RitzResidual.lean (Jon Crall and GPT 5.6 High;
Apache-2.0).
Each Ritz vector X vᵢ is orthogonal to the unnormalized residual direction
y_j - σ_j • X v_j.
For nonzero sines, the unnormalized residual directions yᵢ - σᵢ • X vᵢ are pairwise
orthogonal, with squared norm 1 - σᵢ².