Test "bugs/eta-ctor-alias"
Expected: ✋ reject · Size: 7.2 KB · Lines: 122 · lean4export: 3.1.0 · Lean: 4.34.1 · 📄 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.550 ms | 20.1 MB | |||
| logos-kernel | ✋ | 0.445 ms | 4.5 MB | |||
| gruszka | ✋ | 1.83 ms | 35.7 MB | |||
| sokonanoda | ✋ | 0.839 ms | 27.9 MB | |||
| pestka | ✋ | 2.07 ms | 13.6 MB | |||
| kefir | ✋ | 0.776 ms | 6.6 MB | |||
| palladium | ✋ | 0.621 ms | 18.8 MB | |||
| kefir-wasm | ✋ | 134 ms | 89.6 MB | |||
| con-ron | ✋ | 29.7 ms | 43.1 MB | |||
| con-agua | ✋ | 20.6 ms | 12.0 MB | |||
| nanobruijn | ✋ | 0.885 ms | 10.0 MB | |||
| nanoda | ✋ | 0.678 ms | 3.4 MB | |||
| con-leche | ✋ | 4.08 ms | 21.7 MB | |||
| pestka-wasm | ✋ | 89.2 ms | 106.0 MB | |||
| tenet-jvm | ✋ | 117 ms | 64.5 MB | |||
| official-nightly | ✋ | 33.8 ms | 108.9 MB | |||
| eink0rn | ✋ | 1.53 ms | 12.0 MB | |||
| official | ✋ | 32.6 ms | 102.7 MB | |||
| ind-models | ✋ | 100 ms | 104.4 MB | |||
| lean4lean | ✋ | 72.1 ms | 105.9 MB | |||
| tenet | ✋ | 137 ms | 44.8 MB | |||
| tenet-hs | ✋ | 1.39 ms | 8.7 MB | |||
| ocaml4lean | ✋ | 13.7 ms | 23.9 MB | |||
| lean4cobol | ✋ | 4.54 ms | 13.5 MB | |||
| evmlean | ✋ | 1.61 s | 275.0 MB | |||
| mini | ✋ | 34.4 ms | 74.3 MB | |||
| overfull | ✋ | 15.5 s | 46.3 MB | |||
| kiota | ✋ | 0.911 ms | 9.1 MB | |||
| canonical-min | 🚫 | 387 ms | 1.1 GB | |||
| nanoclo | ✋ | 0.751 ms | 45.6 MB | |||
| vow-lean-kernel | ✋ | 161 ms | 14.4 MB | |||
| lazylean | ✋ | 1.18 ms | 21.2 MB | |||
| metalean-slow | ✋ | 30.6 ms | 71.5 MB | |||
| metalean-fast | ✋ | 30.3 ms | 70.2 MB | |||
| nanoclo-fortran | ✋ | 1.01 ms | 4.7 MB | |||
| mathgraph | ✋ | 0.741 ms | 33.6 MB | |||
| rpylean | ✋ | 0.560 ms | 4.2 MB |