Test "perf/folded-constant-last"
Expected: 👍 accept · Size: 51.0 KB · Lines: 1.3 k · lean4export: 3.1.0 · Lean: 4.36.0 · Timeout: 40.0 s · 📄 Declaration · 🔗 Source
The declaration to check compares
tagged (count #n) and (count #n, false)
where tagged m = (m, isZero m): folded-constant-first.lean with the
components swapped, so the plain occurrences of count #n are compared
before anything forces the application.
N=1000 in the Lean source. From Courant and Leroy, POPL 2026, §10.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | 👍 | 1.84 ms | (÷24) | 37.5 MB | (÷2.5) | |
| gruszka | 👍 | 3.72 ms | (÷12) | 105.0 MB | (+11%) | |
| mathgraph | 👍 | 2.82 ms | (÷16) | 36.3 MB | (÷2.6) | |
| sokonanoda | 👍 | 2.66 ms | (÷17) | 36.2 MB | (÷2.6) | |
| pestka | 👍 | 5.96 ms | (÷7.6) | 23.2 MB | (÷4.1) | |
| kefir | 👍 | 3.22 ms | (÷14) | 8.9 MB | (÷11) | |
| kefir-wasm | 👍 | 185 ms | (×4.1) | 96.1 MB | (+1%) | |
| con-ron | 👍 | 34.9 ms | (-22%) | 41.2 MB | (÷2.3) | |
| con-ron-stream | 👍 | 35.5 ms | (-21%) | 48.7 MB | (-49%) | |
| con-agua | 👍 | 26.8 ms | (-40%) | 18.2 MB | (÷5.2) | |
| nanobruijn | 👍 | 7.02 ms | (÷6.4) | 15.5 MB | (÷6.1) | |
| nanoda | 👍 | 6.84 ms | (÷6.6) | 4.4 MB | (÷22) | |
| con-leche | 👍 | 12.5 ms | (÷3.6) | 25.9 MB | (÷3.7) | |
| pestka-wasm | 👍 | 550 ms | (×12) | 331.3 MB | (×3.5) | |
| official-nightly | 👍 | 44.0 ms | (-2%) | 99.7 MB | (+5%) | |
| eink0rn | 👍 | 5.76 ms | (÷7.8) | 18.2 MB | (÷5.2) | |
| official | 👍 | 45.0 ms | 94.8 MB | |||
| ind-models | 👍 | 121 ms | (×2.7) | 113.5 MB | (+20%) | |
| kiota | 👍 | 7.26 ms | (÷6.2) | 16.4 MB | (÷5.8) | |
| tenet | 👍 | 163 ms | (×3.6) | 50.8 MB | (-46%) | |
| tenet-hs | 👍 | 12.6 ms | (÷3.6) | 30.7 MB | (÷3.1) | |
| logos-kernel | 👍 | 2.24 ms | (÷20) | 7.1 MB | (÷13) | |
| evmlean | 🚫 | 2.82 s | 284.1 MB | |||
| mini | ⌛ | — | — | |||
| overfull | ⌛ | — | — | |||
| lean4lean | 👍 | 47.9 ms | (+7%) | 92.6 MB | (-2%) | |
| lean4cobol | 👍 | 182 ms | (×4.0) | 27.7 MB | (÷3.4) | |
| tenet-jvm | 👍 | 275 ms | (×6.1) | 87.2 MB | (-8%) | |
| nanoclo | 👍 | 3.73 ms | (÷12) | 58.4 MB | (-38%) | |
| vow-lean-kernel | 🚫 | 249 ms | 18.9 MB | |||
| canonical-min | 🚫 | 390 ms | 1.0 GB | |||
| lazylean | 👍 | 4.84 ms | (÷9.3) | 26.6 MB | (÷3.6) | |
| rpylean | 👍 | 1.79 ms | (÷25) | 13.2 MB | (÷7.2) | |
| metalean-slow | 👍 | 859 ms | (×19) | 758.6 MB | (×8.0) | |
| metalean-fast | 👍 | 51.6 ms | (+15%) | 80.1 MB | (-15%) | |
| nanoclo-fortran | 👍 | 9.33 ms | (÷4.8) | 7.8 MB | (÷12) |