lean4-htt/tests/lean/run/lift_nested_rec.lean

12 lines
272 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

set_option new_elaborator true
definition f : nat → (nat × nat) → nat
| 0 m := m.1
| (n+1) m :=
match m with
| (a, b) := (f n (b, a + 1)) + (f n (a, b))
end
check @f._main.equations.eqn_1
check @f._main.equations.eqn_2
check @f._match_1.equations.eqn_1