chore: prepare to change case tactic
This commit is contained in:
parent
ba5d622e59
commit
93189e0fce
2 changed files with 2 additions and 2 deletions
|
|
@ -214,7 +214,7 @@ syntax (name := apply) "apply " term : tactic
|
|||
syntax (name := exact) "exact " term : tactic
|
||||
syntax (name := refine) "refine " term : tactic
|
||||
syntax (name := refine') "refine' " term : tactic
|
||||
syntax (name := case) "case " ident " => " tacticSeq : tactic
|
||||
syntax (name := case) "case " ident (ident <|> "_")* " => " tacticSeq : tactic
|
||||
syntax (name := allGoals) "allGoals " tacticSeq : tactic
|
||||
syntax (name := focus) "focus " tacticSeq : tactic
|
||||
syntax (name := skip) "skip" : tactic
|
||||
|
|
|
|||
|
|
@ -541,7 +541,7 @@ def withCaseRef [Monad m] [MonadRef m] (arrow body : Syntax) (x : m α) : m α :
|
|||
withRef (mkNullNode #[arrow, body]) x
|
||||
|
||||
@[builtinTactic «case»] def evalCase : Tactic
|
||||
| `(tactic| case $tag =>%$arr $tac:tacticSeq) => do
|
||||
| `(tactic| case $tag $hs* =>%$arr $tac:tacticSeq) => do
|
||||
let tag := tag.getId
|
||||
let gs ← getUnsolvedGoals
|
||||
let some g ← findTag? gs tag | throwError "tag not found"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue