Commit e7742460 authored by Mickael Laurent's avatar Mickael Laurent
Browse files

add idea for typing lets

parent 9182aa58
......@@ -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$?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment