Skip to content

feat(GaugeTheory): add principal bundle gauge transformations - #2260

Merged
jstoobysmith merged 7 commits into
leanprover-community:masterfrom
apalessandro:principal-bundle
Dec 4, 2026
Merged

jstoobysmith merged 7 commits into
leanprover-community:masterfrom
apalessandro:principal-bundle

Conversation

@apalessandro

@apalessandro apalessandro commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

This is Part 1 of a planned series of PRs aimed at formalizing the following statement from the Physlib Gauge Theory API map:

Geometrically a gauge theory is described in terms of a principal bundle with the gauge group as its fiber, and the gauge field is a connection on this principal bundle.

This Part 1 imports the PrincipalBundle definition from Tau Ceti and defines gauge transformations as automorphisms of principal bundles, proves that they form a group, and establishes their equivalence to continuous local gauge transformations U(x) in G for the trivial bundle over Minkowski spacetime.

Follow-ups will tackle smooth principal bundles, principal connections, curvature and field strengths.

@github-actions github-actions Bot added the medium label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for this pull-request (PR). If this is your first PR, welcome to the community!

While you wait for a review, note that you can review PRs too; reviewing is not restricted to maintainers. Our review guidelines explain what to look for.

Over time, contributions such as reviews, maintenance and documentation are recorded on contributions.physlib.io.

Three main points:

  • Comment -awaiting-author on its own line to remove that label from your PR.
  • Comment blocked-by-PR or -blocked-by-PR on its own line to add or remove that label, respectively.
  • The first review might take several days to arrive. If in doubt message on the Zulip.

For the author: Please read

Below is what will happen next. Please read carefully if you are not familiar with the process. You may open other PRs while this one is being reviewed, and can stack PRs on top of each other, so don't let these steps slow you down.

  1. Some automated checks will be run on your PR. You can see the results of these checks at the buttom of your PR page. If any of these checks fail, you will need to fix the issues before your PR can be merged. You can learn more about these here, including how to run them locally, which is sometimes quicker than relying on the GitHub Actions. If you have never had a PR merged before, you may have to wait for a reviewer to manually start these checks (this is for security).

  2. A reviewer will look at your PR and may ask you to make changes. This may happen a couple of days after you submit your PR, so you may need to be patient. But it should not be longer than that - if it is please bring it to the attention of the community on the Zulip. The level of review will depend on where your PR is submitted. If it is submitted to ./Physlib or ./QuantumInfo, the review will be more thorough than if it is submitted to ./PhyslibAlpha. You can find out more about what the review process is looking for in our review guidelines. If a reviewer adds an awaiting-author label to your PR, address the review comments, then please remove that label by adding a comment with -awaiting-author. This helps us keep track of reviews.

  3. The reviewer will either approve your PR, or request more changes (in which case we return to step 2). Once your PR is approved, it will be merged by a maintainer, this should happen shortly after approval, though you may get more comments at this stage.

Tip: The easiest way to get a fast review is to submit a PR that is small and self-contained, and has clear documentation explaining why things are the way they are in your changes.

If you have any problems or questions, please reach out to the community on the Zulip.

For reviewers: Summary of your PR

Found differences:
@@ PhyslibAlpha.ClassicalFieldTheory.GaugeTheory.GlobalGaugeGroup.GaugeTransformation @@
+ module added PhyslibAlpha.ClassicalFieldTheory.GaugeTheory.GlobalGaugeGroup.GaugeTransformation (+374 -0)
  namespaces GlobalGaugeGroup, GlobalGaugeGroup.GaugeTransform
+ added abbrev TrivialBundle
+ added def fiberMap
+ added def ofContinuousMap
+ added def ofEquivariantMap
+ added def toEquivariantMap
+ added def toHomeomorph
+ added def trivialEquiv
+ added instance instFunLike
+ added instance instGroup
+ added lemma continuous
+ added lemma continuous_toEquivariantMap
+ added lemma ext
+ added lemma inv_apply
+ added lemma map_op_smul
+ added lemma mk_fiberMap
+ added lemma mul_apply
+ added lemma ofContinuousMap_apply
+ added lemma ofEquivariantMap_apply
+ added lemma ofEquivariantMap_toEquivariantMap
+ added lemma one_apply
+ added lemma op_smul_toEquivariantMap
+ added lemma proj_apply
+ added lemma toEquivariantMap_eq_iff
+ added lemma toEquivariantMap_mul
+ added lemma toEquivariantMap_ofEquivariantMap
+ added lemma toEquivariantMap_op_smul
+ added lemma trivialEquiv_apply
+ added lemma trivialEquiv_symm_apply
+ added structure GaugeTransform
@@ PhyslibAlpha.Mathematics.TauCeti.Algebra.Group.Action.TotalSpace @@
+ module added PhyslibAlpha.Mathematics.TauCeti.Algebra.Group.Action.TotalSpace (+66 -0)
  namespaces Bundle.TotalSpace
