This PR modifies the `induction`/`cases` syntax so that the `with` clause does not need to be followed by any alternatives. This improves friendliness of these tactics, since this lets them surface the names of the missing alternatives: ```lean example (n : Nat) : True := by induction n with /- ~~~~ alternative 'zero' has not been provided alternative 'succ' has not been provided -/ ``` Related to issue #3555
2 lines
158 B
Text
2 lines
158 B
Text
inductionParse.lean:4:14-4:18: error: alternative 'zero' has not been provided
|
|
inductionParse.lean:4:14-4:18: error: alternative 'succ' has not been provided
|