-
Notifications
You must be signed in to change notification settings - Fork 442
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
fix: make sure monad lift coercion elaborator has no side effects #6024
Merged
Conversation
This file contains 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
github-actions
bot
added
the
toolchain-available
A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
label
Nov 10, 2024
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/batteries
that referenced
this pull request
Nov 10, 2024
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Nov 10, 2024
leanprover-community-bot
added
the
breaks-mathlib
This is not necessarily a blocker for merging: but there needs to be a plan
label
Nov 10, 2024
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/batteries
that referenced
this pull request
Nov 11, 2024
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Nov 11, 2024
kim-em
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Nov 11, 2024
kim-em
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Nov 11, 2024
leanprover-community-bot
added
builds-mathlib
CI has verified that Mathlib builds against this PR
and removed
breaks-mathlib
This is not necessarily a blocker for merging: but there needs to be a plan
labels
Nov 11, 2024
kim-em
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Nov 12, 2024
kim-em
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Nov 12, 2024
mathlib-bors bot
pushed a commit
to leanprover-community/mathlib4
that referenced
this pull request
Nov 12, 2024
leanprover/lean4#6024 fixes a serious elaboration bug which, perversely, was quite helpful. Kyle is investigating replacing the bug with something intentional, but we definitively need to fix the bug in the meantime. This is the backport of changes from lean-pr-testing-6024 which do not have conflicts with `master`. There are a few more changes that we'll need to handle separately later. Co-authored-by: Kyle Miller <kmill31415@gmail.com>
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Nov 13, 2024
This PR fixes a bug where the monad lift coercion elaborator would partially unify expressions even if they were not monads. Breaking change: examples such as `change _ = .some true` no longer work. They accidentally worked because this elaborator left an accidental type hint on `Eq`.
kmill
force-pushed
the
fix_coercemonadlift
branch
from
November 13, 2024 04:02
2b0f9bb
to
53e20fe
Compare
Mathlib CI status (docs):
|
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Nov 13, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to no response for status checks
Nov 13, 2024
TobiasLeichtfried
pushed a commit
to leanprover-community/mathlib4
that referenced
this pull request
Nov 21, 2024
leanprover/lean4#6024 fixes a serious elaboration bug which, perversely, was quite helpful. Kyle is investigating replacing the bug with something intentional, but we definitively need to fix the bug in the meantime. This is the backport of changes from lean-pr-testing-6024 which do not have conflicts with `master`. There are a few more changes that we'll need to handle separately later. Co-authored-by: Kyle Miller <kmill31415@gmail.com>
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
builds-mathlib
CI has verified that Mathlib builds against this PR
changelog-language
Language features, tactics, and metaprograms
toolchain-available
A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
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.
This PR fixes a bug where the monad lift coercion elaborator would partially unify expressions even if they were not monads. This could be taken advantage of to propagate information that could help elaboration make progress, for example the first
change
worked because the monad lift coercion elaborator was unifying@Eq _ _
with@Eq (Nat × Nat) p
:As such, this is a breaking change; you may need to adjust expressions to include additional implicit arguments.