+ added instance instMulAction
+ added instance instSMul
+ added lemma proj_smul
+ added lemma smul_mk
+ added lemma snd_smul
@@ PhyslibAlpha.Mathematics.TauCeti.Topology.FiberBundle.Principal.Basic @@
+ module added PhyslibAlpha.Mathematics.TauCeti.Topology.FiberBundle.Principal.Basic (+493 -0)
  namespaces Bundle.Trivialization, TauCeti, TauCeti.PrincipalBundle
+ added class IsEquivariant
+ added class PrincipalBundle
+ added def division
+ added def trivializationOfSection
+ added instance Bundle.Trivialization.isEquivariant_pullback
+ added instance PrincipalBundle.trivial
+ added instance TauCeti.PrincipalBundle.continuousSMul_totalSpace
+ added instance TauCeti.PrincipalBundle.pullback
+ added instance isEquivariant_trivialization
+ added instance isEquivariant_trivializationOfSection
+ added instance isPretransitive
+ added lemma Continuous.division
+ added lemma Continuous.totalSpaceMk_smul
+ added lemma ContinuousAt.division
+ added lemma ContinuousAt.totalSpaceMk_smul
+ added lemma ContinuousOn.division
+ added lemma ContinuousOn.totalSpaceMk_smul
+ added lemma ContinuousWithinAt.division
+ added lemma ContinuousWithinAt.totalSpaceMk_smul
+ added lemma Equiv.symm_op_smul_of_equivariant
+ added lemma PrincipalBundle.division_trivial
+ added lemma TauCeti.PrincipalBundle.division_pullback
+ added lemma apply_smul
+ added lemma baseSet_trivializationOfSection
+ added lemma coordChange_eq_mul
+ added lemma coordChange_one_mul_coordChange_one
+ added lemma division_eq_iff
+ added lemma division_eq_of_mem_baseSet
+ added lemma division_mul_division
+ added lemma division_self
+ added lemma division_smul_left
+ added lemma division_smul_right
+ added lemma inv_division
+ added lemma op_inv_mul_smul
+ added lemma smul_division
+ added lemma smul_eq_self_iff
+ added lemma smul_eq_smul_iff
+ added lemma snd_apply_smul
+ added lemma symm_apply_eq_smul
+ added lemma symm_apply_mul
+ added lemma trivializationOfSection_apply
+ added lemma trivializationOfSection_symm_apply
@@ PhyslibAlpha.Mathematics.TauCeti.Topology.FiberBundle.Pullback @@
+ module added PhyslibAlpha.Mathematics.TauCeti.Topology.FiberBundle.Pullback (+196 -0)
+ added instance Bundle.Pullback.instMulAction
+ added instance Bundle.Pullback.instSMul
+ added lemma Bundle.Pullback.continuous_iff
+ added lemma Bundle.Pullback.isClosedEmbedding_lift
+ added lemma Bundle.Pullback.isEmbedding_lift
+ added lemma Bundle.Pullback.isInducing_lift
+ added lemma Bundle.Pullback.isInducing_lift_of_continuous_proj
+ added lemma Bundle.Pullback.isOpenEmbedding_lift
+ added lemma Bundle.Pullback.lift_injective
+ added lemma Bundle.Pullback.range_lift
+ added lemma Bundle.Pullback.smul_eq
+ added lemma Bundle.Pullback.totalSpace_ext
+ added lemma Bundle.Pullback.trivializationAt_snd
+ added lemma Bundle.Trivialization.coordChange_pullback
@@ PhyslibAlpha @@
! module modified PhyslibAlpha (+4 -0)
@@ docs/references-physlibAlpha.bib @@
! file modified docs/references-physlibAlpha.bib (+7 -0)
96 differences

The declarations are found by reading the diff as text, without regard for namespaces, so a declaration whose keyword and name are on different lines is missed, and two declarations of the same name in different namespaces are listed as one. A change to a proof, or to the body of a definition, does not appear. See scripts/alpha/github/pr_summary.lean.

Summary of commit b17f765, remade whenever a commit is pushed.

