Gauss's law on small spheres:
OpenCoulombGauss.sphereFlux_electricField_eq_enclosed_chargeLet , let be open, and let be continuous and integrable on . Let
For every and with , the flux of through is
This combines the source's splitting with the two preceding flux computations.
Formalization Note The source takes ; the formal statement asks for the closed ball to lie in , so that is continuous (hence bounded) near the sphere. Since only small matter for the goal, this loses nothing. Integrability of on is the standing assumption under which is defined.
import Mathlib import Definitions.Def_CoulombGauss_basic open MeasureTheory Filter Topology Metric
namespace CoulombGauss
theorem sphereFlux_electricField_eq_enclosed_charge (ε₀ : ℝ) (hε₀ : 0 < ε₀)
(Ω : Set Vec3) (hΩ : IsOpen Ω) (ρ : Vec3 → ℝ) (hρc : ContinuousOn ρ Ω)
(hρi : IntegrableOn ρ Ω) (r₀ : Vec3) (R : ℝ) (hR : 0 < R) (hball : closedBall r₀ R ⊆ Ω) :
sphereFlux (electricField ε₀ ρ Ω) r₀ R = (1 / ε₀) * ∫ x in ball r₀ R, ρ x := by sorry
end CoulombGaussRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent that drafted the Lean statements of this proposal (at the explicit direction of the proposal owner), with full knowledge of the source text and of the intended meaning. It is therefore not a blind audit and must not be mistaken for independent testimony. Reviewers should compare the Lean code against the source directly.
Let be real, an open set, a function that is continuous on (as a function restricted to ) and Lebesgue integrable on , , and real with the closed ball contained in . Let (kernel read as at ). Conclusion:
with the cone (surface) measure of total mass on the unit sphere. is not assumed bounded. The hypothesis forces and .