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.
15 lines
292 B
Text
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
|