lean4-htt/tests/lean/run/section5.lean
Daniel Selsam a9b01991c2 feat(frontends/lean/inductive_cmd): new frontend for the inductive cmd
Conflicts:
	src/frontends/lean/CMakeLists.txt
	src/frontends/lean/structure_cmd.h
2016-08-17 07:34:03 -07:00

19 lines
264 B
Text

section foo
parameter A : Type
variable a : A
definition foo := a
check foo
structure [class] point :=
(x : A) (y : A)
end foo
check foo
attribute [instance]
definition point_nat : point nat :=
point.mk nat.zero nat.zero
print classes
check point