From: Luca Padovani Date: Sun, 6 Apr 2003 09:07:22 +0000 (+0000) Subject: * new semantics with 2 continuations X-Git-Tag: before_refactoring~46 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=5f420bd186321bd74d0b7346fc8941e4d9abd4de;p=helm.git * new semantics with 2 continuations --- diff --git a/helm/DEVEL/mathml_editor/doc/spec.tex b/helm/DEVEL/mathml_editor/doc/spec.tex index c99c65909..a55f950c0 100644 --- a/helm/DEVEL/mathml_editor/doc/spec.tex +++ b/helm/DEVEL/mathml_editor/doc/spec.tex @@ -873,6 +873,12 @@ cursor with \ONODE{}, append $\tadvance$ after the \ONODE{} node \newcommand{\TRUE}{\mathit{true}} \newcommand{\FALSE}{\mathit{false}} \newcommand{\FUN}[2]{\lambda#1.#2} +\newcommand{\LET}[3]{\mathbf{let}~#1=#2~\mathbf{in}~#3} +\newcommand{\APPLY}[2]{(#1\;#2)} +\newcommand{\AND}{\wedge} +\newcommand{\OR}{\vee} +\newcommand{\AAND}{\,\vec{\AND}\,} +\newcommand{\AOR}{\,\vec{\OR}\,} \[ \begin{array}{rcl} @@ -926,23 +932,23 @@ cursor with \ONODE{}, append $\tadvance$ after the \ONODE{} node \PSEM{q} &=& \FUN{x}{\QSEM{q}{x}} \\ \PSEM{..} &=& \FUN{x}{\PARENT{x}\ne\emptyset}\\ \PSEM{/} &=& \FUN{x}{\CHILDREN{x}\ne\emptyset}\\ - \PSEM{c_1\;c_2} &=& \IFV{\PREDICATE{c_1}}{\FUN{x}{(\PSEM{c_1}\;x)\wedge(\PSEM{c_2}\;x)}}{\FSEM{c_1}{\PSEM{c_2}}}\\ + \PSEM{c_1\;c_2} &=& \IFV{\PREDICATE{c_1}}{\FUN{x}{(\PSEM{c_1}\;x)\wedge(\PSEM{c_2}\;x)}}{\FSEM{c_1}{\PSEM{c_2},\FUN{\_}{\FALSE}}}\\ \PSEM{(c)} &=& \PSEM{c}\\ - \PSEM{c_1\&c_2} &=& \IFV{\PREDICATE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