Euler lagrange var Gradient
ClassicalMechanics.euler_lagrange_varGradient
Project documentation
The Euler Lagrange operator, for a trajectory q : Time → X, and a lagrangian Time → X → X → ℝ, the Euler-Lagrange operator is ∂L/∂q - dₜ(∂L/∂(dₜ q)). -/ noncomputable def eulerLagrangeOp (L : Time → X → X → ℝ) (q : Time → X) : Time → X := fun t => gradient (L t · (∂ₜ q t)) (q t) - ∂ₜ (fun t' => gradient (L t' (q t') ·) (∂ₜ q t')) t lemma eulerLagran...
Exact Lean statement
theorem euler_lagrange_varGradient
(L : Time → X → X → ℝ) (q : Time → X)
(hq : ContDiff ℝ ∞ q) (hL : ContDiff ℝ ∞ ↿L) :
(δ (q':=q), ∫ t, L t (q' t) (fderiv ℝ q' t 1)) = eulerLagrangeOp L qFormal artifact
Lean source
theorem euler_lagrange_varGradient (L : Time → X → X → ℝ) (q : Time → X) (hq : ContDiff ℝ ∞ q) (hL : ContDiff ℝ ∞ ↿L) : (δ (q':=q), ∫ t, L t (q' t) (fderiv ℝ q' t 1)) = eulerLagrangeOp L q := by simp only [eulerLagrangeOp_eq, Time.deriv_eq] apply HasVarGradientAt.varGradient apply HasVarGradientAt.intro _ · apply HasVarAdjDerivAt.comp (F := fun (φ : Time → X × X) t => L t (φ t).fst (φ t).snd) (G := fun (φ : Time → X) t => (φ t, fderiv ℝ φ t 1)) · apply HasVarAdjDerivAt.fmap (f := fun t => ↿(L t)) · fun_prop · fun_prop intro x u apply DifferentiableAt.hasAdjFDerivAt apply ContDiff.differentiable (n := ∞) (by fun_prop) (by simp) · apply HasVarAdjDerivAt.prod (F:=fun φ => φ) · apply HasVarAdjDerivAt.id _ hq · apply HasVarAdjDerivAt.fderiv (hu := hq) case hgrad => funext t simp (disch := fun_prop) [sub_eq_add_neg] congr all_goals try funext t rw [gradient_eq_adjFDeriv, adjFDeriv_uncurry] <;> apply ContDiff.differentiable (n := ∞) (by fun_prop) (by simp)- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/ClassicalMechanics/EulerLagrange.lean:44-70
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.