8.5. Stokes and Navier–Stokes Flow
8.5.1. Stokes and Incompressible Navier–Stokes
The Stokes system keeps pressure and viscosity but neglects inertial transport:
\partial_tu+\nabla p=\nu\Delta u+f,
\qquad \nabla\mathbin\cdot u=0.
It is linear in (u,p) and gives the basic diffusive model for a viscous
incompressible fluid. Restoring self-advection gives Navier–Stokes:
\partial_tu+(u\mathbin\cdot\nabla)u+\nabla p
=\nu\Delta u+f,
\qquad \nabla\mathbin\cdot u=0.
If U and L are characteristic velocity and length scales, their
Reynolds number is
\operatorname{Re}=\frac{UL}{\nu}
and is positive when all three scales are positive. In the dimensionless equation it measures the competition between inertia and viscosity. Small Reynolds number suppresses convection and leads to Stokes flow. Large Reynolds number makes the inviscid Euler equation the leading interior model, although viscosity can remain decisive near boundaries.
The ratio comes from estimating the two terms at the same length scale:
|(u\cdot\nabla)u| has scale U^2/L, while |\nu\Delta u| has scale
\nu U/L^2. Their ratio is UL/\nu. This is a dimensional comparison;
proving a Stokes approximation or an inviscid limit also requires estimates
on the actual solution and its boundary behavior.
Lean code for Definition8.70●2 definitionsAssociated Lean declarations
- defdefined in PDE/Fluid/Incompressible/ModelHierarchy.leancomplete
def IncompressibleFlow.stokesMomentumResidual (n : ℕ) (ν : ℝ) (u : ℝ^(n + 1) → ℝ^n) (p : ℝ^(n + 1) → ℝ) (f : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
def IncompressibleFlow.stokesMomentumResidual (n : ℕ) (ν : ℝ) (u : ℝ^(n + 1) → ℝ^n) (p : ℝ^(n + 1) → ℝ) (f : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
Stokes momentum residual
∂ₜu + ∇p - νΔu - f.
The three residuals share their pressure and forcing terms, so each pair differs by a single term. The resulting identities are algebraic and hold at every point, without any regularity assumption.
Lean code for Theorem8.71●6 theoremsAssociated Lean declarationsIncompressibleFlow.stokesMomentumResidual_eq_zero_iff[complete]IncompressibleFlow.navierStokesMomentumResidual_eq_zero_iff[complete]IncompressibleFlow.navierStokesMomentumResidual_eq_eulerMomentumResidual_sub_viscousTerm[complete]IncompressibleFlow.navierStokesMomentumResidual_zero_viscosity[complete]IncompressibleFlow.navierStokesMomentumResidual_eq_stokesMomentumResidual_add_convection[complete]IncompressibleFlow.navierStokesMomentumResidual_eq_stokesMomentumResidual_of_convection_eq_zero[complete]
IncompressibleFlow.stokesMomentumResidual_eq_zero_iff[complete]IncompressibleFlow.navierStokesMomentumResidual_eq_zero_iff[complete]IncompressibleFlow.navierStokesMomentumResidual_eq_eulerMomentumResidual_sub_viscousTerm[complete]IncompressibleFlow.navierStokesMomentumResidual_zero_viscosity[complete]IncompressibleFlow.navierStokesMomentumResidual_eq_stokesMomentumResidual_add_convection[complete]IncompressibleFlow.navierStokesMomentumResidual_eq_stokesMomentumResidual_of_convection_eq_zero[complete]
- theoremdefined in PDE/Fluid/Incompressible/ModelHierarchy.leancomplete
theorem IncompressibleFlow.stokesMomentumResidual_eq_zero_iff (n : ℕ) (ν : ℝ) (u : ℝ^(n + 1) → ℝ^n) (p : ℝ^(n + 1) → ℝ) (f : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.stokesMomentumResidual n ν u p f x = 0 ↔ IncompressibleFlow.timeDerivative n u x + PDE.spatialGradient p x = NavierStokes.viscousTerm n ν u x + f x
theorem IncompressibleFlow.stokesMomentumResidual_eq_zero_iff (n : ℕ) (ν : ℝ) (u : ℝ^(n + 1) → ℝ^n) (p : ℝ^(n + 1) → ℝ) (f : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.stokesMomentumResidual n ν u p f x = 0 ↔ IncompressibleFlow.timeDerivative n u x + PDE.spatialGradient p x = NavierStokes.viscousTerm n ν u x + f x
A zero Stokes residual is exactly the pointwise Stokes momentum equation.
8.5.1.1. A certified forced shear flow
Let
u(x,y)=(\sin y,0),\qquad p=0,\qquad
f=(\sin y,0),\qquad \nu=1.
The velocity is divergence-free, and (u\cdot\nabla)u=0 because the field
depends only on y while advection points in the x direction. Since
\Delta(\sin y)=-\sin y, the forcing balances viscosity.
The sine mode in the parabolic chapter decayed because this same Laplacian was left unbalanced. Here forcing keeps the profile stationary. The symbolic calculation can therefore reuse familiar scalar derivatives; the fluid content is the additional check that incompressibility and convection behave as claimed.
Lean code for Theorem8.72●3 declarationsAssociated Lean declarations
The certificate closes an ordinary proof goal:
-- Project a checked zero residual into the proof goal.
open CAS.Certificate
open NavierStokes.Symbolic
example :
ResidualBound
shearNavierStokesMomentumResidual2.vectorFn
Set.univ 0 := ⊢ ResidualBound shearNavierStokesMomentumResidual2.vectorFn Set.univ 0
All goals completed! 🐙
Lean code for Theorem8.73●1 theoremAssociated Lean declarations
For an approximate or numerically generated field, a validated backend may instead supply a positive error,
\|R_{NS}(x)\|\leq\varepsilon\qquad(x\in\Omega),
and CEGA projects such a certificate in the same way, proving a uniform residual estimate.
8.5.1.2. Initial-value data
Lean code for Definition8.74●3 declarationsAssociated Lean declarations
- defdefined in PDE/Fluid/Incompressible/Operators.leancomplete
def IncompressibleFlow.DistributionallyDivergenceFree {n : ℕ} (v : ℝ^n → ℝ^n) : Prop
def IncompressibleFlow.DistributionallyDivergenceFree {n : ℕ} (v : ℝ^n → ℝ^n) : Prop
Distributional incompressibility of a spatial vector field.
The integrability clause is explicit because Lean's integral is totalized. For every smooth compactly supported scalar test
ψ, this is the identity∫ v · ∇ψ = 0, equivalent todiv v = 0in distributions. - theoremdefined in PDE/Fluid/Incompressible/Operators.leancomplete
theorem IncompressibleFlow.SpatialFieldDivergenceFree.distributionallyDivergenceFree {n : ℕ} {v : ℝ^n → ℝ^n} (hdiv : IncompressibleFlow.SpatialFieldDivergenceFree v) (hv : ContDiff ℝ 1 v) : IncompressibleFlow.DistributionallyDivergenceFree v
theorem IncompressibleFlow.SpatialFieldDivergenceFree.distributionallyDivergenceFree {n : ℕ} {v : ℝ^n → ℝ^n} (hdiv : IncompressibleFlow.SpatialFieldDivergenceFree v) (hv : ContDiff ℝ 1 v) : IncompressibleFlow.DistributionallyDivergenceFree v
A
C¹pointwise divergence-free spatial field is distributionally divergence-free.
8.5.1.3. Classical solutions
Lean code for Definition8.75●2 declarationsAssociated Lean declarations
Smoothness at positive times turns the totalized derivatives into classical ones.
Lean code for Definition8.76●4 declarationsAssociated Lean declarations
With classical derivatives available, the divergence of the momentum equation can be taken as for Euler; the viscous term is the only new contribution.
Lean code for Theorem8.77●6 theoremsAssociated Lean declarationsNavierStokes.spatialDivergence_viscousTerm[complete]IncompressibleFlow.spatialDivergence_spatialVectorLaplacian_eq_spatialLaplacian_spatialDivergence[complete]IncompressibleFlow.spatialDivergence_spatialVectorLaplacian_eq_zero_of_eventually_divergenceFreeAt[complete]IncompressibleFlow.pressurePoissonResidual_eq_zero_of_eventually_momentum_eq_add[complete]NavierStokes.SmoothSolution.pressurePoissonResidual_eq_zero[complete]NavierStokes.GlobalSmoothSolution.pressurePoissonResidual_eq_zero[complete]
NavierStokes.spatialDivergence_viscousTerm[complete]IncompressibleFlow.spatialDivergence_spatialVectorLaplacian_eq_spatialLaplacian_spatialDivergence[complete]IncompressibleFlow.spatialDivergence_spatialVectorLaplacian_eq_zero_of_eventually_divergenceFreeAt[complete]IncompressibleFlow.pressurePoissonResidual_eq_zero_of_eventually_momentum_eq_add[complete]NavierStokes.SmoothSolution.pressurePoissonResidual_eq_zero[complete]NavierStokes.GlobalSmoothSolution.pressurePoissonResidual_eq_zero[complete]
- theoremdefined in PDE/Fluid/Incompressible/Pressure.leancomplete
theorem IncompressibleFlow.spatialDivergence_spatialVectorLaplacian_eq_spatialLaplacian_spatialDivergence (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (i : Fin n), ContDiffAt ℝ 3 (fun y ↦ (u y).ofLp i) x) : IncompressibleFlow.spatialDivergence n (IncompressibleFlow.spatialVectorLaplacian n u) x = IncompressibleFlow.spatialLaplacian n (IncompressibleFlow.spatialDivergence n u) x
theorem IncompressibleFlow.spatialDivergence_spatialVectorLaplacian_eq_spatialLaplacian_spatialDivergence (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (i : Fin n), ContDiffAt ℝ 3 (fun y ↦ (u y).ofLp i) x) : IncompressibleFlow.spatialDivergence n (IncompressibleFlow.spatialVectorLaplacian n u) x = IncompressibleFlow.spatialLaplacian n (IncompressibleFlow.spatialDivergence n u) x
For a componentwise
C³velocity field, spatial divergence commutes with the spatial vector Laplacian. - theoremdefined in PDE/Fluid/Incompressible/Pressure.leancomplete
theorem IncompressibleFlow.spatialDivergence_spatialVectorLaplacian_eq_zero_of_eventually_divergenceFreeAt (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (i : Fin n), ContDiffAt ℝ 3 (fun y ↦ (u y).ofLp i) x) (hdiv : ∀ᶠ (y : ℝ^(n + 1)) in nhds x, IncompressibleFlow.DivergenceFreeAt u y) : IncompressibleFlow.spatialDivergence n (IncompressibleFlow.spatialVectorLaplacian n u) x = 0
theorem IncompressibleFlow.spatialDivergence_spatialVectorLaplacian_eq_zero_of_eventually_divergenceFreeAt (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (i : Fin n), ContDiffAt ℝ 3 (fun y ↦ (u y).ofLp i) x) (hdiv : ∀ᶠ (y : ℝ^(n + 1)) in nhds x, IncompressibleFlow.DivergenceFreeAt u y) : IncompressibleFlow.spatialDivergence n (IncompressibleFlow.spatialVectorLaplacian n u) x = 0
A componentwise
C³velocity that is incompressible nearxhas a spatial vector Laplacian with zero spatial divergence atx. - theoremdefined in PDE/Fluid/Incompressible/Pressure.leancomplete
theorem IncompressibleFlow.pressurePoissonResidual_eq_zero_of_eventually_momentum_eq_add (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (p : ℝ^(n + 1) → ℝ) (g f : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (i : Fin n), ContDiffAt ℝ 2 (fun y ↦ (u y).ofLp i) x) (hp : ContDiffAt ℝ 2 p x) (hg : ∀ (i : Fin n), DifferentiableAt ℝ (fun y ↦ (g y).ofLp i) x) (hdivg : IncompressibleFlow.spatialDivergence n g x = 0) (hdivu : ∀ᶠ (y : ℝ^(n + 1)) in nhds x, IncompressibleFlow.DivergenceFreeAt u y) (hmomentum : ∀ᶠ (y : ℝ^(n + 1)) in nhds x, IncompressibleFlow.timeDerivative n u y + IncompressibleFlow.convectiveDerivative n u u y + PDE.spatialGradient p y = g y + f y) : IncompressibleFlow.pressurePoissonResidual n u p f x = 0
theorem IncompressibleFlow.pressurePoissonResidual_eq_zero_of_eventually_momentum_eq_add (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (p : ℝ^(n + 1) → ℝ) (g f : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (i : Fin n), ContDiffAt ℝ 2 (fun y ↦ (u y).ofLp i) x) (hp : ContDiffAt ℝ 2 p x) (hg : ∀ (i : Fin n), DifferentiableAt ℝ (fun y ↦ (g y).ofLp i) x) (hdivg : IncompressibleFlow.spatialDivergence n g x = 0) (hdivu : ∀ᶠ (y : ℝ^(n + 1)) in nhds x, IncompressibleFlow.DivergenceFreeAt u y) (hmomentum : ∀ᶠ (y : ℝ^(n + 1)) in nhds x, IncompressibleFlow.timeDerivative n u y + IncompressibleFlow.convectiveDerivative n u u y + PDE.spatialGradient p y = g y + f y) : IncompressibleFlow.pressurePoissonResidual n u p f x = 0
A locally valid momentum equation with a differentiable, divergence-free term added to the force has the same pressure Poisson equation as the corresponding Euler momentum equation.
8.5.1.4. Pressure from the vorticity equation
The pressure Poisson equation is one consequence of the momentum balance.
Conversely, in a force-free flow the momentum equation determines
\nabla_xp=\nu\Delta_xu-D_t^uu, so pressure can be reconstructed from the
velocity alone whenever that candidate field is a gradient. The compatibility
condition is exactly the vorticity equation.
Lean code for Definition8.78●3 definitionsAssociated Lean declarations
- defdefined in PDE/Fluid/Incompressible/Vorticity.leancomplete
def IncompressibleFlow.spatialVorticityForm (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
def IncompressibleFlow.spatialVorticityForm (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
Spatial vorticity two-form with components
Ωᵢⱼ = ∂ᵢuⱼ - ∂ⱼuᵢ. - defdefined in PDE/Fluid/Incompressible/VorticityForm.leancomplete
def IncompressibleFlow.vorticityFormTransportResidual (n : ℕ) (ν : ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
def IncompressibleFlow.vorticityFormTransportResidual (n : ℕ) (ν : ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
Transport-diffusion residual of the spatial vorticity two-form.
The deformation terms are the coordinate expression of the Lie derivative of a two-form. At zero viscosity this is the Euler vorticity equation.
- defdefined in PDE/Fluid/Incompressible/VorticityForm.leancomplete
def IncompressibleFlow.spacetimeSpatialCurl (u : ℝ^4 → ℝ^3) : ℝ^4 → ℝ^3
def IncompressibleFlow.spacetimeSpatialCurl (u : ℝ^4 → ℝ^3) : ℝ^4 → ℝ^3
The spatial curl of each fixed-time slice, assembled as a spacetime vector field. This is the general, non-axisymmetric wrapper around
spatialCurl.
In three dimensions an antisymmetric matrix has three independent entries, and
for \Omega these are the components of \nabla\times u. The two-form
residual and the vector residual introduced for Euler should therefore carry
the same information, and they do, up to a correction proportional to
\nabla\cdot u that disappears for incompressible flow.
Lean code for Theorem8.79●3 theoremsAssociated Lean declarations
- theoremdefined in PDE/Fluid/NavierStokes/PressureFromVorticity.leancomplete
theorem IncompressibleFlow.vorticityFormTransportResidual_eq_zero_iff_vectorVorticity (ν : ℝ) (u : ℝ^4 → ℝ^3) (hu : ContDiff ℝ 3 u) (xt : ℝ^4) (hdiv : IncompressibleFlow.DivergenceFreeAt u xt) : IncompressibleFlow.vorticityFormTransportResidual 3 ν u xt = 0 ↔ IncompressibleFlow.vorticityTransportResidual 3 ν u (IncompressibleFlow.spacetimeSpatialCurl u) xt = 0
theorem IncompressibleFlow.vorticityFormTransportResidual_eq_zero_iff_vectorVorticity (ν : ℝ) (u : ℝ^4 → ℝ^3) (hu : ContDiff ℝ 3 u) (xt : ℝ^4) (hdiv : IncompressibleFlow.DivergenceFreeAt u xt) : IncompressibleFlow.vorticityFormTransportResidual 3 ν u xt = 0 ↔ IncompressibleFlow.vorticityTransportResidual 3 ν u (IncompressibleFlow.spacetimeSpatialCurl u) xt = 0
For a divergence-free
C³velocity in three dimensions, the familiar vector-vorticity equation and the intrinsic two-form equation are equivalent. - theoremdefined in PDE/Fluid/NavierStokes/PressureFromVorticity.leancomplete
theorem IncompressibleFlow.vorticityFormTransportResidual_eq_zero_of_vectorVorticity (ν : ℝ) (u : ℝ^4 → ℝ^3) (hu : ContDiff ℝ 3 u) (xt : ℝ^4) (hdiv : IncompressibleFlow.DivergenceFreeAt u xt) (hvorticity : IncompressibleFlow.vorticityTransportResidual 3 ν u (IncompressibleFlow.spacetimeSpatialCurl u) xt = 0) : IncompressibleFlow.vorticityFormTransportResidual 3 ν u xt = 0
theorem IncompressibleFlow.vorticityFormTransportResidual_eq_zero_of_vectorVorticity (ν : ℝ) (u : ℝ^4 → ℝ^3) (hu : ContDiff ℝ 3 u) (xt : ℝ^4) (hdiv : IncompressibleFlow.DivergenceFreeAt u xt) (hvorticity : IncompressibleFlow.vorticityTransportResidual 3 ν u (IncompressibleFlow.spacetimeSpatialCurl u) xt = 0) : IncompressibleFlow.vorticityFormTransportResidual 3 ν u xt = 0
For a divergence-free
C³velocity, vanishing of the three-dimensional vector-vorticity residual implies vanishing of the vorticity two-form residual, which is the direction needed for pressure reconstruction.The proof includes the exact correction before incompressibility: each cyclic two-form component is the corresponding vector residual plus
(div u)ω. - theoremdefined in PDE/Fluid/Incompressible/VorticityForm.leancomplete
theorem IncompressibleFlow.vorticityTransportResidual_eq_zero_of_vorticityForm (ν : ℝ) (u : ℝ^4 → ℝ^3) (hu : ContDiff ℝ 1 u) (xt : ℝ^4) (hdiv : IncompressibleFlow.DivergenceFreeAt u xt) (hvorticity : IncompressibleFlow.vorticityFormTransportResidual 3 ν u xt = 0) : IncompressibleFlow.vorticityTransportResidual 3 ν u (IncompressibleFlow.spacetimeSpatialCurl u) xt = 0
theorem IncompressibleFlow.vorticityTransportResidual_eq_zero_of_vorticityForm (ν : ℝ) (u : ℝ^4 → ℝ^3) (hu : ContDiff ℝ 1 u) (xt : ℝ^4) (hdiv : IncompressibleFlow.DivergenceFreeAt u xt) (hvorticity : IncompressibleFlow.vorticityFormTransportResidual 3 ν u xt = 0) : IncompressibleFlow.vorticityTransportResidual 3 ν u (IncompressibleFlow.spacetimeSpatialCurl u) xt = 0
Under incompressibility, vanishing of the intrinsic two-form residual implies vanishing of the familiar three-dimensional vector residual.
The connection with pressure runs through the antisymmetrized derivative of the
candidate field F(u)=\nu\Delta_xu-D_t^uu. Differentiating F(u) and
commuting mixed derivatives reproduces, term by term, the two-form residual
with the opposite sign, so the vorticity equation is precisely the statement
that F(u) has a symmetric Jacobian.
Lean code for Theorem8.80●4 theoremsAssociated Lean declarationsIncompressibleFlow.antisymmetric_navierStokesPressureCandidate_eq_neg_vorticityResidual[complete]IncompressibleFlow.antisymmetric_navierStokesPressureCandidate_eq_neg_vorticityResidual_of_contDiffAt[complete]IncompressibleFlow.navierStokesPressureCandidate_eventuallyEq[complete]IncompressibleFlow.contDiffAt_navierStokesPressureCandidate[complete]
IncompressibleFlow.antisymmetric_navierStokesPressureCandidate_eq_neg_vorticityResidual[complete]IncompressibleFlow.antisymmetric_navierStokesPressureCandidate_eq_neg_vorticityResidual_of_contDiffAt[complete]IncompressibleFlow.navierStokesPressureCandidate_eventuallyEq[complete]IncompressibleFlow.contDiffAt_navierStokesPressureCandidate[complete]
A C^1 field with symmetric Jacobian on an open convex set is a gradient, by
integration along segments from a base point. Applied slice by slice to
F(u), this converts the vorticity equation into the existence of a pressure
closing the force-free momentum equation.
Lean code for Theorem8.81●4 theoremsAssociated Lean declarationsIncompressibleFlow.exists_pressure_navierStokes_momentum_equation_of_vorticity[complete]IncompressibleFlow.exists_pressure_euler_momentum_equation_of_vorticity[complete]IncompressibleFlow.exists_pressure_navierStokes_momentum_equation_of_vectorVorticity[complete]IncompressibleFlow.exists_pressure_euler_momentum_equation_of_vectorVorticity_of_contDiffAt_two[complete]
IncompressibleFlow.exists_pressure_navierStokes_momentum_equation_of_vorticity[complete]IncompressibleFlow.exists_pressure_euler_momentum_equation_of_vorticity[complete]IncompressibleFlow.exists_pressure_navierStokes_momentum_equation_of_vectorVorticity[complete]IncompressibleFlow.exists_pressure_euler_momentum_equation_of_vectorVorticity_of_contDiffAt_two[complete]
- theoremdefined in PDE/Fluid/NavierStokes/PressureFromVorticity.leancomplete
theorem IncompressibleFlow.exists_pressure_euler_momentum_equation_of_vorticity {n : ℕ} {s : Set ℝ^n} (hs : Convex ℝ s) (hso : IsOpen s) (I : Set ℝ) (u : ℝ^(n + 1) → ℝ^n) (hu : ∀ t ∈ I, ∀ x ∈ s, ContDiffAt ℝ 3 u (PDE.Common.timeSpaceCons t x)) (hvorticity : ∀ t ∈ I, ∀ x ∈ s, IncompressibleFlow.vorticityFormTransportResidual n 0 u (PDE.Common.timeSpaceCons t x) = 0) : ∃ p, ∀ t ∈ I, ∀ x ∈ s, HasGradientAt (p t) (-IncompressibleFlow.materialDerivative n u u (PDE.Common.timeSpaceCons t x)) x ∧ IncompressibleFlow.materialDerivative n u u (PDE.Common.timeSpaceCons t x) + gradient (p t) x = 0
theorem IncompressibleFlow.exists_pressure_euler_momentum_equation_of_vorticity {n : ℕ} {s : Set ℝ^n} (hs : Convex ℝ s) (hso : IsOpen s) (I : Set ℝ) (u : ℝ^(n + 1) → ℝ^n) (hu : ∀ t ∈ I, ∀ x ∈ s, ContDiffAt ℝ 3 u (PDE.Common.timeSpaceCons t x)) (hvorticity : ∀ t ∈ I, ∀ x ∈ s, IncompressibleFlow.vorticityFormTransportResidual n 0 u (PDE.Common.timeSpaceCons t x) = 0) : ∃ p, ∀ t ∈ I, ∀ x ∈ s, HasGradientAt (p t) (-IncompressibleFlow.materialDerivative n u u (PDE.Common.timeSpaceCons t x)) x ∧ IncompressibleFlow.materialDerivative n u u (PDE.Common.timeSpaceCons t x) + gradient (p t) x = 0
The inviscid specialization reconstructs a slice-wise pressure for the force-free Euler momentum equation from the Euler vorticity-form equation.
- theoremdefined in PDE/Fluid/NavierStokes/PressureFromVorticity.leancomplete
theorem IncompressibleFlow.exists_pressure_euler_momentum_equation_of_vectorVorticity_of_contDiffAt_two {s : Set ℝ^3} (hs : Convex ℝ s) (hso : IsOpen s) (I : Set ℝ) (u : ℝ^4 → ℝ^3) (hu : ∀ t ∈ I, ∀ x ∈ s, ContDiffAt ℝ 2 u (PDE.Common.timeSpaceCons t x)) (hdiv : ∀ t ∈ I, ∀ x ∈ s, IncompressibleFlow.DivergenceFreeAt u (PDE.Common.timeSpaceCons t x)) (hvorticity : ∀ t ∈ I, ∀ x ∈ s, IncompressibleFlow.vorticityTransportResidual 3 0 u (IncompressibleFlow.spacetimeSpatialCurl u) (PDE.Common.timeSpaceCons t x) = 0) : ∃ p, ∀ t ∈ I, ∀ x ∈ s, HasGradientAt (p t) (-IncompressibleFlow.materialDerivative 3 u u (PDE.Common.timeSpaceCons t x)) x ∧ IncompressibleFlow.materialDerivative 3 u u (PDE.Common.timeSpaceCons t x) + gradient (p t) x = 0
theorem IncompressibleFlow.exists_pressure_euler_momentum_equation_of_vectorVorticity_of_contDiffAt_two {s : Set ℝ^3} (hs : Convex ℝ s) (hso : IsOpen s) (I : Set ℝ) (u : ℝ^4 → ℝ^3) (hu : ∀ t ∈ I, ∀ x ∈ s, ContDiffAt ℝ 2 u (PDE.Common.timeSpaceCons t x)) (hdiv : ∀ t ∈ I, ∀ x ∈ s, IncompressibleFlow.DivergenceFreeAt u (PDE.Common.timeSpaceCons t x)) (hvorticity : ∀ t ∈ I, ∀ x ∈ s, IncompressibleFlow.vorticityTransportResidual 3 0 u (IncompressibleFlow.spacetimeSpatialCurl u) (PDE.Common.timeSpaceCons t x) = 0) : ∃ p, ∀ t ∈ I, ∀ x ∈ s, HasGradientAt (p t) (-IncompressibleFlow.materialDerivative 3 u u (PDE.Common.timeSpaceCons t x)) x ∧ IncompressibleFlow.materialDerivative 3 u u (PDE.Common.timeSpaceCons t x) + gradient (p t) x = 0
A locally
C²velocity with zero divergence and vanishing Euler transport residual for its curl admits pressure on each open convex spatial slice.The pressure is chosen independently on each time slice.
Pressure reconstruction completes the pointwise picture: on the selected slices the velocity alone fixes the pressure gradient. Estimates, on the other hand, come from integrated quantities, first among them the kinetic energy, and these have to be defined so that they make sense for weak velocities whose derivatives exist only distributionally.
Lean code for Definition8.82●5 definitionsAssociated Lean declarationsNavierStokes.kineticEnergy[complete]NavierStokes.initialKineticEnergy[complete]NavierStokes.enstrophy[complete]NavierStokes.classicalVelocityGradientDissipation[complete]NavierStokes.weakGradientDissipation[complete]
NavierStokes.kineticEnergy[complete]NavierStokes.initialKineticEnergy[complete]NavierStokes.enstrophy[complete]NavierStokes.classicalVelocityGradientDissipation[complete]NavierStokes.weakGradientDissipation[complete]
8.5.1.5. Weak solutions
Lean code for Definition8.83●2 definitionsAssociated Lean declarationsNavierStokes.weakMomentumIntegrand[complete]NavierStokes.WeakMomentumIntegrableOn[complete]
NavierStokes.weakMomentumIntegrand[complete]NavierStokes.WeakMomentumIntegrableOn[complete]
Lean code for Definition8.84●5 declarationsAssociated Lean declarations
The componentwise gradient witnesses use the weak-derivative relation developed in the Sobolev chapter. The fluid formulation adds the momentum identity, incompressibility, pressure, and time dependence; it keeps the same weak calculus.
8.5.1.6. Energy and Leray–Hopf solutions
Lean code for Theorem8.85●6 theoremsAssociated Lean declarationsIncompressibleFlow.partialDeriv_specificKineticEnergy[complete]IncompressibleFlow.convectivePower_eq_kineticEnergyTransport[complete]IncompressibleFlow.spatialDivergence_kineticEnergyFlux_eq_kineticEnergyTransport_add[complete]IncompressibleFlow.convectivePower_eq_spatialDivergence_kineticEnergyFlux_of_divergenceFreeAt[complete]IncompressibleFlow.spatialDivergence_pressureFlux_eq_pressurePower_add[complete]IncompressibleFlow.pressurePower_eq_spatialDivergence_pressureFlux_of_divergenceFreeAt[complete]
IncompressibleFlow.partialDeriv_specificKineticEnergy[complete]IncompressibleFlow.convectivePower_eq_kineticEnergyTransport[complete]IncompressibleFlow.spatialDivergence_kineticEnergyFlux_eq_kineticEnergyTransport_add[complete]IncompressibleFlow.convectivePower_eq_spatialDivergence_kineticEnergyFlux_of_divergenceFreeAt[complete]IncompressibleFlow.spatialDivergence_pressureFlux_eq_pressurePower_add[complete]IncompressibleFlow.pressurePower_eq_spatialDivergence_pressureFlux_of_divergenceFreeAt[complete]
- theoremdefined in PDE/Fluid/Incompressible/EnergyIdentities.leancomplete
theorem IncompressibleFlow.partialDeriv_specificKineticEnergy {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (j : Fin n) (hu : ∀ (i : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp i) x) : ∂[j.succ] (IncompressibleFlow.specificKineticEnergy u) x = ∑ i, (u x).ofLp i * (∂[j.succ] fun y ↦ (u y).ofLp i) x
theorem IncompressibleFlow.partialDeriv_specificKineticEnergy {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (j : Fin n) (hu : ∀ (i : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp i) x) : ∂[j.succ] (IncompressibleFlow.specificKineticEnergy u) x = ∑ i, (u x).ofLp i * (∂[j.succ] fun y ↦ (u y).ofLp i) x
A spatial derivative of specific kinetic energy is the velocity paired with the corresponding spatial derivative of velocity.
- theoremdefined in PDE/Fluid/Incompressible/EnergyIdentities.leancomplete
theorem IncompressibleFlow.convectivePower_eq_kineticEnergyTransport {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (i : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp i) x) : IncompressibleFlow.convectivePower u x = IncompressibleFlow.kineticEnergyTransport u x
theorem IncompressibleFlow.convectivePower_eq_kineticEnergyTransport {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (i : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp i) x) : IncompressibleFlow.convectivePower u x = IncompressibleFlow.kineticEnergyTransport u x
The convective power equals transport of the specific kinetic energy.
- theoremdefined in PDE/Fluid/Incompressible/EnergyIdentities.leancomplete
theorem IncompressibleFlow.spatialDivergence_kineticEnergyFlux_eq_kineticEnergyTransport_add {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) : IncompressibleFlow.spatialDivergence n (IncompressibleFlow.kineticEnergyFlux u) x = IncompressibleFlow.kineticEnergyTransport u x + IncompressibleFlow.specificKineticEnergy u x * IncompressibleFlow.spatialDivergence n u x
theorem IncompressibleFlow.spatialDivergence_kineticEnergyFlux_eq_kineticEnergyTransport_add {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) : IncompressibleFlow.spatialDivergence n (IncompressibleFlow.kineticEnergyFlux u) x = IncompressibleFlow.kineticEnergyTransport u x + IncompressibleFlow.specificKineticEnergy u x * IncompressibleFlow.spatialDivergence n u x
The divergence of the kinetic-energy flux is energy transport plus specific kinetic energy times the spatial divergence of velocity.
- theoremdefined in PDE/Fluid/Incompressible/EnergyIdentities.leancomplete
theorem IncompressibleFlow.convectivePower_eq_spatialDivergence_kineticEnergyFlux_of_divergenceFreeAt {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) (hdiv : IncompressibleFlow.DivergenceFreeAt u x) : IncompressibleFlow.convectivePower u x = IncompressibleFlow.spatialDivergence n (IncompressibleFlow.kineticEnergyFlux u) x
theorem IncompressibleFlow.convectivePower_eq_spatialDivergence_kineticEnergyFlux_of_divergenceFreeAt {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) (hdiv : IncompressibleFlow.DivergenceFreeAt u x) : IncompressibleFlow.convectivePower u x = IncompressibleFlow.spatialDivergence n (IncompressibleFlow.kineticEnergyFlux u) x
For a differentiable divergence-free velocity, convective power is the divergence of the kinetic-energy flux.
- theoremdefined in PDE/Fluid/Incompressible/EnergyIdentities.leancomplete
theorem IncompressibleFlow.spatialDivergence_pressureFlux_eq_pressurePower_add {n : ℕ} (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hp : DifferentiableAt ℝ p x) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) : IncompressibleFlow.spatialDivergence n (IncompressibleFlow.pressureFlux p u) x = IncompressibleFlow.pressurePower p u x + p x * IncompressibleFlow.spatialDivergence n u x
theorem IncompressibleFlow.spatialDivergence_pressureFlux_eq_pressurePower_add {n : ℕ} (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hp : DifferentiableAt ℝ p x) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) : IncompressibleFlow.spatialDivergence n (IncompressibleFlow.pressureFlux p u) x = IncompressibleFlow.pressurePower p u x + p x * IncompressibleFlow.spatialDivergence n u x
The divergence of the pressure flux is pressure power plus pressure times the spatial divergence of velocity.
- theoremdefined in PDE/Fluid/Incompressible/EnergyIdentities.leancomplete
theorem IncompressibleFlow.pressurePower_eq_spatialDivergence_pressureFlux_of_divergenceFreeAt {n : ℕ} (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hp : DifferentiableAt ℝ p x) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) (hdiv : IncompressibleFlow.DivergenceFreeAt u x) : IncompressibleFlow.pressurePower p u x = IncompressibleFlow.spatialDivergence n (IncompressibleFlow.pressureFlux p u) x
theorem IncompressibleFlow.pressurePower_eq_spatialDivergence_pressureFlux_of_divergenceFreeAt {n : ℕ} (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hp : DifferentiableAt ℝ p x) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) (hdiv : IncompressibleFlow.DivergenceFreeAt u x) : IncompressibleFlow.pressurePower p u x = IncompressibleFlow.spatialDivergence n (IncompressibleFlow.pressureFlux p u) x
For a divergence-free velocity, pressure power is the divergence of the pressure flux.
The abstract time-regularity step behind this calculation is the
Lions–Magenes energy
identity. Under the Gelfand-triple hypotheses stated there, an L^2_tV
trajectory with weak time derivative in L^2_tV^* has a continuous
H-valued representative and an exact squared-norm identity. Applying it to
Navier–Stokes requires the equation to supply that dual-space time regularity.
For a smooth solution with zero forcing and enough spatial decay and
integrability to differentiate under the integral and integrate by parts,
multiply the Navier–Stokes equation by u and integrate over
\mathbb R^3:
\frac12\frac{d}{dt}\int|u|^2\,dx
+\nu\int|\nabla u|^2\,dx
=-\int(u\cdot\nabla)u\cdot u\,dx
-\int\nabla p\cdot u\,dx.
The pressure term vanishes by incompressibility:
\int\nabla p\cdot u=-\int p\,\nabla\cdot u=0. The nonlinear term
also vanishes:
\int(u\cdot\nabla)u\cdot u=\frac12\int u\cdot\nabla|u|^2
=-\frac12\int|u|^2\nabla\cdot u=0.
These cancellations give the energy identity:
\frac12\|u(t)\|_{L^2}^2+\nu\int_0^t\|\nabla u(s)\|_{L^2}^2\,ds
=\frac12\|u_0\|_{L^2}^2.
Kinetic energy decreases by the accumulated viscous dissipation.
Lean code for Definition8.86●4 definitionsAssociated Lean declarations
Lean code for Theorem8.87●4 theoremsAssociated Lean declarationsNavierStokes.WeakSolution.kineticEnergy_eq_velocityL2Slice_norm_sq[complete]NavierStokes.WeakSolution.initialKineticEnergy_eq_initialVelocityL2_norm_sq[complete]NavierStokes.WeakSolution.weakGradientDissipation_eq_gradientL2Slice_norm_sq[complete]NavierStokes.WeakSolution.weakGradientDissipation_integrableOn_of_gradient_memLp[complete]
NavierStokes.WeakSolution.kineticEnergy_eq_velocityL2Slice_norm_sq[complete]NavierStokes.WeakSolution.initialKineticEnergy_eq_initialVelocityL2_norm_sq[complete]NavierStokes.WeakSolution.weakGradientDissipation_eq_gradientL2Slice_norm_sq[complete]NavierStokes.WeakSolution.weakGradientDissipation_integrableOn_of_gradient_memLp[complete]
The Leray–Hopf class uses both readings: its a priori bounds are
L^\infty_tL^2_x and L^2_tL^2_x membership of the slice maps,
while its energy inequality is written with the integrals E(t) and
\int|Du|^2.
Lean code for Definition8.88●5 declarationsAssociated Lean declarationsNavierStokes.LerayHopfSolution[complete]NavierStokes.LerayHopfSolution.velocity_gradient_memLp[complete]NavierStokes.LerayHopfSolution.energy_inequality[complete]NavierStokes.PressureRepresentativeLerayHopfSolution[complete]NavierStokes.PressureRepresentativeLerayHopfSolution.toLerayHopfSolution[complete]
NavierStokes.LerayHopfSolution[complete]NavierStokes.LerayHopfSolution.velocity_gradient_memLp[complete]NavierStokes.LerayHopfSolution.energy_inequality[complete]NavierStokes.PressureRepresentativeLerayHopfSolution[complete]NavierStokes.PressureRepresentativeLerayHopfSolution.toLerayHopfSolution[complete]
The linear weak-evolution chapter already supplies
Galerkin weak compactness.
For Navier–Stokes, weak convergence alone does not identify the quadratic
term u\otimes u. On bounded subdomains,
Rellich–Kondrachov compactness
and Aubin–Lions compactness are the
model inputs for obtaining strong spacetime convergence. Once strong
L^2 convergence is available,
the bilinear L^2-to-L^1
limit theorem identifies the corresponding quadratic product. A whole-space
construction also needs localization and control at infinity. These are the
additional nonlinear compactness steps between the abstract parabolic
machinery and Leray's global weak existence theorem.
The product estimate shows exactly where strong convergence enters. Write
u_j\otimes u_j-u\otimes u
=(u_j-u)\otimes u_j+u\otimes(u_j-u).
On a fixed spacetime region, Hölder's inequality gives
\|u_j\otimes u_j-u\otimes u\|_{L^1}
\leq \|u_j-u\|_{L^2}
\bigl(\|u_j\|_{L^2}+\|u\|_{L^2}\bigr).
Strong L^2 convergence makes the first factor vanish and bounds the
second. Weak convergence preserves the linear divergence constraint, but
does not provide this vanishing factor for convection. This is the role of
compactness in an existence proof, beyond writing down the weak equation.
8.5.1.7. Energy in similarity variables
The linearized stationary operator in Hou et al. (2025), §4.1 includes a dilation drift as well as the usual viscous and transport terms. Its energy calculation starts with smooth compact test fields.
Lean code for Theorem8.89●13 declarationsAssociated Lean declarationsPDE.Analysis.integral_inner_advection_eq_neg_half_divergence[complete]PDE.Analysis.integral_inner_advection_eq_zero[complete]PDE.Analysis.integral_inner_dilation_eq_neg[complete]PDE.Analysis.integral_inner_similarity_drift[complete]NavierStokes.similarity_principal_pairing_lower_bound[complete]NavierStokes.similarity_principal_weak_pairing_lower_bound[complete]NavierStokes.similarityPrincipalForm[complete]NavierStokes.similarityPrincipalForm_apply[complete]NavierStokes.similarityPrincipalForm_lower_bound[complete]NavierStokes.similarityPrincipalForm_isCoercive[complete]NavierStokes.solenoidalSimilarityPrincipalForm[complete]NavierStokes.solenoidalSimilarityPrincipalForm_isCoercive[complete]NavierStokes.existsUnique_solenoidal_similarity_principal_solution[complete]
PDE.Analysis.integral_inner_advection_eq_neg_half_divergence[complete]PDE.Analysis.integral_inner_advection_eq_zero[complete]PDE.Analysis.integral_inner_dilation_eq_neg[complete]PDE.Analysis.integral_inner_similarity_drift[complete]NavierStokes.similarity_principal_pairing_lower_bound[complete]NavierStokes.similarity_principal_weak_pairing_lower_bound[complete]NavierStokes.similarityPrincipalForm[complete]NavierStokes.similarityPrincipalForm_apply[complete]NavierStokes.similarityPrincipalForm_lower_bound[complete]NavierStokes.similarityPrincipalForm_isCoercive[complete]NavierStokes.solenoidalSimilarityPrincipalForm[complete]NavierStokes.solenoidalSimilarityPrincipalForm_isCoercive[complete]NavierStokes.existsUnique_solenoidal_similarity_principal_solution[complete]
- theoremdefined in PDE/Analysis/Integration/InnerProductByParts.leancomplete
theorem PDE.Analysis.integral_inner_advection_eq_neg_half_divergence.{u_1} {n : ℕ} {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {u : ℝ^n → E} {b : ℝ^n → ℝ^n} (hu : ContDiff ℝ 1 u) (hb : ContDiff ℝ 1 b) (hc : HasCompactSupport u) : ∫ (x : ℝ^n), inner ℝ ((fderiv ℝ u x) (b x)) (u x) = -(1 / 2) * ∫ (x : ℝ^n), ‖u x‖ ^ 2 * ∇· b x
theorem PDE.Analysis.integral_inner_advection_eq_neg_half_divergence.{u_1} {n : ℕ} {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {u : ℝ^n → E} {b : ℝ^n → ℝ^n} (hu : ContDiff ℝ 1 u) (hb : ContDiff ℝ 1 b) (hc : HasCompactSupport u) : ∫ (x : ℝ^n), inner ℝ ((fderiv ℝ u x) (b x)) (u x) = -(1 / 2) * ∫ (x : ℝ^n), ‖u x‖ ^ 2 * ∇· b x
Transport energy is one half the negative divergence pairing. Only the transported field needs compact support.
- theoremdefined in PDE/Analysis/Integration/InnerProductByParts.leancomplete
theorem PDE.Analysis.integral_inner_advection_eq_zero.{u_1} {n : ℕ} {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {u : ℝ^n → E} {b : ℝ^n → ℝ^n} (hu : ContDiff ℝ 1 u) (hb : ContDiff ℝ 1 b) (hc : HasCompactSupport u) (hdiv : ∀ (x : ℝ^n), ∇· b x = 0) : ∫ (x : ℝ^n), inner ℝ ((fderiv ℝ u x) (b x)) (u x) = 0
theorem PDE.Analysis.integral_inner_advection_eq_zero.{u_1} {n : ℕ} {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {u : ℝ^n → E} {b : ℝ^n → ℝ^n} (hu : ContDiff ℝ 1 u) (hb : ContDiff ℝ 1 b) (hc : HasCompactSupport u) (hdiv : ∀ (x : ℝ^n), ∇· b x = 0) : ∫ (x : ℝ^n), inner ℝ ((fderiv ℝ u x) (b x)) (u x) = 0
A divergence-free transporting velocity does no work on compact test fields.
- theoremdefined in PDE/Analysis/Integration/InnerProductByParts.leancomplete
theorem PDE.Analysis.integral_inner_dilation_eq_neg.{u_1} {n : ℕ} {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {u : ℝ^n → E} (hu : ContDiff ℝ 1 u) (hc : HasCompactSupport u) : ∫ (x : ℝ^n), inner ℝ ((fderiv ℝ u x) x) (u x) = -↑n / 2 * ∫ (x : ℝ^n), ‖u x‖ ^ 2
theorem PDE.Analysis.integral_inner_dilation_eq_neg.{u_1} {n : ℕ} {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {u : ℝ^n → E} (hu : ContDiff ℝ 1 u) (hc : HasCompactSupport u) : ∫ (x : ℝ^n), inner ℝ ((fderiv ℝ u x) x) (u x) = -↑n / 2 * ∫ (x : ℝ^n), ‖u x‖ ^ 2
Pairing the spatial dilation derivative with a compact field gives minus one half the spatial dimension times its squared L2 norm.
- theoremdefined in PDE/Analysis/Integration/InnerProductByParts.leancomplete
theorem PDE.Analysis.integral_inner_similarity_drift.{u_1} {n : ℕ} {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {u : ℝ^n → E} (hu : ContDiff ℝ 1 u) (hc : HasCompactSupport u) : ∫ (x : ℝ^n), inner ℝ ((-1 / 2) • u x - (1 / 2) • (fderiv ℝ u x) x) (u x) = (↑n - 2) / 4 * ∫ (x : ℝ^n), ‖u x‖ ^ 2
theorem PDE.Analysis.integral_inner_similarity_drift.{u_1} {n : ℕ} {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {u : ℝ^n → E} (hu : ContDiff ℝ 1 u) (hc : HasCompactSupport u) : ∫ (x : ℝ^n), inner ℝ ((-1 / 2) • u x - (1 / 2) • (fderiv ℝ u x) x) (u x) = (↑n - 2) / 4 * ∫ (x : ℝ^n), ‖u x‖ ^ 2
The self-similar Navier–Stokes drift has coefficient
(n−2)/4. No divergence-free condition is needed for this cancellation.
8.5.1.8. The zero solution
Lean code for Theorem8.90●4 declarationsAssociated Lean declarationsNavierStokes.exists_zero_smoothSolution_on[complete]NavierStokes.exists_zero_globalSmoothSolution[complete]NavierStokes.zeroSmoothSolution[complete]NavierStokes.zeroGlobalSmoothSolution[complete]
NavierStokes.exists_zero_smoothSolution_on[complete]NavierStokes.exists_zero_globalSmoothSolution[complete]NavierStokes.zeroSmoothSolution[complete]NavierStokes.zeroGlobalSmoothSolution[complete]
Lean code for Theorem8.91●2 declarationsAssociated Lean declarationsNavierStokes.exists_zero_lerayHopfSolution_on[complete]NavierStokes.zeroLerayHopfSolution[complete]
NavierStokes.exists_zero_lerayHopfSolution_on[complete]NavierStokes.zeroLerayHopfSolution[complete]
8.5.2. Exact Planar Flows
In the two exact flows treated here, the nonlinear term becomes a pressure
gradient or balances diffusion exactly. Each is stated in coordinates: the velocity, the pressure,
and the divergence and momentum residuals are explicit functions of (t,x,y)
or (x,y), written with one-variable derivatives, and the cas tactic
checks that the residuals vanish. Both proofs are compiled examples in
PDE.Examples.Research and appear here as worked examples. Neither flow has
finite energy on the whole plane, so they illustrate the equations and not the
Leray–Hopf theory.
8.5.2.1. The Taylor–Green vortex
The planar Taylor–Green vortex
u=e^{-2t}\sin x\cos y,\qquad
v=-e^{-2t}\cos x\sin y,\qquad
p=-\tfrac12e^{-4t}\bigl(\sin^2x+\sin^2y\bigr)
is divergence free and solves the Navier–Stokes momentum equations with unit
viscosity at every (t,x,y). This is
the Taylor–Green momentum identity together with
the Taylor–Green incompressibility identity.
The streamfunction is \psi=e^{-2t}\sin x\sin y, so the vorticity is
\omega=-\Delta\psi=2\psi. Since \omega is a function of \psi,
(u\cdot\nabla)\omega=0, and the nonlinear term in the momentum equation is
a gradient, balanced by p. What is left is \partial_tu=\Delta u, which
holds because u is a Laplacian eigenfunction with eigenvalue -2. In Lean
each partial derivative is computed by its own lemma and the residuals then
reduce by cas.
The streamlines in the figure do not move. Every Fourier mode of the flow has
|k|^2=2, so viscosity scales the whole pattern by e^{-2t} and the energy
in a period square falls as \pi^2e^{-4t}. The vortex was introduced by
Taylor and Green (1937) as initial data for the
three-dimensional energy cascade; in the plane the same field is an exact
solution.
8.5.2.2. Kovasznay's wake
With viscosity \nu=1/3, the stationary field
u=1-e^{-x}\cos2y,\qquad
v=-\tfrac12e^{-x}\sin2y,\qquad
p=-\tfrac12e^{-2x}
is divergence free and solves the stationary Navier–Stokes momentum equations
at every (x,y). This is the Kovasznay momentum identity together
with the Kovasznay incompressibility identity.
The perturbation of the uniform stream is e^{\lambda x} times a Fourier
mode e^{iky} with \lambda=-1 and k=2. Convection by the unit stream
and diffusion balance on it exactly when \nu(\lambda^2-k^2)=\lambda, which
holds for \nu=1/3. The quadratic self-interaction of the perturbation is
a gradient, and the pressure p=-\tfrac12e^{2\lambda x} absorbs it. The
Lean proof again computes each derivative separately and closes the two
residuals with cas.
Kovasznay (1948) found this flow as a model of
the wake behind a periodic grid. The figure shows the part that makes it a
wake: in the shaded region near the grid, e^{-x}\cos2y>1 and the fluid runs
backwards, while downstream the perturbation decays like e^{-x} and the
uniform stream takes over.
8.5.3. The Steady Stokes Problem
Dropping the nonlinear term and the time derivative from the Navier–Stokes equations leaves the Stokes system
-\Delta u+\nabla p=f,\qquad \nabla\cdot u=0\ \text{in }\Omega,\qquad
u=0\ \text{on }\partial\Omega,
at unit viscosity. The pressure is the Lagrange multiplier of the constraint
\nabla\cdot u=0. Evans (2010) treats the problem in this
way, by minimizing the Dirichlet energy over divergence-free fields. The
Euler–Lagrange equation determines the pressure as a multiplier.
IncompressibleFlow.Stokes.energy[complete]IncompressibleFlow.Stokes.energy_eq_integral[complete]IncompressibleFlow.Stokes.residual[complete]
For a domain \Omega\subset\mathbb R^n, a force f\in L^2(\Omega;\mathbb R^n)
and u\in H^1_0(\Omega;\mathbb R^n), the Stokes energy is
E_f(u)=\frac12\int_\Omega|\nabla u|^2\,dx-\int_\Omega f\cdot u\,dx,
with |\nabla u| the Frobenius norm of the full gradient matrix. The Stokes
residual of u is the vector of distributions \Delta u_j+f_j, defined
through the weak first derivatives of u.
Lean code for Definition8.92●3 declarationsAssociated Lean declarationsIncompressibleFlow.Stokes.energy[complete]IncompressibleFlow.Stokes.energy_eq_integral[complete]IncompressibleFlow.Stokes.residual[complete]
IncompressibleFlow.Stokes.energy[complete]IncompressibleFlow.Stokes.energy_eq_integral[complete]IncompressibleFlow.Stokes.residual[complete]
- defdefined in PDE/Fluid/Stokes/Variational/Energy.leancomplete
def IncompressibleFlow.Stokes.energy {n : ℕ} {Ω : Set ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω) : ℝ
def IncompressibleFlow.Stokes.energy {n : ℕ} {Ω : Set ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω) : ℝ
The full matrix Dirichlet energy with its signed L² load.
- theoremdefined in PDE/Fluid/Stokes/Variational/Energy.leancomplete
theorem IncompressibleFlow.Stokes.energy_eq_integral {n : ℕ} {Ω : Set ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω) : IncompressibleFlow.Stokes.energy f u = ∫ (x : ℝ^n), 1 / 2 * ‖↑↑(SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.gradient u) x‖ ^ 2 - inner ℝ (↑↑f x) (↑↑(SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.toLp u) x) ∂SobolevSpace.domainMeasure n Ω
theorem IncompressibleFlow.Stokes.energy_eq_integral {n : ℕ} {Ω : Set ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω) : IncompressibleFlow.Stokes.energy f u = ∫ (x : ℝ^n), 1 / 2 * ‖↑↑(SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.gradient u) x‖ ^ 2 - inner ℝ (↑↑f x) (↑↑(SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.toLp u) x) ∂SobolevSpace.domainMeasure n Ω
The energy is the integral of the squared matrix gradient minus the force pairing. Both terms are integrable.
- defdefined in PDE/Fluid/Stokes/Variational/Residual.leancomplete
def IncompressibleFlow.Stokes.residual {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (j : Fin n) : Distribution Ω ℝ ⊤
def IncompressibleFlow.Stokes.residual {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (j : Fin n) : Distribution Ω ℝ ⊤
The Laplacian-plus-force residual of a native vector H¹₀ field, as an ordinary distribution on the original open domain.
Let n>0 and let \Omega be bounded. For every f\in L^2, there is
exactly one u\in H^1_0(\Omega;\mathbb R^n) with \nabla\cdot u=0 that
minimizes E_f among all divergence-free fields in H^1_0. The minimizer
satisfies
\int_\Omega\nabla u:\nabla v\,dx=\int_\Omega f\cdot v\,dx
\qquad\text{for all }v\in H^1_0\text{ with }\nabla\cdot v=0.
Lean code for Theorem8.93●2 theoremsAssociated Lean declarations
- theoremdefined in PDE/Fluid/Stokes/Variational/Existence.leancomplete
theorem IncompressibleFlow.Stokes.existsUnique_minimizes_energy {n : ℕ} {Ω : Set ℝ^n} (hn : 0 < n) (hΩbounded : Bornology.IsBounded Ω) (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n Ω))) : ∃! u, ∇· u = 0 ∧ ∀ (v : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω), ∇· v = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f v
theorem IncompressibleFlow.Stokes.existsUnique_minimizes_energy {n : ℕ} {Ω : Set ℝ^n} (hn : 0 < n) (hΩbounded : Bornology.IsBounded Ω) (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n Ω))) : ∃! u, ∇· u = 0 ∧ ∀ (v : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω), ∇· v = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f v
Every L² force on a bounded domain of positive dimension has a unique divergence-free zero-boundary minimizer of the steady unit-viscosity energy.
- theoremdefined in PDE/Fluid/Stokes/Variational/Energy.leancomplete
theorem IncompressibleFlow.Stokes.stationary_of_minimizes_energy {n : ℕ} {Ω : Set ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) (v : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω) (hv : ∇· v = 0) : inner ℝ (SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.gradient u) (SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.gradient v) = inner ℝ f (SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.toLp v)
theorem IncompressibleFlow.Stokes.stationary_of_minimizes_energy {n : ℕ} {Ω : Set ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) (v : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n Ω) (hv : ∇· v = 0) : inner ℝ (SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.gradient u) (SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.gradient v) = inner ℝ f (SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace.toLp v)
An energy minimizer satisfies the weak Stokes equation in every divergence-free direction.
The divergence is a bounded linear map on H^1_0, so its kernel is a closed
subspace and therefore a Hilbert space. On a bounded domain the Poincaré
inequality makes the Dirichlet form coercive there, and the direct method for
a coercive symmetric form on a closed subspace gives a unique minimizer. The
weak equation is the derivative of t\mapsto E_f(u+tv) at t=0, which is
admissible because u+tv stays divergence free.
The weak equation tests only against divergence-free fields. To recover pressure, we factor the residual through the divergence of a general test field. The constrained minimum supplies this factorization, and local regularity gives a measurable pressure representing the resulting functional.
Let u be a divergence-free minimizer of E_f on an open set \Omega.
Then the residual \Delta u+f is represented by a function that is square
integrable on every compact subset of \Omega, and every component
\partial_ju_i-\partial_iu_j of the vorticity has weak first derivatives
that are locally square integrable. No second derivative of u is assumed.
Lean code for Theorem8.94●2 theoremsAssociated Lean declarations
- theoremdefined in PDE/Fluid/Stokes/Regularity/Residual.leancomplete
theorem IncompressibleFlow.Stokes.exists_locally_memLp_residual_of_minimizes_energy {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ R, (∀ (j : Fin n), MeasureTheory.LocallyIntegrableOn (fun x ↦ (R x).ofLp j) (↑Ω) MeasureTheory.volume) ∧ (∀ (j : Fin n) (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp (fun x ↦ (R x).ofLp j) 2 (SobolevSpace.domainMeasure n K)) ∧ ∀ (j : Fin n), Distribution.ofFun Ω (fun x ↦ (R x).ofLp j) MeasureTheory.volume ⊤ = IncompressibleFlow.Stokes.residual f u j
theorem IncompressibleFlow.Stokes.exists_locally_memLp_residual_of_minimizes_energy {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ R, (∀ (j : Fin n), MeasureTheory.LocallyIntegrableOn (fun x ↦ (R x).ofLp j) (↑Ω) MeasureTheory.volume) ∧ (∀ (j : Fin n) (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp (fun x ↦ (R x).ofLp j) 2 (SobolevSpace.domainMeasure n K)) ∧ ∀ (j : Fin n), Distribution.ofFun Ω (fun x ↦ (R x).ofLp j) MeasureTheory.volume ⊤ = IncompressibleFlow.Stokes.residual f u j
The residual of a raw incompressible energy minimizer has a derived locally L² representative. No second derivative of the state is assumed.
- theoremdefined in PDE/Fluid/Stokes/Regularity/Vorticity.leancomplete
theorem IncompressibleFlow.Stokes.exists_vorticity_weak_derivatives_of_minimizes_energy {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ g, (∀ (i j k : Fin n), MeasureTheory.AEStronglyMeasurable (g i j k) (SobolevSpace.domainMeasure n ↑Ω)) ∧ (∀ (i j k : Fin n) (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp (g i j k) 2 (SobolevSpace.domainMeasure n K)) ∧ ∀ (i j k : Fin n), SobolevSpace.HasWeakDerivativeOn ↑Ω [k] (↑↑(IncompressibleFlow.Stokes.vorticity u i j)) (g i j k)
theorem IncompressibleFlow.Stokes.exists_vorticity_weak_derivatives_of_minimizes_energy {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ g, (∀ (i j k : Fin n), MeasureTheory.AEStronglyMeasurable (g i j k) (SobolevSpace.domainMeasure n ↑Ω)) ∧ (∀ (i j k : Fin n) (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp (g i j k) 2 (SobolevSpace.domainMeasure n K)) ∧ ∀ (i j k : Fin n), SobolevSpace.HasWeakDerivativeOn ↑Ω [k] (↑↑(IncompressibleFlow.Stokes.vorticity u i j)) (g i j k)
All components of the L² vorticity of a raw minimizer have locally L² weak first derivatives on the original open domain.
Testing the weak equation against \partial_i\varphi\,e_j-\partial_j\varphi\,e_i,
which is divergence free, shows that the residual is weakly curl free. Each
vorticity component then satisfies
\Delta\omega_{ij}=\partial_jf_i-\partial_if_j in distributions, a Poisson
equation whose right-hand side is a derivative of an L^2 field, and the
interior estimate for such equations gives locally square integrable first
derivatives. Because \nabla\cdot u=0, the Laplacian of u is the
divergence of the vorticity tensor, which gives the local L^2 representative
of the residual.
IncompressibleFlow.Stokes.exists_pressure_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_compact_test_identity_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_distribution_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_local_sobolev_of_minimizes_energy[complete]
Let n>0, let \Omega\subset\mathbb R^n be any open set, and let
f\in L^2(\Omega;\mathbb R^n). Suppose u\in H^1_0(\Omega;\mathbb R^n)
is divergence free and minimizes E_f against every divergence-free
H^1_0 competitor. There is a measurable pressure p that is square integrable on
every compact subset of \Omega, whose distributional gradient is
\Delta u+f, and for which
\int_\Omega\nabla u:\nabla v\,dx
=\int_\Omega p\,\nabla\cdot v\,dx+\int_\Omega f\cdot v\,dx
for every v\in H^1(\Omega;\mathbb R^n) that vanishes outside a compact
subset of \Omega. The test field need not be divergence free.
The same pressure has an H^1(V) representative on every open V with
compact closure contained in \Omega. Neither connectedness nor simple
connectedness is required.
Lean code for Theorem8.95●4 theoremsAssociated Lean declarationsIncompressibleFlow.Stokes.exists_pressure_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_compact_test_identity_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_distribution_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_local_sobolev_of_minimizes_energy[complete]
IncompressibleFlow.Stokes.exists_pressure_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_compact_test_identity_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_distribution_of_minimizes_energy[complete]IncompressibleFlow.Stokes.exists_pressure_local_sobolev_of_minimizes_energy[complete]
- theoremdefined in PDE/Fluid/Stokes/Pressure/CompactTests.leancomplete
theorem IncompressibleFlow.Stokes.exists_pressure_of_minimizes_energy {n : ℕ} [Fact (0 < n)] {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ p, MeasureTheory.AEStronglyMeasurable p (SobolevSpace.domainMeasure n ↑Ω) ∧ (∀ (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp p 2 (SobolevSpace.domainMeasure n K)) ∧ ∀ (v : Fin n → SobolevSpace.GraphSpace.H1SpaceOn n ↑Ω) (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → (∀ (j : Fin n), ∀ᵐ (x : ℝ^n) ∂SobolevSpace.domainMeasure n ↑Ω, x ∉ K → SobolevSpace.GraphSpace.baseRepresentative (v j) x = 0) → MeasureTheory.Integrable (fun x ↦ ∑ j, ∑ k, ↑↑((SobolevSpace.GraphSpace.derivCoordCLM k) (u.ofLp j)) x * ↑↑((↑(v j)).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n k)) x) (SobolevSpace.domainMeasure n ↑Ω) ∧ MeasureTheory.Integrable (fun x ↦ p x * ∑ j, ↑↑((↑(v j)).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n j)) x + ∑ j, (↑↑f x).ofLp j * SobolevSpace.GraphSpace.baseRepresentative (v j) x) (SobolevSpace.domainMeasure n ↑Ω) ∧ ∫ (x : ℝ^n) in ↑Ω, ∑ j, ∑ k, ↑↑((SobolevSpace.GraphSpace.derivCoordCLM k) (u.ofLp j)) x * ↑↑((↑(v j)).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n k)) x = ∫ (x : ℝ^n) in ↑Ω, p x * ∑ j, ↑↑((↑(v j)).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n j)) x + ∑ j, (↑↑f x).ofLp j * SobolevSpace.GraphSpace.baseRepresentative (v j) x
theorem IncompressibleFlow.Stokes.exists_pressure_of_minimizes_energy {n : ℕ} [Fact (0 < n)] {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ p, MeasureTheory.AEStronglyMeasurable p (SobolevSpace.domainMeasure n ↑Ω) ∧ (∀ (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp p 2 (SobolevSpace.domainMeasure n K)) ∧ ∀ (v : Fin n → SobolevSpace.GraphSpace.H1SpaceOn n ↑Ω) (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → (∀ (j : Fin n), ∀ᵐ (x : ℝ^n) ∂SobolevSpace.domainMeasure n ↑Ω, x ∉ K → SobolevSpace.GraphSpace.baseRepresentative (v j) x = 0) → MeasureTheory.Integrable (fun x ↦ ∑ j, ∑ k, ↑↑((SobolevSpace.GraphSpace.derivCoordCLM k) (u.ofLp j)) x * ↑↑((↑(v j)).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n k)) x) (SobolevSpace.domainMeasure n ↑Ω) ∧ MeasureTheory.Integrable (fun x ↦ p x * ∑ j, ↑↑((↑(v j)).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n j)) x + ∑ j, (↑↑f x).ofLp j * SobolevSpace.GraphSpace.baseRepresentative (v j) x) (SobolevSpace.domainMeasure n ↑Ω) ∧ ∫ (x : ℝ^n) in ↑Ω, ∑ j, ∑ k, ↑↑((SobolevSpace.GraphSpace.derivCoordCLM k) (u.ofLp j)) x * ↑↑((↑(v j)).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n k)) x = ∫ (x : ℝ^n) in ↑Ω, p x * ∑ j, ↑↑((↑(v j)).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n j)) x + ∑ j, (↑↑f x).ofLp j * SobolevSpace.GraphSpace.baseRepresentative (v j) x
A raw constrained Stokes minimum has a locally L² scalar pressure, and the full matrix weak equation holds on every compactly supported native H¹ vector test. Both sides are integrable functions. The domain need only be open; in particular the bounded, simply connected three-dimensional domains of Evans's pressure theorem are included.
- theoremdefined in PDE/Fluid/Stokes/Pressure/CompactTests.leancomplete
theorem IncompressibleFlow.Stokes.exists_pressure_compact_test_identity_of_minimizes_energy {n : ℕ} [Fact (0 < n)] {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ p, MeasureTheory.AEStronglyMeasurable p (SobolevSpace.domainMeasure n ↑Ω) ∧ (∀ (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp p 2 (SobolevSpace.domainMeasure n K)) ∧ ∀ (j : Fin n) (v : SobolevSpace.GraphSpace.H1SpaceOn n ↑Ω) (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → (∀ᵐ (x : ℝ^n) ∂SobolevSpace.domainMeasure n ↑Ω, x ∉ K → SobolevSpace.GraphSpace.baseRepresentative v x = 0) → ∑ k, ∫ (x : ℝ^n) in ↑Ω, ↑↑((SobolevSpace.GraphSpace.derivCoordCLM k) (u.ofLp j)) x * ↑↑((↑v).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n k)) x = (∫ (x : ℝ^n) in ↑Ω, p x * ↑↑((↑v).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n j)) x) + ∫ (x : ℝ^n) in ↑Ω, (↑↑f x).ofLp j * SobolevSpace.GraphSpace.baseRepresentative v x
theorem IncompressibleFlow.Stokes.exists_pressure_compact_test_identity_of_minimizes_energy {n : ℕ} [Fact (0 < n)] {Ω : TopologicalSpace.Opens ℝ^n} (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ p, MeasureTheory.AEStronglyMeasurable p (SobolevSpace.domainMeasure n ↑Ω) ∧ (∀ (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp p 2 (SobolevSpace.domainMeasure n K)) ∧ ∀ (j : Fin n) (v : SobolevSpace.GraphSpace.H1SpaceOn n ↑Ω) (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → (∀ᵐ (x : ℝ^n) ∂SobolevSpace.domainMeasure n ↑Ω, x ∉ K → SobolevSpace.GraphSpace.baseRepresentative v x = 0) → ∑ k, ∫ (x : ℝ^n) in ↑Ω, ↑↑((SobolevSpace.GraphSpace.derivCoordCLM k) (u.ofLp j)) x * ↑↑((↑v).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n k)) x = (∫ (x : ℝ^n) in ↑Ω, p x * ↑↑((↑v).ofLp (SobolevSpace.GraphSpace.singleDerivIndex n j)) x) + ∫ (x : ℝ^n) in ↑Ω, (↑↑f x).ofLp j * SobolevSpace.GraphSpace.baseRepresentative v x
The pressure reconstructed from a raw divergence-free energy minimizer satisfies the component weak equation on every compactly supported native H¹ test, with the sign
-Δu = f - Dp. - theoremdefined in PDE/Fluid/Stokes/Pressure/Potential.leancomplete
theorem IncompressibleFlow.Stokes.exists_pressure_distribution_of_minimizes_energy {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} [Fact (0 < n)] (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ p, MeasureTheory.AEStronglyMeasurable p (SobolevSpace.domainMeasure n ↑Ω) ∧ (∀ (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp p 2 (SobolevSpace.domainMeasure n K)) ∧ MeasureTheory.LocallyIntegrableOn p (↑Ω) MeasureTheory.volume ∧ ∀ (j : Fin n), (Distribution.lineDerivCLM (EuclideanSpace.single j 1)) (Distribution.ofFun Ω p MeasureTheory.volume ⊤) = IncompressibleFlow.Stokes.residual f u j
theorem IncompressibleFlow.Stokes.exists_pressure_distribution_of_minimizes_energy {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} [Fact (0 < n)] (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ p, MeasureTheory.AEStronglyMeasurable p (SobolevSpace.domainMeasure n ↑Ω) ∧ (∀ (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp p 2 (SobolevSpace.domainMeasure n K)) ∧ MeasureTheory.LocallyIntegrableOn p (↑Ω) MeasureTheory.volume ∧ ∀ (j : Fin n), (Distribution.lineDerivCLM (EuclideanSpace.single j 1)) (Distribution.ofFun Ω p MeasureTheory.volume ⊤) = IncompressibleFlow.Stokes.residual f u j
A raw divergence-free energy minimum on an arbitrary open domain has a locally L² pressure whose distributional gradient is
Δu + f. - theoremdefined in PDE/Fluid/Stokes/Pressure/Potential.leancomplete
theorem IncompressibleFlow.Stokes.exists_pressure_local_sobolev_of_minimizes_energy {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} [Fact (0 < n)] (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ p, MeasureTheory.AEStronglyMeasurable p (SobolevSpace.domainMeasure n ↑Ω) ∧ (∀ (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp p 2 (SobolevSpace.domainMeasure n K)) ∧ (∀ (j : Fin n), (Distribution.lineDerivCLM (EuclideanSpace.single j 1)) (Distribution.ofFun Ω p MeasureTheory.volume ⊤) = IncompressibleFlow.Stokes.residual f u j) ∧ ∀ (V : TopologicalSpace.Opens ℝ^n), IsCompact (closure ↑V) → closure ↑V ⊆ ↑Ω → ∃ P, SobolevSpace.GraphSpace.baseRepresentative P =ᵐ[SobolevSpace.domainMeasure n ↑V] p
theorem IncompressibleFlow.Stokes.exists_pressure_local_sobolev_of_minimizes_energy {n : ℕ} {Ω : TopologicalSpace.Opens ℝ^n} [Fact (0 < n)] (f : ↥(MeasureTheory.Lp (ℝ^n) 2 (SobolevSpace.domainMeasure n ↑Ω))) (u : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω) (hu : ∇· u = 0) (hmin : ∀ (w : SobolevSpace.GraphSpace.ZeroBoundaryVectorSpace n n ↑Ω), ∇· w = 0 → IncompressibleFlow.Stokes.energy f u ≤ IncompressibleFlow.Stokes.energy f w) : ∃ p, MeasureTheory.AEStronglyMeasurable p (SobolevSpace.domainMeasure n ↑Ω) ∧ (∀ (K : Set ℝ^n), IsCompact K → K ⊆ ↑Ω → MeasureTheory.MemLp p 2 (SobolevSpace.domainMeasure n K)) ∧ (∀ (j : Fin n), (Distribution.lineDerivCLM (EuclideanSpace.single j 1)) (Distribution.ofFun Ω p MeasureTheory.volume ⊤) = IncompressibleFlow.Stokes.residual f u j) ∧ ∀ (V : TopologicalSpace.Opens ℝ^n), IsCompact (closure ↑V) → closure ↑V ⊆ ↑Ω → ∃ P, SobolevSpace.GraphSpace.baseRepresentative P =ᵐ[SobolevSpace.domainMeasure n ↑V] p
The pressure of a raw Stokes minimum belongs to H¹ on every relatively compact open subset of the domain. These local Sobolev representatives all represent the same scalar pressure.
The residual is a locally L^2 field with zero weak curl, so it has weak
potentials on balls. To make these potentials agree, use the algebraic
functional obtained by factoring the first variation through divergence.
On a smaller coordinate box, the difference between that functional and
integration against a local potential annihilates all coordinate derivatives.
It is therefore a constant times the integral. Adding this constant to the
potential makes it represent the prescribed functional.
The adjusted potentials represent the same functional on overlaps and hence
agree almost everywhere there. A countable open subcover gives a measurable
gluing. Compact-local L^2 bounds for both the pressure and its weak gradient
give its H^1 representatives on relatively compact open subsets.
The identity for smooth compactly supported tests is the definition of the
distributional gradient.
It extends to compactly supported H^1 tests by localizing the stress
\nabla u-p\,I with a cutoff equal to one near the support of the test, so
that every integral involves only local L^2 bounds.
Existence of the minimizer uses boundedness through Poincaré's inequality. Pressure recovery starts from an actual minimum on any open domain: the minimum provides the common algebraic potential that fixes the local constants, and curl-freeness alone would not justify gluing on an arbitrary domain.

