Test "proj-of-prop"
Expected: ✋ reject · Size: 3.9 KB · Lines: 56 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 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 | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| mathgraph | ✋ | 1 ms | 33.7 MB | |||
| nanoda | ✋ | 1 ms | 3.2 MB | |||
| nanobruijn | ✋ | 1 ms | 3.6 MB | |||
| ind-models | ✋ | 58 ms | 105.3 MB | |||
| official | ✋ | 28 ms | 66.7 MB | |||
| lean4lean | ✋ | 28 ms | 95.8 MB | |||
| evmlean | ✋ | 638 ms | 132.9 MB | |||
| mini | ✋ | 34 ms | 75.1 MB | |||
| sokonanoda | ✋ | 1 ms | 34.0 MB | |||
| nanoclo | ✋ | 1 ms | 47.6 MB | |||
| zignodamus | ✋ | 0 ms | 4.2 MB | |||
| vow-lean-kernel | 🚫 | 78 ms | 8.2 MB | |||
| official-v4.28.0 | ✋ | 34 ms | 74.3 MB | |||
| still-nanoda | ✋ | 1 ms | 3.1 MB | |||
| kiota | ✋ | 1 ms | 6.8 MB | |||
| rpylean | ✋ | 1 ms | 8.1 MB | |||
| nyaya | ✋ | 2 ms | 9.4 MB | |||
| parse-only | 👍 | 27 ms | 64.9 MB |