Gauss divergence theorem on a box:
ProvedMaxwellWiki.integral_div_eq_boxFluxGauss divergence theorem on a rectangular box. Let in (coordinatewise), let , and let be a vector field. Then
The article uses the divergence theorem both to relate the integral and differential forms of Gauss's laws and, in the Charge conservation section, to pass from to the statement about charge in a fixed volume.
Formalization Note The article's volume is arbitrary with closed boundary; this statement is the special case of a rectangular box, where the outward flux is the explicit sum of face integrals defined in the shared definition file.
import Mathlib import Definitions.Def_MaxwellWiki_Defs open MaxwellWiki
namespace MaxwellWiki
theorem integral_div_eq_boxFlux (F : Vec3 → Vec3) (hF : ContDiff ℝ 1 F) (a b : Vec3)
(hab : a ≤ b) :
∫ x in Set.Icc a b, div F x = boxFlux F a b := by sorry
end MaxwellWikiRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - non-blind, same agent as the drafter
Non-blind read-back. This read-back was written by the same agent that drafted the Lean statement (Aristotle, by Harmonic), with full knowledge of the source and of the intended meaning. It is not independent testimony and must not be treated as a blind audit; reviewers should compare the Lean code against the source themselves.
For every map and every with coordinatewise ( for ), the Lebesgue integral of the scalar function over the closed box equals , i.e.
where is the closed rectangle in the two coordinates other than cut out by and , and denotes the point of obtained by inserting as the -th coordinate. Degenerate boxes ( for some ) are allowed. There are no other hypotheses.