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: make sure simp_rw uses each lemma #5770

Closed
wants to merge 1 commit into from

Conversation

kim-em
Copy link
Contributor

@kim-em kim-em commented Jul 8, 2023


Open in Gitpod

@@ -59,6 +60,6 @@ elab s:"simp_rw " rws:rwRuleSeq g:(location)? : tactic => do
evalTactic (← match term with
| `(term| $e:term) =>
if symm then
`(tactic| simp%$e only [←$e:term] $g ?)
`(tactic| fail_if_no_progress simp%$e only [←$e:term] $g ?)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to make this just a warning on the unused lemma, as I think happens in simp?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, a warning would be better.

In any case this PR isn't viable, it will require #3757 first.

@eric-wieser
Copy link
Member

Is this a duplicate of #3782?

@kim-em
Copy link
Contributor Author

kim-em commented Jul 12, 2023

Is this a duplicate of #3782?

Thanks, yes!

@kim-em kim-em closed this Jul 12, 2023
@kim-em kim-em deleted the simp_rw_failIfNoProgress branch January 12, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants