closes #3022 With this commit, given the declaration ``` def foo : Nat → Nat | 0 => 2 | n + 1 => foo n ``` when we unfold `foo (n+1)`, we now obtain `foo n` instead of `foo (Nat.add n 0)`.
12 lines
256 B
Text
12 lines
256 B
Text
unfold1.lean:22:4-22:8: error: simp made no progress
|
|
case succ
|
|
x : Nat
|
|
ih : isEven (2 * x) = true
|
|
⊢ (match 2 * Nat.succ x with
|
|
| 0 => true
|
|
| Nat.succ n => isOdd n) =
|
|
true
|
|
case succ
|
|
x : Nat
|
|
ih : isEven (2 * x) = true
|
|
⊢ isEven (2 * x) = true
|