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

Tag names #2629

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Tag names #2629

merged 2 commits into from
Oct 6, 2023

Conversation

david-christiansen
Copy link
Contributor

@david-christiansen david-christiansen commented Oct 5, 2023

  • Put an X in this bracket to confirm you have read the
    External Contribution Guidelines.

  • Please put the link to your RFC or bug issue here.
    PRs missing this link will be marked as missing RFC.

  • If that issue does not already have approval from a developer,
    please be sure to open this PR in "Draft" mode.

  • Please make sure the PR has excellent documentation and tests.
    If we label it missing documentation or missing tests then it needs fixing!

  • You can manage the awaiting-review, awaiting-author, and WIP labels
    yourself, by writing a comment containing one of these labels on its own line.

Right now, Lean's error message when providing a nonexistent case tag is somewhat unhelpful. It says tag not found.

With these changes, Lean instead lists the available tags that the user could have written, making the message more helpful. I also think that this phrasing is somewhat more likely to inform a new user that a "tag" is the name of the case that comes out of cases or induction.

Fix a misspelled/mistyped word in a comment.
@david-christiansen david-christiansen added the missing RFC Non trivial PR was submitted before RFC has been created label Oct 5, 2023
@david-christiansen david-christiansen marked this pull request as draft October 5, 2023 20:10
@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 5, 2023
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Oct 5, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Oct 5, 2023
@leanprover-community-mathlib4-bot
Copy link
Collaborator

@david-christiansen david-christiansen marked this pull request as ready for review October 6, 2023 05:03
@david-christiansen david-christiansen added the awaiting-review Waiting for someone to review the PR label Oct 6, 2023
src/Lean/Elab/Tactic/BuiltinTactic.lean Outdated Show resolved Hide resolved
tests/lean/caseSuggestions.lean Show resolved Hide resolved
src/Lean/Elab/Tactic/BuiltinTactic.lean Outdated Show resolved Hide resolved
Before, Lean would simply emit the message "tag not found". With this
change, it also tells the user what they could have written that would
be accepted.
@Kha Kha enabled auto-merge (rebase) October 6, 2023 08:11
@Kha Kha merged commit b0b922b into leanprover:master Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review Waiting for someone to review the PR builds-mathlib CI has verified that Mathlib builds against this PR missing RFC Non trivial PR was submitted before RFC has been created 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.

3 participants