lean4-htt/tests/server_interactive/jumpMutual.lean
Garmelon a3cb39eac9
chore: migrate more tests to new test suite (#12809)
This PR migrates most remaining tests to the new test suite. It also
completes the migration of directories like `tests/lean/run`, meaning
that PRs trying to add tests to those old directories will now fail.
2026-03-06 16:52:01 +00:00

25 lines
581 B
Text

mutual
--^ waitForILeans
def h (x : Nat) : Nat :=
match x with
| 0 => 1
--v textDocument/definition
--v textDocument/definition
| x+1 => f x + r x + h x
--^ textDocument/definition
where
r : Nat → Nat
| 0 => 1
--v textDocument/definition
| x + 1 => r x * h x
--^ textDocument/definition
def f (x : Nat) : Nat :=
let rec g : Nat → Nat
| 0 => 1
--v textDocument/definition
| n+1 => 2 * g n
--v textDocument/definition
g x + h x
--^ textDocument/definition
end