1: \begin{abstract}
2: We use the density functional theory and lattice dynamics calculations to
3: investigate the properties of potassium
4: superoxide KO$_2$ in which spin, orbital, and lattice degrees of freedom
5: are interrelated and determine the low-temperature phase. After calculating
6: phonon dispersion relations in the high-temperature tetragonal $I4/mmm$
7: structure, we identify a soft phonon mode leading to the monoclinic $C2/c$
8: symmetry and optimize the crystal geometry resulting from this mode.
9: Thus we reveal a displacive character of the structural transition with the
10: group-subgroup relation between the tetragonal and monoclinic phases. We compare
11: the electronic structure of KO$_2$ with antiferromagnetic spin order in the
12: tetragonal and monoclinic phases. We emphasize that realistic treatment of
13: the electronic structure requires including the local Coulomb interaction $U$
14: in the valence orbitals of the O$^-_2$ ions. The presence of the `Hubbard'
15: $U$ leads to the gap opening at the Fermi energy in the tetragonal
16: structure without orbital order but with weak spin-orbit interaction. We
17: remark that the gap opening in the tetragonal phase could also be obtained
18: when the orbital order is initiated in the calculations with a realistic value
19: of $U$. Finally, we show that the local Coulomb interactions and the finite
20: lattice distortion, which together lead to the orbital order via the
21: Jahn-Teller effect, are responsible for the enhanced insulating gap in the
22: monoclinic structure.
23: \end{abstract}
24: