Skip to content

[Merged by Bors] - feat: local frames in a vector bundle#30083

Closed
grunweg wants to merge 60 commits intoleanprover-community:masterfrom
grunweg:localframes
Closed

[Merged by Bors] - feat: local frames in a vector bundle#30083
grunweg wants to merge 60 commits intoleanprover-community:masterfrom
grunweg:localframes

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Sep 30, 2025

We construct local frames on a vector from local trivialisations. The former constructs, given a trivialisation e of the vector bundle and a basis of the model fibre, Basis.localFrame is a local frame on e.baseSet
A future PR will use this to define the local extension of a tangent vector to a vector field near a point.

From the path towards geodesics and the Levi-Civita connection.

Co-authored-by: Patrick Massot patrickmassot@free.fr


Open in Gitpod

@grunweg grunweg added t-differential-geometry Manifolds etc blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Sep 30, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 30, 2025

PR summary 8115783e28

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ contMDiffAt_iff_localFrame_coeff
+ contMDiffAt_localFrame_coeff
+ contMDiffOn_baseSet_iff_localFrame_coeff
+ contMDiffOn_baseSet_localFrame_coeff
+ contMDiffOn_iff_localFrame_coeff
+ contMDiffOn_localFrame_coeff
+ eq_of_coeff_eq
+ eq_sum_localFrame_coeff_smul
+ eventually_eq_localFrame_sum_coeff_smul
+ localFrame_coeff
+ localFrame_coeff_apply_of_mem_baseSet
+ localFrame_coeff_apply_of_notMem_baseSet
+ localFrame_coeff_congr
+ localFrame_coeff_eq_coeff
+ mdifferentiableAt_iff_localFrame_coeff
+ mdifferentiableAt_localFrame_coeff
+ mdifferentiableOn_baseSet_localFrame_coeff
+ mdifferentiableOn_localFrame_coeff
+ piApply
+ piApply_apply
+ piApply_apply_apply
- coeff_apply_zero_at

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for scripts/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@grunweg grunweg force-pushed the localframes branch 2 times, most recently from 617c74b to df44a30 Compare September 30, 2025 18:38
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Oct 8, 2025
This depends on the custom elaborators added in leanprover-community#27021;
for some reason, using these fails. To be investigated!
@grunweg grunweg changed the title feat: local frames feat: local frames in a vector bundle Oct 8, 2025
@grunweg grunweg added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Oct 8, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Oct 23, 2025
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 23, 2025
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 23, 2025
Copy link
Copy Markdown
Contributor

@ocfnash ocfnash left a comment

Choose a reason for hiding this comment

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

Thanks!

I've left a bunch of fairly superficial comments, but I think they're worth addressing. I'll return again once you've had a chance to respond.

@ocfnash ocfnash self-assigned this Oct 31, 2025
@grunweg grunweg removed the awaiting-author A reviewer has asked the author a question or requested changes. label Feb 22, 2026
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 22, 2026

Most lemma statements are not in simp normal form: (LinearMap.piApply (hs.coeff i)) t x simplifies to (hs.coeff i x) (t x). So the next step is to change the lemma statements accordingly...
@michaellee94 If you'd like to help, I wouldn't mind a hand. (Otherwise, I'll get to this myself in due time.)

@grunweg grunweg added the awaiting-author A reviewer has asked the author a question or requested changes. label Feb 22, 2026
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 23, 2026

Ok, I think I caught all obvious such references: the remaining ones are in hypotheses, where I'm not convinced yet that they must be removed.

@grunweg grunweg removed the awaiting-author A reviewer has asked the author a question or requested changes. label Feb 23, 2026
@michaellee94
Copy link
Copy Markdown
Collaborator

Thanks for doing that, @grunweg! Was out of town, sorry for missing your message.

Copy link
Copy Markdown
Contributor

@ocfnash ocfnash left a comment

Choose a reason for hiding this comment

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

Thanks!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Feb 24, 2026

✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Feb 24, 2026
grunweg and others added 6 commits February 24, 2026 18:57
Co-authored-by: Oliver Nash <7734364+ocfnash@users.noreply.github.com>
Co-authored-by: Oliver Nash <7734364+ocfnash@users.noreply.github.com>
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 24, 2026

Thanks for the careful review over the many rounds - I am very happy how this PR turned out, and think it's much nicer as a result.
bors merge

@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Feb 24, 2026
mathlib-bors bot pushed a commit that referenced this pull request Feb 24, 2026
We construct local frames on a vector from local trivialisations. The former constructs, given a trivialisation `e` of the vector bundle and a basis of the model fibre, `Basis.localFrame` is a local frame on `e.baseSet`
A future PR will use this to define the local extension of a tangent vector to a vector field near a point.

From the path towards geodesics and the Levi-Civita connection.

Co-authored-by: Patrick Massot [patrickmassot@free.fr](mailto:patrickmassot@free.fr)
Co-authored-by: michaellee94 <michael.a.rodrigues.lee@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Feb 24, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: local frames in a vector bundle [Merged by Bors] - feat: local frames in a vector bundle Feb 24, 2026
@mathlib-bors mathlib-bors bot closed this Feb 24, 2026
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Mar 2, 2026
We construct local frames on a vector from local trivialisations. The former constructs, given a trivialisation `e` of the vector bundle and a basis of the model fibre, `Basis.localFrame` is a local frame on `e.baseSet`
A future PR will use this to define the local extension of a tangent vector to a vector field near a point.

From the path towards geodesics and the Levi-Civita connection.

Co-authored-by: Patrick Massot [patrickmassot@free.fr](mailto:patrickmassot@free.fr)
Co-authored-by: michaellee94 <michael.a.rodrigues.lee@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors. t-differential-geometry Manifolds etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants