lean4-htt/tests/lean/run/priority_test.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

22 lines
345 B
Text

open nat
structure [class] foo :=
(a : nat) (b : nat)
attribute [instance, priority std.priority.default+1]
definition i1 : foo :=
foo.mk 1 1
attribute [instance]
definition i2 : foo :=
foo.mk 2 2
example : foo.a = 1 :=
rfl
attribute [instance, priority std.priority.default+2]
definition i3 : foo :=
foo.mk 3 3
example : foo.a = 3 :=
rfl