Lean Kernel Arena / bugs/eta-ctor-alias

Test "bugs/eta-ctor-alias"

Expected: ✋ reject · Size: 7.2 KB · Lines: 122 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source

Bogus proof that f = Box.mk for every f : BoxFn, where BoxFn is a reducible alias for Bool → Box.

A checker that eta-expands a partially applied constructor (see corner-cases/eta-ctor) has to take the missing arguments from the type of the constructor application. Taking them from the type of the other side without unfolding it, here BoxFn, finds no arguments to add, then compares the (zero) given fields only, and accepts.

This bug was found by phiferd in a draft of https://github.com/leanprover/lean4/pull/15373 to the official kernel, and fixed before it was merged.

Checker Result ⏱️ 🧠
nano-lean ✋ 0.554 ms 19.9 MB
gruszka ✋ 1.85 ms 92.2 MB
mathgraph ✋ 0.970 ms 27.6 MB
sokonanoda ✋ 0.853 ms 27.7 MB
pestka ✋ 2.17 ms 16.9 MB
kefir ✋ 0.760 ms 6.1 MB
kefir-wasm ✋ 122 ms 84.6 MB
con-ron ✋ 29.1 ms 41.6 MB
con-ron-stream ✋ 29.6 ms 45.3 MB
con-agua ✋ 20.2 ms 12.0 MB
nanobruijn ✋ 0.885 ms 9.5 MB
nanoda ✋ 0.678 ms 3.2 MB
con-leche ✋ 4.11 ms 23.2 MB
pestka-wasm ✋ 516 ms 312.6 MB
official-nightly ✋ 33.8 ms 108.8 MB
eink0rn ✋ 1.54 ms 11.7 MB
official ✋ 32.6 ms 93.4 MB
ind-models ✋ 100 ms 95.8 MB
kiota ✋ 0.901 ms 11.2 MB
tenet ✋ 141 ms 45.6 MB
tenet-hs ✋ 1.39 ms 8.9 MB
logos-kernel ✋ 0.455 ms 4.6 MB
evmlean ✋ 1.59 s 273.7 MB
mini ✋ 34.4 ms 73.3 MB
overfull ✋ 15.5 s 46.2 MB
lean4lean ✋ 73.5 ms 96.5 MB
lean4cobol ✋ 4.54 ms 13.5 MB
tenet-jvm ✋ 119 ms 77.5 MB
nanoclo ✋ 0.759 ms 45.4 MB
vow-lean-kernel ✋ 161 ms 14.4 MB
canonical-min 🚫 387 ms 1.1 GB
lazylean ✋ 1.18 ms 21.2 MB
rpylean ✋ 0.936 ms 10.0 MB
metalean-slow ✋ 30.6 ms 64.3 MB
metalean-fast ✋ 30.3 ms 66.1 MB
nanoclo-fortran ✋ 1.03 ms 4.5 MB