# Structure 39: Metric measure spaces, Dirichlet forms, heat kernels, optimal transport, and fractals Part of the [Mathlib and TauCeti coverage series](STRUCTURE.md). [Mathematical inventory](SYNOPSIS39.md); [bibliographical scope](CKMA-bib.md#ckma-39); [MSC2020 index](CKMA-MSC2020.md). This file follows the thematic order and lettered subdivisions of the mathematical inventory. It records definitions, structures, and proved results, with supporting material identified separately. A topic heading locates the recorded statements; it does not assert coverage of every result in the corresponding synopsis. The closing line of each topic section sorts the numbered synopsis entries under that heading. **Source baseline.** Mathlib `911003dd6dea5df215dff57f2717be762e11a6ca` and TauCeti `5cdecf40e99d5a5ad0833afff31f5b007d68a149`, both of 2026-10-18, checked against local checkouts on 2026-10-19. See the [revision and source conventions](STRUCTURE.md#source-baseline-and-conventions). **Mathlib source areas.** `Mathlib.MeasureTheory.Measure.Doubling`, `Mathlib.MeasureTheory.Covering.DensityTheorem`, `Mathlib.MeasureTheory.Measure.Hausdorff`, `Mathlib.Topology.MetricSpace.HausdorffDimension`, `Mathlib.Topology.MetricSpace.GromovHausdorff`, `Mathlib.Topology.MetricSpace.Snowflaking`, `Mathlib.Topology.Instances.CantorSet`, `Mathlib.Topology.UniformSpace.Closeds`, `Mathlib.Analysis.AperiodicOrder.Delone.Basic`, `Mathlib.MeasureTheory.Measure.LevyProkhorovMetric`, `Mathlib.MeasureTheory.Measure.Prokhorov`, `Mathlib.Combinatorics.SimpleGraph.LapMatrix`, `Mathlib.Probability.Distributions.Gaussian.Fernique`. **Namespaces.** Uniformly locally doubling measures are `IsUnifLocDoublingMeasure`. Hausdorff measure and dimension are `MeasureTheory`, as in section 37. The Gromov–Hausdorff space is `GromovHausdorff`. Delone sets are `Delone`, with the structure `DeloneSet`. Graph Laplacians are `SimpleGraph`. Fernique’s theorem for Gaussian measures is `ProbabilityTheory.IsGaussian`. TauCeti’s transport, metric-derivative, gradient-flow, and metric-measure declarations are in the namespace `TauCeti`, with Wasserstein-space statements under `TauCeti.WassersteinSpace` and the matrix Sinkhorn iteration under `Matrix`. ## 39A. Metric Measure Spaces and Fractal Geometry [Mathematical scope](SYNOPSIS39.md#synopsis-39a). Metric measure structures, dimension, Gromov–Hausdorff geometry, and relaxed metric Sobolev energy are grouped here. ### Upper gradients and metric Sobolev spaces [Mathematical scope](SYNOPSIS39.md#upper-gradients-and-metric-sobolev-spaces). #### Mathlib **Doubling measures.** A measure on a pseudo-metric space is uniformly locally doubling when some constant \(C\) controls all sufficiently small scales: for every center, the measure of the closed ball of radius \(2\varepsilon\) is at most \(C\) times the measure of the closed ball of radius \(\varepsilon\), once \(\varepsilon>0\) is small enough (`IsUnifLocDoublingMeasure`, `MeasureTheory/Measure/Doubling.lean`). The small-scale restriction is essential; the definition is written so that exponential volume growth, as in hyperbolic space, is not forbidden. From one doubling constant one obtains constants that absorb a fixed bound on the ratio of radii (`IsUnifLocDoublingMeasure.scalingConstantOf`). Binary and finite products of uniformly locally doubling measures are uniformly locally doubling (`IsUnifLocDoublingMeasure.prod` in `MeasureTheory/Measure/Prod.lean`, `IsUnifLocDoublingMeasure.pi` in `MeasureTheory/Constructions/Pi.lean`). Every additive Haar measure on a finite-dimensional real normed space is uniformly locally doubling, with constant \(2\) raised to the dimension, because the measure of a closed ball scales by that power of the radius (`isUnifLocDoublingMeasureOfIsAddHaarMeasure`, `MeasureTheory/Measure/Lebesgue/EqHaar.lean`). Haar measure on the circle \(\mathbb{R}/T\mathbb{Z}\), for \(T>0\), is uniformly locally doubling as well (`MeasureTheory/Integral/IntervalIntegral/Periodic.lean`). No doubling metric space, and no theorem that a doubling measure makes the space metrically doubling, is formalized. **Lebesgue differentiation.** For a uniformly locally doubling, locally finite measure on a second-countable pseudo-metric Borel space, a locally integrable function has almost every point as a Lebesgue point, along closed balls shrinking to the point with comparable, not necessarily fixed, centers (`IsUnifLocDoublingMeasure.ae_tendsto_average_norm_sub`, `IsUnifLocDoublingMeasure.ae_tendsto_average`), and the density theorem for measurable sets holds in the same form (`IsUnifLocDoublingMeasure.ae_tendsto_measure_inter_div`, `MeasureTheory/Covering/DensityTheorem.lean`). These come from the Vitali family of a doubling measure. No maximal-function estimate is proved for general doubling measures. #### TauCeti The centred Hardy–Littlewood maximal function is weak type \((1,1)\) and bounded on \(L^p\), \(1 ## 39B. Dirichlet Forms, Heat Kernels, and Analysis on Graphs and Fractals [Mathematical scope](SYNOPSIS39.md#synopsis-39b). The only heat-kernel model in either library is the Euclidean Gaussian kernel. Hilbert-space quadratic-form and coercive-operator tools are described in [Section 22](STRUCTURE22.md) and [Section 32](STRUCTURE32.md); these retain their stated settings. ### Dirichlet forms and symmetric processes [Mathematical scope](SYNOPSIS39.md#dirichlet-forms-and-symmetric-processes). #### TauCeti On a finite-dimensional real inner product space, convolution with the Gaussian heat kernel is a strongly continuous contraction semigroup on \(L^p\), \(1\le p<\infty\), with values in a real Banach space ([heat semigroup](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/PDE/HeatKernel/Semigroup.lean)). This is one concrete symmetric Markov semigroup. Dirichlet forms, the form–operator correspondence, capacities, and associated Hunt processes are not defined in either library. **Synopsis entries.** Partly covered: 39.20 (only the Euclidean heat semigroup, as a strongly continuous \(L^p\) contraction semigroup for \(1\le p<\infty\), in TauCeti). Not covered: 39.18, 39.19, 39.21–39.26. ### Heat kernels, inequalities, and curvature [Mathematical scope](SYNOPSIS39.md#heat-kernels-inequalities-and-curvature). #### TauCeti The Gaussian heat kernel \(K_t(x)=(4\pi t)^{-n/2}e^{-|x|^2/4t}\) on a finite-dimensional real inner product space is positive with mass one, solves the heat equation, and satisfies the Chapman–Kolmogorov identity \(K_s*K_t=K_{s+t}\) ([heat kernel](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/PDE/HeatKernel/Basic.lean), [heat semigroup](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/PDE/HeatKernel/Semigroup.lean)); Gaussian bounds for the kernel and its derivatives are recorded for differentiation under the integral ([bounds](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/PDE/HeatKernel/Bounds.lean)). See [Section 32](STRUCTURE32.md) for the Euclidean PDE theory. No heat kernel of a Dirichlet form, manifold, or metric measure space is defined. **Synopsis entries.** Partly covered: 39.27 (the Euclidean Gaussian kernel only: symmetric, Chapman–Kolmogorov, mass one). Not covered: 39.28–39.33, 39.35. ### Networks, resistance, and fractal diffusion [Mathematical scope](SYNOPSIS39.md#networks-resistance-and-fractal-diffusion). #### Mathlib As supporting material, the Laplacian matrix \(D-A\) of a finite simple graph is defined, with the quadratic-form identity \(x^{\mathsf T}Lx=\frac12\sum_{i\sim j}(x_i-x_j)^2\), positive semidefiniteness, and the dimension of its kernel equal to the number of connected components (`SimpleGraph.lapMatrix`, `SimpleGraph.lapMatrix_toLinearMap₂'`, `SimpleGraph.posSemidef_lapMatrix`, `SimpleGraph.card_connectedComponent_eq_finrank_ker_toLin'_lapMatrix`, `Combinatorics/SimpleGraph/LapMatrix.lean`). These are unweighted finite graphs without conductances, masses, or boundary data. **Synopsis entries.** Not covered: 39.66–39.72, 39.75–39.80. ## 39C. Optimal Transport, Wasserstein Geometry, and Metric Gradient Flows [Mathematical scope](SYNOPSIS39.md#synopsis-39c). Couplings, optimal plans and maps, Wasserstein geometry, metric minimizing movements, and conditional properties of EVI solutions belong here. ### Optimal transportation and Wasserstein geometry [Mathematical scope](SYNOPSIS39.md#optimal-transportation-and-wasserstein-geometry). #### Mathlib **Metrics on probability measures.** The Lévy–Prokhorov metric on probability measures is constructed, and on a separable pseudo-metric Borel space it induces the topology of weak convergence (`LevyProkhorov.probabilityMeasureHomeomorph`, `MeasureTheory/Measure/LevyProkhorovMetric.lean`). Prokhorov's theorem is proved in the form that the closure of a tight set of probability measures is compact, with the converse on Polish spaces; the probability measures on a compact space form a compact space (`isCompact_closure_of_isTightMeasureSet`, `isTightMeasureSet_of_isCompact_closure`, `MeasureTheory/Measure/Prokhorov.lean`). This is supporting infrastructure; Wasserstein distances and optimal transport are not in Mathlib. #### TauCeti **Kantorovich problem.** TauCeti contains an extensive Kantorovich optimal-transport development: couplings, gluing, cost minimization, and existence of an optimal plan for a lower-semicontinuous \([0,\infty]\)-valued cost and Polish (more generally tight) marginals, the optimal value being allowed to be infinite (`TauCeti.exists_isOptimalCoupling`, [existence](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Existence/Basic.lean)). For an extended-real cost bounded below by integrable marginal terms \(a(x)+b(y)\), the signed transport value is attained between equal-mass finite measures on Polish spaces when the nonnegative residual \(c-a-b\) is lower semicontinuous, for instance when \(c\) is lower semicontinuous and \(a,b\) are upper semicontinuous (`TauCeti.exists_isCoupling_planCostBddBelow_eq_transportCostBddBelow_of_lowerSemicontinuous_residual`, [signed costs](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Existence/Finite.lean)). **Duality.** Strong duality for a lower-semicontinuous cost \(c:X\times Y\to[0,\infty]\) is proved first on compact metrizable spaces, where continuous feasible pairs suffice, and then on Polish spaces, where the transport cost equals the supremum of \(\int\varphi\,d\mu+\int\psi\,d\nu\) over integrable pairs with \(\varphi(x)+\psi(y)\le c(x,y)\), the common value being allowed to be infinite (`TauCeti.isLUB_kantorovichDualValue_continuous`, [compact duality](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Duality/Compact.lean); `TauCeti.isLUB_ofReal_kantorovichDualValue_integrable_of_lowerSemicontinuous`, [lower-semicontinuous duality](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Duality/LowerSemicontinuous.lean)). For a bounded continuous nonnegative cost on Polish spaces the dual problem is attained by a pair of \(c\)-conjugate integrable potentials, and every optimal plan is certified by such a pair (`TauCeti.isGreatest_kantorovichDualValue_integrable`, [dual attainment](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Duality/Attainment.lean)); on compact spaces the \(c\)-transforms of continuous functions for a continuous cost are continuous ([compact \(c\)-transforms](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/CTransform/Compact.lean)). A differentiable twisted cost and a dual contact certificate yield a measurable optimal transport map and its almost-everywhere uniqueness ([twist mechanism](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Twist/Map.lean)). **Cyclical monotonicity.** An optimal plan of finite cost for a lower-semicontinuous cost on Polish spaces is concentrated on a measurable \(c\)-cyclically monotone set (`TauCeti.IsOptimalCoupling.exists_isCyclicallyMonotone_of_lowerSemicontinuous`, [necessity](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Duality/CyclicalMonotonicity.lean)); conversely, for a finite-valued cost, concentration on such a set forces optimality, the Schachermayer–Teichmann theorem (`TauCeti.IsCoupling.isOptimalCoupling_iff_exists_isCyclicallyMonotone`, [sufficiency](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Duality/SchachermayerTeichmann.lean)). The Rockafellar–Rüschendorf theorem places a \(c\)-cyclically monotone set in the \(c\)-superdifferential of a \(c\)-concave potential ([cyclical monotonicity](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/CTransform/CyclicalMonotonicity.lean)), Rockafellar's theorem places a cyclically monotone set in the subdifferential of a convex conjugate ([Rockafellar](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/CTransform/Rockafellar.lean)), and complementary slackness serves as an optimality certificate ([certificates](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Duality/Certificate.lean)). **Wasserstein spaces.** The \(p\)-Wasserstein spaces of probability measures with finite \(p\)-moment are constructed, with the triangle inequality from gluing. For \(1\le p<\infty\) they are complete over a complete separable ground metric space (`TauCeti.WassersteinSpace.completeSpace`, [completeness](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Complete.lean)) and separable, hence Polish over a Polish space (`TauCeti.WassersteinSpace.separableSpace`, [separability](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Separable.lean)). Wasserstein convergence implies weak convergence ([comparison](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/WeakConvergence.lean)), and for \(1\le p<\infty\) \(W_p\) convergence is equivalent, on a separable space, to weak convergence together with convergence of \(p\)-th moments, with uniformly small moment tails along convergent families (`TauCeti.tendsto_wassersteinEDist_of_tendsto_probabilityMeasure_of_tendsto_lintegral`, [moments](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Moment.lean)). Empirical measures of an i.i.d. sample converge almost surely in \(W_p\) ([empirical measures](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Empirical.lean)). Kantorovich–Rubinstein duality is proved for finite-first-moment probability measures on second-countable pseudo-metric spaces with standard Borel measurable structure, in particular Polish spaces: \(W_1\) is the supremum of differences of integrals against real 1-Lipschitz functions (`TauCeti.wassersteinEDist_one_eq_iSup`, [duality](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/KantorovichRubinstein.lean)). **One-dimensional transport.** On the line the monotone (quantile) coupling is optimal for \(|x-y|^p\) whenever \(1\le p\), and \(W_p\) is the \(L^p(0,1)\) distance of quantile functions for every \(1\le p\le\infty\) (`MeasureTheory.Measure.isOptimalCoupling_quantileCoupling`, `TauCeti.wassersteinEDist_eq_eLpNorm_quantile_sub`, [monotone rearrangement](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Rearrangement.lean)); \(W_1\) is the \(L^1\) distance of the distribution functions ([one-dimensional formula](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/OneDimensional.lean)). Representation of the quantile coupling by a monotone map when \(\mu\) has no atoms was not found; on a Polish space, \(W_p^p\) from an atomless law with finite \(p\)-moment is the Monge infimum over transport maps (`TauCeti.wassersteinEDist_rpow_eq_mongeCost`, [Monge infimum](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Monge.lean)). The \(W_\infty\) distance, tensorization over products, multi-marginal couplings with finite duality, and Wasserstein barycenters are also developed. **Entropic transport and Sinkhorn.** The static Schrödinger problem and entropically regularized transport \(\int c\,d\pi+\varepsilon\mathop{\mathrm{KL}}(\pi\,|\,\mu\otimes\nu)\) are defined and identified through the Gibbs measure; a finite Schrödinger value is attained by exactly one coupling ([entropic transport](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Entropic/Basic.lean)). For a bounded measurable cost and \(\varepsilon>0\), the Schrödinger system has bounded measurable solutions, found as the fixed point of a contracting Sinkhorn sweep, and the entropic optimal plan has density \(e^{(\varphi(x)+\psi(y)-c(x,y))/\varepsilon}\) against \(\mu\otimes\nu\) (`TauCeti.exists_isCoupling_withDensity_exp_add`, `TauCeti.exists_isCoupling_lintegral_add_mul_klDiv_eq_entropicTransportCost`, [Schrödinger system](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Entropic/SchroedingerSystem.lean)). For matrices with positive entries, the Sinkhorn–Knopp iteration converges linearly in Hilbert's projective metric, at the Birkhoff–Franklin–Lorenz rate \(\tanh(\Delta(K)/4)^{2n}\) ([Sinkhorn rates](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Data/Matrix/Sinkhorn/Rate.lean)). As \(\varepsilon\downarrow0\) the regularized values converge to the transport cost for discretizable costs, in particular continuous costs on compact spaces, and weak limits of entropic optimizers are optimal plans for lower-semicontinuous costs (`TauCeti.tendsto_entropicTransportCost_transportCost_of_continuous`, `TauCeti.isOptimalCoupling_of_tendsto_of_entropicTransportCost`, [zero-temperature limit](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Entropic/ZeroTemperature.lean)). **Brenier's theorem and the Monge–Ampère equation.** On a finite-dimensional real inner product space, for the cost \(\|x-y\|^2/2\), a source law absolutely continuous with respect to Haar measure, and finite optimal cost, the optimal plan is unique and is the graph of \(\nabla u\) for a proper lower-semicontinuous convex \(u\), and the optimal map is unique \(\mu\)-almost everywhere (`TauCeti.exists_isKantorovichOptimalTransportMap_gradient`, [Brenier](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Brenier.lean)). Finite second moments give finite quadratic cost (`TauCeti.transportCost_norm_sub_sq_div_two_ne_top`, [Wasserstein space](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Space.lean)). When both laws are absolutely continuous with densities \(g_0,g_1\), the Brenier potential is a weak (Monge–Ampère measure) solution of its transport equation and solves \(g_0(x)=g_1(\nabla u(x))\det D^2u(x)\) almost everywhere with the Alexandrov Hessian; with a target density on a closed convex set carrying it, \(u\) is an Aleksandrov solution (`TauCeti.exists_isKantorovichOptimalTransportMap_gradient_and_rnDeriv_ae_eq`, `TauCeti.exists_isKantorovichOptimalTransportMap_gradient_and_mongeAmpereMeasure_eq_withDensity`, same file). Regularity of the Brenier potential (Caffarelli) and transport on Riemannian manifolds (McCann) are not formalized. **Geodesics and the dynamic formulation.** On a Polish geodesic space, two measures at finite \(W_p\) distance are joined by a dynamic plan concentrated on geodesics whose time marginals form a constant-speed geodesic, so \(\mathcal P_p(X)\) is a geodesic space for \(1\le p\le\infty\); on a separable Banach space, the laws of \((1-t)x+ty\) under an optimal coupling form a geodesic segment (`TauCeti.WassersteinSpace.instIsGeodesicSpace`, `TauCeti.WassersteinSpace.exists_isGeodesicSegment_map_smul_add_smul`, [geodesics](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Geodesic.lean)). On a finite-dimensional real normed space and for \(1\le p<\infty\), the displacement interpolation of an optimal coupling at finite \(W_p\) distance solves the continuity equation with \(p\)-action at most \(W_p(\mu,\nu)^p\), with equality and velocity equal to the displacement on a strictly convex space for \(10\) (`TauCeti.MetricMeasureSpace.MeasureContraction.diam_support_le`, [measure contraction](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/MetricMeasure/MeasureContraction.lean)). The condition \(CD(K,N)\) for finite \(N\), its stability, and the Riemannian characterization of \(CD(K,\infty)\) are not formalized. **Synopsis entries.** Covered: 39.39, 39.40, 39.41, 39.42, 39.43, 39.44, 39.90, 39.46, 39.47, 39.48, 39.52 (TauCeti). Partly covered: 39.45 (quantile coupling optimal and quantile formula for \(W_p\); the monotone map for atomless \(\mu\) not found), 39.49 (upper bound only, by displacement interpolation), 39.50 (Lisini superposition and the lower bound for path-law representations; no minimal velocity field), 39.55 (only \(MCP(K,N)\) with its Bonnet–Myers diameter bound; \(CD(K,N)\) itself is not defined). Not covered: 39.51, 39.53, 39.88, 39.89. ### Metric gradient flows and synthetic diffusion [Mathematical scope](SYNOPSIS39.md#metric-gradient-flows-and-synthetic-diffusion). #### TauCeti **Metric derivatives and slopes.** For a curve absolutely continuous on \([a,b]\) in an extended pseudo-metric space, the metric derivative \(|\gamma'|(t)\) exists as a limit almost everywhere, is integrable, bounds the distances \(d(\gamma_s,\gamma_u)\le\int_s^u|\gamma'|\), and is the smallest such density; conversely an integrable density bounding the distances gives absolute continuity (`TauCeti.metricDerivative`, `absolutelyContinuousOnInterval_iff_exists_edist_le_lintegral`, [metric derivative](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/Function/MetricDerivative/Basic.lean)). The total variation of such a curve equals the integral of its metric derivative (`TauCeti.eVariationOn_eq_lintegral_metricDerivative`, [variation](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/Function/MetricDerivative/Variation.lean)). The descending slope is defined, with its Lipschitz bound and identification with the norm of the derivative on normed spaces ([slope](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/Slope.lean)); for a geodesically convex energy it is the global slope and is lower semicontinuous ([geodesic convexity](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/GeodesicConvex.lean)). **Minimizing movements.** The Moreau–Yosida approximation and resolvent are defined, with the one-step energy and slope estimates and the De Giorgi energy identity; resolvents are nonempty for a coercive energy that is lower semicontinuous for an auxiliary convergence with compact bounded sublevels ([Moreau–Yosida](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/MoreauYosida/Basic.lean), [energy identity](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/MoreauYosida/Derivative.lean), [existence](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/MoreauYosida/Existence.lean)). Under these hypotheses of Ambrosio–Gigli–Savaré, generalized minimizing movements exist; they are \(1/2\)-Hölder on bounded time intervals and, on a pseudo-metric space, absolutely continuous with finite \(2\)-action and the limiting energy estimate (`TauCeti.IsGeneralizedMinimizingMovement`, [minimizing movements](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/MinimizingMovement.lean)). Curves of maximal slope satisfy the energy identity when the upper gradient is strong ([maximal slope](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/MaximalSlope/Basic.lean)), and the Sandier–Serfaty argument passes the energy-dissipation inequality to limits of curves of maximal slope under separate convergence hypotheses ([limits](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/MaximalSlope/Convergence.lean)). **EVI solutions.** For a lower-semicontinuous energy, \(EVI_\lambda\) solutions satisfy \(d(u_t,v_t)\le e^{-\lambda t}d(u_0,v_0)\), hence uniqueness (`TauCeti.IsEVISolution.dist_le`, `TauCeti.IsEVISolution.eqOn`, [EVI](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/EVI/Basic.lean)). They are locally Lipschitz at positive times, their speed equals the descending slope almost everywhere, and they are curves of maximal slope satisfying the energy identity \(F(u_s)-F(u_t)=\frac12\int_s^t(|\dot u_r|^2+|\partial F|^2(u_r))\,dr\) (`TauCeti.IsEVISolution.ae_descendingSlope_eq_metricDerivative`, `TauCeti.IsEVISolution.apply_eq_add_dissipation`, [maximal slope](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/EVI/MaximalSlope.lean)). They form a jointly continuous \(\lambda\)-contractive semiflow on the set of initial points from which a solution exists (`TauCeti.eviFlow_add`, `TauCeti.eviSemiflow`, [semigroup](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Analysis/GradientFlow/EVI/Semigroup.lean)). These conclusions assume an \(EVI\) solution exists; generation of \(EVI\) flows is not proved. CAT(0) spaces are defined by the Bruhat–Tits CN inequality, with strong convexity of squared distance along geodesics ([CAT(0)](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/Topology/MetricSpace/CATZero.lean)); this is supporting material, as no gradient flow in a Hadamard space is constructed. **Wasserstein gradient flows.** The Jordan–Kinderlehrer–Otto step exists for a narrowly lower-semicontinuous coercive energy whose bounded sublevel sequences are tight (`TauCeti.WassersteinSpace.moreauYosidaResolvent_nonempty`, [JKO step](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/Resolvent.lean)), and is unique when the energy is \(m\)-convex along generalized geodesics and \(1+m\tau>0\) ([uniqueness](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/GeneralizedGeodesic/Convex.lean)). On \(\mathcal P_2\) of a separable Hilbert space, a JKO minimizer satisfies the Euler–Lagrange variational inequality along vector-field perturbations ([Euler–Lagrange](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/EulerLagrange.lean)). The Boltzmann entropy is lower semicontinuous and coercive on \(\mathcal P_p(X)\) under an integrable confining weight, the compactness input for the heat and Fokker–Planck flows ([Boltzmann entropy](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/OptimalTransport/Wasserstein/BoltzmannEntropy.lean)). Convergence of the JKO scheme, the identification of the heat, Fokker–Planck and porous-medium equations as Wasserstein gradient flows, and \(RCD\) theory are not formalized. **Cheeger energy.** The Cheeger energy recorded under 39A is convex, \(2\)-homogeneous and lower semicontinuous on \(L^2(X,m)\) ([Cheeger energy](https://github.com/TauCetiProject/TauCeti/blob/5cdecf40e99d5a5ad0833afff31f5b007d68a149/TauCeti/MeasureTheory/Function/CheegerEnergy.lean)); its \(L^2\) gradient-flow semigroup and the characterization of linearity by quadraticity are not proved. **Synopsis entries.** Covered: 39.56, 39.57, 39.59 (TauCeti). Partly covered: 39.60 (energy identity and speed equal to slope for EVI solutions; exponential decay to a minimizer is not stated), 39.61 (existence and uniqueness of the JKO step; neither generation of the \(EVI_\lambda\) flow nor convergence of the scheme), 39.64 (Cheeger energy as a convex, lower-semicontinuous, \(2\)-homogeneous relaxation; no gradient-flow semigroup or Hilbertianity criterion). Not covered: 39.58, 39.62, 39.63, 39.65. ## Supporting structures and related formalizations The following entries supply related foundations. Their stated scope determines how they can be used in this sub-area. ### Mathlib **Gaussian measures.** Fernique’s theorem, that a Gaussian measure on a second-countable real Banach space admits some \(C>0\) for which \(x\mapsto\exp(C\|x\|^2)\) is integrable (`ProbabilityTheory.IsGaussian.exists_integrable_exp_sq`, `Probability/Distributions/Gaussian/Fernique.lean`), is recorded in [Section 06](STRUCTURE06.md). This is Gaussian integrability infrastructure, not a theory of Dirichlet forms or heat kernels.