Electromagnetism · PhysLib theorem

Gauss and Ampère–Maxwell from the Field Action

PhysLib splits the electromagnetic extremum equation into Gauss's electric law and a componentwise Ampère–Maxwell equation for the magnetic-field matrix.

Provided by PhysLibLean checkedMeaning reviewed

What it says

What the theorem says

Split the Lorentz-vector gradient into its time and spatial coordinates, identify the time coordinate with electric divergence and charge density, and identify each spatial coordinate with magnetic derivatives, current, and displacement current.

Context

Why it matters

This theorem presents two recognizable Maxwell equations while retaining the exact variational and matrix-valued formal statement supported by PhysLib.

Inside the proof

Proof architecture

The proof is an index split: one Lorentz component becomes Gauss's law and the remaining spatial components become the Ampère–Maxwell relation.

Step 1

Split time from space

PhysLib expands zero of a Lorentz vector into its single time component and its d spatial components at every event.

ν = time or ν = i

Show the Lean ingredients
Lorentz.Vector.sum_inl_inr_basis_eq_zero_iffforall_and

Step 2

Read the temporal component as Gauss's law

The time channel reduces to electric-field divergence equal to charge density divided by the free-space permittivity.

∇·E = ρ/ε₀

Show the Lean ingredients
chargeDensityelectricField𝓕.ε₀

Step 3

Read the spatial components as Ampère–Maxwell

Each spatial index combines magnetic-field-matrix derivatives, current density, and the time derivative of the electric field with the exact free-space coefficients.

μ₀ε₀ ∂ₜEᵢ = ∑ⱼ∂ⱼBⱼᵢ − μ₀Jᵢ

Show the Lean ingredients
magneticFieldMatrixcurrentDensityFreeSpace.c_sq

Authoritative formal type

Exact PhysLib statement

Electromagnetism.ElectromagneticPotential.isExtrema_iff_gauss_ampere_magneticFieldMatrix {d : ℕ} {𝓕 : Electromagnetism.FreeSpace} {A : Electromagnetism.ElectromagneticPotential d} (hA : ContDiff ℝ (↑⊤) A.val) (J : Electromagnetism.LorentzCurrentDensity d) (hJ : ContDiff ℝ (↑⊤) J) : Electromagnetism.ElectromagneticPotential.IsExtrema 𝓕 A J ↔ ∀ (t : Time) (x : Space d), Space.div (Electromagnetism.ElectromagneticPotential.electricField 𝓕.c A t) x = Electromagnetism.LorentzCurrentDensity.chargeDensity 𝓕.c J t x / 𝓕.ε₀ ∧ ∀ (i : Fin d), 𝓕.μ₀ * 𝓕.ε₀ * (Time.deriv (fun t => Electromagnetism.ElectromagneticPotential.electricField 𝓕.c A t x) t).ofLp i = ∑ j, Space.deriv j (fun x => Electromagnetism.ElectromagneticPotential.magneticFieldMatrix 𝓕.c A t x (j, i)) x - 𝓕.μ₀ * (Electromagnetism.LorentzCurrentDensity.currentDensity 𝓕.c J t x).ofLp i

This is the theorem's exact Lean type. The diagrams and commentary are explanatory; the pinned statement and source are authoritative.

Recorded connections

How this result fits

A one-step view of the published results directly connected to this page.

6 direct connections

Only recorded public relationships are shown. A shared topic does not imply a dependency, and this is not a complete Lean proof-term dependency graph.

Open this result in the full theorem map6 direct connections

Provenance and verification

Sources and technical checks

Show declaration provenance and Lean checks
PhysLib declarationElectromagnetism.ElectromagneticPotential.isExtrema_iff_gauss_ampere_magneticFieldMatrix
Source modulePhyslib.Electromagnetism.Dynamics.IsExtrema
Source footprint44 nonempty lines in this declaration · 709 nonempty lines in its module
Checked commit6bd0b4b99d3d
Reported Lean axiomsClassical.choice, Quot.sound, propext
Unresolved placeholdersNo sorryAx reported

View theorem in PhysLib ↗

The declaration footprint describes source layout, not proof difficulty or the size of its dependencies. The pinned checks verify the cited Lean theorem; semantic review remains a separate PhysAtlas judgment.

Expanded visual

Explanatory image · not evidence.

Open original in a new tab