2015-06-30 23:58:08 +00:00
|
|
|
constant f : nat → nat → nat
|
|
|
|
constant g : nat → nat → nat
|
|
|
|
|
|
|
|
|
|
|
|
infix [priority 10] + := f
|
|
|
|
infix [priority 20] + := g
|
|
|
|
|
|
|
|
variables a b : nat
|
|
|
|
|
|
|
|
example : a + b = g a b := rfl
|
|
|
|
infix [priority 5] + := g
|
|
|
|
example : a + b = f a b := rfl
|
|
|
|
infix [priority 15] + := g
|
|
|
|
example : a + b = g a b := rfl
|
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
infix [priority std.priority.default+1] + := f
|
2015-06-30 23:58:08 +00:00
|
|
|
infix + := g
|
|
|
|
example : a + b = f a b := rfl
|
2015-08-12 01:01:40 +00:00
|
|
|
infix [priority std.priority.default+2] + := g
|
2015-06-30 23:58:08 +00:00
|
|
|
example : a + b = g a b := rfl
|
|
|
|
|
|
|
|
infix + := f
|
|
|
|
infix + := g
|
|
|
|
example : a + b = f a b := rfl
|
|
|
|
|
2015-08-12 01:01:40 +00:00
|
|
|
infix [priority std.priority.default+1] + := g
|
2015-06-30 23:58:08 +00:00
|
|
|
example : a + b = g a b := rfl
|