lean4-htt/tests/lean/coe6.lean
Leonardo de Moura 8993d0738a feat(frontends/lean): remove #elab command
The check command is now using the new elaborator.
2016-08-02 15:05:24 -07:00

10 lines
285 B
Text

structure Group :=
(carrier : Type) (mul : carrier → carrier → carrier) (one : carrier)
definition Group_to_Type [instance] : has_coe_to_sort Group :=
has_coe_to_sort.mk Type Group.carrier
constant g : Group.{1}
set_option pp.binder_types true
check λ a b : g, Group.mul g a b