Lean Kernel Arena (Preview) / bugs/proj-of-imax-prop

Test "bugs/proj-of-imax-prop"

Expected: ✋ reject · Size: 19.1 KB · Lines: 312 · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · 📄 Declaration · 🔗 Source

A closed proof of False, with no axioms, via a data projection out of a proposition whose sort is Prop only up to universe level normalization.

ImaxProp : Sort (imax 1 0) is a proposition, since imax 1 0 normalizes to 0. The exploit uses two definitionally equal spellings of that type. Proof irrelevance is stated through ImaxAsProp : Prop := ImaxProp, whose type is the literal Sort 0, so it is accepted; the data projection imaxProjBool is stated on ImaxProp, whose type is the literal Sort (imax 1 0). A kernel that tests sorts for Prop syntactically does not recognize the latter as a proposition and wrongly allows projecting its Bool field out of a proof. Congruence on the proof-irrelevance equation then equates false and true, giving False.

This is https://github.com/leanprover/lean4/pull/14613, a bug that the official kernel had.

Checker Result ⏱️ 🧠
gruszka ✋ 1.97 ms 92.2 MB
nano-lean ✋ 0.651 ms 23.8 MB
pestka ✋ 2.47 ms 16.9 MB
con-leche ✋ 4.39 ms 25.1 MB
con-ron ✋ 28.7 ms 41.7 MB
nucleus 🚫 27.4 ms 13.6 MB
official ✋ 43.3 ms 114.1 MB