|
| 1 | +/- |
| 2 | +Copyright (c) 2025 Joseph Tooby-Smith. All rights reserved. |
| 3 | +Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | +Authors: Joseph Tooby-Smith |
| 5 | +-/ |
| 6 | +module |
| 7 | + |
| 8 | +public import Physlib.SpaceAndTime.SpaceTime.Derivatives |
| 9 | +public import Physlib.SpaceAndTime.Space.Derivatives.Curl |
| 10 | +public import Physlib.Mathematics.VariationalCalculus.HasVarAdjDeriv |
| 11 | +public import Physlib.Relativity.Tensors.Elab |
| 12 | +public import Physlib.SpaceAndTime.SpaceTime.TimeSlice |
| 13 | + |
| 14 | +/-! |
| 15 | +
|
| 16 | +# The Electromagnetic Potential |
| 17 | +
|
| 18 | +## i. Overview |
| 19 | +
|
| 20 | +The electromagnetic potential `A^μ` is the fundamental objects in |
| 21 | +electromagnetism. Mathematically it is related to a connection |
| 22 | +on a `U(1)`-bundle. |
| 23 | +
|
| 24 | +We define the electromagnetic potential as a distribution from |
| 25 | +spacetime to contravariant Lorentz vectors. |
| 26 | +
|
| 27 | +## ii. Key results |
| 28 | +
|
| 29 | +- `DistElectromagneticPotential` : the type of electromagnetic potentials as distributions. |
| 30 | +
|
| 31 | +## iii. Table of contents |
| 32 | +
|
| 33 | +- A. The electromagnetic potential as a distribution |
| 34 | + - A.1. The derivative of the electromagnetic potential as a distribution |
| 35 | + - A.2. The derivative in terms of the basis |
| 36 | + - A.3. Equivariance of the derivative distribution |
| 37 | +
|
| 38 | +## iv. References |
| 39 | +
|
| 40 | +- https://quantummechanics.ucsd.edu/ph130a/130_notes/node452.html |
| 41 | +- https://ph.qmul.ac.uk/sites/default/files/EMT10new.pdf |
| 42 | +
|
| 43 | +-/ |
| 44 | + |
| 45 | +@[expose] public section |
| 46 | + |
| 47 | +namespace Electromagnetism |
| 48 | +open Module realLorentzTensor |
| 49 | +open IndexNotation |
| 50 | +open TensorSpecies |
| 51 | +open Tensor |
| 52 | + |
| 53 | +/-! |
| 54 | +
|
| 55 | +## A. The electromagnetic potential as a distribution |
| 56 | +
|
| 57 | +-/ |
| 58 | + |
| 59 | +/-- The electromagnetic potential as a distribution and as a tensor `A^μ`. -/ |
| 60 | +noncomputable abbrev DistElectromagneticPotential (d : ℕ := 3) := |
| 61 | + (SpaceTime d) →d[ℝ] Lorentz.Vector d |
| 62 | + |
| 63 | +namespace DistElectromagneticPotential |
| 64 | +open TensorSpecies |
| 65 | +open Tensor |
| 66 | +open SpaceTime |
| 67 | +open TensorProduct |
| 68 | +open minkowskiMatrix SchwartzMap |
| 69 | +attribute [-simp] Fintype.sum_sum_type |
| 70 | +attribute [-simp] Nat.succ_eq_add_one |
| 71 | + |
| 72 | +/-! |
| 73 | +
|
| 74 | +### A.1. The derivative of the electromagnetic potential as a distribution |
| 75 | +
|
| 76 | +-/ |
| 77 | + |
| 78 | +set_option backward.isDefEq.respectTransparency false in |
| 79 | +/-- The derivative of a electromagnetic potential, which is a distribution. -/ |
| 80 | +noncomputable def deriv {d} : DistElectromagneticPotential d →ₗ[ℝ] |
| 81 | + (SpaceTime d) →d[ℝ] Lorentz.CoVector d ⊗[ℝ] Lorentz.Vector d := distTensorDeriv |
| 82 | + |
| 83 | +set_option backward.isDefEq.respectTransparency false in |
| 84 | +lemma deriv_eq_sum_sum {d} (A : DistElectromagneticPotential d) |
| 85 | + (ε : 𝓢(SpaceTime d, ℝ)) : |
| 86 | + deriv A ε =∑ μ, ∑ ν, (SpaceTime.distDeriv μ A ε ν) • |
| 87 | + Lorentz.CoVector.basis μ ⊗ₜ[ℝ] Lorentz.Vector.basis ν := by |
| 88 | + simp [deriv, distTensorDeriv_apply] |
| 89 | + congr |
| 90 | + funext μ |
| 91 | + conv_lhs => rw [← Lorentz.Vector.basis.sum_repr (SpaceTime.distDeriv μ A ε)] |
| 92 | + rw [tmul_sum] |
| 93 | + congr |
| 94 | + funext ν |
| 95 | + simp |
| 96 | + rfl |
| 97 | +/-! |
| 98 | +
|
| 99 | +### A.2. The derivative in terms of the basis |
| 100 | +
|
| 101 | +-/ |
| 102 | + |
| 103 | +@[simp] |
| 104 | +lemma deriv_basis_repr_apply {d} {μν : (Fin 1 ⊕ Fin d) × (Fin 1 ⊕ Fin d)} |
| 105 | + (A : DistElectromagneticPotential d) |
| 106 | + (ε : 𝓢(SpaceTime d, ℝ)) : |
| 107 | + (Lorentz.CoVector.basis.tensorProduct Lorentz.Vector.basis).repr (deriv A ε) μν = |
| 108 | + distDeriv μν.1 A ε μν.2 := by |
| 109 | + match μν with |
| 110 | + | (μ, ν) => |
| 111 | + rw [deriv_eq_sum_sum] |
| 112 | + simp only [map_sum, map_smul, Finsupp.coe_finset_sum, Finsupp.coe_smul, Finset.sum_apply, |
| 113 | + Pi.smul_apply, Basis.tensorProduct_repr_tmul_apply, Basis.repr_self, smul_eq_mul] |
| 114 | + rw [Finset.sum_eq_single μ, Finset.sum_eq_single ν] |
| 115 | + · simp |
| 116 | + · intro μ' _ h |
| 117 | + simp [h] |
| 118 | + · simp |
| 119 | + · intro ν' _ h |
| 120 | + simp [h] |
| 121 | + · simp |
| 122 | + |
| 123 | +lemma toTensor_deriv_basis_repr_apply {d} (A : DistElectromagneticPotential d) |
| 124 | + (ε : 𝓢(SpaceTime d, ℝ)) (b : ComponentIdx (S := realLorentzTensor d) |
| 125 | + (Fin.append ![Color.down] ![Color.up])) : |
| 126 | + (Tensor.basis _).repr (Tensorial.toTensor (deriv A ε)) b = |
| 127 | + distDeriv (b 0) A ε (b 1) := by |
| 128 | + rw [Tensorial.basis_toTensor_apply] |
| 129 | + rw [Tensorial.basis_map_prod] |
| 130 | + simp only [Nat.reduceSucc, Nat.reduceAdd, Basis.repr_reindex, Finsupp.mapDomain_equiv_apply, |
| 131 | + Equiv.symm_symm, Fin.isValue] |
| 132 | + rw [Lorentz.Vector.tensor_basis_map_eq_basis_reindex, |
| 133 | + Lorentz.CoVector.tensor_basis_map_eq_basis_reindex] |
| 134 | + have hb : (((Lorentz.CoVector.basis (d := d)).reindex |
| 135 | + Lorentz.CoVector.indexEquiv.symm).tensorProduct |
| 136 | + (Lorentz.Vector.basis.reindex Lorentz.Vector.indexEquiv.symm)) = |
| 137 | + ((Lorentz.CoVector.basis (d := d)).tensorProduct (Lorentz.Vector.basis (d := d))).reindex |
| 138 | + (Lorentz.CoVector.indexEquiv.symm.prodCongr Lorentz.Vector.indexEquiv.symm) := by |
| 139 | + ext b |
| 140 | + match b with |
| 141 | + | ⟨i, j⟩ => |
| 142 | + simp |
| 143 | + rw [hb] |
| 144 | + rw [Module.Basis.repr_reindex_apply, deriv_basis_repr_apply] |
| 145 | + rfl |
| 146 | + |
| 147 | +/-! |
| 148 | +
|
| 149 | +### A.3. Equivariance of the derivative distribution |
| 150 | +
|
| 151 | +-/ |
| 152 | + |
| 153 | +set_option backward.isDefEq.respectTransparency false in |
| 154 | +lemma deriv_equivariant {d} {A : DistElectromagneticPotential d} |
| 155 | + (Λ : LorentzGroup d) : deriv (Λ • A) = Λ • deriv A := by |
| 156 | + rw [deriv, distTensorDeriv_equivariant] |
| 157 | + |
| 158 | +end DistElectromagneticPotential |
| 159 | + |
| 160 | +end Electromagnetism |
0 commit comments