-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Merged by Bors] - feat: support coercions in the differential geometry elaborators #30307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
grunweg
wants to merge
22
commits into
leanprover-community:master
from
grunweg:diffgeo-custom-elaborators-charts-v2
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
1156f65
wip: support partial homeos and partial equivs
grunweg b1423f0
Progress
grunweg ff45f43
wip: copied the missing code; need to dedup
grunweg 7a4facf
Better approach; add tests for the remaining cases
grunweg d5aa960
Typo fix
grunweg 27ede4a
Note a regressed error message
grunweg ad86d3e
Restore
grunweg 72eb400
One more test
grunweg 8353626
Update docs
grunweg c9d331e
chore: slightly better headings for the tests file
grunweg b71b4fa
chore: move tests about coercions
grunweg a51a29c
Three more tests
grunweg 461280d
Move to Lean.Meta.Basic
grunweg f82cd2c
Update Mathlib/Geometry/Manifold/Notation.lean
grunweg 339a7bd
Apply suggestions from code review
grunweg 732742b
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 84ce24a
Comment
grunweg e380f14
More spaces
grunweg 0655fee
Add variant functions
grunweg 70f2cc7
Update Mathlib/Lean/Meta/Basic.lean
grunweg c18ec53
Update Mathlib/Lean/Meta/Basic.lean
grunweg 882d4bb
Fix
grunweg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have expected this to exist already! But searching through lean4/batteries/mathlib4 for usages of
coerceToFunction?, there does not seem to be anything similar.Do you know if we have something similar for
coeSortandcoe? If not, can you add them?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think they exist either; I have just added them. While cargo-culting them was not too hard, a areful review is welcome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note: would a PR adding these three declarations to core be welcome?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re upstreaming: No objections from me, but I would probably merge this first and then ask @kmill if core is interested in maintaining them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two weeks later, let me follow-up on this.
@kmill In this PR, I've added a few new functions to
Mathlib/Lean/Meta/Basic.lean: Lean.Meta.ensureHasType, Lean.Meta.ensureIsFunction and Lean.Meta.ensureIsSort. Is Lean core interested in maintaining them?