Lean Kernel Arena (Preview) / other/extra-rec

Test "other/extra-rec"

Expected: ✋ reject · Size: 1.4 KB · Lines: 21 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 Declaration

Proof of False from an extra recursor that no inductive declaration could produce.

The export contains False exactly as the prelude has it — an empty Prop-valued inductive with no constructors — together with its ordinary False.rec. Smuggled into the same inductive group is a second recursor, named rogue, whose type is False itself and which has no motives, no minor premises and no rules. The theorem inconsistent : False is then simply rogue.

A checker must derive the recursors of an inductive group from the inductive declaration and reject any exported recursor that is not one of them; here that fails on the name (rogue is not False.rec) as well as on the type. A checker that instead registers exported recursors as given ends up with an inhabitant of the genuine empty type.

This is a different gap from bugs/nat-rec-rules, which perturbs the rules of a legitimate recursor: here an entire recursor constant is fabricated, so validating only the rules of the recursors one expects does not catch it.

Checker Result ⏱️ 🧠
gruszka ✋ 1.76 ms 44.2 MB
nano-lean ✋ 0.475 ms 10.4 MB
pestka ✋ 1.98 ms 14.3 MB
con-leche ✋ 3.36 ms 19.4 MB
con-ron ✋ 0.666 ms 9.9 MB
nucleus 🚫 23.3 ms 13.6 MB
official ✋ 42.0 ms 113.1 MB