lean4-htt/tests/lean/run/diagRec.lean
Joachim Breitner 871c9b4164
test: update test output following stage0 update (#4815)
this is a consequenc of #4807 that only shows up once that change made
it to stage0, it seem.
2024-07-23 21:43:38 +00:00

22 lines
543 B
Text

def fib (n : Nat) :=
match n with
| 0 | 1 => 1
| x+2 => fib x + fib (x+1)
termination_by n
/--
info: 89
---
info: [reduction] unfolded declarations (max: 407, num: 3):
Nat.rec ↦ 407
Or.rec ↦ 144
Acc.rec ↦ 108[reduction] unfolded reducible declarations (max: 352, num: 2):
Nat.casesOn ↦ 352
Or.casesOn ↦ 144use `set_option diagnostics.threshold <num>` to control threshold for reporting counters
-/
#guard_msgs in
set_option diagnostics true in
set_option diagnostics.threshold 100 in
#reduce fib 10