fix(library/init/function): '$' notation should be left-associative

This commit is contained in:
Leonardo de Moura 2016-08-09 16:50:36 -07:00
parent f75de2e950
commit 4e307f906f
3 changed files with 8 additions and 1 deletions

View file

@ -8,7 +8,7 @@ General operations on functions.
prelude
import init.prod init.funext init.logic
notation f ` $ `:1 a:0 := f a
notation f ` $ `:1 a:1 := f a
variables {A : Type} {B : Type} {C : Type} {D : Type} {E : Type}

View file

@ -0,0 +1,5 @@
constant f : nat → nat → nat
constant g : nat → nat
check f $ 1 + g 1 $ g 2 + 2
check f $ g 1 $ (f $ 1 + 1 $ g 2)

View file

@ -0,0 +1,2 @@
f (1 + g 1) (g 2 + 2) :
f (g 1) (f (1 + 1) (g 2)) :