Skip to content

[Merged by Bors] - feat: miscellaneous improvements to the differential geometry elaborators#28032

Closed
grunweg wants to merge 17 commits intoleanprover-community:masterfrom
grunweg:diffgeo-custom-elaborators-charts
Closed

[Merged by Bors] - feat: miscellaneous improvements to the differential geometry elaborators#28032
grunweg wants to merge 17 commits intoleanprover-community:masterfrom
grunweg:diffgeo-custom-elaborators-charts

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Aug 6, 2025

  • Support inferring the model with corners on a TangentBundle.
  • Support inferring the model with corners on the space H a manifold is modelled on.
  • Correct the grammar in an error message.
  • Extend the tracing to show a bit more information.
  • Use backticks in all tracing (and other) error messages, per zulip discussion
  • Add some more tests, including one which is currently failing.

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 6, 2025

PR summary 6e58d23346

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

@github-actions github-actions bot added the t-differential-geometry Manifolds etc label Aug 6, 2025
@grunweg grunweg force-pushed the diffgeo-custom-elaborators-charts branch from 09fb0bd to 93ea5fa Compare October 8, 2025 19:53
@grunweg grunweg changed the title feat: support Partial{Homeomorph,Equiv} in differential geometry elaborators feat: miscellaneous improvements to the differential geometry elaborators Oct 8, 2025
@grunweg grunweg added the t-meta Tactics, attributes or user commands label Oct 8, 2025
@grunweg grunweg force-pushed the diffgeo-custom-elaborators-charts branch from 93ea5fa to 77636ac Compare October 8, 2025 20:22
@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 8, 2025
grunweg added a commit to grunweg/mathlib4 that referenced this pull request Oct 8, 2025
leanprover-community#28032 adds a test for this; no need to track it here
Copy link
Copy Markdown
Contributor

@thorimur thorimur left a comment

Choose a reason for hiding this comment

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

Looks good! I'm excited to get these elaborator improvements in at a steady pace! :D (I'd like to give it a once-over after #30307 lands just to make sure the diff is reasonable.)

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 10, 2025

Thanks; I agree with both your comments. I'll ping you once the dependent PR has been merged.

@grunweg grunweg force-pushed the diffgeo-custom-elaborators-charts branch from 199abc8 to 2c74842 Compare October 10, 2025 03:56
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 10, 2025

I rebased on top of #30307, and uplifted a few tweaks from #30357. Each commit is (hopefully) self-contained.

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 10, 2025

I have two more small features in the pipeline, in #30357 (inferring the model with corners on a charted space, and on a space of continuous linear maps). Would you prefer me folding that into this PR, or rather a follow-up?

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 10, 2025

Actually: let me fold the charted space one into this PR, and leave the other one to a follow-up (together with a few more such changes).

@thorimur
Copy link
Copy Markdown
Contributor

(Once again these changes look good, pending a once-over after the blocking PR lands! :) )

@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 14, 2025
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

@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-charts branch from 364ff67 to 03bc6e7 Compare October 14, 2025 18:01
@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 14, 2025
@grunweg grunweg force-pushed the diffgeo-custom-elaborators-charts branch from 640b9a6 to 7965974 Compare October 14, 2025 18:12
@grunweg grunweg force-pushed the diffgeo-custom-elaborators-charts branch from b46de46 to d65dc91 Compare October 14, 2025 18:15
grunweg and others added 3 commits October 14, 2025 22:24
@thorimur
Copy link
Copy Markdown
Contributor

Wonderful, LGTM! :) 🎉

@grunweg grunweg requested a review from Vierkantor October 15, 2025 10:15
@Vierkantor Vierkantor self-assigned this Oct 15, 2025
Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

The meta code looks fine to me, and this looks really well tested! But this really is not my area of expertise, mathematics-wise, so I really cannot say if the tests cover the functionality well. Could a differential geometer confirm that this makes sense?

maintainer merge

@github-actions
Copy link
Copy Markdown

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

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

LGTM

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Oct 15, 2025
mathlib-bors bot pushed a commit that referenced this pull request Oct 15, 2025
…tors (#28032)

- Support inferring the model with corners on a `TangentBundle`.
- Support inferring the model with corners on the space `H` a manifold is modelled on.
- Correct the grammar in an error message.
- Extend the tracing to show a bit more information.
- Use backticks in all tracing (and other) error messages, per [zulip discussion](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Style.3A.20Backticks.20in.20messages.3F/with/544859886)
- Add some more tests, including one which is currently failing.

Co-authored-by: thorimur <thomasmurrills@gmail.com>
Co-authored-by: thorimur <68410468+thorimur@users.noreply.github.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Oct 15, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: miscellaneous improvements to the differential geometry elaborators [Merged by Bors] - feat: miscellaneous improvements to the differential geometry elaborators Oct 15, 2025
@mathlib-bors mathlib-bors bot closed this Oct 15, 2025
@grunweg grunweg deleted the diffgeo-custom-elaborators-charts branch October 15, 2025 13:30
Jlh18 pushed a commit to Jlh18/mathlib4 that referenced this pull request Oct 24, 2025
…tors (leanprover-community#28032)

- Support inferring the model with corners on a `TangentBundle`.
- Support inferring the model with corners on the space `H` a manifold is modelled on.
- Correct the grammar in an error message.
- Extend the tracing to show a bit more information.
- Use backticks in all tracing (and other) error messages, per [zulip discussion](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Style.3A.20Backticks.20in.20messages.3F/with/544859886)
- Add some more tests, including one which is currently failing.

Co-authored-by: thorimur <thomasmurrills@gmail.com>
Co-authored-by: thorimur <68410468+thorimur@users.noreply.github.com>
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
…tors (leanprover-community#28032)

- Support inferring the model with corners on a `TangentBundle`.
- Support inferring the model with corners on the space `H` a manifold is modelled on.
- Correct the grammar in an error message.
- Extend the tracing to show a bit more information.
- Use backticks in all tracing (and other) error messages, per [zulip discussion](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Style.3A.20Backticks.20in.20messages.3F/with/544859886)
- Add some more tests, including one which is currently failing.

Co-authored-by: thorimur <thomasmurrills@gmail.com>
Co-authored-by: thorimur <68410468+thorimur@users.noreply.github.com>
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 t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants