lean2/tests/lean/run/finset1.lean
2015-04-09 15:56:41 -07:00

17 lines
374 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import data.finset
open nat list finset
example : to_finset [1, 3, 1] = to_finset [3, 3, 3, 1] :=
dec_trivial
example : to_finset [1, 2] to_finset [1, 3] = to_finset [3, 2, 1] :=
dec_trivial
example : 1 ∈ to_finset [3, 2, 1] :=
dec_trivial
example : bigsum (to_finset [3, 2, 2]) (λ x, x*x) = 13 :=
rfl
example : bigprod (to_finset [1, 2]) (λ x, x+1) = 6 :=
rfl