Skip to content

[Merged by Bors] - feat: more extensions for differential geometry elaborators#30744

Closed
grunweg wants to merge 38 commits intoleanprover-community:masterfrom
grunweg:diffgeo-custom-elaborators-evenmore
Closed

[Merged by Bors] - feat: more extensions for differential geometry elaborators#30744
grunweg wants to merge 38 commits intoleanprover-community:masterfrom
grunweg:diffgeo-custom-elaborators-evenmore

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Oct 21, 2025

Support inferring a model with corners in all remaining instances in mathlib, except for products and direct sums:

  • on Euclidean space, half-space or quadrants.
  • for the units in a normed algebra (including GL(V))
  • the unit interval
  • on the complex unit circle
  • on a metric sphere in a real or complex inner product space
  • also support finding a model on a domain which is an InnerProductSpace (hence only indirectly a normed space)

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 21, 2025

PR summary 2b4c6152f1

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ isCLMReduciblyDefeqCoefficients

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 21, 2025
@grunweg grunweg force-pushed the diffgeo-custom-elaborators-evenmore branch 6 times, most recently from 102b492 to c99299a Compare October 25, 2025 09:54
@thorimur thorimur self-assigned this Oct 27, 2025
@thorimur
Copy link
Copy Markdown
Contributor

thorimur commented Oct 27, 2025

By the way, does this depend on #30879, or is #30879 meant to split out the T% refactoring into a separate PR? (I suspect #30879 will get merged first anyway, so feel free to slap a dependence on this PR and avoid wrangling git if it's a hassle :) )

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 27, 2025

Thanks for asking! I think I originally added the refactoring to this PR, and then decided that #30879 would also be a good place for it. Merging that one first should do the trick. I've added the dependency formally.

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 27, 2025

