lean4-htt/tests/lean/run/issue10721.lean
Joachim Breitner 1b4360c32a
fix: unfold more auxillary theorems in termination checking (#10733)
This PR unfolds auxillary theorems more aggressively during termination
checking. This fixes #10721.
2025-10-10 11:09:28 +00:00

14 lines
347 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.

module
variable (α : Type)
-- set_option debug.skipKernelTC true
-- set_option pp.proofs true
-- set_option trace.Elab.definition.body true
@[expose] public def foo : (l : List α) → Fin (l.length.succ)
| [] => ⟨0, Nat.zero_lt_succ _⟩
| _ :: xs =>
let r := foo xs
⟨r.succ, by exact r.succ.isLt⟩
termination_by structural l => l