lean2/tests/lean/notation7.lean
Leonardo de Moura b5e0ded163 feat(frontends/lean): max precedence used by Lean is not max_uint anymore
The motivation is to allow users to define notation with higher
precedence than function application.
2014-11-07 07:57:11 -08:00

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