Lean Kernel Arena (Preview) / perf/refute-cheap-first

Test "perf/refute-cheap-first"

Expected: ✋ reject · Size: 21.0 KB · Lines: 439 · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · Timeout: 40.0 s · 📄 Declaration · 🔗 Source

The declaration to check claims

(false, count #n) = (true, count #(n+1))

and must be rejected. Both sides are constructor applications, so comparing components is the only route, and either component refutes on its own: false against true for Θ(1), the numerals for Θ(n²) (count #k evaluates to #k in Θ(k²) reductions). The test asks in which order a checker visits the components. refute-cheap-last.lean swaps them, and the ratio between the two files is what that order costs.

N=200 in the Lean source. From Courant and Leroy, POPL 2026, §10, where the two orders cost Rocq 4 × 10⁻⁶ s and 0.61 s.

Checker Result ⏱️ 🧠
gruszka ✋ 2.23 ms (÷23) 96.3 MB (-16%)
nano-lean ✋ 0.657 ms (÷77) 21.9 MB (÷5.2)
pestka ✋ 2.39 ms (÷21) 19.3 MB (÷5.9)
con-leche ✋ 4.58 ms (÷11) 25.0 MB (÷4.6)
con-ron ✋ 28.8 ms (-43%) 41.5 MB (÷2.8)
nucleus 🚫 5.33 s 13.8 MB
official ✋ 50.5 ms 114.5 MB