lean2/tests/lean/run/t6.lean
Leonardo de Moura 5ce0502a36 feat(frontends/lean/builtin_exprs): add parser for 'let' expressions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-16 09:50:34 -07:00

15 lines
365 B
Text

precedence `+` : 65
precedence `++` : 100
variable N : Type.{1}
variable f : N → N → N
variable a : N
print raw
let g x y := f x y,
infix + := g,
b : N := a+a,
c := b+a,
h (x : N) := x+x,
postfix ++ := h,
d := c++,
r (x : N) : N := x++++
in f b (r c)