Lean Kernel Arena (Preview) / bugs/eta-ctor-alias

Test "bugs/eta-ctor-alias"

Expected: ✋ reject · Size: 7.4 KB · Lines: 122 · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · 📄 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 renovation/etaCtor) 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 ⏱️ 🧠
gruszka ✋ 1.85 ms 92.0 MB
nano-lean ✋ 0.556 ms 19.9 MB
pestka ✋ 2.17 ms 16.9 MB
con-leche ✋ 4.04 ms 23.3 MB
con-ron ✋ 28.4 ms 43.5 MB
nucleus 🚫 31.8 ms 13.6 MB
official ✋ 42.7 ms 114.2 MB