PDEAtlas

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.

Definition8.5
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Theorem 8.6
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 0used by 1✓L∃∀N

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 definitions
  • 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.

  • 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.

Theorem8.6
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1
Used by 2
Reverse dependency previews
Preview
Definition 8.7
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
✓L∃∀N

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 theorems
  • 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 X has velocity v, then the spacetime curve t ↦ (t, X(t)) has velocity (1, v).

  • 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))).

  • 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.

Proof for Theorem 8.6
uses 0

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.

Definition8.7
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1used by 1✓L∃∀N

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 definitions
  • 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 ρu associated with density ρ and velocity u.

  • 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 · ∇w of a scalar field.

  • 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).

Theorem8.8
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1used by 1✓L∃∀N

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 theorem
  • 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.

Proof for Theorem 8.8
uses 0

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.

Theorem8.9
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1
Used by 2
Reverse dependency previews
Preview
Definition 8.10
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
✓L∃∀N

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 theorems
  • 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.

  • 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.

  • 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.

Proof for Theorem 8.9
uses 0

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.

Definition8.10
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
Statement uses 2
Statement dependency previews
Preview
Theorem 8.6
Loading preview
Statement dependency preview content is loaded from the rendered-fragment cache.
Used by 10
Reverse dependency previews
Preview
Definition 8.11
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
✓L∃∀N

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 definitions
  • 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.

  • abbrev IncompressibleFlow.DivergenceFree {n : ℕ} (u : ℝ^(n + 1) → ℝ^n) : Prop
    abbrev IncompressibleFlow.DivergenceFree {n : ℕ}
      (u : ℝ^(n + 1) → ℝ^n) : Prop

    The pointwise incompressibility condition ∇ · u = 0 on all spacetime.

  • 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.

  • complete
    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 x is expected to express the equation-specific momentum law at x. This structure contains no regularity or integrability assumptions.

    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.

  • structure(extends 1, 9 fields)defined in PDE/Fluid/Incompressible/ClassicalSolutions.lean
    complete
    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.

    • IncompressibleFlow.FiniteTimeResidualSolution initialVelocity momentum
    u : ℝ^(n + 1) → ℝ^n
    Inherited from
    1. IncompressibleFlow.FiniteTimeResidualSolution
    p : ℝ^(n + 1) → ℝ
    Inherited from
    1. IncompressibleFlow.FiniteTimeResidualSolution
    T : ↑(Set.Ioi 0)
    Inherited from
    1. IncompressibleFlow.FiniteTimeResidualSolution
    momentum_at : ∀ {x : ℝ^(n + 1)}, x ∈ IncompressibleFlow.finiteTimeDomain n ↑self.T → momentum self.u self.p x
    Inherited from
    1. IncompressibleFlow.FiniteTimeResidualSolution
    divergenceFreeOn : IncompressibleFlow.DivergenceFreeOn self.u (IncompressibleFlow.finiteTimeDomain n ↑self.T)
    Inherited from
    1. IncompressibleFlow.FiniteTimeResidualSolution
    initial_eq : ∀ (x : ℝ^n), self.u (PDE.Common.timeSpaceCons 0 x) = initialVelocity x
    Inherited from
    1. IncompressibleFlow.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.

  • complete
    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.

    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.

  • structure(extends 1, 7 fields)defined in PDE/Fluid/Incompressible/ClassicalSolutions.lean
    complete
    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.

    • IncompressibleFlow.GlobalResidualSolution initialVelocity momentum
    u : ℝ^(n + 1) → ℝ^n
    Inherited from
    1. IncompressibleFlow.GlobalResidualSolution
    p : ℝ^(n + 1) → ℝ
    Inherited from
    1. IncompressibleFlow.GlobalResidualSolution
    momentum_at : ∀ {x : ℝ^(n + 1)}, x ∈ PDE.Common.positiveTimeDomain → momentum self.u self.p x
    Inherited from
    1. IncompressibleFlow.GlobalResidualSolution
    divergenceFreeOn : IncompressibleFlow.DivergenceFreeOn self.u PDE.Common.positiveTimeDomain
    Inherited from
    1. IncompressibleFlow.GlobalResidualSolution
    initial_eq : ∀ (x : ℝ^n), self.u (PDE.Common.timeSpaceCons 0 x) = initialVelocity x
    Inherited from
    1. IncompressibleFlow.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.

  • 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.

  • 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).

Definition8.11
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1
Used by 3
Reverse dependency previews
Preview
Theorem 8.12
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
✓L∃∀N

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 definitions
  • abbrev IncompressibleFlow.SpatialMatrix (n : ℕ) : Type
    abbrev IncompressibleFlow.SpatialMatrix (n : ℕ) :
      Type

    Euclidean space of real n × n spatial matrices, indexed by component/derivative pairs (i,j).

  • 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ᵢ.

  • 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.

  • 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.

  • 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.

