Book 6D

© 2026 NeckPinch · www.neckpinch.com · All rights reserved.

Course 6Book 6D: Diffusions, Finance and ComputationChapter 11

Computing Geometric Flows

Numerical curve shortening and mean curvature flow, level sets and phase fields, discrete Ricci flow on surfaces and in conformal mapping, rotationally symmetric neckpinches, and what computation has taught about singularities.

32 min read · Updated Oct 23, 2026

Read with Deckelnick, Dziuk and Elliott, "Computation of geometric partial differential equations and mean curvature flow" (Acta Numerica 14, 2005), the standard survey of parametric, level-set and phase-field methods; Sethian, Level Set Methods and Fast Marching Methods (2nd edition, 1999), chapters 1–6; Chow and Luo, "Combinatorial Ricci flows on surfaces" (J. Differential Geom. 63, 2003); Gu and Yau, Computational Conformal Geometry (2008). For Ricci flow simulations, Garfinkle and Isenberg, "Critical behavior in Ricci flow" (arXiv:math/0306129, 2003), and Rubinstein and Sinclair, "Visualizing Ricci flow of manifolds of revolution" (Experiment. Math. 14, 2005).

In this chapter · 9 sections
  1. 11.1Curves: polygons that shrink like circles
  2. 11.2Surfaces: parametric, level set and phase field
  3. 11.3The rotationally symmetric Ricci flow
  4. 11.4Discrete Ricci flow on surfaces
  5. 11.5Ricci curvature of graphs and networks
  6. 11.6Computing Ricci-flat metrics
  7. 11.7From flows to algorithms
  8. 11.8History
  9. 11.9Exercises
  10. ↗Free resources

6D.9 Finite Difference Methods and 6D.10 Monte Carlo, Fourier and Finite Element Methods built the numerical methods of Book 6D, finite differences, finite elements and Monte Carlo, on the heat equation and the equations of finance, and ended with two forward glances: simulations of Ricci flow neckpinches discretise a parabolic equation in one space variable, and the stiffness matrix of piecewise linear elements on a triangulated surface is the cotangent Laplacian of discrete geometry. This chapter, the last of Course 6, follows those glances to the end. It describes how the geometric flows of this guide are computed in practice, which features of the analysis survive discretisation and which must be built in by hand, and what computation has contributed to the theory: conjectures suggested by pictures, singularities seen before they were proved, and, through discrete versions of the Ricci flow, tools used in computer graphics, medical imaging and network science.

Computation has a particular place in the story of the Poincaré conjecture. Perelman's proof is not computational, and nobody has simulated a three-dimensional Ricci flow with surgery on a general manifold. But the pictures that guided the field, the dumbbell neckpinch of mean curvature flow (6A.10 Curve Shortening and the First Geometric Flows), the shape of a Ricci flow neck near pinching (11B.6 Rotationally Symmetric Flows and the Standard Solution), the degenerate neckpinch modelled by the Bryant soliton (11B.5 Singularities), were computed long before or alongside their proofs, and the algorithmic consequences of geometrisation now include a solution of the homeomorphism problem for three-manifolds. The chapter ends there.

By the end of this chapter you will be able to:

  • discretise curve shortening by a polygon flow, show that regular polygons shrink exactly like circles, and explain the role of tangential redistribution;
  • describe the three main approaches to mean curvature flow (parametric finite elements, level sets, phase fields) and their trade-offs, including behaviour through singularities and topology change;
  • derive formally why Merriman–Bence–Osher threshold dynamics moves interfaces by curvature;
  • discretise the rotationally symmetric Ricci flow, explain the time-step restriction near a neckpinch, and describe what the simulations of Garfinkle–Isenberg and Rubinstein–Sinclair found;
  • define circle-packing metrics and the Chow–Luo combinatorial Ricci flow, prove discrete Gauss–Bonnet, and describe discrete uniformisation and its uses;
  • define Ollivier's Ricci curvature of a graph and compute it in simple cases;
  • describe the numerical computation of Ricci-flat metrics by Ricci–DeTurck flow, and the algorithmic consequences of geometrisation.

Curves: polygons that shrink like circles

The curve shortening flow ∂tγ=κN\partial_t\gamma = \kappa N (6A.10 Curve Shortening and the First Geometric Flows) is a quasilinear heat equation for the position vector: with arclength ss, ∂tγ=∂s2γ\partial_t\gamma = \partial_s^2\gamma. The obvious discretisation replaces the curve by a closed polygon with vertices x1,…,xNx_1, \dots, x_N and the second derivative by a difference quotient. With ℓj=∣xj+1−xj∣\ell_j = |x_{j+1} - x_j|, a standard choice is

dxjdt=2ℓj+ℓj−1(xj+1−xjℓj−xj−xj−1ℓj−1),\frac{dx_j}{dt} = \frac{2}{\ell_j + \ell_{j-1}}\Big(\frac{x_{j+1} - x_j}{\ell_j} - \frac{x_j - x_{j-1}}{\ell_{j-1}}\Big),

