8.2. Conservation and Incompressibility
Particle paths and material derivatives turn local conservation of mass and momentum into the Eulerian equations.
8.2.1. From Conservation Laws to Incompressible Flow
8.2.1.1. From Transport to Fluid Motion
The simplest evolution in the hierarchy is a scalar carried by a prescribed velocity. The transport equation
\partial_t\theta+u\cdot\nabla\theta=0
says that \theta is constant along particle paths. The velocity is known,
so the equation is linear in the transported scalar. The
characteristic chain
rule is the scalar counterpart of the
particle-path chain rule.
In one space dimension, allowing the transported quantity to determine its
own speed gives inviscid Burgers,
\partial_tu+u\,\partial_xu=0. Characteristics can intersect, smooth
solutions can form shocks, and weak solutions then require an entropy
condition. Incompressible Euler retains the self-transport mechanism, but the
velocity is vector-valued and pressure enforces the divergence-free
constraint.
A fluid is described in Eulerian variables by fields attached to positions in
space: density \rho(t,x), velocity u(t,x), and pressure p(t,x). A
particle released at a follows a trajectory X(t,a) satisfying
\frac{d}{dt}X(t,a)=u(t,X(t,a)).
If a scalar or vector field v is observed along that particle path, the
chain rule gives
\frac{d}{dt}v(t,X(t,a))
=\partial_t v+(u\mathbin\cdot\nabla)v.
This is the material derivative. For prescribed u it is linear in the
transported field v. The fluid nonlinearity appears when v=u, because
the unknown velocity then transports itself.
IncompressibleFlow.IsParticlePathAt[complete]IncompressibleFlow.IsParticlePathOn[complete]
A particle path is represented by the local identity
X'(t)=u(t,X(t)).
The pointwise predicate is useful when only a local calculation is needed. Its setwise form requires the same identity throughout a time interval.
Lean code for Definition8.5●2 definitionsAssociated Lean declarationsIncompressibleFlow.IsParticlePathAt[complete]IncompressibleFlow.IsParticlePathOn[complete]
IncompressibleFlow.IsParticlePathAt[complete]IncompressibleFlow.IsParticlePathOn[complete]
- defdefined in PDE/Fluid/Incompressible/Kinematics.leancomplete
def IncompressibleFlow.IsParticlePathAt {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (X : ℝ → ℝ^n) (t : ℝ) : Prop
def IncompressibleFlow.IsParticlePathAt {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (X : ℝ → ℝ^n) (t : ℝ) : Prop
A spatial curve follows the Eulerian velocity field at time
t. - defdefined in PDE/Fluid/Incompressible/Kinematics.leancomplete
def IncompressibleFlow.IsParticlePathOn {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (X : ℝ → ℝ^n) (s : Set ℝ) : Prop
def IncompressibleFlow.IsParticlePathOn {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (X : ℝ → ℝ^n) (s : Set ℝ) : Prop
A spatial curve follows the Eulerian velocity field at every time in
s.
If X is a particle path, the associated spacetime curve
t\mapsto(t,X(t)) has velocity (1,u(t,X(t))). Therefore every
differentiable spacetime field v satisfies
\frac{d}{dt}v(t,X(t))
=Dv(t,X(t))[1,u(t,X(t))].
For scalar v, expanding the Fréchet derivative gives the checked identity
\frac{d}{dt}v(t,X(t))
=\partial_t v(t,X(t))
+\sum_{j=1}^n u_j(t,X(t))\,\partial_jv(t,X(t)).
Lean code for Theorem8.6●3 theoremsAssociated Lean declarations
- theoremdefined in PDE/Fluid/Incompressible/Kinematics.leancomplete
theorem IncompressibleFlow.hasDerivAt_spacetimeCurve {n : ℕ} {X : ℝ → ℝ^n} {t : ℝ} {v : ℝ^n} (hX : HasDerivAt X v t) : HasDerivAt (fun s ↦ PDE.Common.timeSpaceCons s (X s)) (PDE.Common.timeSpaceCons 1 v) t
theorem IncompressibleFlow.hasDerivAt_spacetimeCurve {n : ℕ} {X : ℝ → ℝ^n} {t : ℝ} {v : ℝ^n} (hX : HasDerivAt X v t) : HasDerivAt (fun s ↦ PDE.Common.timeSpaceCons s (X s)) (PDE.Common.timeSpaceCons 1 v) t
If
Xhas velocityv, then the spacetime curvet ↦ (t, X(t))has velocity(1, v). - theoremdefined in PDE/Fluid/Incompressible/Kinematics.leancomplete
theorem IncompressibleFlow.IsParticlePathAt.hasDerivAt_comp.{u_1} {n : ℕ} {u : ℝ^(n + 1) → ℝ^n} {X : ℝ → ℝ^n} {t : ℝ} (hX : IncompressibleFlow.IsParticlePathAt u X t) {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {w : ℝ^(n + 1) → E} (hw : DifferentiableAt ℝ w (PDE.Common.timeSpaceCons t (X t))) : HasDerivAt (fun s ↦ w (PDE.Common.timeSpaceCons s (X s))) ((fderiv ℝ w (PDE.Common.timeSpaceCons t (X t))) (PDE.Common.timeSpaceCons 1 (u (PDE.Common.timeSpaceCons t (X t))))) t
theorem IncompressibleFlow.IsParticlePathAt.hasDerivAt_comp.{u_1} {n : ℕ} {u : ℝ^(n + 1) → ℝ^n} {X : ℝ → ℝ^n} {t : ℝ} (hX : IncompressibleFlow.IsParticlePathAt u X t) {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {w : ℝ^(n + 1) → E} (hw : DifferentiableAt ℝ w (PDE.Common.timeSpaceCons t (X t))) : HasDerivAt (fun s ↦ w (PDE.Common.timeSpaceCons s (X s))) ((fderiv ℝ w (PDE.Common.timeSpaceCons t (X t))) (PDE.Common.timeSpaceCons 1 (u (PDE.Common.timeSpaceCons t (X t))))) t
The chain rule along a particle path differentiates in the spacetime direction
(1, u(t, X(t))). - theoremdefined in PDE/Fluid/Incompressible/Kinematics.leancomplete
theorem IncompressibleFlow.IsParticlePathAt.hasDerivAt_comp_scalar {n : ℕ} {u : ℝ^(n + 1) → ℝ^n} {X : ℝ → ℝ^n} {t : ℝ} (hX : IncompressibleFlow.IsParticlePathAt u X t) {w : ℝ^(n + 1) → ℝ} (hw : DifferentiableAt ℝ w (PDE.Common.timeSpaceCons t (X t))) : HasDerivAt (fun s ↦ w (PDE.Common.timeSpaceCons s (X s))) (IncompressibleFlow.scalarMaterialDerivative n u w (PDE.Common.timeSpaceCons t (X t))) t
theorem IncompressibleFlow.IsParticlePathAt.hasDerivAt_comp_scalar {n : ℕ} {u : ℝ^(n + 1) → ℝ^n} {X : ℝ → ℝ^n} {t : ℝ} (hX : IncompressibleFlow.IsParticlePathAt u X t) {w : ℝ^(n + 1) → ℝ} (hw : DifferentiableAt ℝ w (PDE.Common.timeSpaceCons t (X t))) : HasDerivAt (fun s ↦ w (PDE.Common.timeSpaceCons s (X s))) (IncompressibleFlow.scalarMaterialDerivative n u w (PDE.Common.timeSpaceCons t (X t))) t
Along a particle path, the derivative of a scalar field is its material derivative
∂ₜw + u · ∇w.
Write the spacetime trajectory as the sum of its time coordinate and the
zero-time embedding of X. Their derivatives are respectively the time
basis vector and the embedded spatial velocity. The ordinary Fréchet chain
rule gives the directional derivative, and expansion in the Euclidean
coordinate basis separates its time coordinate from the spatial sum.
8.2.1.2. Mass and incompressibility
Conservation of mass is the continuity equation
\partial_t\rho+\nabla\mathbin\cdot(\rho u)=0.
IncompressibleFlow.massFlux[complete]IncompressibleFlow.scalarMaterialDerivative[complete]IncompressibleFlow.continuityResidual[complete]
The mass flux is \rho u, and the continuity residual is
R_\rho=\partial_t\rho+\nabla\cdot(\rho u).
The material derivative of density is
D_t^u\rho=\partial_t\rho+u\cdot\nabla\rho.
Lean code for Definition8.7●3 definitionsAssociated Lean declarationsIncompressibleFlow.massFlux[complete]IncompressibleFlow.scalarMaterialDerivative[complete]IncompressibleFlow.continuityResidual[complete]
IncompressibleFlow.massFlux[complete]IncompressibleFlow.scalarMaterialDerivative[complete]IncompressibleFlow.continuityResidual[complete]
- defdefined in PDE/Fluid/Incompressible/Continuity.leancomplete
def IncompressibleFlow.massFlux {n : ℕ} (ρ : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
def IncompressibleFlow.massFlux {n : ℕ} (ρ : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
Mass flux
ρuassociated with densityρand velocityu. - defdefined in PDE/Fluid/Incompressible/Operators.leancomplete
def IncompressibleFlow.scalarMaterialDerivative (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (w : ℝ^(n + 1) → ℝ) (x : ℝ^(n + 1)) : ℝ
def IncompressibleFlow.scalarMaterialDerivative (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (w : ℝ^(n + 1) → ℝ) (x : ℝ^(n + 1)) : ℝ
Material derivative
Dₜᵘw = ∂ₜw + u · ∇wof a scalar field. - defdefined in PDE/Fluid/Incompressible/Continuity.leancomplete
def IncompressibleFlow.continuityResidual {n : ℕ} (ρ : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ
def IncompressibleFlow.continuityResidual {n : ℕ} (ρ : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ
Pointwise continuity-equation residual
∂ₜρ + div(ρu).
For differentiable density and velocity components, the product rule gives
R_\rho=D_t^u\rho+\rho\,\nabla\cdot u.
Lean code for Theorem8.8●1 theoremAssociated Lean declarations
- theoremdefined in PDE/Fluid/Incompressible/Continuity.leancomplete
theorem IncompressibleFlow.continuityResidual_eq_scalarMaterialDerivative_add_density_mul_spatialDivergence {n : ℕ} (ρ : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hρ : DifferentiableAt ℝ ρ x) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) : IncompressibleFlow.continuityResidual ρ u x = IncompressibleFlow.scalarMaterialDerivative n u ρ x + ρ x * IncompressibleFlow.spatialDivergence n u x
theorem IncompressibleFlow.continuityResidual_eq_scalarMaterialDerivative_add_density_mul_spatialDivergence {n : ℕ} (ρ : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hρ : DifferentiableAt ℝ ρ x) (hu : ∀ (j : Fin n), DifferentiableAt ℝ (fun y ↦ (u y).ofLp j) x) : IncompressibleFlow.continuityResidual ρ u x = IncompressibleFlow.scalarMaterialDerivative n u ρ x + ρ x * IncompressibleFlow.spatialDivergence n u x
The continuity residual is the material derivative of density plus the density times the spatial divergence.
Apply the product rule to each component
\partial_j(\rho u_j), sum over the spatial coordinates, and collect the
terms u_j\partial_j\rho. The remaining sum is
\rho\sum_j\partial_ju_j.
If \rho=\rho_0 is constant, then
R_\rho=\rho_0\,\nabla\cdot u.
Every divergence-free flow therefore conserves constant density. When
\rho_0\ne0, the continuity equation and incompressibility are equivalent.
Lean code for Theorem8.9●3 theoremsAssociated Lean declarations
- theoremdefined in PDE/Fluid/Incompressible/Continuity.leancomplete
theorem IncompressibleFlow.continuityResidual_const {n : ℕ} (ρ₀ : ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.continuityResidual (fun x ↦ ρ₀) u x = ρ₀ * IncompressibleFlow.spatialDivergence n u x
theorem IncompressibleFlow.continuityResidual_const {n : ℕ} (ρ₀ : ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.continuityResidual (fun x ↦ ρ₀) u x = ρ₀ * IncompressibleFlow.spatialDivergence n u x
At constant density, the continuity residual is density times spatial divergence.
- theoremdefined in PDE/Fluid/Incompressible/Continuity.leancomplete
theorem IncompressibleFlow.continuityResidual_const_eq_zero_of_divergenceFreeAt {n : ℕ} (ρ₀ : ℝ) {u : ℝ^(n + 1) → ℝ^n} {x : ℝ^(n + 1)} (hdiv : IncompressibleFlow.DivergenceFreeAt u x) : IncompressibleFlow.continuityResidual (fun x ↦ ρ₀) u x = 0
theorem IncompressibleFlow.continuityResidual_const_eq_zero_of_divergenceFreeAt {n : ℕ} (ρ₀ : ℝ) {u : ℝ^(n + 1) → ℝ^n} {x : ℝ^(n + 1)} (hdiv : IncompressibleFlow.DivergenceFreeAt u x) : IncompressibleFlow.continuityResidual (fun x ↦ ρ₀) u x = 0
A divergence-free velocity conserves every constant density pointwise.
- theoremdefined in PDE/Fluid/Incompressible/Continuity.leancomplete
theorem IncompressibleFlow.continuityResidual_const_eq_zero_iff_divergenceFreeAt {n : ℕ} {ρ₀ : ℝ} (hρ₀ : ρ₀ ≠ 0) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.continuityResidual (fun x ↦ ρ₀) u x = 0 ↔ IncompressibleFlow.DivergenceFreeAt u x
theorem IncompressibleFlow.continuityResidual_const_eq_zero_iff_divergenceFreeAt {n : ℕ} {ρ₀ : ℝ} (hρ₀ : ρ₀ ≠ 0) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.continuityResidual (fun x ↦ ρ₀) u x = 0 ↔ IncompressibleFlow.DivergenceFreeAt u x
For nonzero constant density, conservation of mass is equivalent to pointwise incompressibility.
The time derivative of a constant vanishes, and constant scalar
multiplication passes through every spatial partial derivative. Thus the
continuity residual is \rho_0 times the divergence. If \rho_0 is
nonzero, their product vanishes exactly when the divergence vanishes.
Incompressibility, \nabla\cdot u=0, says that an infinitesimal fluid volume
neither expands nor contracts.
IncompressibleFlow.materialDerivative[complete]IncompressibleFlow.DivergenceFree[complete]IncompressibleFlow.DivergenceFreeAt[complete]IncompressibleFlow.FiniteTimeResidualSolution[complete]IncompressibleFlow.FiniteTimeClassicalSolution[complete]IncompressibleFlow.GlobalResidualSolution[complete]IncompressibleFlow.GlobalClassicalSolution[complete]IncompressibleFlow.GlobalResidualSolution.toFiniteTime[complete]IncompressibleFlow.GlobalClassicalSolution.toFiniteTime[complete]
Write spacetime as \mathbb R^{n+1}, with coordinate zero reserved for
time. The material derivative is
(D_t^u v)_i
=\partial_t v_i+\sum_{j=1}^n u_j\partial_jv_i,
and incompressibility sums only the spatial derivatives. The global condition requires this sum to vanish everywhere; its pointwise form imposes the same identity at one spacetime point.
An incompressible solution pairs an equation-specific momentum predicate with incompressibility and initial data. A residual solution requires only those equations; a classical solution adds the regularity that makes the totalized derivatives analytic derivatives and the assigned initial value a one-sided trace. Global solutions restrict canonically to any positive finite horizon. Euler and Navier–Stokes are both instances of these definitions.
Lean code for Definition8.10●9 definitionsAssociated Lean declarationsIncompressibleFlow.materialDerivative[complete]IncompressibleFlow.DivergenceFree[complete]IncompressibleFlow.DivergenceFreeAt[complete]IncompressibleFlow.FiniteTimeResidualSolution[complete]IncompressibleFlow.FiniteTimeClassicalSolution[complete]IncompressibleFlow.GlobalResidualSolution[complete]IncompressibleFlow.GlobalClassicalSolution[complete]IncompressibleFlow.GlobalResidualSolution.toFiniteTime[complete]IncompressibleFlow.GlobalClassicalSolution.toFiniteTime[complete]
IncompressibleFlow.materialDerivative[complete]IncompressibleFlow.DivergenceFree[complete]IncompressibleFlow.DivergenceFreeAt[complete]IncompressibleFlow.FiniteTimeResidualSolution[complete]IncompressibleFlow.FiniteTimeClassicalSolution[complete]IncompressibleFlow.GlobalResidualSolution[complete]IncompressibleFlow.GlobalClassicalSolution[complete]IncompressibleFlow.GlobalResidualSolution.toFiniteTime[complete]IncompressibleFlow.GlobalClassicalSolution.toFiniteTime[complete]
- defdefined in PDE/Fluid/Incompressible/Operators.leancomplete
def IncompressibleFlow.materialDerivative (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) : (ℝ^(n + 1) → ℝ^n) → ℝ^(n + 1) → ℝ^n
def IncompressibleFlow.materialDerivative (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) : (ℝ^(n + 1) → ℝ^n) → ℝ^(n + 1) → ℝ^n
Material derivative
Dₜᵘv = ∂ₜv + (u · ∇)v.Only spatial derivatives occur in the transport term.
- abbrevdefined in PDE/Fluid/Incompressible/Operators.leancomplete
abbrev IncompressibleFlow.DivergenceFree {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) : Prop
abbrev IncompressibleFlow.DivergenceFree {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) : Prop
The pointwise incompressibility condition
∇ · u = 0on all spacetime. - defdefined in PDE/Fluid/Incompressible/Operators.leancomplete
def IncompressibleFlow.DivergenceFreeAt {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : Prop
def IncompressibleFlow.DivergenceFreeAt {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : Prop
Pointwise incompressibility at one spacetime point.
- structuredefined in PDE/Fluid/Incompressible/ClassicalSolutions.leancomplete
structure IncompressibleFlow.FiniteTimeResidualSolution {n : ℕ} (initialVelocity : ℝ^n → ℝ^n) (momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop) : Type
structure IncompressibleFlow.FiniteTimeResidualSolution {n : ℕ} (initialVelocity : ℝ^n → ℝ^n) (momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop) : Type
A finite-time incompressible residual solution for a prescribed momentum predicate.
The predicate
momentum u p xis expected to express the equation-specific momentum law atx. This structure contains no regularity or integrability assumptions.Fields
u : ℝ^(n + 1) → ℝ^n
Candidate velocity field.
p : ℝ^(n + 1) → ℝ
Candidate pressure field.
T : ↑(Set.Ioi 0)
Positive finite endpoint of the time interval.
momentum_at : ∀ {x : ℝ^(n + 1)}, x ∈ IncompressibleFlow.finiteTimeDomain n ↑self.T → momentum self.u self.p x
The equation-specific momentum law on
(0,T) × ℝ^n.divergenceFreeOn : IncompressibleFlow.DivergenceFreeOn self.u (IncompressibleFlow.finiteTimeDomain n ↑self.T)
Pointwise incompressibility on
(0,T) × ℝ^n.initial_eq : ∀ (x : ℝ^n), self.u (PDE.Common.timeSpaceCons 0 x) = initialVelocity x
Exact representative-level value at time zero.
- structuredefined in PDE/Fluid/Incompressible/ClassicalSolutions.leancomplete
structure IncompressibleFlow.FiniteTimeClassicalSolution {n : ℕ} (initialVelocity : ℝ^n → ℝ^n) (momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop) : Type
structure IncompressibleFlow.FiniteTimeClassicalSolution {n : ℕ} (initialVelocity : ℝ^n → ℝ^n) (momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop) : Type
A finite-time classical solution for a prescribed momentum predicate.
Velocity and pressure are ambient-smooth at positive-time points. Relative continuity of velocity at the initial surface makes the stored initial value a one-sided trace.
Extends
IncompressibleFlow.FiniteTimeResidualSolution initialVelocity momentum
Fields
u : ℝ^(n + 1) → ℝ^n
Inherited fromIncompressibleFlow.FiniteTimeResidualSolution
p : ℝ^(n + 1) → ℝ
Inherited fromIncompressibleFlow.FiniteTimeResidualSolution
T : ↑(Set.Ioi 0)
Inherited fromIncompressibleFlow.FiniteTimeResidualSolution
momentum_at : ∀ {x : ℝ^(n + 1)}, x ∈ IncompressibleFlow.finiteTimeDomain n ↑self.T → momentum self.u self.p x
Inherited fromIncompressibleFlow.FiniteTimeResidualSolution
divergenceFreeOn : IncompressibleFlow.DivergenceFreeOn self.u (IncompressibleFlow.finiteTimeDomain n ↑self.T)
Inherited fromIncompressibleFlow.FiniteTimeResidualSolution
initial_eq : ∀ (x : ℝ^n), self.u (PDE.Common.timeSpaceCons 0 x) = initialVelocity x
Inherited fromIncompressibleFlow.FiniteTimeResidualSolution
velocity_contDiffAt : ∀ {x : ℝ^(n + 1)}, x ∈ IncompressibleFlow.finiteTimeDomain n ↑self.T → ContDiffAt ℝ (↑⊤) self.u x
Ambient smoothness of velocity at every positive-time domain point.
pressure_contDiffAt : ∀ {x : ℝ^(n + 1)}, x ∈ IncompressibleFlow.finiteTimeDomain n ↑self.T → ContDiffAt ℝ (↑⊤) self.p x
Ambient smoothness of pressure at every positive-time domain point.
continuousWithinAt_initial : ∀ (x : ℝ^n), ContinuousWithinAt self.u (IncompressibleFlow.globalDomain n) (PDE.Common.timeSpaceCons 0 x)
One-sided continuity of velocity at the initial surface.
- structuredefined in PDE/Fluid/Incompressible/ClassicalSolutions.leancomplete
structure IncompressibleFlow.GlobalResidualSolution {n : ℕ} (initialVelocity : ℝ^n → ℝ^n) (momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop) : Type
structure IncompressibleFlow.GlobalResidualSolution {n : ℕ} (initialVelocity : ℝ^n → ℝ^n) (momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop) : Type
A global incompressible residual solution for a prescribed momentum predicate.
Fields
u : ℝ^(n + 1) → ℝ^n
Candidate velocity field.
p : ℝ^(n + 1) → ℝ
Candidate pressure field.
momentum_at : ∀ {x : ℝ^(n + 1)}, x ∈ PDE.Common.positiveTimeDomain → momentum self.u self.p x
The equation-specific momentum law at every strictly positive time.
divergenceFreeOn : IncompressibleFlow.DivergenceFreeOn self.u PDE.Common.positiveTimeDomain
Pointwise incompressibility at every strictly positive time.
initial_eq : ∀ (x : ℝ^n), self.u (PDE.Common.timeSpaceCons 0 x) = initialVelocity x
Exact representative-level value at time zero.
- structuredefined in PDE/Fluid/Incompressible/ClassicalSolutions.leancomplete
structure IncompressibleFlow.GlobalClassicalSolution {n : ℕ} (initialVelocity : ℝ^n → ℝ^n) (momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop) : Type
structure IncompressibleFlow.GlobalClassicalSolution {n : ℕ} (initialVelocity : ℝ^n → ℝ^n) (momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop) : Type
A global classical solution for a prescribed momentum predicate.
Velocity and pressure are smooth relative to the closed physical half-space. At time zero this is a one-sided regularity statement and supplies the initial trace.
Extends
IncompressibleFlow.GlobalResidualSolution initialVelocity momentum
Fields
u : ℝ^(n + 1) → ℝ^n
Inherited fromIncompressibleFlow.GlobalResidualSolution
p : ℝ^(n + 1) → ℝ
Inherited fromIncompressibleFlow.GlobalResidualSolution
momentum_at : ∀ {x : ℝ^(n + 1)}, x ∈ PDE.Common.positiveTimeDomain → momentum self.u self.p x
Inherited fromIncompressibleFlow.GlobalResidualSolution
divergenceFreeOn : IncompressibleFlow.DivergenceFreeOn self.u PDE.Common.positiveTimeDomain
Inherited fromIncompressibleFlow.GlobalResidualSolution
initial_eq : ∀ (x : ℝ^n), self.u (PDE.Common.timeSpaceCons 0 x) = initialVelocity x
Inherited fromIncompressibleFlow.GlobalResidualSolution
velocity_contDiffOn : ContDiffOn ℝ (↑⊤) self.u (IncompressibleFlow.globalDomain n)
Relative smoothness of velocity on the closed physical half-space.
pressure_contDiffOn : ContDiffOn ℝ (↑⊤) self.p (IncompressibleFlow.globalDomain n)
Relative smoothness of pressure on the closed physical half-space.
- defdefined in PDE/Fluid/Incompressible/ClassicalSolutions.leancomplete
def IncompressibleFlow.GlobalResidualSolution.toFiniteTime {n : ℕ} {initialVelocity : ℝ^n → ℝ^n} {momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop} (sol : IncompressibleFlow.GlobalResidualSolution initialVelocity momentum) (T : ℝ) (hT : 0 < T) : IncompressibleFlow.FiniteTimeResidualSolution initialVelocity momentum
def IncompressibleFlow.GlobalResidualSolution.toFiniteTime {n : ℕ} {initialVelocity : ℝ^n → ℝ^n} {momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop} (sol : IncompressibleFlow.GlobalResidualSolution initialVelocity momentum) (T : ℝ) (hT : 0 < T) : IncompressibleFlow.FiniteTimeResidualSolution initialVelocity momentum
Restriction of a global residual solution to a positive finite horizon.
- defdefined in PDE/Fluid/Incompressible/ClassicalSolutions.leancomplete
def IncompressibleFlow.GlobalClassicalSolution.toFiniteTime {n : ℕ} {initialVelocity : ℝ^n → ℝ^n} {momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop} (sol : IncompressibleFlow.GlobalClassicalSolution initialVelocity momentum) (T : ℝ) (hT : 0 < T) : IncompressibleFlow.FiniteTimeClassicalSolution initialVelocity momentum
def IncompressibleFlow.GlobalClassicalSolution.toFiniteTime {n : ℕ} {initialVelocity : ℝ^n → ℝ^n} {momentum : (ℝ^(n + 1) → ℝ^n) → (ℝ^(n + 1) → ℝ) → ℝ^(n + 1) → Prop} (sol : IncompressibleFlow.GlobalClassicalSolution initialVelocity momentum) (T : ℝ) (hT : 0 < T) : IncompressibleFlow.FiniteTimeClassicalSolution initialVelocity momentum
Restriction of a global classical solution to a positive finite horizon.
8.2.1.3. Momentum and stress
Incompressibility allows substantial deformation. For the planar velocity
u(x,y)=(ax,-ay), the divergence is a-a=0, while particles follow
(x(t),y(t))=(e^{at}x(0),e^{-at}y(0)). A small rectangle stretches in
one direction and contracts in the other; the area factor is
e^{at}e^{-at}=1. This example helps us read
\nabla\cdot u=0: it controls volume change, not the size of the velocity
or the amount of stretching.
Newton's law for a continuum reads
\rho D_tu=\nabla\mathbin\cdot\sigma+\rho f,
where \sigma is the Cauchy stress tensor and f is an external force per
unit mass. For an incompressible Newtonian fluid with constant density, the
stress splits into pressure and viscosity:
\sigma=-pI+2\mu D(u),\qquad
D(u)=\frac12\bigl(\nabla u+\nabla u^{\mathsf T}\bigr).
IncompressibleFlow.SpatialMatrix[complete]IncompressibleFlow.spatialVelocityGradient[complete]IncompressibleFlow.strainRateTensor[complete]IncompressibleFlow.strainRateTrace[complete]IncompressibleFlow.newtonianCauchyStress[complete]
The spatial velocity gradient has components
(\nabla u)_{ij}=\partial_j u_i. Its symmetric part is the strain rate
D_{ij}(u)=\frac{\partial_j u_i+\partial_i u_j}{2},
and the Newtonian constitutive law is
\sigma_{ij}=-p\,\delta_{ij}+2\mu D_{ij}(u).
Lean code for Definition8.11●5 definitionsAssociated Lean declarationsIncompressibleFlow.SpatialMatrix[complete]IncompressibleFlow.spatialVelocityGradient[complete]IncompressibleFlow.strainRateTensor[complete]IncompressibleFlow.strainRateTrace[complete]IncompressibleFlow.newtonianCauchyStress[complete]
IncompressibleFlow.SpatialMatrix[complete]IncompressibleFlow.spatialVelocityGradient[complete]IncompressibleFlow.strainRateTensor[complete]IncompressibleFlow.strainRateTrace[complete]IncompressibleFlow.newtonianCauchyStress[complete]
- abbrevdefined in PDE/Fluid/Incompressible/SpatialFields.leancomplete
abbrev IncompressibleFlow.SpatialMatrix (n : ℕ) : Type
abbrev IncompressibleFlow.SpatialMatrix (n : ℕ) : Type
Euclidean space of real
n × nspatial matrices, indexed by component/derivative pairs(i,j). - defdefined in PDE/Fluid/Incompressible/SpatialFields.leancomplete
def IncompressibleFlow.spatialVelocityGradient (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
def IncompressibleFlow.spatialVelocityGradient (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
Classical spatial velocity gradient
∇u, with entry(i,j) = ∂ⱼuᵢ. - defdefined in PDE/Fluid/Incompressible/Stress.leancomplete
def IncompressibleFlow.strainRateTensor (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
def IncompressibleFlow.strainRateTensor (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
Symmetric strain-rate tensor
D(u) = (∇u + (∇u)ᵀ) / 2. - defdefined in PDE/Fluid/Incompressible/Stress.leancomplete
def IncompressibleFlow.strainRateTrace (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ
def IncompressibleFlow.strainRateTrace (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ
Trace of the strain-rate tensor.
- defdefined in PDE/Fluid/Incompressible/Stress.leancomplete
def IncompressibleFlow.newtonianCauchyStress (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
def IncompressibleFlow.newtonianCauchyStress (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.SpatialMatrix n
Newtonian Cauchy stress tensor
σ = -p I + 2 μ D(u).
Only the symmetric half of \nabla u enters the constitutive law. The
antisymmetric part is half the vorticity tensor, so the Newtonian stress
ignores exactly the local rotation of the fluid.
The velocity gradient splits into its symmetric and antisymmetric parts:
\partial_j u_i=D_{ij}(u)+\frac12\Omega_{ij}(u),
\qquad D_{ji}(u)=D_{ij}(u).
Here
\Omega_{ij}(u)=\partial_j u_i-\partial_i u_j is twice the antisymmetric
part of the velocity gradient, developed as vorticity in the Euler section.
Lean code for Theorem8.12●2 theoremsAssociated Lean declarations
- theoremdefined in PDE/Fluid/Incompressible/Stress.leancomplete
theorem IncompressibleFlow.spatialVelocityGradient_eq_strainRateTensor_add_half_vorticityTensor (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.spatialVelocityGradient n u x = IncompressibleFlow.strainRateTensor n u x + (1 / 2) • IncompressibleFlow.vorticityTensor n u x
theorem IncompressibleFlow.spatialVelocityGradient_eq_strainRateTensor_add_half_vorticityTensor (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.spatialVelocityGradient n u x = IncompressibleFlow.strainRateTensor n u x + (1 / 2) • IncompressibleFlow.vorticityTensor n u x
The velocity gradient is the sum of strain rate and half the vorticity.
- theoremdefined in PDE/Fluid/Incompressible/Stress.leancomplete
theorem IncompressibleFlow.strainRateTensor_apply_swap (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (i j : Fin n) : (IncompressibleFlow.strainRateTensor n u x).ofLp (j, i) = (IncompressibleFlow.strainRateTensor n u x).ofLp (i, j)
theorem IncompressibleFlow.strainRateTensor_apply_swap (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (i j : Fin n) : (IncompressibleFlow.strainRateTensor n u x).ofLp (j, i) = (IncompressibleFlow.strainRateTensor n u x).ofLp (i, j)
The strain-rate tensor is symmetric.
Add and subtract \partial_i u_j. Half of their sum is the strain rate,
and half of their difference is \Omega_{ij}/2, the antisymmetric part.
Exchanging the two indices leaves the sum unchanged.
To see why the symmetric part measures strain, let h be an infinitesimal
separation between two particles. Along a smooth trajectory its linearized
evolution is h'=(\nabla u)h, so
\frac{d}{dt}|h|^2=2h\cdot(\nabla u)h=2h\cdot D(u)h.
An antisymmetric matrix contributes zero to this quadratic form. It can
rotate the separation without changing its length. For the stretching flow
u=(ax,-ay), D(u)=\operatorname{diag}(a,-a); for solid rotation,
D(u)=0 even though the velocity and vorticity are nonzero.
The diagonal of D(u) carries the volumetric information: for incompressible
flow the pressure is the only part of the stress that survives on the trace.
The strain trace is the divergence:
\operatorname{tr}D(u)=\sum_i\partial_i u_i=\nabla\cdot u.
Consequently, incompressible strain is trace free. The Newtonian stress is
symmetric because both the pressure tensor and D(u) are symmetric.
Lean code for Theorem8.13●3 theoremsAssociated Lean declarations
- theoremdefined in PDE/Fluid/Incompressible/Stress.leancomplete
theorem IncompressibleFlow.strainRateTrace_eq_spatialDivergence (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.strainRateTrace n u x = IncompressibleFlow.spatialDivergence n u x
theorem IncompressibleFlow.strainRateTrace_eq_spatialDivergence (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.strainRateTrace n u x = IncompressibleFlow.spatialDivergence n u x
The trace of the strain-rate tensor is the spatial divergence.
- theoremdefined in PDE/Fluid/Incompressible/Stress.leancomplete
theorem IncompressibleFlow.strainRateTrace_eq_zero_of_divergenceFreeAt (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hdiv : IncompressibleFlow.DivergenceFreeAt u x) : IncompressibleFlow.strainRateTrace n u x = 0
theorem IncompressibleFlow.strainRateTrace_eq_zero_of_divergenceFreeAt (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hdiv : IncompressibleFlow.DivergenceFreeAt u x) : IncompressibleFlow.strainRateTrace n u x = 0
Incompressibility makes the strain-rate tensor trace free.
- theoremdefined in PDE/Fluid/Incompressible/Stress.leancomplete
theorem IncompressibleFlow.newtonianCauchyStress_apply_swap (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (i j : Fin n) : (IncompressibleFlow.newtonianCauchyStress n dynamicViscosity p u x).ofLp (j, i) = (IncompressibleFlow.newtonianCauchyStress n dynamicViscosity p u x).ofLp (i, j)
theorem IncompressibleFlow.newtonianCauchyStress_apply_swap (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (i j : Fin n) : (IncompressibleFlow.newtonianCauchyStress n dynamicViscosity p u x).ofLp (j, i) = (IncompressibleFlow.newtonianCauchyStress n dynamicViscosity p u x).ofLp (i, j)
Newtonian Cauchy stress is symmetric.
On the diagonal,
D_{ii}=(\partial_i u_i+\partial_i u_i)/2=\partial_i u_i.
Summing gives the divergence, which vanishes under incompressibility.
Symmetry of the stress follows componentwise from
\delta_{ij}=\delta_{ji} and D_{ij}=D_{ji}.
Newton's law involves the stress only through \nabla\cdot\sigma.
Differentiating the constitutive law componentwise turns the pressure part into
-\nabla p and the strain part into a Laplacian plus a gradient of the
divergence, the latter being the same trace that incompressibility has just
removed.
For constant dynamic viscosity \mu, taking the spatial divergence of the
Newtonian constitutive law gives
(\nabla\cdot\sigma)_i
=-\partial_i p+\mu\Delta u_i+\mu\,\partial_i(\nabla\cdot u).
For a divergence-free velocity, the final term vanishes and therefore
\nabla\cdot\sigma=-\nabla p+\mu\Delta u.
The formal statement assumes differentiability of pressure and componentwise
C^2 regularity of velocity at the point, so that mixed spatial derivatives
commute. Its incompressible conclusion assumes divergence-freeness on the
whole field, since the gradient of the divergence must vanish at the point.
Lean code for Theorem8.14●2 theoremsAssociated Lean declarations
- theoremdefined in PDE/Fluid/Incompressible/Stress.leancomplete
theorem IncompressibleFlow.newtonianCauchyStressDivergence_eq (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hp : DifferentiableAt ℝ p x) (hu : ∀ (k : Fin n), ContDiffAt ℝ 2 (fun y ↦ (u y).ofLp k) x) : IncompressibleFlow.newtonianCauchyStressDivergence n dynamicViscosity p u x = -PDE.spatialGradient p x + dynamicViscosity • IncompressibleFlow.spatialVectorLaplacian n u x + dynamicViscosity • PDE.spatialGradient (IncompressibleFlow.spatialDivergence n u) x
theorem IncompressibleFlow.newtonianCauchyStressDivergence_eq (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hp : DifferentiableAt ℝ p x) (hu : ∀ (k : Fin n), ContDiffAt ℝ 2 (fun y ↦ (u y).ofLp k) x) : IncompressibleFlow.newtonianCauchyStressDivergence n dynamicViscosity p u x = -PDE.spatialGradient p x + dynamicViscosity • IncompressibleFlow.spatialVectorLaplacian n u x + dynamicViscosity • PDE.spatialGradient (IncompressibleFlow.spatialDivergence n u) x
Vector formula for the divergence of Newtonian stress.
- theoremdefined in PDE/Fluid/Incompressible/Stress.leancomplete
theorem IncompressibleFlow.newtonianCauchyStressDivergence_eq_of_divergenceFree (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hp : DifferentiableAt ℝ p x) (hu : ∀ (k : Fin n), ContDiffAt ℝ 2 (fun y ↦ (u y).ofLp k) x) (hdiv : IncompressibleFlow.DivergenceFree u) : IncompressibleFlow.newtonianCauchyStressDivergence n dynamicViscosity p u x = -PDE.spatialGradient p x + dynamicViscosity • IncompressibleFlow.spatialVectorLaplacian n u x
theorem IncompressibleFlow.newtonianCauchyStressDivergence_eq_of_divergenceFree (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) (hp : DifferentiableAt ℝ p x) (hu : ∀ (k : Fin n), ContDiffAt ℝ 2 (fun y ↦ (u y).ofLp k) x) (hdiv : IncompressibleFlow.DivergenceFree u) : IncompressibleFlow.newtonianCauchyStressDivergence n dynamicViscosity p u x = -PDE.spatialGradient p x + dynamicViscosity • IncompressibleFlow.spatialVectorLaplacian n u x
For a globally divergence-free velocity, Newtonian stress divergence reduces to the pressure force plus dynamic viscosity times the spatial vector Laplacian.
Differentiate
\sigma_{ij}=-p\delta_{ij}+\mu(\partial_j u_i+\partial_i u_j)
with respect to x_j and sum over j. The pressure terms select
-\partial_i p; the first viscous sum is \mu\Delta u_i. Commuting the
mixed derivatives in the second viscous sum gives
\mu\partial_i\sum_j\partial_j u_j. This is
\mu\partial_i(\nabla\cdot u), which is zero when the divergence vanishes
identically.
Substituting the reduced stress divergence into
\rho D_tu=\nabla\cdot\sigma+\rho f at unit density is all that separates the
Cauchy momentum balance from the Navier–Stokes equation.
Lean code for Theorem8.15●2 declarationsAssociated Lean declarations
- defdefined in PDE/Fluid/Incompressible/Stress.leancomplete
def IncompressibleFlow.newtonianCauchyMomentumResidual (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u f : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
def IncompressibleFlow.newtonianCauchyMomentumResidual (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ) (u f : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
Unit-density Cauchy momentum residual
Dₜu - div σ - ffor Newtonian stress.
For constant density \rho_0>0, divide the momentum equation by
\rho_0, replace pressure by p/\rho_0, and set
\nu=\mu/\rho_0. Together with \nabla\cdot u=0, this gives
\partial_tu+(u\mathbin\cdot\nabla)u+\nabla p
=\nu\Delta u+f.
The equation must be paired with a spatial domain and boundary conditions.
On a rigid wall, impermeability requires u\cdot n=0; the viscous no-slip
condition strengthens this to u=0. Whole-space problems instead prescribe
decay or integrability at infinity, while periodic problems identify opposite
faces of a box. These choices affect pressure recovery, energy identities, and
the meaning of a weak solution.
IncompressibleFlow.timeDerivative[complete]IncompressibleFlow.convectiveDerivative[complete]IncompressibleFlow.spatialVectorLaplacian[complete]NavierStokes.viscousTerm[complete]
The operators distinguish \partial_tu, (u\cdot\nabla_x)v,
\nu\Delta_xu, and \nabla_xp. Every spatial operator uses only
coordinates 1,\ldots,n; coordinate zero remains time. This matters because
the ambient fields live on spacetime, where an unqualified Laplacian would
also differentiate twice in time.
Lean code for Definition8.16●4 definitionsAssociated Lean declarationsIncompressibleFlow.timeDerivative[complete]IncompressibleFlow.convectiveDerivative[complete]IncompressibleFlow.spatialVectorLaplacian[complete]NavierStokes.viscousTerm[complete]
IncompressibleFlow.timeDerivative[complete]IncompressibleFlow.convectiveDerivative[complete]IncompressibleFlow.spatialVectorLaplacian[complete]NavierStokes.viscousTerm[complete]
- defdefined in PDE/Fluid/Incompressible/Operators.leancomplete
def IncompressibleFlow.timeDerivative (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
def IncompressibleFlow.timeDerivative (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
Pointwise time derivative of a spacetime vector field.
- defdefined in PDE/Fluid/Incompressible/Operators.leancomplete
def IncompressibleFlow.convectiveDerivative (n : ℕ) (u v : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
def IncompressibleFlow.convectiveDerivative (n : ℕ) (u v : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
Pointwise convective derivative
(u · ∇)v. - defdefined in PDE/Fluid/Incompressible/Operators.leancomplete
def IncompressibleFlow.spatialVectorLaplacian (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
def IncompressibleFlow.spatialVectorLaplacian (n : ℕ) (u : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : ℝ^n
Spatial vector Laplacian
Δₓu, excluding the time coordinate.
The material derivative decomposes exactly as
D_t^u v=\partial_t v+(u\cdot\nabla_x)v.
Lean code for Theorem8.17●1 theoremAssociated Lean declarations
- theoremdefined in PDE/Fluid/Incompressible/Operators.leancomplete
theorem IncompressibleFlow.materialDerivative_eq_timeDerivative_add_convectiveDerivative (n : ℕ) (u v : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.materialDerivative n u v x = IncompressibleFlow.timeDerivative n v x + IncompressibleFlow.convectiveDerivative n u v x
theorem IncompressibleFlow.materialDerivative_eq_timeDerivative_add_convectiveDerivative (n : ℕ) (u v : ℝ^(n + 1) → ℝ^n) (x : ℝ^(n + 1)) : IncompressibleFlow.materialDerivative n u v x = IncompressibleFlow.timeDerivative n v x + IncompressibleFlow.convectiveDerivative n u v x
The material derivative is the sum of the time and convective derivatives.
Evaluate both sides in a velocity component. The definitions have the same time partial and the same finite sum of spatial directional derivatives, so the componentwise equality is immediate.
8.2.1.4. Common weak-form data
IncompressibleFlow.IsWeakMomentumTest[complete]IncompressibleFlow.velocityTestPairing[complete]IncompressibleFlow.initialVelocityTestPairing[complete]
On a finite horizon [0,T], a momentum test field is a smooth compactly
supported spacetime vector field \varphi satisfying \varphi(T,x)=0.
It may be nonzero at t=0, which exposes the initial boundary term after
integration by parts. The velocity and initial pairings are
\langle u(t),\psi\rangle
=\int_{\mathbb R^n}u(t,x)\cdot\psi(x)\,dx,
\qquad
\langle u_0,\psi\rangle
=\int_{\mathbb R^n}u_0(x)\cdot\psi(x)\,dx.
These are shared test data and pairings; the Euler and Navier–Stokes weak formulations supply their own momentum integrands.
Lean code for Definition8.18●3 definitionsAssociated Lean declarationsIncompressibleFlow.IsWeakMomentumTest[complete]IncompressibleFlow.velocityTestPairing[complete]IncompressibleFlow.initialVelocityTestPairing[complete]
IncompressibleFlow.IsWeakMomentumTest[complete]IncompressibleFlow.velocityTestPairing[complete]IncompressibleFlow.initialVelocityTestPairing[complete]
- defdefined in PDE/Fluid/Incompressible/WeakForm.leancomplete
def IncompressibleFlow.IsWeakMomentumTest {n : ℕ} (T : ℝ) (φ : ℝ^(n + 1) → ℝ^n) : Prop
def IncompressibleFlow.IsWeakMomentumTest {n : ℕ} (T : ℝ) (φ : ℝ^(n + 1) → ℝ^n) : Prop
A smooth compactly supported momentum test field that vanishes at terminal time.
The field may be nonzero at time zero, where it records the initial boundary term.
- defdefined in PDE/Fluid/Incompressible/WeakForm.leancomplete
def IncompressibleFlow.velocityTestPairing {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (t : ℝ) (φ : ℝ^n → ℝ^n) : ℝ
def IncompressibleFlow.velocityTestPairing {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) (t : ℝ) (φ : ℝ^n → ℝ^n) : ℝ
Pairing of a velocity slice with a spatial vector test field.
- defdefined in PDE/Fluid/Incompressible/WeakForm.leancomplete
def IncompressibleFlow.initialVelocityTestPairing {n : ℕ} (data : IncompressibleFlow.InitialValueData n) (φ : ℝ^n → ℝ^n) : ℝ
def IncompressibleFlow.initialVelocityTestPairing {n : ℕ} (data : IncompressibleFlow.InitialValueData n) (φ : ℝ^n → ℝ^n) : ℝ
Pairing of prescribed initial velocity with a spatial vector test field.

