Lean Kernel Arena / other/orphan-ctor

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 ⏱️ 🧠
mathgraph ✋ 1 ms 31.9 MB
sokonanoda ✋ 1 ms 29.6 MB
nanoclo ✋ 1 ms 43.6 MB
con-ron ✋ 1 ms 9.9 MB
lazylean ✋ 1 ms 21.3 MB
nanoda ✋ 0 ms 3.0 MB
nanobruijn ✋ 1 ms 3.3 MB
con-leche ✋ 3 ms 17.3 MB
eink0rn ✋ 1 ms 10.9 MB
ind-models ✋ 58 ms 104.6 MB
official ✋ 27 ms 66.6 MB
lean4lean ✋ 28 ms 96.8 MB
tenet ✋ 119 ms 43.8 MB
nanoclo-fortran ✋ 1 ms 4.4 MB
lean4cobol ✋ 2 ms 13.4 MB
evmlean ✋ 488 ms 132.9 MB
mini ✋ 34 ms 73.9 MB
overfull ✋ 2.3 s 45.6 MB
kiota ✋ 1 ms 6.9 MB
canonical-min 🚫 387 ms 1.1 GB
rpylean ✋ 0 ms 4.3 MB
vow-lean-kernel 👍 57 ms 8.2 MB
official-v4.28.0 ✋ 34 ms 73.7 MB
still-nanoda ✋ 0 ms 3.2 MB
nyaya 💥 2 ms 8.7 MB
parse-only 👍 27 ms 65.5 MB