Lean Kernel Arena / bugs/nested-unused-param

Test "bugs/nested-unused-param"

Expected: ✋ reject · Size: 61.1 KB · Lines: 1.1 k · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source

Checks that the parameters of a nested inductive application are type-checked even when they do not appear in the auxiliary type generated during nested-inductive compilation.

When an inductive E has a constructor whose type contains a nested application L (E w) b, the elaboration of nested inductives replaces that occurrence with an auxiliary type. The argument b does not occur in the auxiliary declaration, so a checker that only checks the auxiliary type never sees b. A correct checker must still ensure b is well-typed; this test rejects if it is not.

Here b is a malformed projection C.0 (C.0 w) (applying a C projection to a value of the unrelated structure W), disguised by a hash collision. If the parameter is not checked, the bogus projection slips through and the resulting E can be used to build an axiom-free proof of False (boom). The projection is merely the payload; the property under test is that the nested-inductive parameter is checked.

Origin: reported as leanprover/lean4#14576 by @kiranandcode, with the original source recorded by @xrchz (https://github.com/xrchz/collatzlean); fixed in leanprover/lean4#14577.

Checker Result ⏱️ 🧠
nano-lean ✋ 1.34 ms 32.4 MB
gruszka ✋ 2.35 ms 114.1 MB
mathgraph ✋ 1.47 ms 21.8 MB
sokonanoda ✋ 1.45 ms 21.8 MB
pestka ✋ 3.58 ms 20.8 MB
kefir ✋ 2.63 ms 6.3 MB
kefir-wasm ✋ 200 ms 99.8 MB
con-ron ✋ 30.8 ms 43.7 MB
con-ron-stream ✋ 31.4 ms 47.2 MB
con-agua ✋ 22.3 ms 20.3 MB
nanobruijn ✋ 3.89 ms 20.1 MB
nanoda ✋ 2.49 ms 3.2 MB
con-leche ✋ 6.34 ms 25.2 MB
pestka-wasm ✋ 546 ms 326.6 MB
official-nightly ✋ 36.7 ms 108.6 MB
eink0rn ✋ 4.26 ms 16.9 MB
official ✋ 35.7 ms 93.4 MB
ind-models ✋ 105 ms 97.7 MB
kiota ✋ 3.40 ms 11.3 MB
tenet ✋ 161 ms 48.4 MB
tenet-hs ✋ 4.75 ms 16.6 MB
logos-kernel ✋ 0.939 ms 4.9 MB
evmlean ✋ 12.5 s 321.6 MB
mini 🚫 36.6 ms 74.1 MB
overfull ⌛ — —
lean4lean ✋ 33.3 ms 90.0 MB
lean4cobol ✋ 42.2 ms 13.8 MB
tenet-jvm ✋ 213 ms 83.7 MB
nanoclo ✋ 1.91 ms 57.6 MB
vow-lean-kernel ✋ 449 ms 14.8 MB
canonical-min 🚫 390 ms 1.1 GB
lazylean ✋ 2.46 ms 22.2 MB
rpylean ✋ 1.58 ms 13.5 MB
metalean-slow 🚫 660 ms 70.4 MB
metalean-fast 👍 38.0 ms 76.3 MB
nanoclo-fortran ✋ 3.99 ms 4.9 MB