[Merged by Bors] - feat(Tactic): add syntax for convert!, convert_to!, ac_change!#39715
[Merged by Bors] - feat(Tactic): add syntax for convert!, convert_to!, ac_change!#39715Vierkantor wants to merge 2 commits into
convert!, convert_to!, ac_change!#39715Conversation
This PR prepares for leanprover-community#39039 by adding the required syntax. Once this PR is in, we'll do a global find and replace for changing `convert` to `convert!` (without changing the behaviour), and finally we will enable the new behaviour for `convert`.
PR summary 7111187e10Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
grunweg
left a comment
There was a problem hiding this comment.
Thanks! I have one nit (see below), which can be addressed post-merge.
bors merge
| @@ -173,6 +175,14 @@ example (p q : Nat → Prop) (h : ∀ ε > 0, p ε) : | |||
| syntax (name := convert) "convert" Lean.Parser.Tactic.optConfig " ←"? ppSpace term (" using " num)? | |||
| (" with" (ppSpace colGt rintroPat)*)? : tactic | |||
|
|
|||
| @[tactic_alt convert] | |||
| syntax (name := convert!) "convert!" Lean.Parser.Tactic.optConfig " ←"? ppSpace term | |||
There was a problem hiding this comment.
Is there a reason you went from Parser.Tactic.optConfig to Lean.Parser.Tactic.optConfig?
In any case, this can be an easy follow-up PR which I would insta-merge --- so let me record this for us to discuss later tonight.
…39715) This PR prepares for #39039 by adding the required syntax. Once this PR is in, we'll do a global find and replace for changing `convert` to `convert!` (without changing the behaviour), and finally we will enable the new behaviour for `convert`. Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
|
Build failed (retrying...): |
…39715) This PR prepares for #39039 by adding the required syntax. Once this PR is in, we'll do a global find and replace for changing `convert` to `convert!` (without changing the behaviour), and finally we will enable the new behaviour for `convert`. Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
|
Build failed: Fix if necessary, and then someone with permission can run |
| @@ -274,8 +296,13 @@ example (a b c d e f g N : ℕ) : (a + b) + (c + d) + (e + f) + g ≤ N := by | |||
| ``` | |||
| -/ | |||
| syntax (name := acChange) "ac_change " term (" using " num)? : tactic | |||
| syntax (name := acChange!) "ac_change! " term (" using " num)? : tactic | |||
There was a problem hiding this comment.
The docBlame linter complains about this one. Probably just a missing inherit_doc or tactic_alt.
|
bors d+ |
|
✌️ Vierkantor can now approve this pull request. To approve and merge a pull request, simply reply with |
|
Let's just bors this, so we don't have to wait. bors r+ |
…39715) This PR prepares for #39039 by adding the required syntax. Once this PR is in, we'll do a global find and replace for changing `convert` to `convert!` (without changing the behaviour), and finally we will enable the new behaviour for `convert`. Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
|
Pull request successfully merged into master. Build succeeded: |
convert!, convert_to!, ac_change!convert!, convert_to!, ac_change!
…eanprover-community#39715) This PR prepares for leanprover-community#39039 by adding the required syntax. Once this PR is in, we'll do a global find and replace for changing `convert` to `convert!` (without changing the behaviour), and finally we will enable the new behaviour for `convert`. Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
…eanprover-community#39715) This PR prepares for leanprover-community#39039 by adding the required syntax. Once this PR is in, we'll do a global find and replace for changing `convert` to `convert!` (without changing the behaviour), and finally we will enable the new behaviour for `convert`. Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
…eanprover-community#39715) This PR prepares for leanprover-community#39039 by adding the required syntax. Once this PR is in, we'll do a global find and replace for changing `convert` to `convert!` (without changing the behaviour), and finally we will enable the new behaviour for `convert`. Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
This PR prepares for #39039 by adding the required syntax. Once this PR is in, we'll do a global find and replace for changing
converttoconvert!(without changing the behaviour), and finally we will enable the new behaviour forconvert.