lean4-htt/tests/lean/run/priority_test.lean
Sebastian Ullrich 8bbcbb14cf chore(library, tests): use new attribute chaining syntax
sed -E -i 's/(attribute(\s*(\w|\.)+)* \[[^]]+)\] \[/\1, /' {library,tests}/**/*.lean  # repeat as needed
2016-08-16 13:49:03 -07:00

22 lines
345 B
Text

open nat
structure foo [class] :=
(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