lean2/tests/lean/sig5.lean
Leonardo de Moura 96c9c7505a test(tests/lean): add another sigma-type test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-04 10:12:39 -08:00

9 lines
255 B
Text

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