Test "perf/loop-unfolded-once-bad"
Expected: ✋ reject · Size: 4.1 MB · Lines: 84.9 k · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · Timeout: 2.00 min · 📄 Declaration · 🔗 Source
loop-unfolded-once with a different test on the right:
allInK 0 N (fun i => g w i)
decide (Nat.allTR (N - 0) (fun k _ => (fun i => g w (i + 1)) (0 + k)) = true)
with N = 300, must be rejected: the right side tests the points
1 … N instead of 0 … N - 1. After the cheap steps the loop bodies
differ under a binder, which refutes nothing by itself, and checkers then
unfold the loop. N is small because official (v4.36.0) refuted in time
roughly cubic in N: about 7 s here, and more than 5 minutes for N = 1000.