the difference of unit tangent vectors divided by the length of the "dual edge": a discrete curvature vector. For a regular polygon inscribed in a circle of radius RR, this vector points to the centre with length exactly 1R\frac1R times a factor tending to 11 as N→∞N \to \infty, and with the cruder choice xj+1−2xj+xj−1ℓ2\frac{x_{j+1} - 2x_j + x_{j-1}}{\ell^2} the factor is exactly 11: a regular polygon shrinks self-similarly with R2=R02−2tR^2 = R_0^2 - 2t, exactly like the circle (Exercise 11.1). So the polygon flow reproduces the model solution.

Two numerical facts distinguish geometric flows from the heat equation. First, the equation ∂tγ=κN\partial_t\gamma = \kappa N does not specify how points move along the curve, since tangential motion is a reparametrisation (the gauge freedom of 6A.4 Fourier Methods and Scale Space in its simplest form). A discretisation chooses a gauge implicitly, and a bad choice lets vertices bunch up where the curve shrinks fastest and spread out elsewhere, which destroys accuracy and eventually makes the polygon cross itself. Practical schemes add tangential redistribution, a tangential velocity that keeps vertices equally spaced or spaced according to curvature; this is the numerical counterpart of DeTurck's trick, a choice of gauge that makes the discrete problem well behaved without changing the geometry. Second, the explicit time step is limited by the smallest edge, Δt≲ℓmin⁡2\Delta t \lesssim \ell_{\min}^2 (the parabolic stability condition of 6D.9 Finite Difference Methods), and edges shrink as the curve does; implicit schemes, or semi-implicit ones in which the curvature is taken at the new time and the geometry at the old, remove the restriction. Gerhard Dziuk (1994) proved convergence, with error estimates, for a semi-discrete finite element scheme of this kind.

Surfaces: parametric, level set and phase field

For mean curvature flow of surfaces there are three approaches, each matching one of the mathematical frameworks of the guide.

Parametric finite elements. Represent the surface by a triangulation and move its vertices by a discrete mean curvature vector. Since the mean curvature vector is the Laplace–Beltrami operator applied to the position, H⃗=ΔΣx\vec H = \Delta_\Sigma x (9A.8 Submanifolds and Minimal Surfaces), the discretisation is the finite element Laplacian of the triangulated surface, the cotangent Laplacian of 6D.10 Monte Carlo, Fourier and Finite Element Methods:

(Δx)i=12Ai∑j∼i(cot⁡αij+cot⁡βij)(xj−xi),(\Delta x)_i = \frac{1}{2A_i}\sum_{j\sim i}(\cot\alpha_{ij} + \cot\beta_{ij})(x_j - x_i),

with αij\alpha_{ij}, βij\beta_{ij} the angles opposite the edge ijij and AiA_i an area associated with vertex ii. Dziuk (1990) introduced the method; it is accurate and efficient while the surface is smooth, but it cannot pass through singularities: when a neck pinches, the triangulation degenerates, and the topology change must be performed by hand, the numerical analogue of surgery.

Level sets. Stanley Osher and James Sethian (1988) represented a moving hypersurface as the zero level set of a function u(x,t)u(x, t) on all of space, and moved every level set by mean curvature at once:

ut=∣∇u∣div⁡(∇u∣∇u∣),u_t = |\nabla u|\operatorname{div}\Big(\frac{\nabla u}{|\nabla u|}\Big),

