Test "bugs/inductive-forged-all"
Expected: ✋ reject · Size: 1.6 KB · Lines: 23 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration
Proof of False from a forged inductive block whose all list starts with
an already-declared valid inductive type.
The export first declares the ordinary empty proposition False (with
False.rec). It then emits a second inductive record containing
Fake : Prop with constructor Fake.mk : False (whose return type is
False, not Fake) and recs: [], setting Fake's all list to
[False, Fake]. Finally theorem inconsistent : False := Fake.mk proves
False without axioms.
A checker that checks an inductive declaration by delegating to all[0]
without verifying that all[0] belongs to the same inductive block (and that
the block's all lists match) resolves all[0] to the already-validated
False, skips validating Fake and Fake.mk, and admits Fake.mk : False.
rpylean accepted this export because check_inductive delegated to
get_decl(kind.all[0]) without verifying block membership or matching all
lists.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 0.483 ms | 13.7 MB | |||
| gruszka | ✋ | 1.86 ms | 67.9 MB | |||
| mathgraph | ✋ | 0.653 ms | 17.9 MB | |||
| sokonanoda | ✋ | 0.653 ms | 17.6 MB | |||
| pestka | ✋ | 1.98 ms | 14.3 MB | |||
| kefir | ✋ | 0.432 ms | 6.0 MB | |||
| kefir-wasm | ✋ | 106 ms | 82.9 MB | |||
| con-ron | ✋ | 28.9 ms | 43.8 MB | |||
| con-ron-stream | ✋ | 29.5 ms | 45.2 MB | |||
| con-agua | ✋ | 20.1 ms | 11.7 MB | |||
| nanobruijn | ✋ | 0.406 ms | 3.2 MB | |||
| nanoda | ✋ | 0.409 ms | 3.0 MB | |||
| con-leche | ✋ | 3.93 ms | 25.0 MB | |||
| pestka-wasm | ✋ | 509 ms | 311.4 MB | |||
| official-nightly | ✋ | 33.1 ms | 98.1 MB | |||
| eink0rn | ✋ | 1.27 ms | 11.2 MB | |||
| official | ✋ | 31.9 ms | 102.0 MB | |||
| ind-models | ✋ | 99.8 ms | 105.3 MB | |||
| kiota | ✋ | 0.578 ms | 11.2 MB | |||
| tenet | ✋ | 126 ms | 45.4 MB | |||
| tenet-hs | ✋ | 1.08 ms | 8.1 MB | |||
| logos-kernel | ✋ | 0.402 ms | 3.6 MB | |||
| evmlean | ✋ | 1.03 s | 273.7 MB | |||
| mini | 🚫 | 33.9 ms | 74.1 MB | |||
| overfull | ✋ | 2.55 s | 45.7 MB | |||
| lean4lean | ✋ | 29.8 ms | 100.3 MB | |||
| lean4cobol | ✋ | 1.74 ms | 13.6 MB | |||
| tenet-jvm | ✋ | 102 ms | 76.0 MB | |||
| nanoclo | ✋ | 0.539 ms | 7.2 MB | |||
| vow-lean-kernel | ✋ | 121 ms | 14.6 MB | |||
| canonical-min | 🚫 | 388 ms | 1.1 GB | |||
| lazylean | ✋ | 1.09 ms | 21.2 MB | |||
| rpylean | 👍 | 0.843 ms | 9.2 MB | |||
| metalean-slow | ✋ | 29.7 ms | 71.2 MB | |||
| metalean-fast | ✋ | 29.7 ms | 71.0 MB | |||
| nanoclo-fortran | ✋ | 0.653 ms | 4.4 MB |