lean2/tests/lean/sig5.lean
Leonardo de Moura a2d2e36f04 refactor(frontends/lean): remove notation for creating tuples
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-10 09:03:42 -08:00

9 lines
251 B
Text

variable vec : Nat → Type
definition vec_with_len := sig len, vec len
variable n : Nat
variable v : vec n
check pair n v
check (show vec_with_len, from pair n v)
check (let v2 : vec_with_len := pair n v
in v2)
check (pair n v : vec_with_len)