Electromagnetism · PhysLib theorem

The Electromagnetic Lagrangian in E, B, Charge, and Current

PhysLib rewrites its covariant electromagnetic-potential Lagrangian as electric and magnetic field terms together with scalar-potential charge coupling and vector-potential current coupling.

Provided by PhysLibLean checkedMeaning reviewed

What it says

What the theorem says

Separate the free field-strength contraction from the current coupling, rewrite the former in E and B components and the latter in scalar and vector potentials, then collect the terms algebraically.

Context

Why it matters

The theorem exposes the recognizable electric, magnetic, charge, and current content hidden inside PhysLib's covariant field Lagrangian.

Inside the proof

Proof architecture

The source already proves two component identities; the retained declaration composes them to expose the standard field and source structure of the Lagrangian.

Step 1

Separate field and source terms

PhysLib's Lagrangian definition subtracts the current-potential contribution from the free electromagnetic kinetic term at a spacetime point.

ℒ = ℒ_field − ℒ_source

Show the Lean ingredients
rw [lagrangian]kineticTermfreeCurrentPotential

Step 2

Resolve the field-strength contraction

The kinetic term becomes a positive electric contribution minus the magnetic-matrix contribution with the exact ε₀ and μ₀ coefficients.

ℒ_field = ½[ε₀‖E‖² − (1/(2μ₀))∑ᵢⱼ‖Bᵢⱼ‖²]

Show the Lean ingredients
kineticTerm_eq_electricMatrix_magneticFieldMatrixA.electricFieldA.magneticFieldMatrix

Step 3

Expose charge and current coupling

The source potential becomes minus scalar potential times charge density plus the component sum of vector potential times current density.

ℒ_source contribution = −φρ + A·J

Show the Lean ingredients
freeCurrentPotential_eq_sum_scalarPotential_vectorPotentialscalarPotentialcurrentDensityring

Authoritative formal type

Exact PhysLib statement

Electromagnetism.ElectromagneticPotential.lagrangian_eq_electric_magnetic {d : ℕ} {𝓕 : Electromagnetism.FreeSpace} (A : Electromagnetism.ElectromagneticPotential d) (hA : ContDiff ℝ 2 A.val) (J : Electromagnetism.LorentzCurrentDensity d) (x : SpaceTime d) : Electromagnetism.ElectromagneticPotential.lagrangian 𝓕 A J x = 1 / 2 * (𝓕.ε₀ * ‖Electromagnetism.ElectromagneticPotential.electricField 𝓕.c A ((SpaceTime.time 𝓕.c) x) (SpaceTime.space x)‖ ^ 2 - 1 / (2 * 𝓕.μ₀) * ∑ i, ∑ j, ‖Electromagnetism.ElectromagneticPotential.magneticFieldMatrix 𝓕.c A ((SpaceTime.time 𝓕.c) x) (SpaceTime.space x) (i, j)‖ ^ 2) - Electromagnetism.ElectromagneticPotential.scalarPotential 𝓕.c A ((SpaceTime.time 𝓕.c) x) (SpaceTime.space x) * Electromagnetism.LorentzCurrentDensity.chargeDensity 𝓕.c J ((SpaceTime.time 𝓕.c) x) (SpaceTime.space x) + ∑ i, (Electromagnetism.ElectromagneticPotential.vectorPotential 𝓕.c A ((SpaceTime.time 𝓕.c) x) (SpaceTime.space x)).ofLp i * (Electromagnetism.LorentzCurrentDensity.currentDensity 𝓕.c J ((SpaceTime.time 𝓕.c) x) (SpaceTime.space 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.

4 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 map4 direct connections

Provenance and verification

Sources and technical checks

Show declaration provenance and Lean checks
PhysLib declarationElectromagnetism.ElectromagneticPotential.lagrangian_eq_electric_magnetic
Source modulePhyslib.Electromagnetism.Dynamics.Lagrangian
Source footprint12 nonempty lines in this declaration · 468 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