test: ackermann

This commit is contained in:
Leonardo de Moura 2022-01-11 15:03:07 -08:00
parent 381f66428a
commit 068cc700d8

5
tests/lean/run/ack.lean Normal file
View file

@ -0,0 +1,5 @@
def ack : Nat → Nat → Nat
| 0, y => y+1
| x+1, 0 => ack x 1
| x+1, y+1 => ack x (ack (x+1) y)
termination_by' PSigma.lex sizeOfWFRel (fun _ => sizeOfWFRel)