https://gitlab.com/nomadic-labs/mi-cho-coq
Revision bb2ba61451957a452c7830a6bc0fe8b8337bcf64 authored by Raphael Cauderlier on 25 March 2019, 22:21:14 UTC, committed by Raphaël Cauderlier on 22 October 2019, 14:18:31 UTC
We essentially proved forall i,
  typer.type_instruction (untyper.untype_instruction i) A = Return _ i

but this result can only be true if instructions like {FAIL; FAIL} are
forbidden in the typed world (the type inferrer cannot guess the type
of the stack between the two FAILs).

For this reason, we introduced a new boolean flag in the
syntax.instruction inductive that is true iff the instruction is a
sequence whose last element is FAIL.
1 parent d266382
History
Tip revision: bb2ba61451957a452c7830a6bc0fe8b8337bcf64 authored by Raphael Cauderlier on 25 March 2019, 22:21:14 UTC
[typer] Certified Michelson type-checker/type-inferrer
Tip revision: bb2ba61
File Mode Size
doc
scripts
src
.gitignore -rw-r--r-- 276 bytes
.gitlab-ci.yml -rw-r--r-- 667 bytes
LICENSE -rw-r--r-- 1.1 KB
README.org -rw-r--r-- 8.5 KB
_CoqProject -rw-r--r-- 4 bytes
configure -rwxr-xr-x 1.6 KB
mi-cho-coq.opam -rw-r--r-- 850 bytes

README.org

back to top