Gauss's law for magnetism for a vector potential
ProvedGaussMagnetism.gauss_law_magnetism_iff_vector_potentialLet be a smooth () vector field. Then satisfies Gauss's law for magnetism,
if and only if has a smooth magnetic vector potential: there is a smooth vector field with
This is the vector-potential reformulation of the law stated in the source; it underlies the description of magnetism by potentials and the gauge freedom .
Formalization Note Smoothness of and is TongEM.SmoothV; divergence and curl are Larmor.divg, Larmor.curl on Larmor.Vec EuclideanSpace ℝ (Fin 3).
import Definitions.Def_GaussMagnetism_box_flux open Larmor TongEM
namespace GaussMagnetism
theorem gauss_law_magnetism_iff_vector_potential (B : Vec → Vec) (hB : SmoothV B) :
(∀ x, divg B x = 0) ↔ ∃ A : Vec → Vec, SmoothV A ∧ ∀ x, curl A x = B x := 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. Let be . Then the following are equivalent:
- for every ;
- there exists that is and satisfies for every .
The smoothness of is a hypothesis of both directions; the smoothness of is part of the existential claim in (2). 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.