mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 17:32:00 +03:00
3fbc9c7c55
Closes #1644 #1635
25 lines
273 B
Plaintext
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;
|