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

Test "bugs/level-imax-leq"

Expected: ✋ reject · Size: 5.8 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 ⏱️ 🧠
gruszka ✋ 1.85 ms 60.3 MB
nano-lean ✋ 0.573 ms 22.1 MB
pestka ✋ 2.05 ms 14.3 MB
con-leche ✋ 4.00 ms 24.7 MB
con-ron ✋ 28.3 ms 41.6 MB
nucleus 🚫 24.2 ms 13.6 MB
official ✋ 42.5 ms 113.8 MB