Skip to content

[Merged by Bors] - feat: finite sum, difference, scalar product of C^k sections is C^k#26674

Closed
grunweg wants to merge 5 commits intoleanprover-community:masterfrom
grunweg:contMDiff_ops_section
Closed

[Merged by Bors] - feat: finite sum, difference, scalar product of C^k sections is C^k#26674
grunweg wants to merge 5 commits intoleanprover-community:masterfrom
grunweg:contMDiff_ops_section

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Jul 3, 2025

And use this to golf the proofs in SmoothSection.lean.
A future PR will add the analogous results for differentiability of sections.

Part of the path towards the geodesics and the Levi-Civita connection.


Open in Gitpod

@github-actions github-actions bot added the t-differential-geometry Manifolds etc label Jul 3, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 3, 2025

PR summary 3bcc451cb5

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ ContMDiff.add_section
+ ContMDiff.const_smul_section
+ ContMDiff.neg_section
+ ContMDiff.smul_section
+ ContMDiff.sub_section
+ ContMDiff.sum_section
+ ContMDiffAt.add_section
+ ContMDiffAt.const_smul_section
+ ContMDiffAt.neg_section
+ ContMDiffAt.smul_section
+ ContMDiffAt.sub_section
+ ContMDiffAt.sum_section
+ ContMDiffOn.add_section
+ ContMDiffOn.const_smul_section
+ ContMDiffOn.neg_section
+ ContMDiffOn.smul_section
+ ContMDiffOn.sub_section
+ ContMDiffOn.sum_section
+ ContMDiffWithinAt.add_section
+ ContMDiffWithinAt.const_smul_section
+ ContMDiffWithinAt.neg_section
+ ContMDiffWithinAt.smul_section
+ ContMDiffWithinAt.sub_section
+ ContMDiffWithinAt.sum_section

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 script/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 added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 3, 2025
@grunweg grunweg force-pushed the contMDiff_ops_section branch from 9ac7bd8 to 4bb4749 Compare July 3, 2025 16:14
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 3, 2025
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 3, 2025
grunweg added 2 commits July 4, 2025 00:55
Smoothness of a section can be determined using any trivialisation, not
just the preferred trivialisation at a point.

Part of the path towards geodesics and the Levi-Civita connection.
@grunweg grunweg force-pushed the contMDiff_ops_section branch from 588cf87 to 1530d02 Compare July 3, 2025 22:56
@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 Jul 5, 2025
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

@leanprover-community-bot-assistant
Copy link
Copy Markdown
Collaborator

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

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 5, 2025
@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 Jul 5, 2025
@grunweg grunweg changed the title feat: finite sum, difference, smul of C^k sections is C^k feat: finite sum, difference, scalar product of C^k sections is C^k Jul 5, 2025
Copy link
Copy Markdown
Contributor

@sgouezel sgouezel left a comment

Choose a reason for hiding this comment

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

Looks nice, thanks!

ContMDiff I (I.prod 𝓘(𝕜, F)) n (fun x ↦ TotalSpace.mk' F x (a • s x)) :=
fun x₀ ↦ contMDiffAt_smul_const_section (hs x₀)

lemma contMDiffWithinAt_finsum_section {ι : Type*} {s : Finset ι} {t : ι → (x : M) → V x}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
lemma contMDiffWithinAt_finsum_section {ι : Type*} {s : Finset ι} {t : ι → (x : M) → V x}
lemma contMDiffWithinAt_sum_section {ι : Type*} {s : Finset ι} {t : ι → (x : M) → V x}

It's not a finsum, it's a sum. Same thing below.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(I also included the dot notation changes, so went for ContMDiffWithinAt.sum_section in the end.)

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jul 7, 2025

Thanks for the quick and helpful review. I should have addressed all your comments now.

@sgouezel
Copy link
Copy Markdown
Contributor

sgouezel commented Jul 7, 2025

bors r+
Thanks!

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jul 7, 2025
mathlib-bors bot pushed a commit that referenced this pull request Jul 7, 2025
…k` (#26674)

And use this to golf the proofs in `SmoothSection.lean`.
A future PR will add the analogous results for differentiability of sections.

Part of the path towards the geodesics and the Levi-Civita connection.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 7, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: finite sum, difference, scalar product of C^k sections is C^k [Merged by Bors] - feat: finite sum, difference, scalar product of C^k sections is C^k Jul 7, 2025
@mathlib-bors mathlib-bors bot closed this Jul 7, 2025
@grunweg grunweg deleted the contMDiff_ops_section branch July 7, 2025 13:54
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Jul 16, 2025
…k` (leanprover-community#26674)

And use this to golf the proofs in `SmoothSection.lean`.
A future PR will add the analogous results for differentiability of sections.

Part of the path towards the geodesics and the Levi-Civita connection.
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
…k` (leanprover-community#26674)

And use this to golf the proofs in `SmoothSection.lean`.
A future PR will add the analogous results for differentiability of sections.

Part of the path towards the geodesics and the Levi-Civita connection.
hrmacbeth pushed a commit to szqzs/mathlib4 that referenced this pull request Jul 28, 2025
…k` (leanprover-community#26674)

And use this to golf the proofs in `SmoothSection.lean`.
A future PR will add the analogous results for differentiability of sections.

Part of the path towards the geodesics and the Levi-Civita connection.
mathlib-bors bot pushed a commit that referenced this pull request Sep 27, 2025
…ns is differentiable (#26871)

This mirrors the additions of #26674 to `mdifferentiable` sections.
Part of the path towards geodesics and the Levi-Civita connection.

Co-authored-by: Patrick Massot <patrickmassot@free.fr>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
mathlib-bors bot pushed a commit that referenced this pull request Sep 27, 2025
…ns is differentiable (#26871)

This mirrors the additions of #26674 to `mdifferentiable` sections.
Part of the path towards geodesics and the Levi-Civita connection.

Co-authored-by: Patrick Massot <patrickmassot@free.fr>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Oct 2, 2025
…ns is differentiable (leanprover-community#26871)

This mirrors the additions of leanprover-community#26674 to `mdifferentiable` sections.
Part of the path towards geodesics and the Levi-Civita connection.

Co-authored-by: Patrick Massot <patrickmassot@free.fr>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
…ns is differentiable (leanprover-community#26871)

This mirrors the additions of leanprover-community#26674 to `mdifferentiable` sections.
Part of the path towards geodesics and the Levi-Civita connection.

Co-authored-by: Patrick Massot <patrickmassot@free.fr>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants