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: backtrack at injection failure #6109

Merged
merged 1 commit into from
Nov 18, 2024
Merged

fix: backtrack at injection failure #6109

merged 1 commit into from
Nov 18, 2024

Conversation

leodemoura
Copy link
Member

This PR fixes an issue in the injection tactic. This tactic may execute multiple sub-tactics. If any of them fail, we must backtrack the partial assignment. This issue was causing the error: "mvarId is already assigned" in issue #6066. The issue is not yet resolved, as the equation generator for the match expressions is failing in the example provided in this issue.

This PR fixes an issue in the `injection` tactic. This tactic may execute multiple sub-tactics. If any of them fail, we must backtrack the partial assignment.
This issue was causing the error: "`mvarId` is already assigned" in issue #6066.
The issue is not yet resolved, as the equation generator for the match expressions is failing in the example provided in this issue.
@leodemoura leodemoura added the changelog-language Language features, tactics, and metaprograms label Nov 18, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc November 18, 2024 02:09 Inactive
@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 Nov 18, 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 b8a13ab755317e4af3a4a99bd92fae26aa6a75b2 --onto a074bd9a2bd20cc470fbff4f80f2cd7b51ec0d0a. (2024-11-18 02:22:57)

@leodemoura leodemoura added this pull request to the merge queue Nov 18, 2024
Merged via the queue into master with commit 98b1edf Nov 18, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-language Language features, tactics, and metaprograms 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.

2 participants