Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Incompressible Navier--Stokes--Fourier, compressible Euler, and well-prepared kinetic data

Definition
HilbertSixth_Fluid

by LG · Sep 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysismathematical-physicspartial-differential-equations

The fluid systems and the kinetic data used in the hydrodynamic half of arXiv:2503.01800.

The incompressible Navier-Stokes-Fourier system (1.19) on Td\mathbb{T}^dTd reads

∂tu+(u⋅∇)u−μ1Δu=−∇p,∂tρ+(u⋅∇)ρ−μ2Δρ=0,div⁡u=0,\partial_t u + (u\cdot\nabla)u - \mu_1 \Delta u = -\nabla p, \qquad \partial_t \rho + (u\cdot\nabla)\rho - \mu_2\Delta\rho = 0, \qquad \operatorname{div} u = 0,∂t​u+(u⋅∇)u−μ1​Δu=−∇p,∂t​ρ+(u⋅∇)ρ−μ2​Δρ=0,divu=0,

with uuu and ρ\rhoρ of zero mean on the torus. The compressible Euler system (1.40) reads

∂tρ+∇⋅(ρu)=0,∂t(ρu)+∇⋅(ρu⊗u)+∇p=0,\partial_t\rho + \nabla\cdot(\rho u) = 0, \quad \partial_t(\rho u) + \nabla\cdot(\rho u \otimes u) + \nabla p = 0,∂t​ρ+∇⋅(ρu)=0,∂t​(ρu)+∇⋅(ρu⊗u)+∇p=0, ∂t(ρdΘ+∣u∣22)+∇⋅(ρudΘ+∣u∣22)+∇⋅(pu)=0,p=ρ Θ,\partial_t\Big(\rho\frac{d\Theta + |u|^2}{2}\Big) + \nabla\cdot\Big(\rho u \frac{d\Theta + |u|^2}{2}\Big) + \nabla\cdot(p u) = 0, \qquad p = \rho\,\Theta,∂t​(ρ2dΘ+∣u∣2​)+∇⋅(ρu2dΘ+∣u∣2​)+∇⋅(pu)=0,p=ρΘ,

with positive density and temperature. Also formalized: the well-prepared kinetic data (1.21)

n0(x,v)=e−∣v∣2/2(2π)d/2[1+δ(2+d−∣v∣22ρ0(x)+v⋅u0(x))+δ4e∣v∣2/4gR(x,v)],n_0(x,v) = \frac{e^{-|v|^2/2}}{(2\pi)^{d/2}}\Big[1 + \delta\Big(\tfrac{2+d-|v|^2}{2}\rho_0(x) + v\cdot u_0(x)\Big) + \delta^4 e^{|v|^2/4} g_R(x,v)\Big],n0​(x,v)=(2π)d/2e−∣v∣2/2​[1+δ(22+d−∣v∣2​ρ0​(x)+v⋅u0​(x))+δ4e∣v∣2/4gR​(x,v)],

the fluctuation profile appearing in (1.22) and (1.26), and the weighted derivative bounds used for the perturbations gRg_RgR​ and FRF_RFR​ in (1.20) and (1.44).

Definition code
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
Source
Deng--Hani--Ma, Hilbert's sixth problem: derivation of fluid equations via Boltzmann's kinetic theory, https://arxiv.org/abs/2503.01800, eq. (1.19), (1.20), (1.21), (1.22), (1.40), (1.44)
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 Rd\mathbb{R}^dRd; 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.

SmoothPeriodicScalar\mathrm{SmoothPeriodicScalar}SmoothPeriodicScalar asserts that (t,x)↦f(t,x)(t,x)\mapsto f(t,x)(t,x)↦f(t,x) is C∞C^\inftyC∞ jointly and that each f(t,⋅)f(t,\cdot)f(t,⋅) is Zd\mathbb{Z}^dZd-periodic; SmoothPeriodicVector\mathrm{SmoothPeriodicVector}SmoothPeriodicVector asserts the same for every coordinate of a vector field.

IsNSFSolution(d,μ1,μ2,Tfin,u,ρ,p)\mathrm{IsNSFSolution}(d, \mu_1, \mu_2, T_{\mathrm{fin}}, u, \rho, p)IsNSFSolution(d,μ1​,μ2​,Tfin​,u,ρ,p) is the conjunction, over all t∈[0,Tfin]t \in [0, T_{\mathrm{fin}}]t∈[0,Tfin​] and all xxx, of: for each coordinate iii, ∂tui+(u⋅∇)ui−μ1Δui=−∂ip\partial_t u_i + (u\cdot\nabla)u_i - \mu_1 \Delta u_i = -\partial_i p∂t​ui​+(u⋅∇)ui​−μ1​Δui​=−∂i​p; ∂tρ+(u⋅∇)ρ−μ2Δρ=0\partial_t \rho + (u\cdot\nabla)\rho - \mu_2\Delta\rho = 0∂t​ρ+(u⋅∇)ρ−μ2​Δρ=0; div⁡u=0\operatorname{div}u = 0divu=0; ∫[0,1)dρ(t,x) dx=0\int_{[0,1)^d} \rho(t,x)\,\mathrm{d}x = 0∫[0,1)d​ρ(t,x)dx=0; and ∫[0,1)dui(t,x) dx=0\int_{[0,1)^d} u_i(t,x)\,\mathrm{d}x = 0∫[0,1)d​ui​(t,x)dx=0 for each iii. Nothing requires μ1,μ2\mu_1, \mu_2μ1​,μ2​ to be positive, and for Tfin<0T_{\mathrm{fin}} < 0Tfin​<0 the whole predicate is vacuous.

