mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-25 08:08:47 +00:00
External/public, better options
This commit is contained in:
parent
5a883d8fa9
commit
1a849e7a56
12 changed files with 294 additions and 93 deletions
50
doc/spec/02.notation.tex
Normal file
50
doc/spec/02.notation.tex
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
\section{Notation}
|
||||
|
||||
Pairs and tuples:
|
||||
|
||||
\[
|
||||
\inbr{\bullet,\,\bullet,\,\dots}
|
||||
\]
|
||||
|
||||
Lists of elements of kind $X$:
|
||||
|
||||
\[
|
||||
X^*
|
||||
\]
|
||||
|
||||
Deconstructing lists into sublists:
|
||||
|
||||
\[
|
||||
h\circ t
|
||||
\]
|
||||
|
||||
This applies also to lists of length 1. Empty list is denoted
|
||||
|
||||
\[
|
||||
\epsilon
|
||||
\]
|
||||
|
||||
|
||||
For a mapping $f : X\to Y$ we use the following definition:
|
||||
|
||||
\[
|
||||
f [x\gets y] = \lambda\,z\,.\,
|
||||
\left\{
|
||||
\begin{array}{rcl}
|
||||
y &,& x = z \\
|
||||
f\;x &,& x\neq z
|
||||
\end{array}
|
||||
\right.
|
||||
\]
|
||||
|
||||
Empty mapping (undefined everywhere) is denoted $\Lambda$, the domain of a mapping $f$~--- $\dom{f}$, and we abbreviate
|
||||
|
||||
\[
|
||||
\Lambda[x_1\gets y_1][x_2\gets y_2]\dots[x_k\gets y_k]
|
||||
\]
|
||||
|
||||
as
|
||||
|
||||
\[
|
||||
[x_1\gets y_1,\,x_2\gets y_2,\,\dots,\,x_k\gets y_k]
|
||||
\]
|
||||
Loading…
Add table
Add a link
Reference in a new issue