lean2/tests/lean/run/coesec.lean
2014-10-09 07:13:06 -07:00

9 lines
195 B
Text

inductive func (A B : Type) :=
mk : (A → B) → func A B
section
variables {A B : Type}
definition to_function (F : func A B) : A → B :=
func.rec (λf, f) F
coercion to_function
end