mirror of
https://github.com/anoma/juvix.git
synced 2025-01-07 16:22:14 +03:00
6bfe727a0e
* Closes #2007
37 lines
549 B
Plaintext
37 lines
549 B
Plaintext
module Symbols;
|
||
|
||
import Stdlib.Data.Nat open;
|
||
|
||
╘⑽╛ : Nat;
|
||
╘⑽╛ := suc 9;
|
||
|
||
-- no - function!?
|
||
- : Nat -> Nat -> Nat;
|
||
- := (+);
|
||
|
||
(-) : Nat -> Nat -> Nat;
|
||
(-) := (-);
|
||
|
||
(*) : Nat -> Nat -> Nat;
|
||
(*) := (*);
|
||
|
||
syntax infixl 6 -;
|
||
- : Nat -> Nat -> Nat;
|
||
- := (-);
|
||
|
||
syntax infixl 7 ·;
|
||
· : Nat -> Nat -> Nat;
|
||
· := (*);
|
||
|
||
(0) : Nat;
|
||
(0) := ╘⑽╛ - ╘⑽╛ · zero;
|
||
|
||
主功能 : Nat;
|
||
主功能 := (0);
|
||
|
||
axiom = : Type;
|
||
|
||
K : Nat → Nat → Nat;
|
||
K =a@zero (=) := =a · =;
|
||
K =a@(suc =) == := = · ==;
|