Lean Kernel Arena (Preview) / other/proj-of-prop

Test "other/proj-of-prop"

Expected: ✋ reject · Size: 4.1 KB · Lines: 56 · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · 📄 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 ⏱️ 🧠
gruszka ✋ 1.82 ms 84.2 MB
nano-lean ✋ 0.519 ms 19.6 MB
pestka ✋ 2.08 ms 16.9 MB
con-leche ✋ 4.01 ms 23.1 MB
con-ron ✋ 28.4 ms 43.6 MB
nucleus 🚫 24.8 ms 13.7 MB
official ✋ 42.3 ms 114.2 MB