lean4-htt/tests/lean/445.lean.expected.out
Leonardo de Moura 09bc477016
feat: better support for reducing Nat.rec (#3616)
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)`.
2024-03-06 13:28:07 +00:00

15 lines
198 B
Text

true
(match i with
| 0 => true
| Nat.succ n => true) &&
f i
if i < 5 then 0 else 1
if i < 5 then 0 else g i j
i + 1
i + h i j
i + 1
i + i * 2
i + i * r i j
i + i * r i j
let z := s i j;
z + z