Skip to content

Commit c12f8f7

Browse files
committed
Add tactic alt tags.
1 parent 7a98523 commit c12f8f7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Mathlib/Tactic/Convert.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ example (p q : Nat → Prop) (h : ∀ ε > 0, p ε) :
183183
syntax (name := convert) "convert" "!"? Lean.Parser.Tactic.optConfig " ←"? ppSpace term
184184
(" using " num)? (" with" (ppSpace colGt rintroPat)*)? : tactic
185185

186+
@[tactic_alt convert]
186187
syntax (name := convert!) "convert!" Lean.Parser.Tactic.optConfig " ←"? ppSpace term
187188
(" using " num)? (" with" (ppSpace colGt rintroPat)*)? : tactic
188189

@@ -273,6 +274,7 @@ pattern-matched, like `rintro` would, using the `with` keyword.
273274
syntax (name := convertTo) "convert_to" ("!")? Parser.Tactic.optConfig " ←"? ppSpace term
274275
(" using " num)? (" with" (ppSpace colGt rintroPat)*)? (Parser.Tactic.location)? : tactic
275276

277+
@[tactic_alt convertTo]
276278
syntax (name := convert_to!) "convert_to!" Lean.Parser.Tactic.optConfig " ←"? ppSpace term
277279
(" using " num)? (" with" (ppSpace colGt rintroPat)*)? (Parser.Tactic.location)? : tactic
278280

@@ -332,6 +334,7 @@ example (a b c d e f g N : ℕ) : (a + b) + (c + d) + (e + f) + g ≤ N := by
332334
```
333335
-/
334336
syntax (name := acChange) "ac_change " term (" using " num)? : tactic
337+
@[tactic_alt acChange]
335338
syntax (name := acChange!) "ac_change! " term (" using " num)? : tactic
336339

337340
macro_rules

0 commit comments

Comments
 (0)