All proofs
Project-declaredLean 4.32.0 ยท mathlib@81a5d257c8e4

Time deriv time deriv magnetic Field Matrix of is Extrema

Electromagnetism.ElectromagneticPotential.time_deriv_time_deriv_magneticFieldMatrix_of_isExtrema

Project documentation

The condition on an electromagnetic potential to be an extrema of the lagrangian. -/ def IsExtrema {d} (๐“• : FreeSpace) (A : ElectromagneticPotential d) (J : LorentzCurrentDensity d) : Prop := gradLagrangian ๐“• A J = 0 lemma isExtrema_iff_gradLagrangian {๐“• : FreeSpace} (A : ElectromagneticPotential d) (J : LorentzCurrentDensity d) : IsExtrema ๐“• A J โ†” A....

Exact Lean statement

lemma time_deriv_time_deriv_magneticFieldMatrix_of_isExtrema {A : ElectromagneticPotential d}
    {๐“• : FreeSpace}
    (hA : ContDiff โ„ โˆž A) (J : LorentzCurrentDensity d)
    (hJ : ContDiff โ„ โˆž J) (h : IsExtrema ๐“• A J)
    (t : Time) (x : Space d) (i j : Fin d) :
    โˆ‚โ‚œ (โˆ‚โ‚œ (A.magneticFieldMatrix ๐“•.c ยท x (i, j))) t =
    ๐“•.c ^ 2 * โˆ‘ k, โˆ‚[k] (โˆ‚[k] (A.magneticFieldMatrix ๐“•.c t ยท (i, j))) x +
    ๐“•.ฮตโ‚€โปยน * (โˆ‚[j] (J.currentDensity ๐“•.c t ยท i) x - โˆ‚[i] (J.currentDensity ๐“•.c t ยท j) x)

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma time_deriv_time_deriv_magneticFieldMatrix_of_isExtrema {A : ElectromagneticPotential d}    {๐“• : FreeSpace}    (hA : ContDiff โ„ โˆž A) (J : LorentzCurrentDensity d)    (hJ : ContDiff โ„ โˆž J) (h : IsExtrema ๐“• A J)    (t : Time) (x : Space d) (i j : Fin d) :    โˆ‚โ‚œ (โˆ‚โ‚œ (A.magneticFieldMatrix ๐“•.c ยท x (i, j))) t =    ๐“•.c ^ 2 * โˆ‘ k, โˆ‚[k] (โˆ‚[k] (A.magneticFieldMatrix ๐“•.c t ยท (i, j))) x +    ๐“•.ฮตโ‚€โปยน * (โˆ‚[j] (J.currentDensity ๐“•.c t ยท i) x - โˆ‚[i] (J.currentDensity ๐“•.c t ยท j) x) := by  have hcd : โˆ€ ij, ContDiff โ„ 2 (fun y => A.magneticFieldMatrix ๐“•.c t y ij) :=    fun ij => magneticFieldMatrix_space_contDiff _ (hA.of_le (right_eq_inf.mp rfl)) t ij  have hsd : โˆ€ ij k, Differentiable โ„ (โˆ‚[k] (fun y => A.magneticFieldMatrix ๐“•.c t y ij)) :=    fun ij k => Space.deriv_differentiable (hcd ij) k  have hJd : โˆ€ i, Differentiable โ„ (fun x => J.currentDensity ๐“•.c t x i) :=    fun i => LorentzCurrentDensity.currentDensity_apply_differentiable_space      (hJ.differentiable (by simp)) t i  rw [time_deriv_time_deriv_magneticFieldMatrix A (hA.of_le (ENat.LEInfty.out))]  conv_lhs =>    enter [2, 2, x]    rw [time_deriv_electricField_of_isExtrema hA J hJ h]  conv_lhs =>    enter [1, 2, x]    rw [time_deriv_electricField_of_isExtrema hA J hJ h]  rw [Space.deriv_eq_fderiv_basis]  rw [fderiv_fun_sub ((Differentiable.fun_sum fun i _ => hsd _ i).const_mul _).differentiableAt      ((hJd _).const_mul _).differentiableAt,    fderiv_const_mul (Differentiable.fun_sum fun i _ => hsd _ i).differentiableAt,    fderiv_const_mul (hJd _).differentiableAt,    fderiv_fun_sum fun i _ => (hsd _ i).differentiableAt]  conv_lhs =>    enter [2]    rw [Space.deriv_eq_fderiv_basis]    rw [fderiv_fun_sub ((Differentiable.fun_sum fun i _ => hsd _ i).const_mul _).differentiableAt        ((hJd _).const_mul _).differentiableAt,    fderiv_const_mul (Differentiable.fun_sum fun i _ => hsd _ i).differentiableAt,    fderiv_const_mul (hJd _).differentiableAt,    fderiv_fun_sum fun i _ => (hsd _ i).differentiableAt]  simp [โ† Space.deriv_eq_fderiv_basis, FreeSpace.c_sq]  field_simp  conv_rhs =>    enter [1, 2, k, 2, x]    rw [magneticFieldMatrix_space_deriv_eq A (hA.of_le (right_eq_inf.mp rfl))]  conv_rhs =>    enter [1, 2, k]    rw [Space.deriv_eq_fderiv_basis]    rw [fderiv_fun_sub (hsd _ _).differentiableAt (hsd _ _).differentiableAt]    simp [โ† Space.deriv_eq_fderiv_basis]    rw [Space.deriv_commute _ (hcd _)]    enter [2]    rw [Space.deriv_commute _ (hcd _)]  simp only [Finset.sum_sub_distrib]  ring
Project
Physlib
License
Apache-2.0
Commit
dd43e9e65791
Source
Physlib/Electromagnetism/Dynamics/IsExtrema.lean:310-360

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