The goal of this work is to introduce a notion of mean curvature for level sets of functions in non-smooth spaces with Ricci curvature bounded below, and to prove that it satisfies sharp geometric inequalities. More precisely, we define a suitable Willmore functional $\mathcal{W}$ on Sobolev functions, whose domain of finiteness is dense in $L^p$ for any $1\le p<\infty$. For any function with finite Willmore energy, we show that almost all of its level sets admit a mean curvature vector satisfying the natural integration by parts formula with respect to the tangential divergence. As a main application, we show that in ${\rm RCD}(0,N)$ spaces with Euclidean volume growth, almost every level set of the electrostatic potential possesses a mean curvature vector in the above sense. Furthermore, we prove that this vector satisfies the same sharp Willmore inequality as in the smooth setting, alongside rigidity and almost-rigidity statements. Finally, as a technical tool, we generalize the sharp isocapacitary inequality to the non-smooth setting.
The goal of this note is to investigate quantitative stability properties of the critical Sobolev inequality in ${\sf CD}(N-1,N)$ metric measure spaces. Assuming that the optimal constant for the inequality is almost the same as the one of the round sphere, we show that the cumulative distribution of any almost extremal function is close, in Wasserstein distance, to the one of an Aubin-Talenti bubble on the round sphere. We obtain similar results for the log Sobolev inequality and the spectral gap under various curvature and dimension assumptions. In all cases we obtain a quantitative stability with sharp exponent.