This PR fixes the support for case splitting on data in the `grind`
tactic. The following example works now:
```lean
inductive C where
| a | b | c
def f : C → Nat
| .a => 2
| .b => 3
| .c => 4
example : f x > 1 := by
grind [
f, -- instructs `grind` to use `f`-equation theorems,
C -- instructs `grind` to case-split on free variables of type `C`
]
```
13 lines
165 B
Text
13 lines
165 B
Text
inductive C where
|
|
| a | b | c
|
|
|
|
def f : C → Nat
|
|
| .a => 2
|
|
| .b => 3
|
|
| .c => 4
|
|
|
|
example : f .a > 1 := by
|
|
grind [f]
|
|
|
|
example : f x > 1 := by
|
|
grind [f, C]
|