lean4-htt/tests/elab/indUsingLet.lean
Garmelon 08eb78a5b2
chore: switch to new test/bench suite (#12590)
This PR sets up the new integrated test/bench suite. It then migrates
all benchmarks and some related tests to the new suite. There's also
some documentation and some linting.

For now, a lot of the old tests are left alone so this PR doesn't become
even larger than it already is. Eventually, all tests should be migrated
to the new suite though so there isn't a confusing mix of two systems.
2026-02-25 13:51:53 +00:00

20 lines
488 B
Text

theorem some_induction
{motive : Nat → Prop}
(zero : motive 0)
(succ : forall n, 0 < n → let m := n - 1; motive m → motive n) :
∀ n, motive n
| 0 => zero
| n+1 => succ (n+1) (Nat.zero_lt_succ n) (some_induction zero succ n)
example (n : Nat) : n = n := by
induction n using some_induction
case zero => rfl
case succ n _h _m _IH =>
rfl
example (n : Nat) : n = n := by
induction n using some_induction with
| zero => rfl
| succ n _h _m _IH =>
rfl