Lean Kernel Arena (Preview) / perf/loop-unfolded-once-bad

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.

Checker Result ⏱️ 🧠
gruszka ✋ 49.9 ms (÷303) 170.9 MB (+37%)
nano-lean ✋ 41.9 ms (÷361) 180.4 MB (+45%)
pestka ✋ 131 ms (÷116) 83.8 MB (-33%)
con-leche ✋ 384 ms (÷39) 41.6 MB (÷3.0)
con-ron ✋ 362 ms (÷42) 96.9 MB (-22%)
nucleus 🚫 879 ms 111.1 MB
official ✋ 15.1 s 124.6 MB