fix: induction generalizing precedence
This commit is contained in:
parent
cc4c82a6e7
commit
dcaf3c615f
2 changed files with 5 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ macro "let' " d:letDecl : tactic => `(refine_lift' let $d:letDecl; ?_)
|
|||
|
||||
syntax inductionAlt := ppDedent(ppLine) "| " (group("@"? ident) <|> "_") (ident <|> "_")* " => " (hole <|> syntheticHole <|> tacticSeq)
|
||||
syntax inductionAlts := "with " (tactic)? withPosition( (colGe inductionAlt)+)
|
||||
syntax (name := induction) "induction " term,+ (" using " ident)? ("generalizing " term:max+)? (inductionAlts)? : tactic
|
||||
syntax (name := induction) "induction " term,+ (" using " ident)? ("generalizing " (colGt term:max)+)? (inductionAlts)? : tactic
|
||||
|
||||
syntax generalizeArg := atomic(ident " : ")? term:51 " = " ident
|
||||
/--
|
||||
|
|
|
|||
4
tests/lean/run/inductionParse.lean
Normal file
4
tests/lean/run/inductionParse.lean
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
example (a b : Nat) : True := by
|
||||
induction a generalizing b
|
||||
case zero => trivial
|
||||
case succ => trivial
|
||||
Loading…
Add table
Reference in a new issue