fix(init/meta/converter/interactive): Do not allow rw to create ⊢ goals in conv mode#475
Open
eric-wieser wants to merge 1 commit intoleanprover-community:masterfrom
Open
fix(init/meta/converter/interactive): Do not allow rw to create ⊢ goals in conv mode#475eric-wieser wants to merge 1 commit intoleanprover-community:masterfrom
eric-wieser wants to merge 1 commit intoleanprover-community:masterfrom
Conversation
eric-wieser
commented
Oct 8, 2020
Comment on lines
149
to
+153
| meta def rewrite (q : parse rw_rules) (cfg : rewrite_cfg := {}) : conv unit := | ||
| rw_core q.rules cfg | ||
| rw_core q.rules cfg skip | ||
|
|
||
| meta def rw (q : parse rw_rules) (cfg : rewrite_cfg := {}) : conv unit := | ||
| rw_core q.rules cfg | ||
| rw_core q.rules cfg skip |
Member
Author
There was a problem hiding this comment.
I don't know how to let a tactic block be passed in here
Collaborator
|
Could you add some tests showing the desired new behavior? |
Member
Author
|
Where would you like the test to go? https://github.com/leanprover-community/lean/tree/master/tests/lean/interactive/conv.lean? |
Member
Author
|
At any rate, this doesn't work yet, and I need help to make it work. |
Collaborator
|
There are a few types of tests:
See also |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an attempt at the approach described at https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Closing.20.60.E2.8A.A2.60.20goals.20in.20.60conv.60.20mode/near/212702071
A contrived example where this applies: