← All papers
First page of Formalization of the Galerkin Construction for the Two-Dimensional Navier–Stokes Equations in Lean

Formalization of the Galerkin Construction for the Two-Dimensional Navier–Stokes Equations in Lean

Weinan Wang

math.AP Sep 27, 2026 · v1
Formalizes in Lean 4 the Galerkin construction of global Leray–Hopf weak solutions for the 2D Navier–Stokes equations, using Mathlib's Hilbert and Lp theory.
We formalize in Lean 4 the Galerkin construction of global Leray–Hopf weak solutions for the unforced two-dimensional Navier–Stokes equations on arbitrary bounded open domains with no-slip boundary conditions. For every initial datum in the solenoidal \(L^2\) velocity space, the solution has a weakly continuous velocity path, satisfies the weak equation locally in time, and obeys the energy inequality at every time. For rectangles, we also formalize finite-horizon solutions with continuous forcing in the dual energy space. The development includes divergence-free graph spaces, compact spectral coordinates, transport cancellation, Ladyzhenskaya estimates, and simultaneous space–time compactness. The abstract Hilbert-space results apply to evolution equations with a compact energy-to-velocity embedding and a skew trilinear nonlinearity.

Existence of global Leray–Hopf weak solutions for the unforced two-dimensional incompressible Navier–Stokes equations on bounded open domains with no-slip boundary conditions has not been formalized in a proof assistant.

The Galerkin construction is formalized in Lean 4, building divergence-free graph spaces (velocity–gradient closures), a bounded skew trilinear convection form, and compact spectral coordinates. A spectral compactness argument in space–time is developed instead of the Aubin–Lions–Simon lemma, combining Arzelà–Ascoli on finite projections with operator-norm approximation after a compact embedding. Finite-dimensional variational Galerkin solutions are extended to the full interval via an exact energy identity, and Ladyzhenskaya estimates control the transport term. Mathlib's closed-subspace and Lp theory provide the underlying Hilbert-space structure.

For every initial datum in the solenoidal L2 velocity space, a weakly continuous velocity path is obtained that satisfies the weak equation locally in time and obeys the energy inequality at every time. Finite-horizon solutions with continuous forcing in the dual energy space are also formalized for rectangles. The abstract Hilbert-space results apply to evolution equations with a compact energy-to-velocity embedding and a skew trilinear nonlinearity.