lean4-htt/tests/lean/run/def3.lean
2016-08-13 16:45:32 -07:00

13 lines
224 B
Text

set_option new_elaborator true
definition f (a b : nat) : nat :=
nat.cases_on a
(a + b + a + a + b)
(λ a', a + a + b)
definition g (a b : nat) :=
f (f a b) a
set_option trace.compiler true
vm_eval g (g (f 2 3) 2) 3