Test "bugs/level-imax-leq"
Expected: ✋ reject · Size: 5.6 KB · Lines: 93 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 Declaration
Proof of False via incorrect universe level comparison for imax.
A correct kernel must reject leq(imax(u,v)+1, imax(u,v)), since at u=0, v=0 this becomes
leq(1, 0) which is false. However, a checker that only compares the imax arguments
structurally (without accounting for an accumulated successor offset) will incorrectly accept it.
This allows defining a universe-collapsing identity function
down.{u,v} : Sort (succ (imax u v)) → Sort (imax u v), which is used to cast between
True and False via Bool.rec at Sort (imax 0 0) = Prop.
Nanoda incorrectly accepted this proof until it was fixed.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 0.572 ms | 19.8 MB | |||
| gruszka | ✋ | 1.83 ms | 56.0 MB | |||
| mathgraph | ✋ | 0.772 ms | 19.7 MB | |||
| sokonanoda | ✋ | 0.836 ms | 27.8 MB | |||
| pestka | ✋ | 2.05 ms | 14.1 MB | |||
| kefir | ✋ | 0.431 ms | 5.7 MB | |||
| kefir-wasm | ✋ | 102 ms | 82.4 MB | |||
| con-ron | ✋ | 28.5 ms | 41.7 MB | |||
| con-ron-stream | ✋ | 28.9 ms | 45.3 MB | |||
| con-agua | ✋ | 19.8 ms | 9.9 MB | |||
| nanobruijn | ✋ | 0.693 ms | 5.5 MB | |||
| nanoda | ✋ | 0.653 ms | 3.1 MB | |||
| con-leche | ✋ | 3.81 ms | 22.8 MB | |||
| pestka-wasm | ✋ | 509 ms | 311.1 MB | |||
| official-nightly | ✋ | 33.5 ms | 108.4 MB | |||
| eink0rn | ✋ | 1.43 ms | 11.4 MB | |||
| official | ✋ | 32.3 ms | 102.1 MB | |||
| ind-models | ✋ | 100 ms | 104.2 MB | |||
| kiota | ✋ | 0.730 ms | 11.2 MB | |||
| tenet | ✋ | 138 ms | 45.4 MB | |||
| tenet-hs | ✋ | 1.28 ms | 8.5 MB | |||
| logos-kernel | ✋ | 0.415 ms | 3.5 MB | |||
| evmlean | ✋ | 1.20 s | 273.8 MB | |||
| mini | ✋ | 34.2 ms | 74.3 MB | |||
| overfull | ✋ | 9.62 s | 46.0 MB | |||
| lean4lean | ✋ | 75.3 ms | 96.2 MB | |||
| lean4cobol | ✋ | 3.13 ms | 13.5 MB | |||
| tenet-jvm | ✋ | 107 ms | 76.2 MB | |||
| nanoclo | ✋ | 0.772 ms | 45.6 MB | |||
| vow-lean-kernel | ✋ | 150 ms | 14.2 MB | |||
| canonical-min | ✋ | 387 ms | 1.1 GB | |||
| lazylean | ✋ | 1.13 ms | 21.2 MB | |||
| rpylean | ✋ | 0.929 ms | 9.8 MB | |||
| metalean-slow | ✋ | 30.1 ms | 71.4 MB | |||
| metalean-fast | ✋ | 30.2 ms | 69.6 MB | |||
| nanoclo-fortran | ✋ | 0.810 ms | 4.4 MB |