Test "other/orphan-ctor"
Expected: ✋ reject · Size: 1.4 KB · Lines: 22 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 Declaration
Proof of False from a constructor of an inductive type that does not exist.
The export contains False exactly as the prelude has it — an empty
Prop-valued inductive with no constructors, its ctors field is the empty
list — together with its ordinary False.rec. Smuggled into the same
inductive block is a constructor named rogue, of type False, with no
parameters and no fields, whose induct field names Orphan, a name for
which the export has no declaration at all. The theorem inconsistent : False
is then simply rogue.
A checker must derive the constructors of an inductive group from the
inductive declarations and reject any exported constructor that is not one of
them; here that fails because False has no constructors, and the inductive
type rogue claims to come from does not exist. A checker that instead
registers exported constructors as given — or that only checks constructors
whose induct field points at a declaration it knows — ends up with an
inhabitant of the genuine empty type.
This is the constructor-side counterpart of bugs/orphan-rec: in both cases the
bogus declaration escapes by not being attached to any inductive declaration
that the checker verifies, rather than by disagreeing with one.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 0.472 ms | 11.8 MB | |||
| gruszka | ✋ | 1.77 ms | 57.9 MB | |||
| mathgraph | ✋ | 0.720 ms | 25.9 MB | |||
| sokonanoda | ✋ | 0.686 ms | 25.6 MB | |||
| pestka | ✋ | 1.97 ms | 14.2 MB | |||
| kefir | ✋ | 0.402 ms | 5.1 MB | |||
| kefir-wasm | ✋ | 93.1 ms | 81.4 MB | |||
| con-ron | ✋ | 0.692 ms | 10.0 MB | |||
| con-ron-stream | ✋ | 4.34 ms | 36.7 MB | |||
| con-agua | ✋ | 0.606 ms | 3.2 MB | |||
| nanobruijn | ✋ | 0.402 ms | 3.2 MB | |||
| nanoda | ✋ | 0.404 ms | 3.0 MB | |||
| con-leche | ✋ | 3.39 ms | 19.8 MB | |||
| pestka-wasm | ✋ | 509 ms | 312.0 MB | |||
| official-nightly | ✋ | 33.1 ms | 107.9 MB | |||
| eink0rn | ✋ | 1.25 ms | 10.7 MB | |||
| official | ✋ | 31.9 ms | 101.9 MB | |||
| ind-models | ✋ | 99.7 ms | 102.4 MB | |||
| kiota | ✋ | 0.557 ms | 10.8 MB | |||
| tenet | ✋ | 124 ms | 45.2 MB | |||
| tenet-hs | ✋ | 1.06 ms | 7.9 MB | |||
| logos-kernel | ✋ | 0.398 ms | 3.5 MB | |||
| evmlean | ✋ | 1.00 s | 266.6 MB | |||
| mini | ✋ | 33.9 ms | 74.1 MB | |||
| overfull | ✋ | 2.28 s | 45.8 MB | |||
| lean4lean | ✋ | 29.7 ms | 89.2 MB | |||
| lean4cobol | ✋ | 1.67 ms | 13.6 MB | |||
| tenet-jvm | ✋ | 98.0 ms | 75.7 MB | |||
| nanoclo | ✋ | 0.533 ms | 7.2 MB | |||
| vow-lean-kernel | ✋ | 117 ms | 14.4 MB | |||
| canonical-min | 🚫 | 388 ms | 1.1 GB | |||
| lazylean | ✋ | 1.06 ms | 21.1 MB | |||
| rpylean | ✋ | 0.840 ms | 9.1 MB | |||
| metalean-slow | ✋ | 29.6 ms | 70.5 MB | |||
| metalean-fast | ✋ | 29.6 ms | 71.0 MB | |||
| nanoclo-fortran | ✋ | 0.685 ms | 4.5 MB |