Theorem8.12
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1used by 0✓L∃∀N

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 theorems
  • complete
    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.

  • complete
    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.

Proof for Theorem 8.12
uses 0

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.

Theorem8.13
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
Statement uses 2
Statement dependency previews
Preview
Theorem 8.9
Loading preview
Statement dependency preview content is loaded from the rendered-fragment cache.
used by 1✓L∃∀N

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 theorems
  • complete
    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.

  • complete
    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.

  • complete
    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.

Proof for Theorem 8.13
uses 0

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.

Theorem8.14
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1
Used by 2
Reverse dependency previews
Preview
Theorem 8.15
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
✓L∃∀N

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 theorems
  • complete
    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.

  • complete
    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.

Proof for Theorem 8.14
uses 0

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.

Theorem8.15
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
Statement uses 2
Statement dependency previews
Preview
Definition 8.10
Loading preview
Statement dependency preview content is loaded from the rendered-fragment cache.
used by 0✓L∃∀N

At unit density, the Cauchy momentum residual is

R_C=D_t^u u-\nabla\cdot\sigma-f.

For a divergence-free Newtonian velocity field with the stated differentiability, it is exactly the Navier–Stokes residual:

R_C =D_t^u u+\nabla p-\mu\Delta u-f =R_{NS}.

Thus the Cauchy momentum balance and the reduced Navier–Stokes equation are the same pointwise equation under these hypotheses.

Lean code for Theorem8.15●2 declarations
  • theorem IncompressibleFlow.newtonianCauchyMomentumResidual_eq_navierStokesMomentumResidual
      (n : ℕ) (dynamicViscosity : ℝ) (p : ℝ^(n + 1) → ℝ)
      (u f : ℝ^(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.newtonianCauchyMomentumResidual n dynamicViscosity
          p u f x =
        IncompressibleFlow.navierStokesMomentumResidual n dynamicViscosity u
          p f x
    theorem IncompressibleFlow.newtonianCauchyMomentumResidual_eq_navierStokesMomentumResidual
      (n : ℕ) (dynamicViscosity : ℝ)
      (p : ℝ^(n + 1) → ℝ)
      (u f : ℝ^(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.newtonianCauchyMomentumResidual
          n dynamicViscosity p u f x =
        IncompressibleFlow.navierStokesMomentumResidual
          n dynamicViscosity u p f x

    For a globally divergence-free Newtonian fluid of unit density, the Cauchy momentum residual is exactly the Navier–Stokes momentum residual.

  • 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 σ - f for Newtonian stress.

Proof for Theorem 8.15
uses 0

Substitute \nabla\cdot\sigma=-\nabla p+\mu\Delta u into D_t^u u-\nabla\cdot\sigma-f. Distributing the minus sign gives D_t^u u+\nabla p-\mu\Delta u-f, component by component.

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.

Definition8.16
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
Statement uses 3
Statement dependency previews
Preview
Definition 3.61
Loading preview
Statement dependency preview content is loaded from the rendered-fragment cache.
Used by 8
Reverse dependency previews
Preview
Theorem 8.17
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
✓L∃∀N

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 definitions
  • 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.

  • 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.

  • 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.

  • def NavierStokes.viscousTerm (n : ℕ) (viscosity : ℝ) (u : ℝ^(n + 1) → ℝ^n)
      (x : ℝ^(n + 1)) : ℝ^n
    def NavierStokes.viscousTerm (n : ℕ)
      (viscosity : ℝ) (u : ℝ^(n + 1) → ℝ^n)
      (x : ℝ^(n + 1)) : ℝ^n

    The viscous term viscosity Δu, with the Laplacian taken only in spatial variables.

Theorem8.17
Original source
Source provenance preview
Preview
Original source
  • Documentmajda-bertozzi
    majda-bertozzi p. Chapter 1
    • page Chapter 1; text Blueprint/Sources/MajdaBertozzi.md:1-11
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1
Used by 3
Reverse dependency previews
Preview
Definition 8.24
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
✓L∃∀N

The material derivative decomposes exactly as

D_t^u v=\partial_t v+(u\cdot\nabla_x)v.

Lean code for Theorem8.17●1 theorem
  • complete
    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.

Proof for Theorem 8.17
uses 0

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🔗

Definition8.18
Original source
Source provenance preview
Preview
Original source
  • Documentwiedemann-euler-weak
    wiedemann-euler-weak p. Equation (3)
    • page Equation (3); text Blueprint/Sources/WiedemannEulerWeak.md:1-14
Group: Incompressible fluid equations (13)
Group member previews
Preview
Definition 8.5
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1
Used by 2
Reverse dependency previews
Preview
Definition 8.28
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
✓L∃∀N

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 definitions
  • 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.

  • 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.

  • 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.