In order to reconcile the wave-function collapse in quantum mechanics with the finiteness of signals' propagation in general relativity, we delve into a stochastic version of the Ricci flow and study its non-relativistic limit in presence of matter. We hence derive the Di\'osi-Penrose collapse model for the wave-function of a quantum gas. The procedure entails additional parameters with respect to phenomenological models hitherto accounted for, including the temperature of the gas and the cosmological constant, in turn related to the stochastic gravitational noise responsible for the collapse.
Comment: 14 pages