Imports
/- Copyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Juan Jose Fernandez Morales -/ module public import PhyslibAlpha.ClassicalFieldTheory.Local.FirstVariation.Criterion

First variation and the Euler-Lagrange criterion

i. Overview

This module is the public entry point for the local first-variation theory. The core linearized density objects live in FirstVariation.Basic, the analytic derivation tools and packaged hypotheses live in FirstVariation.Density, FirstVariation.IntegrationByParts, FirstVariation.Regularity, and FirstVariation.Criterion, and this file exposes the cleanest surface-level statements of the local Euler-Lagrange criterion.

ii. Key results

    ClassicalFieldTheory.Local.hasSmoothEulerLagrangeRegularity_of_smoothInCoordinates

    ClassicalFieldTheory.Local.isCritical_iff_eulerLagrange_zero_of_contDiff_and_smoothInCoordinates

    ClassicalFieldTheory.Local. isCritical_iff_eulerLagrange_zero_of_admissibleForAction_and_smoothInCoordinates

iii. Table of contents

    A. Smooth-coordinate regularity

    B. Final Euler-Lagrange criteria

iv. References

    J. Cortés and A. Haupt, Lecture Notes on Mathematical Methods of Classical Physics, Chapter 5, Theorem 5.2.

@[expose] public section

A. Smooth-coordinate regularity

theorem hasSmoothEulerLagrangeRegularity_of_smoothInCoordinates (L : Lagrangian d m k) (hL : Lagrangian.SmoothInCoordinates L) : HasSmoothEulerLagrangeRegularity L := d:m:k:L:Lagrangian d m khL:L.SmoothInCoordinatesHasSmoothEulerLagrangeRegularity L All goals completed! 🐙

B. Final Euler-Lagrange criteria

theorem isCritical_iff_eulerLagrange_zero_of_contDiff_and_smoothInCoordinates (L : Lagrangian d m k) (f : Space d EuclideanSpace (Fin m)) (hf : ContDiff f) (hL : Lagrangian.SmoothInCoordinates L) (hbase : HasFiniteAction L f) : IsCritical L f eulerLagrangeOp L f = 0 := d:m:k:L:Lagrangian d m kf:Space d EuclideanSpace (Fin m)hf:ContDiff fhL:L.SmoothInCoordinateshbase:HasFiniteAction L fIsCritical L f eulerLagrangeOp L f = 0 All goals completed! 🐙theorem isCritical_iff_eulerLagrange_zero_of_admissibleForAction_and_smoothInCoordinates (L : Lagrangian d m k) (f : Space d EuclideanSpace (Fin m)) (hLf : IsAdmissibleForAction L f) (hL : Lagrangian.SmoothInCoordinates L) : IsCritical L f eulerLagrangeOp L f = 0 := d:m:k:L:Lagrangian d m kf:Space d EuclideanSpace (Fin m)hLf:IsAdmissibleForAction L fhL:L.SmoothInCoordinatesIsCritical L f eulerLagrangeOp L f = 0 d:m:k:L:Lagrangian d m kf:Space d EuclideanSpace (Fin m)hL:L.SmoothInCoordinateshf:ContDiff fhbase:HasFiniteAction L fIsCritical L f eulerLagrangeOp L f = 0 All goals completed! 🐙