lean4-htt/tests/lean/run/issue12268.lean
Joachim Breitner c27ea08450
fix: set isRecursive only after adding the declaration (#12269)
This PR refines upon #12106, by setting the `isRecursive` env extension
after adding the declaration, but before processing attributes like
`macro_inline` that want to look at the flag. Fixes #12268.
2026-02-02 17:13:08 +00:00

15 lines
292 B
Text

theorem foo : True := by
let rec f (n : Nat) : Nat :=
match n with
| .zero => 0
| .succ n => f n
termination_by structural n
trivial
theorem bar : True := by
let rec f (n : Nat) : Nat :=
match n with
| .zero => 0
| .succ n => f n
termination_by n
trivial