Theory of the Rydberg-atom two-photon micromaser.