Compact phase space, cosmological constant, and discrete time