lean2/tests/lean/run/t6.lean
Leonardo de Moura 43eba857cb feat(frontends/lean): add let-expr pretty printer, reduce default indentation to 2
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-07-09 18:47:10 -07:00

15 lines
361 B
Text

precedence `+` : 65
precedence `++` : 100
variable N : Type.{1}
variable f : N → N → N
variable a : N
check
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)