Incompressible Navier--Stokes--Fourier, compressible Euler, and well-prepared kinetic data
DefinitionHilbertSixth_FluidThe fluid systems and the kinetic data used in the hydrodynamic half of arXiv:2503.01800.
The incompressible Navier-Stokes-Fourier system (1.19) on reads
with and of zero mean on the torus. The compressible Euler system (1.40) reads
with positive density and temperature. Also formalized: the well-prepared kinetic data (1.21)
the fluctuation profile appearing in (1.22) and (1.26), and the weighted derivative bounds used for the perturbations and in (1.20) and (1.44).
import Definitions.Def_HilbertSixth_Boltzmann
/-!
# Fluid equations and well-prepared kinetic data
Formalization of the fluid systems appearing in Deng–Hani–Ma, *Hilbert's sixth
problem: derivation of fluid equations via Boltzmann's kinetic theory*
(arXiv:2503.01800): the incompressible Navier–Stokes–Fourier system (1.19), the
compressible Euler system (1.40), the well-prepared kinetic data (1.21) and the
local-Maxwellian fluctuation profile appearing in (1.22) and (1.26).
All fluid unknowns are functions of `(t, x) ∈ ℝ × ℝ^d`; the torus `T^d` is encoded
by `ℤ^d`-periodicity in `x`, and integrals in `x` are taken over the fundamental
domain `box d = [0,1)^d`.
-/
open MeasureTheory
namespace HilbertSixth
/-- Smoothness and `ℤ^d`-periodicity of a scalar field `(t, x) ↦ f t x`. -/
def SmoothPeriodicScalar (d : ℕ) (f : ℝ → Vec d → ℝ) : Prop :=
ContDiff ℝ (⊤ : ℕ∞) (fun q : ℝ × Vec d => f q.1 q.2) ∧ ∀ t : ℝ, PeriodicPos (f t)
/-- Smoothness and `ℤ^d`-periodicity of a vector field `(t, x) ↦ u t x`. -/
def SmoothPeriodicVector (d : ℕ) (u : ℝ → Vec d → Vec d) : Prop :=
(∀ i : Fin d, ContDiff ℝ (⊤ : ℕ∞) (fun q : ℝ × Vec d => u q.1 q.2 i)) ∧
∀ (t : ℝ) (i : Fin d), PeriodicPos (fun x => u t x i)
/-- **Equation (1.19) — the incompressible Navier–Stokes–Fourier system on `T^d`**
with viscosity `μ₁` and thermal diffusivity `μ₂`:
`∂_t u + (u · ∇) u - μ₁ Δu = -∇p`, `∂_t ρ + (u · ∇) ρ - μ₂ Δρ = 0`, `div u = 0`,
together with the zero-mean normalisation of `u` and `ρ` on the torus, on the time
interval `[0, Tfin]`. -/
def IsNSFSolution (d : ℕ) (μ₁ μ₂ Tfin : ℝ) (u : ℝ → Vec d → Vec d)
(ρ p : ℝ → Vec d → ℝ) : Prop :=
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ (x : Vec d) (i : Fin d),
deriv (fun s : ℝ => u s x i) t + advect (u t) (fun y => u t y i) x
- μ₁ * laplacian (fun y => u t y i) x = -partialD (p t) i x) ∧
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ x : Vec d,
deriv (fun s : ℝ => ρ s x) t + advect (u t) (ρ t) x
- μ₂ * laplacian (ρ t) x = 0) ∧
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ x : Vec d, divergence (u t) x = 0) ∧
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∫ x in box d, ρ t x = 0) ∧
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ i : Fin d, ∫ x in box d, u t x i = 0)
/-- **Equation (1.40) — the compressible Euler system on `T^d`** for the density `ρ`,
the velocity `u`, the temperature `Θ` and the pressure `p`:
`∂_t ρ + ∇ · (ρ u) = 0`,
`∂_t (ρ u) + ∇ · (ρ u ⊗ u) + ∇ p = 0`,
`∂_t (ρ (dΘ + |u|²)/2) + ∇ · (ρ u (dΘ + |u|²)/2) + ∇ · (p u) = 0`,
`p = ρ Θ`,
on the time interval `[0, Tfin]`, with `ρ` and `Θ` positive. -/
def IsCompressibleEulerSolution (d : ℕ) (Tfin : ℝ) (ρ Θ p : ℝ → Vec d → ℝ)
(u : ℝ → Vec d → Vec d) : Prop :=
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ x : Vec d, 0 < ρ t x ∧ 0 < Θ t x) ∧
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ x : Vec d,
deriv (fun s : ℝ => ρ s x) t + ∑ i, partialD (fun y => ρ t y * u t y i) i x = 0) ∧
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ (x : Vec d) (i : Fin d),
deriv (fun s : ℝ => ρ s x * u s x i) t
+ ∑ j, partialD (fun y => ρ t y * u t y i * u t y j) j x
+ partialD (p t) i x = 0) ∧
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ x : Vec d,
deriv (fun s : ℝ => ρ s x * (((d : ℝ) * Θ s x + ‖u s x‖ ^ 2) / 2)) t
+ ∑ i, partialD
(fun y => ρ t y * u t y i * (((d : ℝ) * Θ t y + ‖u t y‖ ^ 2) / 2)) i x
+ ∑ i, partialD (fun y => p t y * u t y i) i x = 0) ∧
(∀ t ∈ Set.Icc (0 : ℝ) Tfin, ∀ x : Vec d, p t x = ρ t x * Θ t x)
/-- The local-Maxwellian fluctuation profile of (1.22) and (1.26):
`(2π)^{-d/2} e^{-|v|²/2} (1 + δ ((2 + d - |v|²)/2 · ρ(x) + v · u(x)))`. -/
noncomputable def nsfProfile (d : ℕ) (δ : ℝ) (ρ : Vec d → ℝ) (u : Vec d → Vec d)
(x v : Vec d) : ℝ :=
globalMaxwellian d v *
(1 + δ * ((2 + (d : ℝ) - ‖v‖ ^ 2) / 2 * ρ x + dotp v (u x)))
/-- **Equation (1.21) — the well-prepared initial kinetic data** for the
incompressible Navier–Stokes–Fourier limit:
`n₀(x,v) = (2π)^{-d/2} e^{-|v|²/2} [1 + δ ((2 + d - |v|²)/2 · ρ₀(x) + v · u₀(x))
+ δ⁴ e^{|v|²/4} g_R(x,v)]`. -/
noncomputable def nsfInitialData (d : ℕ) (δ : ℝ) (ρ₀ : Vec d → ℝ) (u₀ : Vec d → Vec d)
(gR : Vec d → Vec d → ℝ) (x v : Vec d) : ℝ :=
globalMaxwellian d v *
(1 + δ * ((2 + (d : ℝ) - ‖v‖ ^ 2) / 2 * ρ₀ x + dotp v (u₀ x))
+ δ ^ 4 * Real.exp (‖v‖ ^ 2 / 4) * gR x v)
/-- `WeightedDerivBound d m w F` says that all joint derivatives of `F` in `(x, v)`
of total order at most `m`, weighted by `w`, are bounded by `1` in supremum norm.
Used for the perturbation bounds (1.20) and (1.44), with `m = 4d` and weight
`⟨v⟩^{2d}` (resp. `M^{-1/2} ⟨v⟩^{2d}`); bounding all joint derivatives of total
order `≤ 4d` implies the bound on each mixed derivative `∂_x^μ ∂_v^ν` with
`|μ|, |ν| ≤ 2d` required in the source. -/
def WeightedDerivBound (d m : ℕ) (w : Vec d → Vec d → ℝ) (F : Vec d → Vec d → ℝ) :
Prop :=
∀ k ≤ m, ∀ x v : Vec d,
w x v * ‖iteratedFDeriv ℝ k (fun z : Vec d × Vec d => F z.1 z.2) (x, v)‖ ≤ 1
end HilbertSixth
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Disclosure: this read-back is not independent testimony. It was written by the same agent that drafted the Lean statements, at the explicit instruction of the proposal owner, rather than by a blind auditor who saw only the code. It is therefore non-blind: it cannot be relied upon as an independent check that the formalization matches the source, and a reviewer should treat it as the author's own restatement of what the code says, not as corroborating evidence.
All fluid unknowns are functions of a time variable and a point of ; time derivatives are one-dimensional derivatives and space derivatives are the operators of the geometry file, all of them using junk values where differentiability fails.
asserts that is jointly and that each is -periodic; asserts the same for every coordinate of a vector field.
is the conjunction, over all and all , of: for each coordinate , ; ; ; ; and for each . Nothing requires to be positive, and for the whole predicate is vacuous.
is the conjunction, over all and all , of: and ; ; for each , ; the energy balance
and the state law .
Two explicit profiles are defined. With ,
the exponent carrying a plus sign, so that the last term equals . Neither profile is asserted to be nonnegative or to have integral one.
Finally states that for every and all ,
where is viewed as a function of the single variable and is its -th iterated Fréchet derivative, with operator norm; the case gives . Since the iterated derivative takes the junk value where is not times differentiable, the condition does not by itself entail smoothness.