The first Hohenberg-Kohn (HK) theorem: The external potential $v(\vec{r})$ is determined, within a trivial additive constant, by the ground-state electron density $\rho(\vec{r})$.
From basic quantum mechanics, we know that: $v(\vec{r})\rightarrow \hat{H} \rightarrow \psi_0\rightarrow \rho$. Accoridng to the first HK theorem, we can further know that $\rho \rightarrow v(\vec{r})\rightarrow \hat{H} \rightarrow \psi_0,\psi_1,\cdots$. In essence, the first HK theorem proves one-to-one mapping between the external potentials and the ground-state densities $\rho$ in many-electron systems.
The second HK theorem: There exists a universal functional of the density, $F_{HK}[\rho']$, such that for any $N$-representable density ($\textit{i.e.}$, any density that comes from some wavefunction for an $N$-electron system) $\rho(\vec{r})$, which yields a given number of electrons $N$, the energy functional is, $$E[\rho'] = F_{HK}[\rho']+\int \rho'(\vec{r})v(\vec{r}) d\vec{r} \geq E_g \tag{1} $$ in which $E_g$ is the ground-state energy and the equality holds when the density $\rho'(\vec{r})$ is the, possibly degenerate, ground-state density $\rho_0'(\vec{r})$ for the external potential $v(\vec{r})$.
From the two statements, I can't see any connection between the two theorems. So what's the relation between the two theorems? If $F_{HK}(\rho')$ is the functional of the ground-state density, I can build a connection between the two theorems. But the density in $F_{HK}[\rho]$ is not necessary ground-state density.
- About the first HK theorem: http://unige.ch/sciences/chifi/wesolowski/public_html/dft_epfl_2016/part_I/dftepfl_part_II.pdf
- About the second HK theorem: https://www.sciencedirect.com/science/article/pii/B9780128136515000048?via%3Dihub