Lean Kernel Arena (Preview) / bugs/level-imax-normalization

Test "bugs/level-imax-normalization"

Expected: ✋ reject · Size: 6.0 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 ⏱️ 🧠
gruszka ✋ 1.85 ms 73.9 MB
nano-lean ✋ 0.577 ms 21.9 MB
pestka ✋ 2.24 ms 19.7 MB
con-leche ✋ 3.99 ms 22.3 MB
con-ron ✋ 28.4 ms 41.8 MB
nucleus 🚫 24.2 ms 13.9 MB
official ✋ 42.5 ms 113.7 MB