Skip to content

[Merged by Bors] - fix: check for a space of continuous linear maps over not-the-identity#35176

Closed
grunweg wants to merge 4 commits intoleanprover-community:masterfrom
grunweg:diffgeo-elaborators-clm-id
Closed

[Merged by Bors] - fix: check for a space of continuous linear maps over not-the-identity#35176
grunweg wants to merge 4 commits intoleanprover-community:masterfrom
grunweg:diffgeo-elaborators-clm-id

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Feb 12, 2026

Improves an error message, and fixes a TODO in the code.
Along the way, tweak isCLMReduciblyDefEqCoeffients a bit

  • make it private (as it is only used twice, and its return value is a bit complicated for public API),
  • make it return an error directly if not successful: this matches what its two callers do,
  • tweak the doc-string slightly and reduce right-ward drift a bit

Co-authored-by: thorimur thomasmurrills@gmail.com


Open in Gitpod

Improves an error message, and fixes a TODO in the code.
@grunweg grunweg requested a review from Vierkantor February 12, 2026 10:47
@grunweg grunweg added t-meta Tactics, attributes or user commands t-differential-geometry Manifolds etc labels Feb 12, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 12, 2026

PR summary 4aa0616ac5

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

Copy link
Copy Markdown
Contributor

@joneugster joneugster left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

maintainer merge

@joneugster joneugster assigned joneugster and unassigned kim-em Feb 18, 2026
@github-actions
Copy link
Copy Markdown

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

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Feb 18, 2026
- mark as private, as we only use it twice
- tweak the doc-string slightly
- make it error when the check fails: this is the only behaviour its two
  call-sites require, and simplifies the return type slightly
- reduce indentation a bit
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 18, 2026

@thorimur Would you like to double-check that I did justice to your change?

(I just added the pureIsDefEq change, which I had missed. I see that another difference was you checking ← whnfR σ instead of σ. Hm, maybe I should also adopt that...)

@thorimur
Copy link
Copy Markdown
Contributor

Looks good to me! :) I'd maintainer merge if it weren't already on the queue. :)

Co-authored-by: Thomas R. Murrills <68410468+thorimur@users.noreply.github.com>
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.

Looks good to me, thanks! 🎉

bors r+

@mathlib-triage mathlib-triage bot 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 Feb 19, 2026
mathlib-bors bot pushed a commit that referenced this pull request Feb 19, 2026
#35176)

Improves an error message, and fixes a TODO in the code.
Along the way, tweak `isCLMReduciblyDefEqCoeffients` a bit
- make it private (as it is only used twice, and its return value is a bit complicated for public API),
- make it return an error directly if not successful: this matches what its two callers do,
- tweak the doc-string slightly and reduce right-ward drift a bit

Co-authored-by: thorimur <thomasmurrills@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Feb 19, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix: check for a space of continuous linear maps over not-the-identity [Merged by Bors] - fix: check for a space of continuous linear maps over not-the-identity Feb 19, 2026
@mathlib-bors mathlib-bors bot closed this Feb 19, 2026
@grunweg grunweg deleted the diffgeo-elaborators-clm-id branch February 28, 2026 15:55
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Mar 2, 2026
leanprover-community#35176)

Improves an error message, and fixes a TODO in the code.
Along the way, tweak `isCLMReduciblyDefEqCoeffients` a bit
- make it private (as it is only used twice, and its return value is a bit complicated for public API),
- make it return an error directly if not successful: this matches what its two callers do,
- tweak the doc-string slightly and reduce right-ward drift a bit

Co-authored-by: thorimur <thomasmurrills@gmail.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.

5 participants