2015-03-03 23:58:50 +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-2] : foo :=
|
2015-03-03 23:58:50 +00:00
|
|
|
foo.mk 1 1
|
|
|
|
|
|
|
|
example : foo.a = 1 :=
|
|
|
|
rfl
|
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
definition i2 [instance] [priority std.priority.default-1] : foo :=
|
2015-03-03 23:58:50 +00:00
|
|
|
foo.mk 2 2
|
|
|
|
|
|
|
|
example : foo.a = 2 :=
|
|
|
|
rfl
|
|
|
|
|
|
|
|
definition i3 [instance] : foo :=
|
|
|
|
foo.mk 3 3
|
|
|
|
|
|
|
|
example : foo.a = 3 :=
|
|
|
|
rfl
|
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
definition i4 [instance] [priority std.priority.default-1] : foo :=
|
2015-03-03 23:58:50 +00:00
|
|
|
foo.mk 4 4
|
|
|
|
|
|
|
|
example : foo.a = 3 :=
|
|
|
|
rfl
|
2015-03-04 00:17:01 +00:00
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
attribute i4 [priority std.priority.default+2]
|
2015-03-04 00:17:01 +00:00
|
|
|
|
|
|
|
example : foo.a = 4 :=
|
|
|
|
rfl
|
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
attribute i1 [priority std.priority.default+3]
|
2015-03-04 00:17:01 +00:00
|
|
|
|
|
|
|
example : foo.a = 1 :=
|
|
|
|
rfl
|
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
attribute i2 [instance] [priority std.priority.default+4]
|
2015-03-04 00:17:01 +00:00
|
|
|
|
|
|
|
example : foo.a = 2 :=
|
|
|
|
rfl
|