Lean Kernel Arena / perf/discarded-argument

Test "perf/discarded-argument"

Expected: 👍 accept · Size: 15.9 KB · Lines: 367 · lean4export: 3.1.0 · Lean: 4.36.0 · Timeout: 40.0 s · 📄 Declaration · 🔗 Source

The declaration to check compares

dropArg (count #n)      and      dropArg (count #(n+1))

where count #k evaluates to the numeral #k in Θ(k²) reductions, and dropArg maps every numeral to N.O.

Unfolding dropArg leaves N.O against N.O, for Θ(1). Comparing the arguments first evaluates two numerals of different value, for Θ(n²), and then throws that answer away. The test asks whether a checker unfolds a constant before looking at an argument the constant never uses.

N=200 in the Lean source. From Courant and Leroy, POPL 2026, §10.

Checker Result ⏱️ 🧠
nano-lean 👍 0.609 ms (÷278) 23.9 MB (÷3.8)
gruszka 👍 2.17 ms (÷78) 94.2 MB (+3%)
mathgraph 👍 0.931 ms (÷182) 29.7 MB (÷3.1)
sokonanoda 👍 0.843 ms (÷201) 29.5 MB (÷3.1)
pestka 👍 2.27 ms (÷74) 19.1 MB (÷4.8)
kefir 👍 0.798 ms (÷212) 6.6 MB (÷14)
kefir-wasm 👍 114 ms (-33%) 83.8 MB (-9%)
con-ron 👍 33.7 ms (÷5.0) 43.9 MB (÷2.1)
con-ron-stream 👍 34.3 ms (÷4.9) 45.5 MB (÷2.0)
con-agua 👍 25.2 ms (÷6.7) 16.2 MB (÷5.7)
nanobruijn 👍 9.06 ms (÷19) 12.2 MB (÷7.5)
nanoda 👍 9.62 ms (÷18) 3.4 MB (÷27)
con-leche 👍 12.6 ms (÷13) 25.2 MB (÷3.6)
pestka-wasm 👍 516 ms (×3.0) 313.9 MB (×3.4)
official-nightly 👍 144 ms (-15%) 96.9 MB (+6%)
eink0rn 👍 89.7 ms (-47%) 48.7 MB (-47%)
official 👍 169 ms 91.6 MB
ind-models 👍 240 ms (+42%) 108.8 MB (+19%)
kiota 👍 3.55 ms (÷48) 15.5 MB (÷5.9)
tenet 👍 158 ms (-7%) 49.1 MB (-46%)
tenet-hs 👍 10.2 ms (÷17) 24.8 MB (÷3.7)
logos-kernel 👍 0.517 ms (÷327) 4.3 MB (÷21)
evmlean 🚫 1.83 s 275.5 MB
mini 👍 37.1 ms (÷4.6) 65.8 MB (-28%)
overfull ⌛ — —
lean4lean 👍 1.20 s (×7.1) 89.4 MB (-2%)
lean4cobol 👍 3.80 s (×22) 16.6 MB (÷5.5)
tenet-jvm 👍 235 ms (+39%) 85.8 MB (-6%)
nanoclo 👍 2.16 ms (÷78) 43.7 MB (÷2.1)
vow-lean-kernel 👍 11.0 s (×65) 15.2 MB (÷6.0)
canonical-min 🚫 388 ms 1.0 GB
lazylean 👍 9.90 ms (÷17) 24.7 MB (÷3.7)
rpylean 👍 1.58 ms (÷107) 10.2 MB (÷9.0)
metalean-slow 👍 52.3 ms (÷3.2) 64.2 MB (-30%)
metalean-fast 👍 205 ms (+21%) 72.8 MB (-21%)
nanoclo-fortran 👍 3.77 ms (÷45) 4.8 MB (÷19)