2015-02-14 20:23:54 +00:00
|
|
|
open nat
|
|
|
|
|
|
|
|
structure foo [class] :=
|
|
|
|
(a : nat) (b : nat)
|
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
definition i1 [instance] [priority std.priority.default+1] : foo :=
|
2015-02-14 20:23:54 +00:00
|
|
|
foo.mk 1 1
|
|
|
|
|
|
|
|
definition i2 [instance] : foo :=
|
|
|
|
foo.mk 2 2
|
|
|
|
|
|
|
|
example : foo.a = 1 :=
|
|
|
|
rfl
|
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
definition i3 [instance] [priority std.priority.default+2] : foo :=
|
2015-02-14 20:23:54 +00:00
|
|
|
foo.mk 3 3
|
|
|
|
|
|
|
|
example : foo.a = 3 :=
|
|
|
|
rfl
|