1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-05 22:46:08 +03:00
juvix/tests/positive/Termination/Ack.mjuvix

11 lines
198 B
Plaintext
Raw Normal View History

2022-02-24 03:33:26 +03:00
module Ack;
import Data.Nat;
open Data.Nat;
ack : ;
ack zero n ≔ suc n;
ack (suc m) zero ≔ ack m (suc zero);
ack (suc m) (suc n) ≔ ack m (ack (suc m) n);
2022-04-04 18:44:08 +03:00
end;