the degenerate parabolic equation whose viscosity solutions (6C.9 Hamilton–Jacobi Equations and Viscosity Solutions) were constructed by Evans and Spruck and by Chen, Giga and Goto (1991). The level-set method passes through singularities and topology changes automatically (a dumbbell's zero level set simply separates into two components), and its solutions are unique, but it pays for this: it computes in one dimension more than the surface, and it can fatten, the zero level set acquiring interior when the flow is genuinely non-unique.

Phase fields. The Allen–Cahn equation of 6A.9 Reaction–Diffusion: Fronts, Patterns and Pinching, ut=Δu−ε−2W′(u)u_t = \Delta u - \varepsilon^{-2}W'(u), has interfaces of width ε\varepsilon that move by mean curvature as ε→0\varepsilon \to 0. Solving it with ε\varepsilon a few grid spacings computes mean curvature flow, again through singularities, with the convergence theorems of Chen, de Mottoni–Schatzman, Evans–Soner–Souganidis and Ilmanen as justification. Phase-field models are the standard tool in materials science for solidification, grain growth and crack propagation, where interfaces with extra physics (anisotropy, latent heat, elasticity) are modelled by extra terms.

Threshold dynamics. The simplest scheme of all, due to Barry Merriman, James Bence and Stanley Osher (1992), alternates two steps: given a set Ωk\Omega_k, solve the heat equation for time hh with initial data the indicator 1Ωk1_{\Omega_k}, and let Ωk+1\Omega_{k+1} be the set where the solution exceeds 12\frac12. Diffusion rounds off corners and threshold sharpens the result. A short computation (Exercise 11.2) shows that each step moves a curved boundary inward by about hh times its mean curvature, so the scheme approximates mean curvature flow with time step hh; Lawrence Evans (1993) and Guy Barles and Christine Georgelin (1995) proved convergence to the viscosity solution. It is the heat equation of 6A.3 The Heat Equation on ℝⁿ and the maximum principle of 6A.5 Maximum Principles, composed into a geometric flow, and it can be computed with fast Fourier transforms (6D.9 Finite Difference Methods).

In the world In use The Surface Evolver, foams and the Water Cube

Kenneth Brakke's Surface Evolver (1992) computes surfaces that minimise energy, including area, subject to constraints, by gradient descent on triangulations, a discrete mean curvature flow with volume constraints. Its most famous result concerns Kelvin's problem (1887): how to divide space into cells of equal volume with the least interface area. Kelvin proposed a packing of slightly curved truncated octahedra, and for a century it was believed optimal. In 1993 Denis Weaire and Robert Phelan found, using the Surface Evolver, a structure of two kinds of cells (pentagonal dodecahedra and tetrakaidecahedra) with about 0.3%0.3\% less area. It is not known whether the Weaire–Phelan structure is optimal. It was realised physically in the design of the Beijing National Aquatics Centre (the "Water Cube") for the 2008 Olympics, whose façade is a slice through a Weaire–Phelan foam, and it has been observed in experiments with carefully prepared liquid foams.

What computation suggested. Computed flows have repeatedly shown the way for theory. David Chopp (1994) computed numerous self-shrinkers, including the torus whose existence Sigurd Angenent had proved (1992), and families that suggested which shrinkers are stable. Angenent, Tom Ilmanen and Chopp (1995) computed an example of a smooth initial surface in R3\mathbb{R}^3 whose mean curvature flow is non-unique after a singular time, the level-set flow fattening; rigorous examples of fattening from smooth surfaces in R3\mathbb{R}^3 were constructed by Ilmanen and White in 2024. Image processing used the same flows in the other direction: Vicent Caselles, Ron Kimmel and Guillermo Sapiro's geodesic active contours (1997) and Tony Chan and Luminita Vese's level-set segmentation (2001) segment medical and natural images by curvature-driven level-set flows (6A.4 Fourier Methods and Scale Space).

The rotationally symmetric Ricci flow

The Ricci flow on Sn+1S^{n+1} for metrics g=ds2+ψ(s)2gSng = ds^2 + \psi(s)^2g_{S^n}, invariant under rotations about an axis, reduces to the system (11B.6 Rotationally Symmetric Flows and the Standard Solution)

∂tψ=ψss−(n−1)1−ψs2ψ,∂tφ=nψssψφ,\partial_t\psi = \psi_{ss} - (n - 1)\frac{1 - \psi_s^2}{\psi}, \qquad \partial_t\varphi = n\frac{\psi_{ss}}{\psi}\varphi,

where ds=φ dxds = \varphi\,dx in a fixed coordinate xx, so that ∂s\partial_s and ∂t\partial_t do not commute. It is a one-dimensional reaction–diffusion system (6A.9 Reaction–Diffusion: Fronts, Patterns and Pinching), and finite differences in xx solve it (6D.9 Finite Difference Methods), with three difficulties that are the difficulties of the analysis seen through a grid.

  • The poles. Where the metric closes off, ψ→0\psi \to 0 and the term 1−ψs2ψ\frac{1 - \psi_s^2}{\psi} is a ratio of two vanishing quantities, finite only because smoothness forces ψs→1\psi_s \to 1 (11B.6 Rotationally Symmetric Flows and the Standard Solution). Schemes must impose the pole conditions exactly and evaluate the ratio by a Taylor expansion, or they produce spurious cone points.
  • The gauge. The coordinate xx is fixed while arclength changes, and grid points in the neck are stretched or compressed by the factor φ\varphi. As in the parametric curve flow, a good scheme chooses a gauge: a DeTurck-type vector field, or a reparametrisation that keeps grid points evenly spaced in arclength, or a grid adapted to the neck.
  • The time step. The diffusion coefficient in xx is φ−2\varphi^{-2} and the reaction term has rate (n−1)ψ−2(n - 1)\psi^{-2}, so an explicit scheme needs Δt≲min⁡(φ2Δx2,ψ2)\Delta t \lesssim \min(\varphi^2\Delta x^2, \psi^2) (6D.9 Finite Difference Methods). As a neck pinches, ψmin⁡2≈2(n−1)(T−t)\psi_{\min}^2 \approx 2(n - 1)(T - t), so the admissible time step shrinks linearly as the singular time approaches; with adaptive steps, reaching time T−εT - \varepsilon takes a number of steps of order log⁡1ε\log\frac1\varepsilon (Exercise 11.3), which is why simulations can follow a neckpinch very close to the singular time.

What the simulations showed. Hyam Rubinstein and Robert Sinclair (2005) computed rotationally symmetric Ricci flows of spheres with necks and visualised them as surfaces of revolution, showing neckpinches forming and confirming the shape predicted by Angenent and Knopf (11B.6 Rotationally Symmetric Flows and the Standard Solution): the neck becomes a round cylinder, with curvature blowing up at the rate 1T−t\frac{1}{T - t}. David Garfinkle and James Isenberg (2003) studied one-parameter families of initial metrics, from dumbbells with thick necks (which become round and shrink to points) to dumbbells with thin necks (which pinch), and found at the threshold between the two a critical solution: a degenerate neckpinch at a pole, in which a small cap pinches off, with the rescaled geometry near the pole looking like the Bryant soliton, the steady soliton of 11B.1 Ricci Solitons. In 2008 they gave more detailed numerical evidence for this Bryant-soliton picture. Sigurd Angenent, James Isenberg and Dan Knopf later proved (2015) that degenerate neckpinches exist and have exactly this structure: type II singularities modelled on the Bryant soliton, as the computations suggested. The degenerate neckpinch is the Ricci flow counterpart of the critical phenomena that Matthew Choptuik had found numerically in 1993 in gravitational collapse (with self-similar solutions at the threshold of black-hole formation), and Garfinkle and Isenberg's work was explicitly motivated by that analogy.

Discrete Ricci flow on surfaces

On a triangulated surface, there is a way to define curvature and a Ricci flow without any limit h→0h \to 0, by making the metric itself discrete. William Thurston proposed in 1985 to approximate conformal maps by circle packings: place a circle of radius rir_i at each vertex ii of a triangulation, tangent to the circles at neighbouring vertices, so that each triangle ijkijk becomes a Euclidean triangle with side lengths ri+rjr_i + r_j, rj+rkr_j + r_k, rk+rir_k + r_i. The discrete Gauss curvature at vertex ii is the angle deficit

Ki=2π−∑triangles at iθijk,K_i = 2\pi - \sum_{\text{triangles at } i}\theta_i^{jk},

with θijk\theta_i^{jk} the angle at ii in triangle ijkijk: zero when the triangles around ii fit flat, positive when they close up like the tip of a cone. These curvatures satisfy a discrete Gauss–Bonnet theorem, ∑iKi=2πχ\sum_iK_i = 2\pi\chi, for the Euler characteristic χ=V−E+F\chi = V - E + F (Exercise 11.4, 8A.9 The Curvature of Surfaces). Burton Rodin and Dennis Sullivan (1987) proved Thurston's conjecture that hexagonal circle packings of a domain, as the circles shrink, converge to the Riemann map (5A.4 Harmonic Functions and Conformal Mapping).

Bennett Chow and Feng Luo (2003) defined the combinatorial Ricci flow

dridt=−Kiri,\frac{dr_i}{dt} = -K_ir_i,

the analogue of the two-dimensional Ricci flow ∂tg=−2Kg\partial_tg = -2Kg, which shrinks the metric where curvature is positive and expands it where it is negative, with a normalised version that preserves the total area. They proved that it is the gradient flow of a convex function (in the variables log⁡ri\log r_i), that it exists for all time, and that it converges exponentially fast to a circle-packing metric of constant curvature exactly when the conditions of Thurston's circle-packing theorem hold; this reproves Thurston's theorem by a flow, as Hamilton's flow on surfaces proves uniformisation (11A.12 Ricci Flow on Surfaces). Feng Luo (2004) introduced a discrete Yamabe flow that changes edge lengths by vertex scaling, ℓij=eui+ujℓij0\ell_{ij} = e^{u_i + u_j}\ell^0_{ij}; Alexander Bobenko, Ulrich Pinkall and Boris Springborn (2015) found the convex variational principle behind it, through the volumes of ideal hyperbolic polyhedra; and Xianfeng David Gu, Feng Luo, Jian Sun and Tianqi Wu (2018) proved a discrete uniformisation theorem: every polyhedral surface is discretely conformal to one of constant curvature, after allowing changes of triangulation, the discrete counterpart of surgery-free uniformisation.

In the world In use Discrete conformal maps in practice

Discrete Ricci flows compute conformal maps of triangulated surfaces with guaranteed existence and uniqueness, because their energies are convex. In computer graphics they are used to parametrise surfaces (flatten a mesh with minimal angle distortion, to paint textures on it or to remesh it); Miao Jin, Junho Kim, Feng Luo and Xianfeng Gu (2008) described discrete surface Ricci flow for these purposes. In medical imaging, the folded surface of the human cerebral cortex is mapped conformally to a sphere or a plane by circle packings (Monica Hurdal and Ken Stephenson) and by discrete Ricci flow, so that brain surfaces of different subjects can be compared on a common domain. In sensor networks, Rik Sarkar, Xiaotian Yin, Jie Gao, Feng Luo and Xianfeng Gu (2009) used discrete Ricci flow to map a network with holes to a domain with circular holes, where greedy geographic routing is guaranteed to deliver messages.

Ricci curvature of graphs and networks

Discrete curvature has also been defined directly on graphs, without any triangulation, by the transport characterisation of 6C.11 Optimal Transport and Ricci Curvature. Yann Ollivier (2009) defined the coarse Ricci curvature of an edge xyxy of a graph as

κ(x,y)=1−W1(mx,my)d(x,y),\kappa(x, y) = 1 - \frac{W_1(m_x, m_y)}{d(x, y)},

where mxm_x is the uniform probability measure on the neighbours of xx and W1W_1 the transport distance with cost the graph distance. Positive curvature means that the neighbourhoods of xx and yy are closer than xx and yy are: a random step from each brings them together, the discrete form of the von Renesse–Sturm coupling of 6D.5 Diffusions on Manifolds and Curvature. Complete graphs have positive curvature, cycles have zero curvature, and trees have negative curvature (Exercise 11.5). Ollivier proved that positive coarse curvature implies concentration inequalities and spectral gaps, as Ric⁡≥K\operatorname{Ric} \geq K does on manifolds.

Network scientists have used these curvatures and discrete Ricci flows on graphs, which shrink positively curved edges and stretch negatively curved ones, to find communities in social and biological networks (edges between communities are bottlenecks, with negative curvature, and the flow stretches them until the communities separate; Chien-Chun Ni, Yu-Yao Lin, Feng Luo and Jie Gao, 2019), to measure the robustness of financial and internet networks, and, in machine learning, to diagnose over-squashing in graph neural networks, where negatively curved bottleneck edges limit how information propagates (Jake Topping and collaborators, 2022). These are discrete analogues of the guide's central theme: curvature controls how diffusion spreads, and a flow driven by curvature exposes the structure of a space.

Computing Ricci-flat metrics

The Ricci flow is also a numerical method for finding special metrics. Calabi–Yau manifolds, which carry Ricci-flat Kähler metrics by Yau's theorem (6C.10 Fully Nonlinear Equations and Monge–Ampère), are needed explicitly in string theory, where the geometry of the extra dimensions determines the physics of the four-dimensional world, but Yau's proof is not constructive and no Ricci-flat metric on a compact Calabi–Yau manifold of this kind is known in closed form. Matthew Headrick and Toby Wiseman (2005) computed the Ricci-flat metric on the K3 surface numerically by discretising it on a lattice and running a Ricci–DeTurck-type flow (and its Kähler variant) to convergence, and Headrick and Wiseman (2006) used Ricci flow to study black-hole metrics in Euclidean quantum gravity, where unstable directions of the flow correspond to instabilities of the black holes. Simon Donaldson (2009) gave an alternative algorithm through balanced embeddings into projective space, and from about 2020 machine-learned approximations of Calabi–Yau metrics have been developed. The DeTurck gauge (6B.10 Harmonic Coordinates and the Regularity of Metrics, 11A.4 Short-Time Existence and Uniqueness) is what makes these flows strictly parabolic, and therefore computable with the schemes of 6D.9 Finite Difference Methods.

From flows to algorithms

Geometrisation turned three-dimensional topology into a subject with algorithms. Before Perelman, Hyam Rubinstein (1992) and Abigail Thompson (1994) had found an algorithm to recognise the three-sphere, using normal surfaces rather than geometry; Jeffrey Weeks's program SnapPea (from the 1980s, now SnapPy) computes hyperbolic structures on three-manifolds from triangulations by solving Thurston's gluing equations, and it showed experimentally that "most" three-manifolds are hyperbolic, as the geometrisation conjecture predicts (10A.9 Hyperbolic Three-Manifolds). After Perelman, the homeomorphism problem for closed three-manifolds is decidable: given two triangulated three-manifolds, an algorithm decides whether they are homeomorphic. Greg Kuperberg (2019) gave a careful proof of this as a corollary of geometrisation, assembling the geometric decomposition, the recognition of each geometric piece and Mostow rigidity (10A.9 Hyperbolic Three-Manifolds) into an algorithm. The Ricci flow itself is not the algorithm; but the theorem it proves is what makes the algorithm exist. The flow of this guide, a heat equation for the shape of space, ends in a statement that a computer can use.

Where this goes Where this goes

This completes Course 6. 7A.1 Topological Spaces and Quotients turns to topology, which the Poincaré conjecture is about. The geometric flows computed here are studied as mathematics in 6A.10 Curve Shortening and the First Geometric Flows (curve shortening and mean curvature flow), 11A.12 Ricci Flow on Surfaces (Ricci flow on surfaces, of which the combinatorial flow is the discrete version), 11B.5 Singularities and 11B.6 Rotationally Symmetric Flows and the Standard Solution (neckpinches and degenerate neckpinches), and 10A.8 Thurston’s Eight Geometries–10A.10 Geometrization and Ricci Flow (the geometries whose recognition the algorithms perform).

History

Thurston proposed circle packing in 1985, and Rodin and Sullivan proved convergence in 1987. Osher and Sethian introduced level-set methods in 1988; Dziuk computed mean curvature flow by finite elements in 1990; Evans and Spruck and Chen, Giga and Goto constructed level-set solutions in 1991; Merriman, Bence and Osher proposed threshold dynamics in 1992, and Evans (1993) and Barles and Georgelin (1995) proved its convergence. Brakke released the Surface Evolver in 1992, and Weaire and Phelan found their foam in 1993. Choptuik discovered critical collapse in 1993. Chopp computed self-shrinkers in 1994, and Angenent, Ilmanen and Chopp their non-uniqueness example in 1995. Rubinstein (1992) and Thompson (1994) found three-sphere recognition. Chow and Luo's combinatorial Ricci flow appeared in 2003, Garfinkle and Isenberg's simulations from 2003, Luo's discrete Yamabe flow in 2004, Rubinstein and Sinclair's visualisations in 2005, Headrick and Wiseman's numerical K3 metric in 2005, Ollivier's coarse Ricci curvature in 2009, Bobenko, Pinkall and Springborn's variational principle in 2015, Angenent, Isenberg and Knopf's degenerate neckpinches in 2015, Gu, Luo, Sun and Wu's discrete uniformisation in 2018, and Kuperberg's account of the homeomorphism algorithm in 2019.

Recall Where we stand

Polygonal curve shortening reproduces the shrinking circle exactly on regular polygons, but needs tangential redistribution (a numerical gauge) and implicit or semi-implicit time stepping. Mean curvature flow of surfaces is computed parametrically with the cotangent Laplacian (accurate, but singularities need surgery by hand), by level sets (through singularities, unique, but in one more dimension and liable to fatten), by phase fields (Allen–Cahn with small ε\varepsilon), or by threshold dynamics (heat flow and thresholding at 12\frac12, which moves interfaces by hh times curvature). The rotationally symmetric Ricci flow is a one-dimensional reaction–diffusion system whose discretisation must respect the poles, choose a gauge and shrink the time step like T−tT - t; simulations confirmed the Angenent–Knopf neckpinch and found the degenerate neckpinch with a Bryant soliton at the critical threshold, later proved by Angenent, Isenberg and Knopf. Circle-packing metrics have angle-deficit curvatures obeying discrete Gauss–Bonnet, and the Chow–Luo combinatorial Ricci flow, a convex gradient flow, converges to constant curvature, reproving Thurston's theorem; discrete conformal flows parametrise meshes, flatten brains and route messages. Ollivier's curvature defines Ricci curvature on graphs by transport, and graph Ricci flows find communities. Ricci–DeTurck flow computes Ricci-flat metrics, and geometrisation makes the homeomorphism problem for three-manifolds decidable. Course 6 ends here; 7A.1 Topological Spaces and Quotients begins the topology.

Recall Book 6D in one paragraph

Brownian motion is the random path whose law is the heat kernel, with quadratic variation tt, harmonic measure and recurrence in low dimensions (6D.1 Brownian Motion); martingales and the Itô integral give a calculus for it, with Itô's formula and Girsanov's change of measure (6D.2 Martingales and the Itô Integral). Stochastic differential equations have generators, Dynkin's formula and Feynman–Kac, and their densities solve Fokker–Planck equations (6D.3 Stochastic Differential Equations and Feynman–Kac); those densities relax to equilibrium at rates set by Poincaré and log-Sobolev inequalities, a diffusion reversed in time is driven by its score, and Perelman's W\mathcal W is built from the same entropy and Fisher information (6D.4 Fokker–Planck, Time Reversal and Diffusion Models). On a manifold, Ricci curvature controls diffusion through the Bakry–Émery calculus and couplings, and along a backward Ricci flow the conjugate heat kernel is the law of Brownian motion (6D.5 Diffusions on Manifolds and Curvature). In finance, replication turns option pricing into the heat equation (Black–Scholes), early exercise into an obstacle problem, and investment into stochastic control (6D.6 Black–Scholes–6D.8 Stochastic Control and the HJB Equation). Finite differences, Monte Carlo, Fourier methods and finite elements compute all of this, with stability governed by the maximum principle (6D.9 Finite Difference Methods, 6D.10 Monte Carlo, Fourier and Finite Element Methods), and the same methods, with discrete geometry, compute curvature flows, neckpinches and discrete Ricci flows (this chapter).

Exercises

Exercise 11.1 Regular polygons shrink like circles

Let xj=R(cos⁡2πjN,sin⁡2πjN)x_j = R(\cos\frac{2\pi j}{N}, \sin\frac{2\pi j}{N}), j=0,…,N−1j = 0, \dots, N - 1, with edge length ℓ=2Rsin⁡πN\ell = 2R\sin\frac\pi N. (a) Show that xj+1−2xj+xj−1=−4sin⁡2πN xjx_{j+1} - 2x_j + x_{j-1} = -4\sin^2\frac\pi N\,x_j. (b) Deduce that under dxjdt=xj+1−2xj+xj−1ℓ2\frac{dx_j}{dt} = \frac{x_{j+1} - 2x_j + x_{j-1}}{\ell^2} the polygon stays regular with dRdt=−1R\frac{dR}{dt} = -\frac1R, so R2=R02−2tR^2 = R_0^2 - 2t, exactly as for the circle under curve shortening.

Solution

(a) Writing xjx_j as the complex number Re2πij/NRe^{2\pi ij/N}, xj+1+xj−1=xj(e2πi/N+e−2πi/N)=2cos⁡2πNxjx_{j+1} + x_{j-1} = x_j(e^{2\pi i/N} + e^{-2\pi i/N}) = 2\cos\frac{2\pi}{N}x_j, so the second difference is (2cos⁡2πN−2)xj=−4sin⁡2πNxj(2\cos\frac{2\pi}N - 2)x_j = -4\sin^2\frac\pi Nx_j. (b) dxjdt=−4sin⁡2(π/N)4R2sin⁡2(π/N)xj=−xjR2\frac{dx_j}{dt} = -\frac{4\sin^2(\pi/N)}{4R^2\sin^2(\pi/N)}x_j = -\frac{x_j}{R^2}. So every vertex moves radially with ddtxj=−xjR2\frac{d}{dt}x_j = -\frac{x_j}{R^2}; the polygon stays regular, and dRdt=−1R\frac{dR}{dt} = -\frac1R. The circle under curve shortening has curvature vector −xR2-\frac{x}{R^2} too.

Exercise 11.2 Why threshold dynamics moves by curvature

Near a boundary point, let a planar set be {(x,y):y<−κ2x2}\{(x, y) : y < -\frac\kappa2x^2\} (curvature κ\kappa at the origin, the set lying below a downward parabola). Solve the heat equation for time hh from its indicator, so the solution at (0,y0)(0, y_0) is P(y0+Y<−κ2(X)2)\mathbb{P}\big(y_0 + Y < -\frac\kappa2(X)^2\big) with XX, YY independent N(0,2h)N(0, 2h). Show that, to first order in κh\kappa\sqrt h, the solution equals 12\frac12 at y0≈−κhy_0 \approx -\kappa h. Conclude that one step moves the boundary by κh\kappa h towards the inside of the set, that is, with normal velocity κ\kappa.

Solution

The value is 12\frac12 when y0y_0 is the median of −κ2X2−Y-\frac\kappa2X^2 - Y. For small κh\kappa\sqrt h, the distribution of −κ2X2−Y-\frac\kappa2X^2 - Y is that of −Y-Y (symmetric, median 00) shifted by a small amount; to first order the median shifts by the mean of the perturbation, −κ2EX2=−κ2⋅2h=−κh-\frac\kappa2\mathbb{E}X^2 = -\frac\kappa2\cdot2h = -\kappa h. So the 12\frac12-level passes through (0,−κh)(0, -\kappa h): the boundary has moved a distance κh\kappa h into the set. Over time hh this is normal velocity κ\kappa, curve shortening (and in higher dimensions mean curvature flow, with κ\kappa replaced by the sum of the principal curvatures).

Exercise 11.3 How many time steps to a neckpinch

Suppose a neck pinches with ψmin⁡(t)2=2(n−1)(T−t)\psi_{\min}(t)^2 = 2(n - 1)(T - t) and an adaptive explicit scheme takes steps Δt=c ψmin⁡2\Delta t = c\,\psi_{\min}^2 for a constant c<12(n−1)c < \frac{1}{2(n - 1)}. (a) Show that the number of steps needed to go from t=0t = 0 to t=T−εt = T - \varepsilon is approximately 12(n−1)clog⁡Tε\frac{1}{2(n - 1)c}\log\frac T\varepsilon. (b) What would happen with a fixed step size?

Solution

(a) The step at time tt is Δt=2(n−1)c(T−t)\Delta t = 2(n - 1)c(T - t), so the number of steps is approximately ∫0T−εdt2(n−1)c(T−t)=12(n−1)clog⁡Tε\int_0^{T-\varepsilon}\frac{dt}{2(n - 1)c(T - t)} = \frac{1}{2(n - 1)c}\log\frac{T}{\varepsilon}: each step removes a fixed fraction of the remaining time. (b) A fixed step Δt\Delta t violates stability once 2(n−1)(T−t)<Δtc2(n - 1)(T - t) < \frac{\Delta t}{c}, so it cannot get closer to TT than a distance of order Δt\Delta t; reaching T−εT - \varepsilon requires Δt≲ε\Delta t \lesssim \varepsilon, hence of order Tε\frac T\varepsilon steps, exponentially more than the adaptive scheme.

Exercise 11.4 Discrete Gauss–Bonnet

Let a closed surface be triangulated with VV vertices, EE edges and FF triangles, each triangle given a Euclidean metric. (a) Show ∑iKi=2πV−πF\sum_iK_i = 2\pi V - \pi F, where KiK_i is the angle deficit. (b) Using 3F=2E3F = 2E, deduce ∑iKi=2π(V−E+F)=2πχ\sum_iK_i = 2\pi(V - E + F) = 2\pi\chi. (c) For the boundary of a regular tetrahedron and of a cube (triangulate each face by a diagonal), compute the deficits and check the formula.

Solution

(a) ∑iKi=∑i2π−∑i∑θ=2πV−(sum of all angles of all triangles)=2πV−πF\sum_iK_i = \sum_i2\pi - \sum_i\sum\theta = 2\pi V - (\text{sum of all angles of all triangles}) = 2\pi V - \pi F. (b) Each triangle has three edges and each edge lies in two triangles, so 3F=2E3F = 2E and πF=2π(E−F)\pi F = 2\pi(E - F); then 2πV−πF=2π(V−E+F)2\pi V - \pi F = 2\pi(V - E + F). (c) Tetrahedron: three equilateral angles π3\frac\pi3 at each vertex, deficit π\pi, total 4π=2π⋅24\pi = 2\pi\cdot2. Cube: three right angles at each vertex, deficit π2\frac\pi2, eight vertices, total 4π4\pi. (The diagonals add no curvature: the triangles in each face fit flat.)

Exercise 11.5 Ollivier curvature

With mxm_x uniform on the neighbours of xx and κ(x,y)=1−W1(mx,my)\kappa(x, y) = 1 - W_1(m_x, m_y) for adjacent xx, yy: (a) for the complete graph KnK_n, show κ=n−2n−1\kappa = \frac{n - 2}{n - 1}; (b) for a cycle CNC_N with N≥6N \geq 6, show κ=0\kappa = 0; (c) for an edge between two vertices of degree 33 in a tree, show κ<0\kappa < 0.

Solution

(a) mxm_x and mym_y both put mass 1n−1\frac{1}{n-1} on each of the n−2n - 2 common neighbours; mxm_x also puts 1n−1\frac{1}{n-1} on yy and mym_y puts 1n−1\frac{1}{n-1} on xx. Moving that mass from yy to xx costs 1n−1\frac{1}{n-1}, and no plan can do better (the two measures differ by 1n−1(δy−δx)\frac{1}{n-1}(\delta_y - \delta_x) and these points are at distance 11), so W1=1n−1W_1 = \frac{1}{n-1} and κ=n−2n−1\kappa = \frac{n - 2}{n - 1}. (b) For y=x+1y = x + 1: mx=12(δx−1+δx+1)m_x = \frac12(\delta_{x-1} + \delta_{x+1}), my=12(δx+δx+2)m_y = \frac12(\delta_x + \delta_{x+2}). Moving x−1→xx - 1 \to x and x+1→x+2x + 1 \to x + 2 costs 12+12=1\frac12 + \frac12 = 1; by the 11-Lipschitz test function ff taking the values −1,0,1,2-1, 0, 1, 2 at x−1,x,x+1,x+2x - 1, x, x + 1, x + 2 (extendable to a 11-Lipschitz function on the cycle when N≥6N \geq 6), W1≥∫f dmy−∫f dmx=1W_1 \geq \int f\,dm_y - \int f\,dm_x = 1. So κ=0\kappa = 0. (c) mxm_x puts 13\frac13 on yy and on two other neighbours aa, bb; mym_y puts 13\frac13 on xx and two others cc, dd. The plan a→xa \to x, y→cy \to c, b→db \to d costs 13(1+1+3)=53\frac13(1 + 1 + 3) = \frac53. Conversely, the function equal to −1-1 at aa, bb, 00 at xx, 11 at yy and 22 at cc, dd is 11-Lipschitz, and ∫f dmy−∫f dmx=43−(−13)=53\int f\,dm_y - \int f\,dm_x = \frac43 - (-\frac13) = \frac53, so W1=53W_1 = \frac53 and κ=1−53=−23<0\kappa = 1 - \frac53 = -\frac23 < 0. The tree's branching pulls neighbourhoods apart, the discrete form of negative curvature.

Free resources for this chapter

Chosen for what this chapter covers, and all free to read. Links checked Oct 20, 2026.

© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.