(That might not make a big difference for reviewing: once #30413 is merged, I'll rebase this PR, and then hopefully commits are somewhat atomic, i.e. can be reviewed separately.)

@grunweg grunweg added the t-meta Tactics, attributes or user commands label Oct 27, 2025
@grunweg grunweg force-pushed the diffgeo-custom-elaborators-evenmore branch 2 times, most recently from 371d1ce to fe3335b Compare October 28, 2025 10:25
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 28, 2025

I have rebased this PR. I'll squash some of the intermediate commits about units of normed algebra next (as those are very not-atomic).

@grunweg grunweg force-pushed the diffgeo-custom-elaborators-evenmore branch 2 times, most recently from 8225168 to 9edcbe6 Compare October 28, 2025 12:45
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Oct 28, 2025

I just squashed some intermediate commits: the history about inferring a sphere is still non-atomic, but most commits before it hopefully are. (I also made some progress on inferring a sphere, but the last piece of code still doesn't work. Help with that is welcome.)

@grunweg grunweg force-pushed the diffgeo-custom-elaborators-evenmore branch from bc045d4 to 9cb7b4f Compare November 12, 2025 22:31
@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 Nov 19, 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-evenmore branch from 711ca00 to ec30f7a Compare November 21, 2025 07:47
@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 Nov 21, 2025
grunweg and others added 4 commits January 28, 2026 16:00
This code has not been changed in this PR, but let's add a test anyway.
Any behaviour or diagnostics changes will come in a future PR.
Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jan 28, 2026

Thanks for the review!
bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jan 28, 2026
mathlib-bors bot pushed a commit that referenced this pull request Jan 28, 2026
Support inferring a model with corners in all remaining instances in mathlib, except for products and direct sums:
- on Euclidean space, half-space or quadrants.
- for the units in a normed algebra (including GL(V))
- the unit interval
- on the complex unit circle
- on a metric sphere in a real or complex inner product space
- also support finding a model on a domain which is an `InnerProductSpace` (hence only indirectly a normed space)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 28, 2026

Build failed (retrying...):

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 28, 2026

Canceled.

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jan 28, 2026

The test from the last commit failed the bors batch with diffs like

  -   ModelWithCorners.{u_1, ?u.235761, ?u.235762} 𝕜 ?E' ?H'
  +   ModelWithCorners.{u_1, ?u.235719, ?u.235720} 𝕜 ?E' ?H'

(It is fine on my computer, and even deterministic.) Ideas on writing a more robust test are welcome: in the mean-time, let's disable it so this PR can land.
bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jan 28, 2026
Support inferring a model with corners in all remaining instances in mathlib, except for products and direct sums:
- on Euclidean space, half-space or quadrants.
- for the units in a normed algebra (including GL(V))
- the unit interval
- on the complex unit circle
- on a metric sphere in a real or complex inner product space
- also support finding a model on a domain which is an `InnerProductSpace` (hence only indirectly a normed space)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 28, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: more extensions for differential geometry elaborators [Merged by Bors] - feat: more extensions for differential geometry elaborators Jan 28, 2026
@mathlib-bors mathlib-bors bot closed this Jan 28, 2026
@grunweg grunweg deleted the diffgeo-custom-elaborators-evenmore branch January 28, 2026 16:46
grunweg added a commit to grunweg/mathlib4 that referenced this pull request Jan 29, 2026
set_option pp.mvars false normalises the universe levels, making the output
sufficiently deterministic. Follow-up to leanprover-community#30744.
mathlib-bors bot pushed a commit that referenced this pull request Jan 29, 2026
…tors (#34527)

When a tracing option is already set, we don't need to tell the user about it. Follow-up to #30744.
mathlib-bors bot pushed a commit that referenced this pull request Jan 30, 2026
`set_option pp.mvars false` normalises the universe levels, making the output sufficiently deterministic.
Follow-up to #30744.
mathlib-bors bot pushed a commit that referenced this pull request Jan 30, 2026
`set_option pp.mvars false` normalises the universe levels, making the output sufficiently deterministic.
Follow-up to #30744.
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
…er-community#30744)

Support inferring a model with corners in all remaining instances in mathlib, except for products and direct sums:
- on Euclidean space, half-space or quadrants.
- for the units in a normed algebra (including GL(V))
- the unit interval
- on the complex unit circle
- on a metric sphere in a real or complex inner product space
- also support finding a model on a domain which is an `InnerProductSpace` (hence only indirectly a normed space)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
…tors (leanprover-community#34527)

When a tracing option is already set, we don't need to tell the user about it. Follow-up to leanprover-community#30744.
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
…prover-community#34562)

`set_option pp.mvars false` normalises the universe levels, making the output sufficiently deterministic.
Follow-up to leanprover-community#30744.
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Feb 15, 2026
…prover-community#34562)

`set_option pp.mvars false` normalises the universe levels, making the output sufficiently deterministic.
Follow-up to leanprover-community#30744.
Maldooor pushed a commit to Maldooor/mathlib4 that referenced this pull request Feb 25, 2026
…er-community#30744)

Support inferring a model with corners in all remaining instances in mathlib, except for products and direct sums:
- on Euclidean space, half-space or quadrants.
- for the units in a normed algebra (including GL(V))
- the unit interval
- on the complex unit circle
- on a metric sphere in a real or complex inner product space
- also support finding a model on a domain which is an `InnerProductSpace` (hence only indirectly a normed space)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Maldooor pushed a commit to Maldooor/mathlib4 that referenced this pull request Feb 25, 2026
…tors (leanprover-community#34527)

When a tracing option is already set, we don't need to tell the user about it. Follow-up to leanprover-community#30744.
Maldooor pushed a commit to Maldooor/mathlib4 that referenced this pull request Feb 25, 2026
…prover-community#34562)

`set_option pp.mvars false` normalises the universe levels, making the output sufficiently deterministic.
Follow-up to leanprover-community#30744.
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Mar 2, 2026
…prover-community#34562)

`set_option pp.mvars false` normalises the universe levels, making the output sufficiently deterministic.
Follow-up to leanprover-community#30744.
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.

6 participants