\chapter{Optimal frames inside a spherical cap} \section{The finite-dimensional problem} The geometry has reduced the reachable rays to a small angular region around $u$. Before returning to loops, we solve the resulting frame-design problem exactly. This part uses ordinary Euclidean linear algebra. The appearance of a regular simplex is consistent with classical tight-frame theory \cite{benedetto-fickus}; the proof below supplies the cap constraint and all constants needed here. Fix $0<\alpha\le\arccos(1/\sqrt d)$ and unit vectors $v_1,\ldots,v_d$ with \begin{equation}\label{eq:cap} \ip u{v_i}\ge\cos\alpha. \end{equation} Let $V=[v_i]$, $S=VV^{\mathsf T}$, and $G_V=V^{\mathsf T}V$. The two positive semidefinite matrices have the same eigenvalues and trace $d$. Write \begin{equation}\label{eq:capblock} S=\begin{pmatrix}a&q^{\mathsf T}\\q&B\end{pmatrix} \quad\text{relative to }\R u\oplus u^\perp. \end{equation} Then \begin{equation}\label{eq:captraces} a=\sum_i\ip u{v_i}^2\ge d\cos^2\alpha,\qquad \tr B=d-a\le d\sin^2\alpha. \end{equation} Put \begin{equation}\label{eq:capc} c_\alpha=\frac d{d-1}\sin^2\alpha. \end{equation} \section{The least-eigenvalue optimum} \begin{theorem}[Cap E-optimality and rigidity]\label{thm:capE} Under \eqref{eq:cap}, \begin{equation}\label{eq:capE} \lambda_{\min}(G_V)\le c_\alpha. \end{equation} The bound is attained by $v_i=\cos\alpha\,u+\sin\alpha\,z_i$, where the $z_i$ form a regular simplex in $u^\perp$. If $0<\alpha<\arccos(1/\sqrt d)$, every maximizing frame has this form, up to an orthogonal transformation fixing $u$ and a permutation of its columns. \end{theorem} \begin{proof} The trace of $S$ on the $(d-1)$-dimensional subspace $u^\perp$ is at most $d\sin^2\alpha$. Its average Rayleigh quotient is therefore at most $c_\alpha$. The least Rayleigh quotient on the entire space cannot exceed this average. This proves the inequality. For the displayed simplex frame, the eigenvalues are $d\cos^2\alpha$ and $c_\alpha$ with multiplicity $d-1$. The cap threshold ensures $d\cos^2\alpha\ge c_\alpha$, proving attainment. For rigidity, equality implies $S-c_\alpha\Id\succeq0$ and $\tr(P_{u^\perp}(S-c_\alpha\Id))=0$. A positive semidefinite matrix with zero trace on a subspace vanishes on that subspace, including its cross block. Hence $B=c_\alpha\Id$ and $q=0$. Equality in \eqref{eq:captraces} forces every vector to be on the cap rim: $\ip u{v_i}=\cos\alpha$. Write $v_i=\cos\alpha\,u+\sin\alpha\,z_i$. The equations $q=0$ and $B=c_\alpha\Id$ imply $\sum_i z_i=0$ and $\sum_i z_iz_i^{\mathsf T}=d\Id/(d-1)$ on $u^\perp$. The Gram matrix of the $z_i$ has kernel containing $\mathbf1$, rank $d-1$, and all nonzero eigenvalues $d/(d-1)$. It is consequently $\frac d{d-1}(\Id-\mathbf1\mathbf1^{\mathsf T}/d)$, which is exactly the regular-simplex Gram matrix. Gram equality gives the stated orthogonal uniqueness. \end{proof} \section{Determinant and inverse-trace optimality} The same frame optimizes two further criteria. These are useful when total uncertainty volume or average linear reconstruction error is the objective, rather than the worst direction. \begin{theorem}[Cap D- and A-optimality]\label{thm:capDA} Under the cap assumption, \begin{equation}\label{eq:capD} \det G_V\le d\cos^2\alpha\left( \frac d{d-1}\sin^2\alpha\right)^{d-1}. \end{equation} For invertible $V$, \begin{equation}\label{eq:capA} \tr(G_V^{-1})\ge \frac1{d\cos^2\alpha}+\frac{(d-1)^2}{d\sin^2\alpha}. \end{equation} The simplex-rim frame attains both bounds. In the strict cap regime their maximizers or minimizers have the same rigidity as in Theorem~\ref{thm:capE}. \end{theorem} \begin{proof} If $S$ is singular the determinant statement is immediate. Otherwise the Schur complement gives \[ \det S=a\det(B-qq^{\mathsf T}/a) \le a\left(\frac{d-a}{d-1}\right)^{d-1}. \] The inequality uses the arithmetic--geometric mean of the positive eigenvalues and discards the nonnegative quantity $|q|^2/a$ from the trace. The function on the right is decreasing for $a\ge1$. Since $a\ge d\cos^2\alpha\ge1$, its maximum occurs at the smallest permitted $a$, which gives \eqref{eq:capD}. For the inverse trace, the block inverse or Schur-complement inequalities give \[ \tr(S^{-1})\ge\frac1a+\tr(B^{-1}) \ge\frac1a+\frac{(d-1)^2}{d-a}. \] The last function is increasing for $a\ge1$. Substituting $a=d\cos^2\alpha$ proves \eqref{eq:capA}. Equality in either argument requires $q=0$, scalar $B$, and all vectors on the cap rim; the rigidity argument of the preceding theorem then applies. \end{proof} \section{The exterior optimum} The scalar cap radius also controls a different inverse map. On skew matrices, use the isometric identification with $\Lambda^2\R^d$ induced by the orthonormal basis of elementary plane rotations. \begin{lemma}[Singular values of skew congruence]\label{lem:wedgeSVD} If $V$ has singular values $s_1\ge\cdots\ge s_d\ge0$, then the singular values of $K\mapsto V^{\mathsf T}KV$ on $\so(d)$ are precisely \begin{equation}\label{eq:wedgeSVD} \{s_is_j:1\le i