lean2/tests/lean/let4.lean
Leonardo de Moura 364bba2129 feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 17:26:36 -07:00

17 lines
282 B
Text

import data.num
variable f : num → num → num → num
check
let a := 10,
b := 10,
c := 10
in f a b (f a 10 c)
check
let a := 10,
b := let c := 10 in f a c (f a a (f 10 a c)),
d := 10,
e := f (f 10 10 d) (f d 10 10) a
in f a b (f e d 10)