Divergence theorem on a box:
ProvedContinuityEqWiki.integral_div_eq_boxFluxLet be a closed box with coordinatewise, and let be a continuously differentiable vector field. Then
where the right-hand side is the outward flux of through the six faces of .
This is the divergence theorem invoked by the source to pass from the integral form of the continuity equation to its differential form.
Formalization Note The closed surface is the boundary of an axis-parallel box, as in Mathlib's divergence theorem; the flux is the sum over of the face integrals of over minus those over .
import Mathlib import Definitions.Def_ContinuityEqWiki_Defs
namespace ContinuityEqWiki
theorem integral_div_eq_boxFlux (F : Space → Space) (hF : ContDiff ℝ 1 F)
(a b : Space) (hab : a ≤ b) :
∫ x in Set.Icc a b, div F x = boxFlux F a b := 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.
For every vector field that is continuously differentiable () on all of , and all with for (degenerate boxes with some are allowed),
where (partial derivatives as Fréchet derivatives along unit vectors), the left integral is the Lebesgue integral over the order box , are with coordinate removed, and inserts as the -th coordinate of .