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

10 lines
243 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.

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