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

chore: rw? uses MVarId.refl not MVarId.applyRfl #3783

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

semorrison
Copy link
Collaborator

@semorrison semorrison commented Mar 27, 2024

I think this was in error in my original Mathlib implementation. We're not interested in relations other than =, so there is no point using MVarId.applyRfl, which just looks up @[refl] tagged lemmas and tries those.

In a separate PR, I will change MVarId.applyRfl so it has a flag to control whether on = it should just hand-off to MVarId.refl, or fail. Failure is appropriate in the version we call from the rfl macro, to avoid doing a double IsDefEq check on every rfl!

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc March 27, 2024 02:55 Inactive
@semorrison semorrison added this pull request to the merge queue Mar 27, 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 Mar 27, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Std/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase b17c47d8526208db27105eafdf96a0668621c740 --onto 4c0106d757d4d6d3b7f3903611ce22100d539d2a. (2024-03-27 03:04:23)

Merged via the queue into master with commit b4caee8 Mar 27, 2024
12 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.

None yet

2 participants