All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

Grad Kinetic Term eq sum fderiv

Electromagnetism.ElectromagneticPotential.gradKineticTerm_eq_sum_fderiv

Project documentation

The variational gradient of the kinetic term of an electromagnetic potential. -/ noncomputable def gradKineticTerm {d} (𝓕 : FreeSpace) (A : ElectromagneticPotential d) : SpaceTime d → Lorentz.Vector d := (δ (q':=A), ∫ x, kineticTerm 𝓕 ⟨q'⟩ x) /-! ### B.1. Variational gradient in terms of fderiv We give a first simplification of the variational gradient...

Exact Lean statement

lemma gradKineticTerm_eq_sum_fderiv {d} {𝓕 : FreeSpace} (A : ElectromagneticPotential d)
    (hA : ContDiff ℝ ∞ A) :
    let F' : (Fin 1 ⊕ Fin d) × (Fin 1 ⊕ Fin d) → (SpaceTime d → ℝ) →
    SpaceTime d → Lorentz.Vector d

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma gradKineticTerm_eq_sum_fderiv {d} {𝓕 : FreeSpace} (A : ElectromagneticPotential d)    (hA : ContDiff  ∞ A) :    let F' : (Fin 1Fin d) × (Fin 1Fin d)  (SpaceTime d  )     SpaceTime d  Lorentz.Vector d := fun μν => (fun ψ x =>    -(fderiv  (fun x' => (fun x' => η μν.1 μν.1 * η μν.2 μν.2 * ψ x') x' * ∂_ μν.1 A x' μν.2) x)              (Lorentz.Vector.basis μν.1) •          Lorentz.Vector.basis μν.2 +        -(fderiv  (fun x' => ∂_ μν.1 A x' μν.2 *          (fun x' => η μν.1 μν.1 * η μν.2 μν.2 * ψ x') x') x)              (Lorentz.Vector.basis μν.1) • Lorentz.Vector.basis μν.2 +      -(-(fderiv  (fun x' => ψ x' * ∂_ μν.2 A x' μν.1) x) (Lorentz.Vector.basis μν.1) •        Lorentz.Vector.basis μν.2 +          -(fderiv  (fun x' => ∂_ μν.1 A x' μν.2 * ψ x') x) (Lorentz.Vector.basis μν.2) •          Lorentz.Vector.basis μν.1))    A.gradKineticTerm 𝓕 = fun x => ∑ μν, F' μν (fun x' => -1/(2 * 𝓕.μ₀) * (fun _ => 1) x') x := by  apply HasVarGradientAt.varGradient  change HasVarGradientAt (fun A' x => ElectromagneticPotential.kineticTerm 𝓕 A' x) _ A  conv =>    enter [1, A', x]    rw [kineticTerm_eq_sum_potential]  let F : (Fin 1Fin d) × (Fin 1Fin d)  (SpaceTime d  Lorentz.Vector d)     SpaceTime d   := fun (μ, ν) A' x =>        (η μ μ * η ν ν * ∂_ μ A' x ν ^ 2 - ∂_ μ A' x ν * ∂_ ν A' x μ)  have F_h (μν : (Fin 1Fin d) × (Fin 1Fin d)) :=    HasVarAdjDerivAt.congr (G := F μν)      (HasVarAdjDerivAt.add _ _ _ _ _        (HasVarAdjDerivAt.const_mul _ _ A          (HasVarAdjDerivAt.mul _ _ _ _ A (deriv_hasVarAdjDerivAt μν.1 μν.2 A hA)            (deriv_hasVarAdjDerivAt μν.1 μν.2 A hA)) (c := η μν.1 μν.1 * η μν.2 μν.2))        (HasVarAdjDerivAt.neg _ _ A          (HasVarAdjDerivAt.mul _ _ _ _ A (deriv_hasVarAdjDerivAt μν.1 μν.2 A hA)            (deriv_hasVarAdjDerivAt μν.2 μν.1 A hA))))      (fun φ _ => funext fun x => by        simp [F]        ring)  have hF_mul := HasVarAdjDerivAt.const_mul _ _ A    (HasVarAdjDerivAt.congr (G := fun A' x => ∑ μ, ∑ ν, F (μ, ν) A' x)      (HasVarAdjDerivAt.sum _ _ A hA F_h)      (fun φ _ => funext fun x => Fintype.sum_prod_type fun μν => F μν φ x))    (c := -1/(2 * 𝓕.μ₀))  change HasVarGradientAt (fun A' x => -1 / (2 * 𝓕.μ₀) * ∑ μ, ∑ ν, F (μ, ν) A' x) _ A  exact HasVarGradientAt.intro _ hF_mul rfl
Project
Physlib
License
Apache-2.0
Commit
dd43e9e65791
Source
Physlib/Electromagnetism/Dynamics/KineticTerm.lean:405-446

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.32.0

Adiabatic relation log

adiabatic_relation_log

Plain-language statement

Adiabatic relation in logarithmic form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then c * log (Ua/Ub) + log (Va/Vb) = 0.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Adiabatic relation Ua Ub Va Vb

adiabatic_relation_UaUbVaVb

Plain-language statement

Adiabatic relation in product form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then (Ua/Ub)^c * (Va/Vb) = 1.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record