lean4-htt/tests/lean/cdotTuple.lean
Leonardo de Moura 8b17d4e2d6 feat: cdot notation for tuples
They are morally a parenthesized term.
2020-12-28 18:08:23 -08:00

11 lines
188 B
Text

#eval [1, 2, 3].map (·, 1)
#eval (·, ·) 1 2
#eval (., ., .) 1 2 3
theorem ex1 : [1, 2, 3].map (·, 1) = [(1, 1), (2, 1), (3, 1)] :=
rfl
theorem ex2 : (., .) 1 2 = (1, 2) :=
rfl