Test "bugs/nat-rec-rules"
Expected: ✋ reject · Size: 8.1 KB · Lines: 128 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 Declaration
Proof of False via incorrect recursor rule validation.
When processing an inductive type declaration, a correct kernel must verify that the generated recursor rules match the ones provided in the export data. A checker that accidentally compares the imported rules against themselves (instead of against independently constructed rules) will accept arbitrary recursor reduction behavior.
This test defines Nat with a wrong Nat.rec succ rule that always returns hzero (ignoring
the induction hypothesis). Combined with a nat literal extension that hardcodes correct
arithmetic for concrete nat literals but falls back to the wrong Nat.rec rules for symbolic
arguments, this creates an inconsistency that yields a proof of False.
Nanoda incorrectly accepted this proof until it was fixed.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| sokonanoda | ✋ | 1 ms | 38.3 MB | |||
| mathgraph | ✋ | 1 ms | 33.9 MB | |||
| nanoclo | ✋ | 1 ms | 49.7 MB | |||
| con-ron | ✋ | 1 ms | 11.9 MB | |||
| nanobruijn | ✋ | 1 ms | 6.7 MB | |||
| nanoda | ✋ | 1 ms | 3.4 MB | |||
| lazylean | ✋ | 1 ms | 21.9 MB | |||
| con-leche | ✋ | 3 ms | 19.5 MB | |||
| eink0rn | ✋ | 2 ms | 12.2 MB | |||
| official | ✋ | 30 ms | 67.5 MB | |||
| ind-models | ✋ | 102 ms | 106.7 MB | |||
| lean4lean | ✋ | 28 ms | 97.4 MB | |||
| tenet | ✋ | 143 ms | 46.0 MB | |||
| tenet-hs | ✋ | 1 ms | 9.4 MB | |||
| lean4cobol | ✋ | 4 ms | 13.8 MB | |||
| evmlean | ✋ | 1.4 s | 276.4 MB | |||
| mini | ✋ | 35 ms | 74.0 MB | |||
| overfull | ✋ | 14.3 s | 46.4 MB | |||
| metalean-slow | 🚫 | 30 ms | 71.2 MB | |||
| tenet-jvm | ✋ | 114 ms | 65.9 MB | |||
| nanoclo-fortran | ✋ | 1 ms | 4.7 MB | |||
| kiota | ✋ | 1 ms | 7.3 MB | |||
| metalean-fast | ✋ | 31 ms | 74.5 MB | |||
| canonical-min | ✋ | 387 ms | 1.1 GB | |||
| rpylean | ✋ | 1 ms | 4.5 MB | |||
| vow-lean-kernel | ✋ | 92 ms | 8.5 MB | |||
| parse-only | 👍 | 28 ms | 65.8 MB |