Skip to content

[Merged by Bors] - chore: split test file for differential geometry elaborators#30412

Closed
grunweg wants to merge 2 commits intoleanprover-community:masterfrom
grunweg:diffgeo-custom-elaborators-splittest
Closed

[Merged by Bors] - chore: split test file for differential geometry elaborators#30412
grunweg wants to merge 2 commits intoleanprover-community:masterfrom
grunweg:diffgeo-custom-elaborators-splittest

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Oct 10, 2025

The test file was getting quite long (with more tests to come for future features), and accumulating too many imports: once mathlib was tweaked to make use of the elaborators, recompilation after a basic change would take too long.

Split it into a basic file with minimal imports, and another file for all more advanced features.


Open in Gitpod

@grunweg grunweg added t-meta Tactics, attributes or user commands t-differential-geometry Manifolds etc labels Oct 10, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 10, 2025

PR summary 6652a12058

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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).

@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 Oct 10, 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 14, 2025
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

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

@grunweg grunweg force-pushed the diffgeo-custom-elaborators-splittest branch from c6a0834 to 5755031 Compare October 15, 2025 11:38
@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 15, 2025
@grunweg grunweg force-pushed the diffgeo-custom-elaborators-splittest branch from 5755031 to 7b4fe0b Compare October 15, 2025 11:41
The test file was getting quite long (with more tests to come for future
features), and accumulating too many imports: once mathlib was tweaked to
make use of the elaborators, recompilation after a basic change would take too
long.
Split it into a basic file with minimal imports, and another file for all
more advanced features.
@grunweg grunweg force-pushed the diffgeo-custom-elaborators-splittest branch from 7b4fe0b to f8e3518 Compare October 15, 2025 13:30
@grunweg grunweg removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Oct 15, 2025
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

Comment on lines +8 to +12
import Mathlib.Geometry.Manifold.VectorField.LieBracket
/-!
# Tests for the differential geometry elaborators which require stronger imports

-/
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
import Mathlib.Geometry.Manifold.VectorField.LieBracket
/-!
# Tests for the differential geometry elaborators which require stronger imports
-/
import Mathlib.Geometry.Manifold.VectorField.LieBracket
/-!
# Tests for the differential geometry elaborators which require stronger imports
-/

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.

Thanks for the quick review! I have change the second part of your suggestion, but not the first one: my impression is that including a blank line between the imports and module doc-string is actually much more common in mathlib.

Let's check: searching for import \S*\n/-! in VS Code yields 186 hits, whereas there are 6802 hits for import \S*\n\n/-! (with a newline in between), and 18 for two blank lines. So, I'll stay with the vast mathlib majority here.

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'd review a PR normalising the 18 files with excessive newlines. You could try proposing a style rule on this; I'm not sure if this gets into excessive bikeshedding or not. The different is large enough that this might be fine.)

@thorimur
Copy link
Copy Markdown
Contributor

I double-checked, and all of the tests indeed seem to have made it through the split in one piece! :)

maintainer delegate

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by thorimur.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 15, 2025
@bryangingechen
Copy link
Copy Markdown
Contributor

Thanks!
bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Oct 16, 2025

✌️ 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.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Oct 16, 2025
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 16, 2025

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Oct 16, 2025
mathlib-bors bot pushed a commit that referenced this pull request Oct 16, 2025
The test file was getting quite long (with more tests to come for future features), and accumulating too many imports: once mathlib was tweaked to make use of the elaborators, recompilation after a basic change would take too long.

Split it into a basic file with minimal imports, and another file for all more advanced features.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Oct 16, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: split test file for differential geometry elaborators [Merged by Bors] - chore: split test file for differential geometry elaborators Oct 16, 2025
@mathlib-bors mathlib-bors bot closed this Oct 16, 2025
@grunweg grunweg deleted the diffgeo-custom-elaborators-splittest branch October 16, 2025 09:42
Jlh18 pushed a commit to Jlh18/mathlib4 that referenced this pull request Oct 24, 2025
…ver-community#30412)

The test file was getting quite long (with more tests to come for future features), and accumulating too many imports: once mathlib was tweaked to make use of the elaborators, recompilation after a basic change would take too long.

Split it into a basic file with minimal imports, and another file for all more advanced features.
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
…ver-community#30412)

The test file was getting quite long (with more tests to come for future features), and accumulating too many imports: once mathlib was tweaked to make use of the elaborators, recompilation after a basic change would take too long.

Split it into a basic file with minimal imports, and another file for all more advanced features.
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 t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants