Consider the space $H_n$ of hermitian matrices acting on $\mathbb C^n$. It contains a subset $LC_n$ of matrices with degenerate spectrum. I want to know as much as possible about topology and geometry of this set and its complement. In particular is $LC_n$ a submanifold? I suspect that it could, and its codimension is 3. Can we calculate the cohomology ring and some homotopy groups of $LC_n$ and $H_n \setminus LC_n$?
- $H_n \setminus LC_n$ is an open subset of $H_n$, hence submanifold. Moreover it is dense and connected. All these properties are easily seen by considering decomposition $T=U^{\dagger}DU$ with $D$ - diagonal and $U$ unitary.
- Let $\mathcal E_n$ be the space of increasing $n$-tuples of real numbers and let $\mathcal F_n$ be the complete flag variety, $\mathcal F_n = \frac{U(n)}{U(1)^n}$. Then $H_n \setminus LC_n$ is diffeomorphic to the cartesian product $\mathcal E_n \times \mathcal F_n$. Once again, this is is easy to see using the $U^{\dagger}DU$ decomposition. Elements of $\mathcal E_n$ are the eigenvalues, while elements of $\mathcal F_n$ are the eigenspaces.
- Since $\mathcal E_n \cong \mathbb R^n$, we see that $H^{\bullet}(H_n \setminus LC_n) \cong H^{\bullet} (\mathcal F_n)$. This cohomology group is computed on Wikipedia in the article on generalized flag varieties. I think this description of the topology of $H_n \setminus LC_n$ is pretty complete and satisfying. However I am also interested in $LC_n$ itself.
- Let $\chi_T$ be the characteristic polynomial of $T$. Operator $T$ is in $LC_n$ if and only if $\chi_T$ has a double zero. This is equivalent to vanishing of the discriminant $\Delta$ of $\chi_T$, which is easily seen to be a polynomial in the matrix elements of $T$. Thus $LC_n$ is an algebraic variety in $H_n \cong \mathbb R^{n^2}$.
- For any $n$ there exist points of $LC_n$ on which the first derivative of $\Delta$ vanishes. Thus it's impossible to conclude that $LC_n$ is a submanifold using implicit function theorem.
- My conjecture about codimension $3$ is based on the analysis of oribts of $U(n)$ acting on $H_n$. Namely we need to tune one real number parametrizing $T$ to make it degenerate, but then dimension of the stabilizer of $T$ in $U(n)$ (acting by conjugation) becomes larger at lest by $2$. More precisely, if $T$ has $k$ distinct eigenvalues with dimensions of eigenspaces $g_1,...,g_k$, then $\mathrm{Stab}(T) \cong U(g_1) \times ... \times U(g_k)$.
- $0$ is in $LC_n$ and $\lambda T \in LC_n$ whenever $T \in LC_n$ and $\lambda \in \mathbb R$. In particular $LC_n$ is contractible to a point. Clearly the "correct" way of studying the geometry of $LC_n$ would be to consider it as a projective variety in $\mathbb P \mathbb R^{n^2-1}$. In fact $\Delta$ is a homogeneous polynomial of degree $n(n-1)$.
A comment which is too long for a comment.
Consider the set ordered partitions $\Pi(n)$ of $n$ given by tuples $\pi = (\pi_1, \ldots, \pi_k) $ such that $\pi_1 + \ldots + \pi_k = n$. There is also a natural order on $\Pi(n)$ generated by relations $(\pi_1, \pi_2, \ldots, \pi_k) > (\pi_1+ \pi_2, \pi_3, \ldots, \pi_k)$ (and similarly you can merge consecutive indices). We use the notation $|\pi| = k$ to denote the length of the partition.
There is a subspace $H_{\pi} \subset H_n$ given by hermitian matrices with spectrum $\lambda_1 < \ldots < \lambda_k$ such that the eignespace of $\lambda_i$ has dimension $\pi_i$. Note that $H_{(1, \ldots, 1) } \simeq H_n \setminus LC_n$ is the space of non degenerate hermitian matrices and it has been studied by the OP.
Let $\mathcal{F}_{\pi}$ the flag variety of flags with prescribed dimension $(\pi_1, \pi_1+\pi_2, \ldots, \pi_1+\ldots+\pi_k = n)$.
First fact. There is a decomposition
$$ H_{\pi} \simeq \mathbb{R} \times \mathbb{R}_{> 0}^{|\pi|-1} \times \mathcal{F}_{\pi}$$
given (in the other direction) by
$$(\lambda, t_1, \ldots, t_{k-1}, U) \mapsto U^{\dagger} \text{diag}(\lambda, \lambda+t_1, \ldots, \lambda+ t_1+ \ldots + t_{k-1} ) U$$
so that we have a homotopy equivalence $H_{\pi} \simeq \mathcal{F}_{\pi}$. As a consequence, we also have that the dimension $d_{\pi}$ of $H_{\pi}$ is $k+ n^2 - (\pi_1^2+ \ldots + \pi_k^2) $.
Second fact. The cohomology of the spaces $\mathcal{F}_{\pi} \simeq U(n) / U(\pi_1) \times \ldots \times U(\pi_k)$ is well known by the same Wikipedia page.
Third fact. The decomposition $\{H_{\pi}\}_{\pi \in \Pi_n}$ is a smooth stratification of $H_n$, and the closure of the strata $H_{\pi}$ is $\cup_{\pi' \le \pi} H_{\pi'}$. Also, the singular locus of the closure $\bar{H}_{\pi}$ is given by $\cup_{\pi' < \pi} H_{\pi'}$.
Sketch. Suppose $M_k = U^{\dagger}_k D_k U^k$ is a sequence of matrices in $H_{\pi}$ that converges to $M = U^{\dagger} D U$. In particular $D_k \to D$. Equalities in $D_k$ between eigenvalues remains so, and inequalities stay inequality or become equality, which is the description of our boundary. Smoothness is a consequence of the first fact. Singularity at the "remaining factors" can be seen in the following way. If we have a $(3,4,1)$ matrix in a $(3,3,1,1)$ strata, the tangent space has 4 different hyperplanes - of dimension $d_{(3,3,1,1) } = 4+121-20 = 105$ - going out of it (depending on which of the four equal eigenvalues I decide to slightly change). This is the kind of singularity you see when you join two lines at a point.
Conclusion. The space $LC_n$ can be studied via this stratification, which in particular gives that $LC_n = \bar{H}_{(2, 1, \ldots, 1)} \cup \ldots \cup \bar{H}_{(1, \ldots, 1, 2)}$ (the bar stands for closure). Each factor has known cohomology away from the intersections, but they glue in a non trivial way. I am not aware of effective ways to compute the cohomology of the union beside mayer vietoris. Also, since the intersection of different factors has strictly less dimension (for example $\bar{H}_{(2,1,1)} \cap \bar{H}_{(1,2,1) } = \bar{H}_{(3,1)}$), this shows $LC_n$ is singular (beside the case $n=2$, in which we have only one factor).
Final thoughts. Let me say I see a pattern I can't formalize. This is very similar to configuration spaces, where one can think of "degenerate tuples" of real numbers $(x_1, \ldots, x_n)$ if two coordinates are equal. There is an analogous stratification of $\mathbb{R}^n$ where the top strata is the configuration space, and its complement are the "degenerate tuples". Here it's easy to "compute" the space of degenerate tuples, because it is alexander dual to its complement, the configuration space. This happens because the total space is a sphere, once you "projectivize" everything. The present case is harder because the total space are the hermitian matrices and we don't have this machinery available on the nose. I still think there could be a pairing $(H_n \setminus LC_n) \times LC_n ^{\vee} \to H_n$. The "configuration-y" pattern comes from the eigenvalues, so that in dimension 1 is really simple. The problem is that the stratification here is "twisted" by the generalized flag varieties, which change depending on the partition of eigenvalues. I suggest that could be worth to study the fibrations $LC_n \to LC_{n-1}$ in which one "forgets" the action of the matrix on the last component. The fiber has various components that depends on the stratification. For example restricting to $H_{(3,2) } \to H_{(3,1)}$ has fiber $U(2)/U(1)$.
Also, let me remark that I found some information on "degenerate" flag varieties (see here and here) that - if I understood well - correspond to the closure of our strata.