Lean Kernel Arena (Preview) / 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 ⏱️ 🧠
gruszka ✋ 1.76 ms 46.1 MB
nano-lean ✋ 0.475 ms 11.7 MB
pestka ✋ 1.98 ms 14.2 MB
con-leche ✋ 3.36 ms 19.5 MB
con-ron ✋ 0.666 ms 10.1 MB
nucleus 🚫 23.3 ms 13.7 MB
official ✋ 42.0 ms 113.1 MB