The new notation is the same one used in Standard ML. It will also allow us to use ' in the beginning of identifiers like Standard ML.
16 lines
345 B
Text
16 lines
345 B
Text
{1, 2, 3} : set ℕ
|
||
{1} : set ℕ
|
||
∅ : set ℕ
|
||
definition s1 : set ℕ :=
|
||
{1, 2 + 3, 3, 4}
|
||
definition s2 : set char :=
|
||
{#"a", #"b", #"c"}
|
||
definition s3 : set string :=
|
||
{"hello", "world"}
|
||
{a ∈ s1 | a > 1} : set ℕ
|
||
{a ∈ s1 | a > 1} : set ℕ
|
||
{a in s1 | a > 2} : set nat
|
||
{a, a} : set nat
|
||
{a, 1, a} : set nat
|
||
{a} : set nat
|
||
{a // a > 0} : Type
|