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
31db3325
Commit
31db3325
authored
Feb 26, 2020
by
Mickael Laurent
Browse files
update completeness theorem in the proofs
parent
6237061c
Changes
1
Hide whitespace changes
Inline
Side-by-side
proofs.tex
View file @
31db3325
...
@@ -954,8 +954,8 @@ can be extended to type schemes (see also~\citep[\S4.4]{Cas15} for a detailed de
...
@@ -954,8 +954,8 @@ can be extended to type schemes (see also~\citep[\S4.4]{Cas15} for a detailed de
We present here a refinement of the algorithmic type system presented in
\ref
{
sec:algorules
}
We present here a refinement of the algorithmic type system presented in
\ref
{
sec:algorules
}
that associates to an expression a type scheme instead of a regular type.
that associates to an expression a type scheme instead of a regular type.
This allows to type expressions more precisely and thus to have a more powerful
completeness theorem in regards to the
This allows to type expressions more precisely and thus to have a more powerful
declarative type system.
(but still partial) completeness theorem in regards to the
declarative type system.
The results about this new type system will be used in
\ref
{
sec:proofs
_
algorithmic
_
without
_
ts
}
in order to obtain a soundness and completeness
The results about this new type system will be used in
\ref
{
sec:proofs
_
algorithmic
_
without
_
ts
}
in order to obtain a soundness and completeness
theorem for the algorithmic type system presented in
\ref
{
sec:algorules
}
.
theorem for the algorithmic type system presented in
\ref
{
sec:algorules
}
.
...
@@ -1756,11 +1756,9 @@ theorem for the algorithmic type system presented in \ref{sec:algorules}.
...
@@ -1756,11 +1756,9 @@ theorem for the algorithmic type system presented in \ref{sec:algorules}.
\end{proof}
\end{proof}
\begin{theorem}
[Completeness of the algorithmic type system for positive expressions]
\label
{
completenessA
}
\begin{theorem}
[Completeness of the algorithmic type system for positive expressions]
\label
{
completenessA
}
If we restrict the language to positive expressions
$
e
_
+
$
,
For every type environment
$
\Gamma
$
and positive expression
$
e
_
+
$
, if
the algorithmic type system without type schemes is complete.
$
\Gamma\vdash
e
_
+
: t
$
, then there exist
$
n
_
o
$
and
$
t'
$
such that
$
\Gamma\vdashA
e
_
+
: t'
$
.
More precisely:
$
\forall
\Gamma
, e
_
+
, t.
\ \Gamma
\vdash
e
_
+
:t
\Rightarrow
\exists
t'.
\ \Gamma
\vdashA
e
_
+
: t'
$
\end{theorem}
\end{theorem}
\begin{proof}
\begin{proof}
...
...
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