Skip to content

Add local CFT first-variation stack to PhyslibAlpha#1189

Merged
jstoobysmith merged 2 commits into
leanprover-community:masterfrom
juanjfndz:codex/physlibalpha-cft-local
Jun 15, 2026
Merged

Add local CFT first-variation stack to PhyslibAlpha#1189
jstoobysmith merged 2 commits into
leanprover-community:masterfrom
juanjfndz:codex/physlibalpha-cft-local

Conversation

@juanjfndz

Copy link
Copy Markdown
Contributor

This PR moves the local classical field theory stack into PhyslibAlpha, following the discussion on the previous core Physlib PR about developing this coordinate-first material in the Alpha area first.

The development is based on the coordinate local setup used in Cortes--Haupt, arXiv:1612.03100v2: fields Space d -> EuclideanSpace ℝ (Fin m), coordinate-level jet points, local Lagrangians, total derivatives, and the first-variation / Euler--Lagrange pipeline.

The stack added here includes:

  • coordinate-level jet points and jet fiber directions;
  • regularity/support lemmas for jet-coordinate maps;
  • total derivatives of jet-dependent functions;
  • local Lagrangians and their coordinate derivatives;
  • local action/criticality definitions;
  • Euler--Lagrange operators;
  • first-variation density, integration-by-parts, regularity, support, and criterion modules.

The underlying maintained AdmissibleVariation structure remains imported from Physlib; Alpha only adds the Euclidean component helper needed by this coordinate stack.

Validation run locally:

  • lake build PhyslibAlpha.ClassicalFieldTheory.Local.FirstVariation
  • lake build PhyslibAlpha
  • lake exe runPhyslibAlphaLinters
  • ./scripts/PhyslibAlpha/alphaFileImports.py
  • ./scripts/PhyslibAlpha/noAlphaImports.py
  • ./scripts/PhyslibAlpha/alphaPythonLinters.sh

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for this PR, which will now be reviewed. Please
see our review guidelines
if you are not familiar with the process. You should expect a back and forth
with a reviewer before your PR is merged. See also that link for how to
add appropriate labels to your PR. The PR will also go through a number
of automated checks. You can learn more about these here,
including how to run them locally.

If you want to bring attention to this PR, please write a message on this
thread of the Lean Zulip.

@jstoobysmith jstoobysmith added the PhyslibAlpha Pull requests which are for modifications to PhyslibAlpha. label Jun 15, 2026

@jstoobysmith jstoobysmith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@jstoobysmith jstoobysmith merged commit 52fafc9 into leanprover-community:master Jun 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PhyslibAlpha Pull requests which are for modifications to PhyslibAlpha.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants