test: ackermann
This commit is contained in:
parent
381f66428a
commit
068cc700d8
1 changed files with 5 additions and 0 deletions
5
tests/lean/run/ack.lean
Normal file
5
tests/lean/run/ack.lean
Normal 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)
|
||||
Loading…
Add table
Reference in a new issue