Continuity equation from Maxwell's equations
ProvedMaxwellWiki.continuity_equationCharge conservation (differential form). Let and . Let and satisfy Maxwell's microscopic equations in SI units at every time and point,
and assume and are jointly in . Then for every and ,
This is the continuity equation the article derives "as a corollary of Maxwell's equations"; it expresses local conservation of electric charge.
Formalization Note No regularity is assumed on and : they are determined by and through Gauss's law and the Ampère–Maxwell law. The assumption on makes explicit the smoothness the article leaves implicit.
import Mathlib import Definitions.Def_MaxwellWiki_Defs open MaxwellWiki
namespace MaxwellWiki
theorem continuity_equation (ε₀ μ₀ : ℝ) (hε₀ : 0 < ε₀) (hμ₀ : 0 < μ₀)
(E B J : ℝ → Vec3 → Vec3) (ρ : ℝ → Vec3 → ℝ)
(hE : ContDiff ℝ 2 (Function.uncurry E)) (hB : ContDiff ℝ 2 (Function.uncurry B))
(hM : IsMaxwellSolution ε₀ μ₀ E B J ρ) (t : ℝ) (x : Vec3) :
timeDeriv ρ t x + div (J t) x = 0 := 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 all real numbers and , all maps and such that
- is on ,
- is on ,
- IsMaxwellSolution holds, i.e. for all : , , , ,
and for every , :
where is the derivative at of (taken as where it does not exist) and divergence is as in the shared definition file. No regularity is assumed on or . The hypotheses are satisfiable (e.g. all fields identically zero).