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.
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]kineticTermfreeCurrentPotentialStep 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.magneticFieldMatrixStep 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_vectorPotentialscalarPotentialcurrentDensityringAuthoritative 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 iThis 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
- Related resultUniform Electric and Magnetic Fields Solve the Vacuum Field Equationis related toThe Electromagnetic Lagrangian in E, B, Charge, and Current
- Related resultElectromagnetic Hamiltonian in Electric and Magnetic Variablesis related toThe Electromagnetic Lagrangian in E, B, Charge, and Current
- Related resultThe Electromagnetic Lagrangian in E, B, Charge, and Currentis related toA Harmonic Electromagnetic Wave Solves the Free-Space Field Equations
- Related resultThe Electromagnetic Lagrangian in E, B, Charge, and Currentis related toThe Covariant Maxwell Equation from the Field Lagrangian
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 connectionsProvenance and verification
Sources and technical checks
Show declaration provenance and Lean checks
Electromagnetism.ElectromagneticPotential.lagrangian_eq_electric_magneticPhyslib.Electromagnetism.Dynamics.Lagrangian6bd0b4b99d3dsorryAx reportedThe 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.



