Test "perf/app-lam"
Expected: 👍 accept · Size: 1.2 MB · Lines: 28.6 k · lean4export: 3.1.0 · Lean: 4.36.0 · Timeout: 70.0 s · 📄 Declaration · 🔗 Source
A synthetically generated term with n levels of alternating applications and lambdas, with DAG sharing.
At each level, a constant is applied to two identical lambda arguments. The export format records these as a single shared expression (DAG). Each lambda body grows with the nesting depth, referencing all enclosing binders.
This tests two aspects of checker performance:
Infer cache: Since both arguments at each level are the same expression, a checker without an infer cache re-infers the type of each shared subterm, doubling work at every level — O(2ⁿ) total.
Substitution cost: Even with a cache, type-inferring each lambda requires substituting into its body (size O(n)) at each of the n levels, giving O(n²) total. Whether this cost arises depends on the checker's binder representation.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | 👍 | 6.91 ms | (÷704) | 64.1 MB | (÷23) | |
| gruszka | 👍 | 74.0 ms | (÷66) | 128.9 MB | (÷11) | |
| mathgraph | 👍 | 13.3 ms | (÷366) | 52.5 MB | (÷28) | |
| sokonanoda | 👍 | 13.1 ms | (÷373) | 52.3 MB | (÷28) | |
| pestka | 👍 | 188 ms | (÷26) | 143.5 MB | (÷10) | |
| kefir | 👍 | 37.6 ms | (÷130) | 25.7 MB | (÷57) | |
| kefir-wasm | 👍 | 314 ms | (÷15) | 124.2 MB | (÷12) | |
| con-ron | 👍 | 4.78 s | (-2%) | 1.4 GB | (+1%) | |
| con-ron-stream | 👍 | 4.80 s | (-1%) | 1.5 GB | (+3%) | |
| con-agua | 👍 | 6.55 s | (+35%) | 1.1 GB | (-22%) | |
| nanobruijn | 👍 | 32.5 ms | (÷150) | 36.8 MB | (÷40) | |
| nanoda | 👍 | 4.33 s | (-11%) | 2.1 GB | (+45%) | |
| con-leche | 👍 | 3.98 s | (-18%) | 1.2 GB | (-13%) | |
| pestka-wasm | 👍 | 1.91 s | (÷2.6) | 901.1 MB | (-38%) | |
| official-nightly | 👍 | 2.69 s | (-45%) | 1.4 GB | (0%) | |
| eink0rn | 👍 | 54.0 ms | (÷90) | 62.5 MB | (÷23) | |
| official | 👍 | 4.87 s | 1.4 GB | |||
| ind-models | 👍 | 4.93 s | (+1%) | 1.4 GB | (+1%) | |
| kiota | 👍 | 67.1 ms | (÷73) | 182.3 MB | (÷8.0) | |
| tenet | 👍 | 7.17 s | (+47%) | 1.7 GB | (+18%) | |
| tenet-hs | 👍 | 15.7 s | (×3.2) | 3.3 GB | (×2.3) | |
| logos-kernel | 👍 | 117 ms | (÷42) | 139.4 MB | (÷10) | |
| evmlean | 🚫 | 305 ms | 104.0 MB | |||
| mini | ⌛ | — | — | |||
| overfull | ⌛ | — | — | |||
| lean4lean | 👍 | 4.87 s | (0%) | 1.4 GB | (0%) | |
| lean4cobol | ⌛ | — | — | |||
| tenet-jvm | 👍 | 11.7 s | (×2.4) | 2.8 GB | (+94%) | |
| nanoclo | 👍 | 12.5 ms | (÷390) | 83.3 MB | (÷17) | |
| vow-lean-kernel | 👍 | 1.41 s | (÷3.4) | 36.4 MB | (÷40) | |
| canonical-min | ✋ | 464 ms | 1.0 GB | |||
| lazylean | 👍 | 2.36 s | (÷2.1) | 77.7 MB | (÷19) | |
| rpylean | 👍 | 16.8 ms | (÷289) | 38.2 MB | (÷38) | |
| metalean-slow | 🚫 | 148 ms | 69.8 MB | |||
| metalean-fast | 👍 | 12.5 s | (×2.6) | 2.0 GB | (+42%) | |
| nanoclo-fortran | 👍 | 53.3 ms | (÷91) | 34.8 MB | (÷42) |