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
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
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.
Source project: Physlib
Person-level attribution pending.
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.
Source project: Physlib
Person-level attribution pending.
Deriv Within mean Energy Beta eq neg variance
CanonicalEnsemble.derivWithin_meanEnergy_Beta_eq_neg_variance
Plain-language statement
(โU/โฮฒ) = -Var(E) for finite systems.
Source project: Physlib
Person-level attribution pending.