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

18 lines
269 B
Plaintext
Raw Normal View History

module Data.Nat;
inductive {
zero : ;
suc : ;
};
infixl 6 +;
+ : ;
+ zero b ≔ b;
+ (suc a) b ≔ suc (a + b);
infixl 7 *;
* : ;
* zero b ≔ zero;
* (suc a) b ≔ b + a * b;
2022-04-04 18:44:08 +03:00
end;