1: \begin{abstract}
2: For any positive integer $n$ and any Lie group $\mathfrak{G}$,
3: given a definite symmetric bilinear form on $\mathbb{R}^n$ and an $\hbox{Ad}$-invariant scalar product
4: on the Lie algebra of $\mathfrak{G}$,
5: we construct a variational problem on fields defined on an arbitrary oriented
6: $(n+\hbox{dim}\mathfrak{G})$-dimensional manifold $\mathcal{Y}$.
7: We show that, if $\mathfrak{G}$ is compact and simply connected, any global solution
8: of the Euler--Lagrange equations leads, through a spontaneous symmetry breaking,
9: to identify $\mathcal{Y}$ with the total space of a principal bundle
10: over an $n$-dimensional manifold $\mathcal{X}$. Moreover $\mathcal{X}$
11: is then endowed with a (pseudo-)Riemannian metric and a connection which are solutions
12: of the Einstein--Yang--Mills system of equations with a cosmological constant.
13: \end{abstract}
14: