Lean Kernel Arena / other/proj-of-prop

Test "other/proj-of-prop"

Expected: ✋ reject · Size: 3.9 KB · Lines: 56 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source

A proof of False via a projection from a Prop-typed structure whose constructor was applied to an ill-typed argument. The exported term is

badFalse : False := (Wrapper.mk True.intro).p

where Wrapper : Prop has a single field p : False, so Wrapper.mk expects a proof of False but is given True.intro : True.

A sound checker must reject this. A checker that types a projection by inferring (rather than checking) its structure argument — i.e. that trusts the structure to be well-typed instead of verifying the constructor's argument types against its binders — will accept it, because Wrapper.mk True.intro still formally inhabits Wrapper at the structural level, and the p projection is then read back out at the declared field type False.

Checker Result ⏱️ 🧠
nano-lean ✋ 0.511 ms 20.0 MB
gruszka ✋ 1.81 ms 86.0 MB
mathgraph ✋ 0.901 ms 27.9 MB
sokonanoda ✋ 0.798 ms 27.9 MB
pestka ✋ 2.07 ms 16.5 MB
kefir ✋ 0.556 ms 6.1 MB
kefir-wasm ✋ 121 ms 84.2 MB
con-ron ✋ 29.1 ms 41.6 MB
con-ron-stream ✋ 29.6 ms 45.1 MB
con-agua ✋ 20.2 ms 12.1 MB
nanobruijn ✋ 0.605 ms 5.4 MB
nanoda ✋ 0.561 ms 3.2 MB
con-leche ✋ 4.07 ms 23.2 MB
pestka-wasm ✋ 514 ms 312.6 MB
official-nightly ✋ 33.4 ms 108.8 MB
eink0rn ✋ 1.50 ms 11.5 MB
official ✋ 32.2 ms 93.5 MB
ind-models ✋ 100 ms 95.9 MB
kiota ✋ 0.694 ms 11.2 MB
tenet ✋ 137 ms 45.1 MB
tenet-hs ✋ 1.20 ms 8.3 MB
logos-kernel ✋ 0.427 ms 4.2 MB
evmlean ✋ 1.15 s 274.7 MB
mini ✋ 34.1 ms 75.1 MB
overfull ✋ 7.07 s 45.8 MB
lean4lean ✋ 30.1 ms 90.0 MB
lean4cobol ✋ 2.70 ms 13.2 MB
tenet-jvm ✋ 113 ms 77.0 MB
nanoclo ✋ 0.698 ms 49.4 MB
vow-lean-kernel 🚫 149 ms 14.4 MB
canonical-min 🚫 386 ms 1.1 GB
lazylean ✋ 1.12 ms 21.2 MB
rpylean ✋ 0.879 ms 9.8 MB
metalean-slow ✋ 30.0 ms 66.4 MB
metalean-fast ✋ 29.9 ms 60.5 MB
nanoclo-fortran ✋ 0.801 ms 4.1 MB