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 | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 0.471 ms | 11.9 MB | |||
| gruszka | ✋ | 1.84 ms | 44.1 MB | |||
| mathgraph | ✋ | 0.620 ms | 17.8 MB | |||
| sokonanoda | ✋ | 0.686 ms | 25.7 MB | |||
| pestka | ✋ | 1.98 ms | 14.0 MB | |||
| kefir | ✋ | 0.402 ms | 5.0 MB | |||
| kefir-wasm | ✋ | 92.5 ms | 81.5 MB | |||
| con-ron | ✋ | 0.692 ms | 9.9 MB | |||
| con-ron-stream | ✋ | 4.34 ms | 36.9 MB | |||
| con-agua | ✋ | 0.606 ms | 3.1 MB | |||
| nanobruijn | ✋ | 0.499 ms | 3.4 MB | |||
| nanoda | ✋ | 0.494 ms | 3.0 MB | |||
| con-leche | ✋ | 3.39 ms | 19.8 MB | |||
| pestka-wasm | ✋ | 508 ms | 311.6 MB | |||
| official-nightly | ✋ | 33.1 ms | 107.9 MB | |||
| eink0rn | ✋ | 1.25 ms | 10.9 MB | |||
| official | ✋ | 31.9 ms | 101.8 MB | |||
| ind-models | ✋ | 99.7 ms | 103.9 MB | |||
| kiota | ✋ | 0.562 ms | 11.2 MB | |||
| tenet | ✋ | 124 ms | 45.2 MB | |||
| tenet-hs | ✋ | 1.06 ms | 7.9 MB | |||
| logos-kernel | ✋ | 0.398 ms | 3.6 MB | |||
| evmlean | ✋ | 1.00 s | 267.4 MB | |||
| mini | ✋ | 33.9 ms | 73.1 MB | |||
| overfull | ✋ | 2.29 s | 45.6 MB | |||
| lean4lean | ✋ | 29.7 ms | 89.8 MB | |||
| lean4cobol | ✋ | 1.67 ms | 13.6 MB | |||
| tenet-jvm | ✋ | 103 ms | 76.7 MB | |||
| nanoclo | ✋ | 0.643 ms | 39.6 MB | |||
| vow-lean-kernel | ✋ | 109 ms | 14.0 MB | |||
| canonical-min | 🚫 | 388 ms | 1.1 GB | |||
| lazylean | ✋ | 1.07 ms | 21.2 MB | |||
| rpylean | ✋ | 0.840 ms | 9.3 MB | |||
| metalean-slow | ✋ | 29.6 ms | 69.5 MB | |||
| metalean-fast | ✋ | 29.6 ms | 70.8 MB | |||
| nanoclo-fortran | ✋ | 0.646 ms | 4.3 MB |