Test "bugs/level-imax-normalization"
Expected: ✋ reject · Size: 5.8 KB · Lines: 96 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 Declaration
Proof of False via incorrect universe level normalization for imax.
A correct kernel must distinguish imax 0 v from succ(imax 0 v), since at v=0 these
evaluate to 0 and 1 respectively. However, a level normalization algorithm that drops an
accumulated successor offset when decomposing imax u (param v) will produce identical normal
forms for both, causing the equivalence check to incorrectly return true.
This allows defining a universe-collapsing identity function
down.{v} : Sort (succ (imax 0 v)) → Sort (imax 0 v), and then
myProp : Prop := down.{0} Bool (a Prop that is computationally Bool). Proof irrelevance on
myProp equates Bool.true and Bool.false, and Bool.rec maps this into False.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 0.575 ms | 19.9 MB | |||
| gruszka | ✋ | 1.86 ms | 83.9 MB | |||
| mathgraph | ✋ | 0.941 ms | 27.9 MB | |||
| sokonanoda | ✋ | 0.836 ms | 27.8 MB | |||
| pestka | ✋ | 2.16 ms | 16.5 MB | |||
| kefir | ✋ | 0.626 ms | 6.2 MB | |||
| kefir-wasm | ✋ | 114 ms | 84.2 MB | |||
| con-ron | ✋ | 29.0 ms | 43.6 MB | |||
| con-ron-stream | ✋ | 29.5 ms | 47.0 MB | |||
| con-agua | ✋ | 20.2 ms | 12.0 MB | |||
| nanobruijn | ✋ | 0.657 ms | 5.2 MB | |||
| nanoda | ✋ | 0.617 ms | 3.4 MB | |||
| con-leche | ✋ | 4.04 ms | 22.8 MB | |||
| pestka-wasm | ✋ | 514 ms | 311.8 MB | |||
| official-nightly | ✋ | 33.6 ms | 108.5 MB | |||
| eink0rn | ✋ | 1.56 ms | 11.9 MB | |||
| official | ✋ | 32.4 ms | 102.3 MB | |||
| ind-models | ✋ | 100 ms | 104.2 MB | |||
| kiota | ✋ | 0.731 ms | 11.2 MB | |||
| tenet | ✋ | 139 ms | 45.6 MB | |||
| tenet-hs | ✋ | 1.28 ms | 8.6 MB | |||
| logos-kernel | ✋ | 0.443 ms | 4.6 MB | |||
| evmlean | ✋ | 1.20 s | 273.8 MB | |||
| mini | ✋ | 34.2 ms | 74.7 MB | |||
| overfull | ✋ | 10.7 s | 46.1 MB | |||
| lean4lean | ✋ | 81.3 ms | 96.2 MB | |||
| lean4cobol | ✋ | 3.18 ms | 13.6 MB | |||
| tenet-jvm | ✋ | 122 ms | 77.5 MB | |||
| nanoclo | ✋ | 0.748 ms | 41.4 MB | |||
| vow-lean-kernel | ✋ | 150 ms | 14.4 MB | |||
| canonical-min | ✋ | 387 ms | 1.1 GB | |||
| lazylean | ✋ | 1.18 ms | 21.2 MB | |||
| rpylean | ✋ | 0.923 ms | 10.0 MB | |||
| metalean-slow | ✋ | 30.1 ms | 71.5 MB | |||
| metalean-fast | ✋ | 30.2 ms | 69.9 MB | |||
| nanoclo-fortran | ✋ | 0.891 ms | 4.5 MB |