Incompressible flow: mass continuity reduces to
ProvedContinuityEqWiki.div_velocity_eq_zero_of_incompressibleLet be a fluid density, jointly in and strictly positive, and let be a flow velocity field with of class for every . Suppose the mass continuity equation
holds everywhere, and that the flow is incompressible, i.e. the material derivative of the density vanishes:
Then the velocity field is divergence-free everywhere:
This is the volume continuity equation of the source's Fluid dynamics section.
Formalization Note The source describes incompressibility parenthetically as "volumetric strain rate is zero". Taken literally that is already , so incompressibility is encoded here by the standard condition , which makes the reduction a real statement.
import Mathlib import Definitions.Def_ContinuityEqWiki_Defs
namespace ContinuityEqWiki
theorem div_velocity_eq_zero_of_incompressible (ρ : ℝ → Space → ℝ) (u : ℝ → Space → Space)
(hρ : ContDiff ℝ 1 (Function.uncurry ρ)) (hu : ∀ t, ContDiff ℝ 1 (u t))
(hpos : ∀ t x, 0 < ρ t x)
(mass : ∀ t x, timeDeriv ρ t x + div (fun y => ρ t y • u t y) x = 0)
(incompressible : ∀ t x, timeDeriv ρ t x + ∑ i, u t x i * partialDeriv i (ρ t) x = 0) :
∀ t x, div (u t) x = 0 := by sorry
end ContinuityEqWikiRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - drafting agent, non-blind read-back
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement it describes, at the explicit request of the proposal owner. Its author knew the source text and the intended meaning while writing it, so it must not be mistaken for a blind, independent audit. Reviewers should compare the Lean code against the source themselves.
Let and . Assume:
- is on ;
- for every , is ;
- for all ;
- for all : ;
- for all : .
Conclusion: for all , .