@jstoobysmith

Copy link
Copy Markdown
Member

@apalessandro Have you checked what is planned or already in Mathlib in this direction. I know there was a lot of talk on the Lean Zulip about this sort of thing. It would be best to try and replicate what they are planning or use what they have as much as possible.

awaiting-author

@github-actions github-actions Bot added the awaiting-author A reviewer has asked the author a question or requested changes label Dec 2, 2026
@apalessandro

Copy link
Copy Markdown
Contributor Author

@jstoobysmith I haven't found any principal bundle API in Mathlib's current default branch. I did find #Is there code for X? > A First Stab at a Principal Fibre Bundle in Zulip. The discussion recommends following Mathlib's FiberBundle/VectorBundle mixin pattern, which is compatible with what I have done. I have also asked for feedback: #Is there code for X? > A First Stab at a Principal Fibre Bundle @ 💬.

@apalessandro

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes label Dec 2, 2026
@apalessandro

Copy link
Copy Markdown
Contributor Author

t-mathematics

@github-actions github-actions Bot added the t-mathematics Mathematics label Dec 2, 2026
@jstoobysmith

Copy link
Copy Markdown
Member

Maybe it's worth actually trying to connect this to the physics. Now, we have a type for GlobalGaugeGroup or similar, and it would be good to include the physics directly in this PR.

awaiting-author

@github-actions github-actions Bot added awaiting-author A reviewer has asked the author a question or requested changes large and removed medium labels Dec 2, 2026
@github-actions github-actions Bot added medium and removed large labels Dec 3, 2026
…on.IsEquivariant

Vendor Tau Ceti's topological principal bundles from release v4.36.0, with the
two files they depend on, into PhyslibAlpha/Mathematics/TauCeti:

- Algebra/Group/Action/TotalSpace: fibrewise actions on total spaces.
- Topology/FiberBundle/Pullback: actions, lifts and trivializations of pullbacks.
- Topology/FiberBundle/Principal/Basic: `Bundle.Trivialization.IsEquivariant`,
  `TauCeti.PrincipalBundle`, the division map, continuity of the action,
  trivializations from local sections, the trivial bundle and pullbacks.

As for the existing vendored files, the Tau Ceti copyright and namespace are
kept; `theorem` becomes `lemma`, the module documentation follows the Physlib
format and cites the source file, and imports point to the vendored paths.

Co-authored-by: Claude Opus 5.5 <no-reply+claude-opus-5-5@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add the trivial principal `G`-bundle `GlobalGaugeGroup.TrivialBundle` over
spacetime, a principal bundle by `TauCeti.PrincipalBundle.trivial`, and the
action `GlobalGaugeGroup.gaugeAction` of local gauge transformations on it, with
`gaugeAction_op_smul`, `continuous_gaugeAction` and
`existsUnique_gaugeAction_eq`.

Co-authored-by: Claude Opus 5.5 <no-reply+claude-opus-5-5@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@apalessandro apalessandro changed the title feat(PrincipalBundle): add PrincipalBundle module feat(GaugeTheory): add principal bundle gauge transformations Dec 4, 2026
@apalessandro

apalessandro commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor Author

@jstoobysmith following a discussion with Dominic in A First Stab at a Principal Fibre Bundle, I have decided to replace my implementation of principal fiber bundle with what Tau Ceti already provides; the two are very close in spirit anyway, so there is no reason to duplicate work. I have found an existing Tau-Ceti folder in the repo so I put the math files there. Let me know if that is OK. It would be nice to have Tau Ceti as a dependency in Physlib, but that is not my call to make.

The PR now links the mathematical concepts defined in Tau Ceti with the physics of gauge transformations in PhyslibAlpha\ClassicalFieldTheory\GaugeTheory\GlobalGaugeGroup\GaugeTransformation.lean.

apalessandro and others added 2 commits December 4, 2026 14:01
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the Bleecker citation and all upstream Alpha bibliography additions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@apalessandro

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes label Dec 4, 2026
@jstoobysmith

Copy link
Copy Markdown
Member
Tau Ceti as a dependency in Physlib, but that is not my call to make.

The reason we don't want this is that ./Tau Ceti is not human reviewed + trusted, whilst ./Physlib is. Depending on Tau Ceti invalidate that level of trust in Physlib.

@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 - looks good to me.

@jstoobysmith
jstoobysmith added this pull request to the merge queue Dec 4, 2026
Merged via the queue into leanprover-community:master with commit 5fc5dfb Dec 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants