Test "bugs/proj-of-imax-prop"
Expected: ✋ reject · Size: 19.3 KB · Lines: 321 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 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 in the official kernel.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 0.668 ms | 22.2 MB | |||
| gruszka | ✋ | 1.96 ms | 94.0 MB | |||
| mathgraph | ✋ | 1.31 ms | 29.9 MB | |||
| sokonanoda | ✋ | 1.06 ms | 29.7 MB | |||
| pestka | ✋ | 2.49 ms | 18.7 MB | |||
| kefir | ✋ | 1.01 ms | 6.4 MB | |||
| kefir-wasm | ✋ | 126 ms | 87.7 MB | |||
| con-ron | ✋ | 29.2 ms | 39.5 MB | |||
| con-ron-stream | ✋ | 29.9 ms | 45.2 MB | |||
| con-agua | ✋ | 20.5 ms | 13.2 MB | |||
| nanobruijn | ✋ | 1.50 ms | 11.8 MB | |||
| nanoda | ✋ | 1.04 ms | 3.2 MB | |||
| con-leche | ✋ | 4.47 ms | 25.3 MB | |||
| pestka-wasm | ✋ | 516 ms | 313.6 MB | |||
| official-nightly | ✋ | 34.4 ms | 108.8 MB | |||
| eink0rn | ✋ | 2.16 ms | 13.0 MB | |||
| official | ✋ | 33.3 ms | 93.4 MB | |||
| ind-models | ✋ | 101 ms | 98.5 MB | |||
| kiota | ✋ | 1.25 ms | 11.2 MB | |||
| tenet | ✋ | 143 ms | 46.1 MB | |||
| tenet-hs | ✋ | 1.95 ms | 10.1 MB | |||
| logos-kernel | ✋ | 0.510 ms | 4.8 MB | |||
| evmlean | ✋ | 2.09 s | 275.8 MB | |||
| mini | 🚫 | 34.4 ms | 74.7 MB | |||
| overfull | ✋ | 45.2 s | 47.4 MB | |||
| lean4lean | ✋ | 31.1 ms | 90.6 MB | |||
| lean4cobol | ✋ | 9.59 ms | 13.7 MB | |||
| tenet-jvm | ✋ | 126 ms | 77.0 MB | |||
| nanoclo | ✋ | 0.998 ms | 49.6 MB | |||
| vow-lean-kernel | ✋ | 180 ms | 14.5 MB | |||
| canonical-min | 🚫 | 387 ms | 1.1 GB | |||
| lazylean | ✋ | 1.33 ms | 21.2 MB | |||
| rpylean | ✋ | 1.02 ms | 11.3 MB | |||
| metalean-slow | ✋ | 32.2 ms | 68.4 MB | |||
| metalean-fast | ✋ | 31.7 ms | 68.6 MB | |||
| nanoclo-fortran | ✋ | 1.51 ms | 4.6 MB |