Skip to content
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: store local context for 'don't know how to synthesize implicit argument' errors #5658

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Oct 9, 2024

When named arguments introduce eta arguments, the full application contains fvars for these eta arguments, so MVarErrorKind.implicitArg needs to keep a local context for its error messages. This is because the local context of the mvar associated to the MVarErrorKind is not sufficient, since when an eta argument come after an implicit argument, the implicit argument's mvar doesn't contain the eta argument's fvar in its local context.

Closes #5475

…rgument' errors

When named arguments introduce eta arguments, the full application contains fvars for these eta arguments, so `MVarErrorKind.implicitArg` needs to keep a local context for its error messages. The local context of the mvar associated to the `MVarErrorKind` is not sufficient since when an eta argument come after an implicit argument, the implicit argument's mvar doesn't contain the eta argument's fvar in its local context.

Closes leanprover#5475
@kmill kmill enabled auto-merge October 9, 2024 08:19
@kmill kmill added this pull request to the merge queue Oct 9, 2024
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Oct 9, 2024
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 79930af11e5b6e78e77534d7670169ea5f5924c5 --onto 3e75d8f74297bc258352f8d89f71496aacefe7ae. (2024-10-09 08:43:31)

Merged via the queue into leanprover:master with commit d10d41b Oct 9, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unbound fvar in "don't know how to synthesize implicit argument" error
2 participants