lean2/tests/lean/run/679b.lean
2015-06-17 16:26:45 -07:00

22 lines
420 B
Text

import data.finset
open bool nat list finset
definition fset [class] (A : Type) := finset A
definition fin_nat [instance] : fset nat :=
to_finset [0]
definition fin_bool [instance] : fset bool :=
to_finset [tt, ff]
definition tst (A : Type) [s : fset A] : finset A :=
s
example : tst nat = to_finset [0] :=
rfl
example : tst bool = to_finset [ff, tt] :=
dec_trivial
example : tst bool = to_finset [tt, ff] :=
rfl