IsCompressibleEulerSolution(d,Tfin,ρ,Θ,p,u)\mathrm{IsCompressibleEulerSolution}(d, T_{\mathrm{fin}}, \rho, \Theta, p, u)IsCompressibleEulerSolution(d,Tfin​,ρ,Θ,p,u) is the conjunction, over all t∈[0,Tfin]t\in[0,T_{\mathrm{fin}}]t∈[0,Tfin​] and all xxx, of: ρ(t,x)>0\rho(t,x) > 0ρ(t,x)>0 and Θ(t,x)>0\Theta(t,x) > 0Θ(t,x)>0; ∂tρ+∑i∂i(ρui)=0\partial_t \rho + \sum_i \partial_i(\rho u_i) = 0∂t​ρ+∑i​∂i​(ρui​)=0; for each iii, ∂t(ρui)+∑j∂j(ρuiuj)+∂ip=0\partial_t(\rho u_i) + \sum_j \partial_j(\rho u_i u_j) + \partial_i p = 0∂t​(ρui​)+∑j​∂j​(ρui​uj​)+∂i​p=0; the energy balance

∂t(ρ d Θ+∥u∥22)+∑i∂i(ρ ui d Θ+∥u∥22)+∑i∂i(p ui)=0;\partial_t\Big(\rho\,\frac{d\,\Theta + \|u\|^2}{2}\Big) + \sum_i \partial_i\Big(\rho\,u_i\,\frac{d\,\Theta + \|u\|^2}{2}\Big) + \sum_i \partial_i(p\,u_i) = 0;∂t​(ρ2dΘ+∥u∥2​)+i∑​∂i​(ρui​2dΘ+∥u∥2​)+i∑​∂i​(pui​)=0;

and the state law p=ρ Θp = \rho\,\Thetap=ρΘ.

Two explicit profiles are defined. With M(v)=(2π)−d/2e−∥v∥2/2M(v) = (2\pi)^{-d/2}e^{-\|v\|^2/2}M(v)=(2π)−d/2e−∥v∥2/2,

nsfProfile(x,v)=M(v)(1+δ(2+d−∥v∥22ρ(x)+v⋅u(x))),\mathrm{nsfProfile}(x,v) = M(v)\Big(1 + \delta\big(\tfrac{2 + d - \|v\|^2}{2}\rho(x) + v\cdot u(x)\big)\Big),nsfProfile(x,v)=M(v)(1+δ(22+d−∥v∥2​ρ(x)+v⋅u(x))), nsfInitialData(x,v)=M(v)(1+δ(2+d−∥v∥22ρ0(x)+v⋅u0(x))+δ4e∥v∥2/4 gR(x,v)),\mathrm{nsfInitialData}(x,v) = M(v)\Big(1 + \delta\big(\tfrac{2 + d - \|v\|^2}{2}\rho_0(x) + v\cdot u_0(x)\big) + \delta^4 e^{\|v\|^2/4}\,g_R(x,v)\Big),nsfInitialData(x,v)=M(v)(1+δ(22+d−∥v∥2​ρ0​(x)+v⋅u0​(x))+δ4e∥v∥2/4gR​(x,v)),

the exponent +∥v∥2/4+\|v\|^2/4+∥v∥2/4 carrying a plus sign, so that the last term equals (2π)−d/2δ4e−∥v∥2/4gR(x,v)(2\pi)^{-d/2}\delta^4 e^{-\|v\|^2/4}g_R(x,v)(2π)−d/2δ4e−∥v∥2/4gR​(x,v). Neither profile is asserted to be nonnegative or to have integral one.

Finally WeightedDerivBound(d,m,w,F)\mathrm{WeightedDerivBound}(d, m, w, F)WeightedDerivBound(d,m,w,F) states that for every k≤mk \le mk≤m and all x,vx, vx,v,

w(x,v) ∥DkF~(x,v)∥≤1,w(x,v)\,\big\|D^{k}\widetilde{F}(x,v)\big\| \le 1,w(x,v)​DkF(x,v)​≤1,

where F~\widetilde{F}F is FFF viewed as a function of the single variable (x,v)∈Rd×Rd(x,v) \in \mathbb{R}^d\times\mathbb{R}^d(x,v)∈Rd×Rd and DkD^kDk is its kkk-th iterated Fréchet derivative, with operator norm; the case k=0k = 0k=0 gives w ∣F∣≤1w\,|F| \le 1w∣F∣≤1. Since the iterated derivative takes the junk value 000 where FFF is not kkk times differentiable, the condition does not by itself entail smoothness.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me