Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Giuseppe Castagna
occurrence-typing
Commits
977e2796
Commit
977e2796
authored
Feb 28, 2020
by
Mickael Laurent
Browse files
example for reductions
parent
239fc3d9
Changes
1
Show whitespace changes
Inline
Side-by-side
proofs.tex
View file @
977e2796
...
...
@@ -141,7 +141,7 @@
\newpage
\subsection
{
Full p
arallel semantics
}
\label
{
app:parallel
}
\subsection
{
P
arallel semantics
}
\label
{
app:parallel
}
\[
\begin
{
array
}{
lrcl
}
...
...
@@ -205,6 +205,29 @@
\\
\end{mathpar}
Here is an example of reduction using the parallel semantics:
\begin{mathpar}
\Infer
[TestCtx]
{
\Infer
[Ctx]
{
\Infer
[App]
{
}
{
(
\lambda
x.
\
x+1)
\
1
\idleadsto
2
}
{}}
{
((
\lambda
x.
\
x+1)
\
1,
\true
)
\xleadsto
{
(
\lambda
x.
\
x+1)1
\ \mapsto\
2
}
(2,
\true
)
}
{}
}
{
\ite
{
((
\lambda
x.
\
x+1)
\
1,
\true
)
}
{
\pair
\Int
\Bool
}
{
(
\lambda
x.
\
x+1)
\
1
}
{
0
}
\idleadsto
\ite
{
(2,
\true
)
}
{
\pair
\Int
\Bool
}
{
2
}
{
0
}}
{}
\end{mathpar}
and
\begin{mathpar}
\Infer
[Case]
{
(2,
\true
)
\in
\valsemantic
{
\pair
\Int
\Bool
}}
{
\ite
{
(2,
\true
)
}
{
\pair
\Int
\Bool
}
{
2
}
{
0
}
\idleadsto
2
}
{}
\end{mathpar}
\\
All the proofs below will use the parallel semantics instead of the standard semantics (
\ref
{
sec:opsem
}
).
However, the safety of the type system for the standard semantics can be deduced from the safety of the type system for the parallel semantics,
using the following lemma:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment