lean4-htt/tests/lean/run/match_convoy2.lean
2016-09-20 08:32:37 -07:00

12 lines
302 B
Text

inductive vec (A : Type) : nat → Type
| nil {} : vec nat.zero
| cons : ∀ {n}, A → vec n → vec (nat.succ n)
open vec
definition boo (n : nat) (v : vec bool n) : vec bool n :=
match n, v : ∀ (n : _), vec bool n → _ with
| 0, nil := nil
| n+1, cons a v := cons (bool.bnot a) v
end