Vaidya-Farina 1991: fields, boosts and Maxwell systems
Definitionvf_defsFoundational definitions for the Vaidya–Farina (1991) analysis of Galilean covariance of Maxwell's equations. Spacetime is ; fields are maps . Partial derivatives are taken along coordinate lines, and is the Levi-Civita symbol, giving divergence, curl and time-derivative operators. In Gaussian units with , FullMaxwell is the system ; rhoOf and jOf read the last two equations as definitions of the sources. boostE/boostH implement the Galilean boost laws together with the coordinate change . jMod and MagneticSystem drop the displacement current (eq. (17)); ElectricSystem, boostEelec, boostBelec encode the electric Galilean limit with constants (eqs. (20)–(22)). The algebraic layer (magH, crossA, elecOf) expresses the Feynman–Dyson definitions and over a complex algebra.
import Mathlib
namespace VaidyaFarina
abbrev Space := Fin 3 → ℝ
abbrev ST := Space × ℝ
noncomputable def eps (i j k : Fin 3) : ℝ :=
if i = j ∨ j = k ∨ k = i then 0
else if ((i : ℕ) + 1) % 3 = (j : ℕ) ∧ ((j : ℕ) + 1) % 3 = (k : ℕ) then 1 else -1
noncomputable def dX (f : ST → ℝ) (i : Fin 3) (p : ST) : ℝ :=
deriv (fun s : ℝ => f (Function.update p.1 i s, p.2)) (p.1 i)
noncomputable def dT (f : ST → ℝ) (p : ST) : ℝ :=
deriv (fun s : ℝ => f (p.1, s)) (p.2)
noncomputable def cross (a b : Fin 3 → ℝ) : Fin 3 → ℝ :=
fun i => ∑ j : Fin 3, ∑ k : Fin 3, eps i j k * a j * b k
noncomputable def vdiv (F : ST → (Fin 3 → ℝ)) (p : ST) : ℝ :=
∑ i : Fin 3, dX (fun q => F q i) i p
noncomputable def curl (F : ST → (Fin 3 → ℝ)) (p : ST) : Fin 3 → ℝ :=
fun i => ∑ j : Fin 3, ∑ k : Fin 3, eps i j k * dX (fun q => F q k) j p
noncomputable def vdt (F : ST → (Fin 3 → ℝ)) (p : ST) : Fin 3 → ℝ :=
fun i => dT (fun q => F q i) p
noncomputable def rhoOf (E : ST → (Fin 3 → ℝ)) : ST → ℝ :=
fun p => vdiv E p / (4 * Real.pi)
noncomputable def jOf (E H : ST → (Fin 3 → ℝ)) : ST → (Fin 3 → ℝ) :=
fun p => (4 * Real.pi)⁻¹ • (curl H p - vdt E p)
noncomputable def jMod (H : ST → (Fin 3 → ℝ)) : ST → (Fin 3 → ℝ) :=
fun p => (4 * Real.pi)⁻¹ • curl H p
noncomputable def boostH (v : Fin 3 → ℝ) (H : ST → (Fin 3 → ℝ)) : ST → (Fin 3 → ℝ) :=
fun p => H (p.1 + p.2 • v, p.2)
noncomputable def boostE (v : Fin 3 → ℝ) (E H : ST → (Fin 3 → ℝ)) : ST → (Fin 3 → ℝ) :=
fun p => E (p.1 + p.2 • v, p.2) + cross v (H (p.1 + p.2 • v, p.2))
noncomputable def boostEelec (v : Fin 3 → ℝ) (E : ST → (Fin 3 → ℝ)) : ST → (Fin 3 → ℝ) :=
fun p => E (p.1 + p.2 • v, p.2)
noncomputable def boostBelec (e0 mu0 : ℝ) (v : Fin 3 → ℝ) (E B : ST → (Fin 3 → ℝ)) : ST → (Fin 3 → ℝ) :=
fun p => B (p.1 + p.2 • v, p.2) - (e0 * mu0) • cross v (E (p.1 + p.2 • v, p.2))
def FullMaxwell (E H : ST → (Fin 3 → ℝ)) (rho : ST → ℝ) (j : ST → (Fin 3 → ℝ)) : Prop :=
(∀ p, vdiv H p = 0) ∧
(∀ p, vdt H p = -curl E p) ∧
(∀ p, vdiv E p = 4 * Real.pi * rho p) ∧
(∀ p, curl H p - vdt E p = (4 * Real.pi) • j p)
def MagneticSystem (E H : ST → (Fin 3 → ℝ)) (rho : ST → ℝ) (j : ST → (Fin 3 → ℝ)) : Prop :=
(∀ p, vdiv H p = 0) ∧
(∀ p, vdt H p = -curl E p) ∧
(∀ p, vdiv E p = 4 * Real.pi * rho p) ∧
(∀ p, curl H p = (4 * Real.pi) • j p)
def ElectricSystem (e0 mu0 : ℝ) (E B : ST → (Fin 3 → ℝ)) (rho : ST → ℝ) (j : ST → (Fin 3 → ℝ)) : Prop :=
(∀ p, vdiv E p = rho p / e0) ∧
(∀ p, curl E p = 0) ∧
(∀ p, vdiv B p = 0) ∧
(∀ p, curl B p = mu0 • j p + (e0 * mu0) • vdt E p)
variable {A : Type*} [Ring A] [Algebra ℂ A]
noncomputable def crossA (a b : Fin 3 → A) : Fin 3 → A :=
fun i => ∑ j : Fin 3, ∑ k : Fin 3, Complex.ofReal (eps i j k) • (a j * b k)
noncomputable def magH (m hbar : ℂ) (vel : Fin 3 → A) : Fin 3 → A :=
fun i => (-(Complex.I * m ^ 2 / (2 * hbar))) •
∑ j : Fin 3, ∑ k : Fin 3, Complex.ofReal (eps i j k) • (vel j * vel k - vel k * vel j)
noncomputable def elecOf (F vel H : Fin 3 → A) : Fin 3 → A :=
fun i => F i - crossA vel H i
end VaidyaFarina