Notation
From Internet Computer Wiki
Notation
v : τ
means valuev
has typeτ
.X = a
means that a type or a valueX
is an alias fora
.X := [something]
means thatX
is defined to be[something]
- A percent sign
%
preceded only by spaces starts a line comment% [comment]
- We use
·
to denote that we do not care about the value some variable takes. For example, when quantifying over a set of tuples of the form we may use a to express that we do not care about the value takes in each of the tuples. - Let
X
be a set or a sequence. We use|X|
to denote the size/length of the set/sequence. - Let
X
be a sequence. We useX[i]
to access the element inX
at indexi
andX[u…v]
to refer to a slice of the sequence starting at indexu
and ending at indexv
. For example, for a sequenceX := (a, b, c, d)
, theslice X[2…3] = (b, c)
. - We define the concatenation of two ordered sequences
and - We often work with partial maps
, which we write as , where and . We note that partial maps can be nested, i.e., the set could again be a partial map