1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/tests/positive/Internal/Mutual.juvix

25 lines
273 B
Plaintext

module Mutual;
type Bool :=
true : Bool
| false : Bool;
type Nat :=
zero : Nat
| suc : Nat → Nat;
not : _;
not false := true;
not true := false;
odd : _;
even : _;
odd zero := false;
odd (suc n) := even n;
even zero := true;
even (suc n) := odd n;
end;