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 | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 0.662 ms | 23.8 MB | |||
| gruszka | ✋ | 1.86 ms | 53.8 MB | |||
| mathgraph | ✋ | 0.867 ms | 19.5 MB | |||
| sokonanoda | ✋ | 0.946 ms | 27.6 MB | |||
| pestka | ✋ | 2.09 ms | 14.5 MB | |||
| kefir | ✋ | 0.444 ms | 5.5 MB | |||
| kefir-wasm | ✋ | 99.7 ms | 82.3 MB | |||
| con-ron | ✋ | 28.4 ms | 41.6 MB | |||
| con-ron-stream | ✋ | 28.8 ms | 45.2 MB | |||
| con-agua | ✋ | 19.8 ms | 10.0 MB | |||
| nanobruijn | ✋ | 0.878 ms | 7.1 MB | |||
| nanoda | ✋ | 0.756 ms | 3.2 MB | |||
| con-leche | ✋ | 3.96 ms | 23.3 MB | |||
| pestka-wasm | ✋ | 508 ms | 311.4 MB | |||
| official-nightly | ✋ | 35.2 ms | 109.1 MB | |||
| eink0rn | ✋ | 1.52 ms | 11.5 MB | |||
| official | ✋ | 34.0 ms | 102.9 MB | |||
| ind-models | ✋ | 102 ms | 106.5 MB | |||
| kiota | ✋ | 0.895 ms | 11.2 MB | |||
| tenet | ✋ | 147 ms | 46.0 MB | |||
| tenet-hs | ✋ | 1.45 ms | 9.0 MB | |||
| logos-kernel | ✋ | 0.421 ms | 3.5 MB | |||
| evmlean | ✋ | 1.38 s | 274.9 MB | |||
| mini | ✋ | 34.9 ms | 75.1 MB | |||
| overfull | ✋ | 14.3 s | 46.1 MB | |||
| lean4lean | ✋ | 30.2 ms | 89.1 MB | |||
| lean4cobol | ✋ | 4.32 ms | 13.4 MB | |||
| tenet-jvm | ✋ | 118 ms | 76.9 MB | |||
| nanoclo | ✋ | 0.869 ms | 49.6 MB | |||
| vow-lean-kernel | ✋ | 166 ms | 14.2 MB | |||
| canonical-min | ✋ | 387 ms | 1.1 GB | |||
| lazylean | ✋ | 1.16 ms | 21.4 MB | |||
| rpylean | ✋ | 0.981 ms | 10.4 MB | |||
| metalean-slow | 🚫 | 30.4 ms | 70.8 MB | |||
| metalean-fast | ✋ | 30.5 ms | 70.4 MB | |||
| nanoclo-fortran | ✋ | 1.07 ms | 4.7 MB |