lean2/tests/lean/run/priority_test.lean
2015-02-14 12:26:06 -08:00

19 lines
291 B
Text

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