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
e7742460
Commit
e7742460
authored
Oct 12, 2020
by
Mickael Laurent
Browse files
add idea for typing lets
parent
9182aa58
Changes
1
Hide whitespace changes
Inline
Side-by-side
refining2.tex
View file @
e7742460
...
...
@@ -153,6 +153,11 @@ improves these two points.
TODO:
$
\triangleright
$
should return a set of environments (mapping variables only) instead
of a set of types for a given variable?
TODO: typing rule for the let. If we want full control flow, it should compute
$
e
_
2
\triangleright
_
y
\psi
$
and, for all
$
t
$
in
$
\psi
$
, type
$
e
_
2
$
under the hypothesis
that
$
e
_
1
$
has type
$
t
$
(and, finally,
under the hypothesis that
$
e
_
1
$
has type
$
\tyof
{
e
_
1
}{
\Gamma
}
\setminus\bigcup
_{
t
\in\psi
}
t
$
).
TODO: The
$
\evdash
e t
$
operator is used in the Case, OverApp and OverLet rules,
but what we would actually need is an operator that computes the other direction:
which environments can surely lead to
$
e
$
having the type
$
t
$
?
...
...
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