Skip to content

fix: apply? produces a non-synthetic sorry #8231

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

Merged
merged 1 commit into from
May 5, 2025
Merged

Conversation

kim-em
Copy link
Collaborator

@kim-em kim-em commented May 5, 2025

This PR changes the behaviour of apply? so that the sorry it uses to close the goal is non-synthetic. (Recall that correct use of synthetic sorries requires that the tactic also generates an error message, which we don't want to do in this situation.) Either this PR or #8230 are sufficient to defend against the problem reported in #8212.

@kim-em kim-em added the changelog-language Language features, tactics, and metaprograms label May 5, 2025
@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 May 5, 2025
@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 208ff3e2b35957197505ca333c9e1062ae7909fe --onto afab374305fb2327036e4fe1ab799fc8928425b7. You can force Mathlib CI using the force-mathlib-ci label. (2025-05-05 11:32:39)

@kim-em kim-em enabled auto-merge May 5, 2025 12:30
@kim-em kim-em added this pull request to the merge queue May 5, 2025
Merged via the queue into master with commit 77b9e51 May 5, 2025
24 checks passed
github-actions bot pushed a commit that referenced this pull request May 5, 2025
This PR changes the behaviour of `apply?` so that the `sorry` it uses to
close the goal is non-synthetic. (Recall that correct use of synthetic
sorries requires that the tactic also generates an error message, which
we don't want to do in this situation.) Either this PR or #8230 are
sufficient to defend against the problem reported in #8212.

(cherry picked from commit 77b9e51)
kim-em added a commit that referenced this pull request May 5, 2025
This PR changes the behaviour of `apply?` so that the `sorry` it uses to
close the goal is non-synthetic. (Recall that correct use of synthetic
sorries requires that the tactic also generates an error message, which
we don't want to do in this situation.) Either this PR or #8230 are
sufficient to defend against the problem reported in #8212.

(cherry picked from commit 77b9e51)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport releases/v4.20.0 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