Test "other/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.8 MB | |||
| sokonanoda | ✋ | 1 ms | 33.6 MB | |||
| nanoclo | ✋ | 1 ms | 45.6 MB | |||
| con-ron | ✋ | 23 ms | 58.8 MB | |||
| lazylean | ✋ | 1 ms | 21.3 MB | |||
| nanoda | ✋ | 1 ms | 3.2 MB | |||
| nanobruijn | ✋ | 1 ms | 3.6 MB | |||
| con-leche | ✋ | 4 ms | 20.2 MB | |||
| eink0rn | ✋ | 2 ms | 11.7 MB | |||
| ind-models | ✋ | 58 ms | 106.0 MB | |||
| official | ✋ | 28 ms | 66.7 MB | |||
| lean4lean | ✋ | 28 ms | 97.2 MB | |||
| tenet | ✋ | 133 ms | 44.0 MB | |||
| nanoclo-fortran | ✋ | 1 ms | 4.2 MB | |||
| lean4cobol | ✋ | 3 ms | 13.5 MB | |||
| evmlean | ✋ | 640 ms | 131.7 MB | |||
| mini | ✋ | 34 ms | 73.6 MB | |||
| overfull | ✋ | 7.1 s | 45.9 MB | |||
| kiota | ✋ | 1 ms | 6.9 MB | |||
| canonical-min | 🚫 | 387 ms | 1.1 GB | |||
| rpylean | ✋ | 0 ms | 4.2 MB | |||
| vow-lean-kernel | 🚫 | 78 ms | 8.3 MB | |||
| official-v4.28.0 | ✋ | 34 ms | 75.1 MB | |||
| still-nanoda | ✋ | 1 ms | 3.2 MB | |||
| nyaya | ✋ | 2 ms | 9.0 MB | |||
| parse-only | 👍 | 27 ms | 65.9 MB |