Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Faraday's law propagates ∇⋅B=0\nabla\cdot B=0∇⋅B=0 from the initial time

Proved
GaussMagnetism.faraday_preserves_divg_B_eq_zero

by Lucas · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

electromagnetismmathematical-physicsvector-calculus

Let E,B:R×R3→R3E,B:\mathbb R\times\mathbb R^3\to\mathbb R^3E,B:R×R3→R3 be time-dependent electric and magnetic fields that are smooth jointly in time ttt and position xxx, and suppose they satisfy the Maxwell–Faraday law

∇×E(t,⋅)(x)=−∂B∂t(t,x)for all t∈R, x∈R3.\nabla\times E(t,\cdot)(x)=-\frac{\partial B}{\partial t}(t,x)\quad\text{for all }t\in\mathbb R,\ x\in\mathbb R^3.∇×E(t,⋅)(x)=−∂t∂B​(t,x)for all t∈R, x∈R3.

If Gauss's law for magnetism holds at the initial time, ∇⋅B(0,⋅)(x)=0\nabla\cdot B(0,\cdot)(x)=0∇⋅B(0,⋅)(x)=0 for all xxx, then it holds at every time: ∇⋅B(t,⋅)(x)=0\nabla\cdot B(t,\cdot)(x)=0∇⋅B(t,⋅)(x)=0 for all t∈Rt\in\mathbb Rt∈R and x∈R3x\in\mathbb R^3x∈R3.

This is the magnetic half of the redundancy of Maxwell's equations: a system satisfying Faraday's law automatically satisfies Gauss's law for magnetism, as long as the initial condition does.

Formalization Note Joint smoothness is TongEM.SmoothTV. The time derivative is Lean's deriv in ttt at fixed xxx. Divergence and curl act on the spatial variable only. Times t<0t<0t<0 are included.

Preamble
import Definitions.Def_GaussMagnetism_box_flux

open Larmor TongEM
Formal statement
namespace GaussMagnetism

theorem faraday_preserves_divg_B_eq_zero (E B : ℝ → Vec → Vec)
    (hE : SmoothTV E) (hB : SmoothTV B)
    (hfaraday : ∀ t x, curl (E t) x = -deriv (fun s => B s x) t)
    (hinit : ∀ x, divg (B 0) x = 0) :
    ∀ t x, divg (B t) x = 0 := by sorry

end GaussMagnetism
Source
Wikipedia, "Maxwell's equations" (uploaded PDF, 24 pp.), p. 16, section 'Overdetermination of Maxwell's equations': 'any system satisfying Faraday's law and Ampère's circuital law automatically also satisfies the two Gauss's laws, as long as the system's initial condition does' (magnetic part).
Read-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, R3\mathbb R^3R3 is Euclidean three-space with coordinates x=(x0,x1,x2)x=(x_0,x_1,x_2)x=(x0​,x1​,x2​) and standard basis e0,e1,e2e_0,e_1,e_2e0​,e1​,e2​. For a vector field F=(F0,F1,F2):R3→R3F=(F_0,F_1,F_2):\mathbb R^3\to\mathbb R^3F=(F0​,F1​,F2​):R3→R3 and a scalar field φ:R3→R\varphi:\mathbb R^3\to\mathbb Rφ:R3→R, ∂j\partial_j∂j​ is the partial derivative in the direction eje_jej​, ∇⋅F=∂0F0+∂1F1+∂2F2\nabla\cdot F=\partial_0F_0+\partial_1F_1+\partial_2F_2∇⋅F=∂0​F0​+∂1​F1​+∂2​F2​ is the divergence, ∇×F=(∂1F2−∂2F1, ∂2F0−∂0F2, ∂0F1−∂1F0)\nabla\times F=(\partial_1F_2-\partial_2F_1,\ \partial_2F_0-\partial_0F_2,\ \partial_0F_1-\partial_1F_0)∇×F=(∂1​F2​−∂2​F1​, ∂2​F0​−∂0​F2​, ∂0​F1​−∂1​F0​) is the curl, and ∇φ=(∂0φ,∂1φ,∂2φ)\nabla\varphi=(\partial_0\varphi,\partial_1\varphi,\partial_2\varphi)∇φ=(∂0​φ,∂1​φ,∂2​φ) is the gradient.

Statement. Let E,B:R→(R3→R3)E,B:\mathbb R\to(\mathbb R^3\to\mathbb R^3)E,B:R→(R3→R3), written E(t,x)E(t,x)E(t,x), B(t,x)B(t,x)B(t,x), be such that the maps (t,x)↦E(t,x)(t,x)\mapsto E(t,x)(t,x)↦E(t,x) and (t,x)↦B(t,x)(t,x)\mapsto B(t,x)(t,x)↦B(t,x) from R×R3\mathbb R\times\mathbb R^3R×R3 to R3\mathbb R^3R3 are C∞C^\inftyC∞. Assume:

  1. for every t∈Rt\in\mathbb Rt∈R and x∈R3x\in\mathbb R^3x∈R3, the spatial curl of E(t,⋅)E(t,\cdot)E(t,⋅) at xxx equals −dds∣s=tB(s,x)-\frac{d}{ds}\big|_{s=t}B(s,x)−dsd​​s=t​B(s,x) (the ordinary derivative in time of the vector B(s,x)B(s,x)B(s,x) at fixed xxx);
  2. for every x∈R3x\in\mathbb R^3x∈R3, the spatial divergence of B(0,⋅)B(0,\cdot)B(0,⋅) at xxx is 000.

Then for every t∈Rt\in\mathbb Rt∈R (positive or negative) and every x∈R3x\in\mathbb R^3x∈R3, the spatial divergence of B(t,⋅)B(t,\cdot)B(t,⋅) at xxx is 000. No relation to charge, current or the Ampère–Maxwell law is assumed. All partial derivatives are defined through the Fréchet derivative, which Lean sets to 000 at points where the function is not differentiable; under the stated smoothness hypotheses this junk value never occurs.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me