b5e0ded163
The motivation is to allow users to define notation with higher precedence than function application.
13 lines
211 B
Text
13 lines
211 B
Text
import logic
|
|
open num
|
|
|
|
constant f : num → num
|
|
constant g : num → num → num
|
|
|
|
notation A `:+1`:100000 := f A
|
|
|
|
check g 0:+1:+1 (1:+1 + 2:+1):+1
|
|
|
|
set_option pp.notation false
|
|
|
|
check g 0:+1:+1 (1:+1 + 2:+1):+1
|