lean2/tests/lean/run/finset_coe.lean

11 lines
203 B
Text
Raw Normal View History

import data.finset data.set
open finset set
definition to_set [coercion] {A : Type} (s : finset A) : set A := λ a, a ∈ s
constant P {A : Type} (s : set A) : Prop
variable s : finset nat
check P s