The divergence of a curl vanishes:
ProvedGaussMagnetism.div_curl_eq_zeroLet be a twice continuously differentiable vector field. Then for every ,
In particular, every magnetic field of the form satisfies Gauss's law for magnetism ; this is the easy direction of the equivalence between Gauss's law for magnetism and the existence of a vector potential.
Formalization Note regularity is stated as ContDiff ℝ 2 A.
import Definitions.Def_GaussMagnetism_box_flux open Larmor TongEM
namespace GaussMagnetism
theorem div_curl_eq_zero (A : Vec → Vec) (hA : ContDiff ℝ 2 A) (x : Vec) :
divg (curl A) x = 0 := by sorry
end GaussMagnetismRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Non-blind read-back. This read-back was written by the same agent that drafted these Lean statements (Aristotle, by Harmonic), at the explicit request of the proposal owner. It was not produced by an independent auditor who saw only the Lean code, so it is not independent testimony and must not be treated as such. Compare it with the Lean code directly.
Throughout, is Euclidean three-space with coordinates and standard basis . For a vector field and a scalar field , is the partial derivative in the direction , is the divergence, is the curl, and is the gradient.
Statement. For every vector field and every point , the divergence at of the vector field is zero:
There are no other hypotheses. All partial derivatives are defined through the Fréchet derivative, which Lean sets to at points where the function is not differentiable; under the stated smoothness hypotheses this junk value never occurs.