test: add test for example that does not work in Lean3

cc @eric-wieser
This commit is contained in:
Leonardo de Moura 2022-03-30 12:57:46 -07:00
parent e53e088be8
commit 1a8840330f

View file

@ -0,0 +1,6 @@
def foo : Nat → Nat → Nat
| 0, 0 => 1
| s+1, 0 => foo s 0 + 1
| 0, b+1 => foo 0 b + 1
| s+1, b+1 => foo (s+1) b + foo s (b+1)
termination_by foo b s => (b, s)