Replace p:e by λp.e

Fixes #7
This commit is contained in:
regnat 2017-04-24 17:24:57 +02:00
parent eb5abd20f1
commit 4ecb8f3711
4 changed files with 5 additions and 4 deletions

View File

@ -84,6 +84,7 @@
\newcommand{}{\Gamma}
\newcommand{}{\tau}
\newcommand{\σ}{\sigma}
\newcommand{}{\lambda}
\newcommand{\recleq}{\sqsubsetleq}
\newcommand{\discrete}[2]{\left\{ #1, \ldots{}, #2 \right\}}

View File

@ -3,7 +3,7 @@
<e> ::=
\x/ \| \c/
\alt \e/.\a/ \| \e/.\a/ or \e/
\alt \p/:\e/ \| \e/ \e/
\alt $$\p/.\e/ \| \e/ \e/
\alt \{ \e/ = \e/ \}
\alt with \e/; \e/
\alt (\x/ := \e/ $\bm{\in}$ \t/) ? \e/ : \e/

View File

@ -3,7 +3,7 @@
<v> ::=
\c/
\alt \p/:\e/
\alt $$\p/.\e/
\alt \{ \v/ = \e/ \} $\orthplus \cdots{} \orthplus$ \{ \v/ = \e/ \}
\alt Cons(\e/, \e/) \| nil
\end{grammar}

View File

@ -10,8 +10,8 @@ figure~\pref{fig:semantics:nix-light:patterns}
\dstepa{\{ \s/ = \e/; $\ldots{}$\}.\s/}{$e$}{}
\dstepa{\{ \s/ = \e/; $\ldots{}$\}.\s/ or $e'$}{$e$}{}
\dstepa{$v.s \text{ or } e'$}{$e'$}{if $\v/ \neq$ \{ \s/ = \e/; $\ldots{}$ \}}
\dstepa{$(x:e_1) e_2$}{$\substp{x}{e_2}{e_1}$}{}
\dstepa{$(p:e_1) v$} {$\substp{p}{v}{e_1}$}{if $p \neq x$}
\dstepa{$( x.e_1) e_2$}{$\substp{x}{e_2}{e_1}$}{}
\dstepa{$( p.e_1) v$} {$\substp{p}{v}{e_1}$}{if $p \neq x$}
\dstepa{with \{ $l_1$ = $e_1$; $\cdots{}$; $l_n$ = $e_n$; \} ; \e/}{
\e/[\assign{l_1}{\eone}; ...; \assign{l_n}{\en}]
}{}