lean2/tests/lean/nary_overload2.lean

18 lines
366 B
Text
Raw Normal View History

import data.list data.examples.vector
open nat list vector
check [1, 2, 3]
check ([1, 2, 3] : vector nat _)
check ([1, 2, 3] : list nat)
check (#list [1, 2, 3])
check (#vector [1, 2, 3])
example : (#vector [1, 2, 3]) = [1, 2, 3] :=
rfl
example : (#vector [1, 2, 3]) = ([1, 2, 3] : vector nat _) :=
rfl
example : (#list [1, 2, 3]) = ([1, 2, 3] : list nat) :=
rfl