Skip to content

review: suggested changes for #27021#1

Merged
grunweg merged 47 commits into
grunweg:diffgeo-custom-elaboratorsfrom
thorimur:diffgeo-custom-elaborators-review
Oct 6, 2025
Merged

review: suggested changes for #27021#1
grunweg merged 47 commits into
grunweg:diffgeo-custom-elaboratorsfrom
thorimur:diffgeo-custom-elaborators-review

Conversation

@thorimur
Copy link
Copy Markdown
Collaborator

@thorimur thorimur commented Oct 5, 2025

Suggested changes for mathlib4#27021. These spanned many lines, which made the usual GitHub interface awkward.

The suggestions are explained in a review.


Open in Gitpod

@thorimur thorimur force-pushed the diffgeo-custom-elaborators-review branch from 8d1726d to f363078 Compare October 5, 2025 23:20
@thorimur thorimur force-pushed the diffgeo-custom-elaborators-review branch from 8d0cd7c to 11f0795 Compare October 6, 2025 02:56
… different strategies; refactor `findModel` to make this possible.

* Note that the control flow changes slightly as a result of this commit. `TotalSpace`s will not cause top-level errors when both `TotalSpace` strategies fail; rather, the remaining strategies will be tried just in case. The given error message is demoted to a trace message. Better error messages for `findModel` can be provided in subsequent PRs.
@thorimur thorimur force-pushed the diffgeo-custom-elaborators-review branch 2 times, most recently from bb78d1d to 11fb2b9 Compare October 6, 2025 03:22
@thorimur thorimur force-pushed the diffgeo-custom-elaborators-review branch from 11fb2b9 to d35bb01 Compare October 6, 2025 03:46
@thorimur thorimur force-pushed the diffgeo-custom-elaborators-review branch from d35bb01 to 30c018a Compare October 6, 2025 04:08
@thorimur thorimur force-pushed the diffgeo-custom-elaborators-review branch from 30c018a to 1976265 Compare October 6, 2025 04:18
@grunweg
Copy link
Copy Markdown
Owner

grunweg commented Oct 6, 2025

Thanks a lot for this thorough and well-explained clean-up. I took a look at everything, and just have a few minor questions. (Once these are answered, I will probably just merge your PR.)

  • can you say something about 0f85d742a78403c9676447789d18a0a4171dc6af? If it works, I'm happy to blindly follow you, but I don't understand why this is superfluous.
  • do you have a reference where I can read about match_expr? The language reference doesn't mention it, and the API docs seemingly also don't.
  • I'm a bit surprised by 95f24aed78a7e17101c6d0d4f67a0f6e146ca96a: is that really Lean core style?

@grunweg
Copy link
Copy Markdown
Owner

grunweg commented Oct 6, 2025

@PatrickMassot In case you want to carefully double-check the logic and have way too much time at your hands, a0587df and d61a7ed could be worth a look. I'm willing to trust Thomas and the tests we have to find any issues.

@grunweg
Copy link
Copy Markdown
Owner

grunweg commented Oct 6, 2025

Actually: let me merge this PR already and keep track of the remaining commits on the main PR.

@grunweg grunweg merged commit c51a943 into grunweg:diffgeo-custom-elaborators Oct 6, 2025
3 of 4 checks passed
@grunweg
Copy link
Copy Markdown
Owner

grunweg commented Oct 6, 2025

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants