1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 08:27:03 +03:00
juvix/tests/positive/Symbols.juvix
Łukasz Czajka 43d114f9b1
Adapt Juvix programs to the new pipeline (#1746)
Progress for #1742 

* Remove putStr and putStrLn
* Remove named Nats (one, two, ...)
2023-01-23 14:57:01 +01:00

37 lines
587 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module Symbols;
open import Stdlib.Data.Nat;
╘⑽╛ : Nat;
╘⑽╛ := suc 9;
-- no - function!?
- : Nat -> Nat -> Nat;
- := (+);
- : Nat -> Nat -> Nat;
- := (-);
* : Nat -> Nat -> Nat;
* := (*);
infixl 6 ;
: Nat -> Nat -> Nat;
:= -;
infixl 7 ·;
· : Nat -> Nat -> Nat;
· := *;
0 : Nat;
0 := ╘⑽╛ ╘⑽╛ · zero;
主功能 : Nat;
主功能 := 0;
axiom = : Type;
K : Nat → Nat → Nat;
K =a@zero (=) := =a · =;
K =a@(suc =) == := = · ==;
end;