Continuity equation: integral form differential form
ProvedContinuityEqWiki.integral_form_iff_differential_formLet be the volume density of a quantity , its flux, and its generation rate per unit volume per unit time. Assume and are jointly in and is continuous. Then the following are equivalent.
- Integral form. For every box with and every time ,
- Differential form. For every and ,
This is the central statement of the source: any continuity equation can be expressed either in integral form, for finite regions, or in differential form, at points.
Formalization Note The source quantifies over all closed surfaces enclosing a volume . Here ranges over non-degenerate axis-parallel boxes, the setting of Mathlib's divergence theorem. This weakens the hypothesis of the direction (1)(2) and the conclusion of (2)(1).
import Mathlib import Definitions.Def_ContinuityEqWiki_Defs
namespace ContinuityEqWiki
theorem integral_form_iff_differential_form
(ρ : ℝ → Space → ℝ) (j : ℝ → Space → Space) (σ : ℝ → Space → ℝ)
(hρ : ContDiff ℝ 1 (Function.uncurry ρ)) (hj : ContDiff ℝ 1 (Function.uncurry j))
(hσ : Continuous (Function.uncurry σ)) :
IntegralForm ρ j σ ↔ DifferentialForm ρ j σ := 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 (written ). Assume and are on and is continuous. The statement is the equivalence of:
- for all with for , and all ,
where are with coordinate deleted and inserts as coordinate into (the derivative is the one-variable derivative, junk if it did not exist); 2. for all and ,