Lean Kernel Arena / corner-cases/eta-unit-like-nested

Test "corner-cases/eta-unit-like-nested"

Expected: 🤷 either · Size: 16.0 KB · Lines: 256 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source

Unit-like eta for a structure whose fields are proofs, Unit, and (after instantiating the parameters) a function into a unit-like structure.

The official kernel applies eta for unit-like types (any two inhabitants are convertible) only to structures without fields. With that criterion, conversion is not transitive: both p and q are convertible to the same canonical inhabitant (e.g. fun _ => () or ⟨()⟩), but not to each other. Extending the criterion to Pi types whose codomain is unit-like and to structures whose fields are all proofs or unit-like fixes that. The official kernel may adopt this, see https://github.com/leanprover/lean4/pull/15372, https://github.com/leanprover/lean4/issues/2258 and the overall plan in https://github.com/leanprover/lean4/issues/14977.

Checker Result ⏱️ 🧠
nano-lean 👍 0.638 ms 21.8 MB
gruszka 👍 1.94 ms 78.0 MB
mathgraph ✋ 1.40 ms 29.8 MB
sokonanoda ✋ 1.13 ms 29.7 MB
pestka 👍 2.39 ms 16.8 MB
kefir ✋ 1.22 ms 6.4 MB
kefir-wasm ✋ 141 ms 91.4 MB
con-ron 👍 29.3 ms 41.6 MB
con-ron-stream 👍 30.0 ms 45.1 MB
con-agua 👍 20.5 ms 13.5 MB
nanobruijn ✋ 1.36 ms 11.6 MB
nanoda ✋ 0.956 ms 3.0 MB
con-leche 👍 4.44 ms 25.0 MB
pestka-wasm 👍 516 ms 313.6 MB
official-nightly 👍 34.2 ms 107.2 MB
eink0rn ✋ 1.96 ms 12.7 MB
official ✋ 33.5 ms 93.5 MB
ind-models ✋ 101 ms 98.9 MB
kiota ✋ 1.27 ms 11.1 MB
tenet ✋ 145 ms 46.1 MB
tenet-hs ✋ 1.86 ms 10.0 MB
logos-kernel ✋ 0.523 ms 4.3 MB
evmlean ✋ 2.39 s 275.3 MB
mini ✋ 35.3 ms 73.3 MB
overfull ✋ 37.7 s 47.2 MB
lean4lean ✋ 74.1 ms 97.0 MB
lean4cobol ✋ 8.80 ms 13.6 MB
tenet-jvm ✋ 137 ms 77.7 MB
nanoclo ✋ 0.948 ms 53.7 MB
vow-lean-kernel ✋ 224 ms 14.5 MB
canonical-min 🚫 387 ms 1.1 GB
lazylean ✋ 1.35 ms 21.1 MB
rpylean ✋ 1.07 ms 11.2 MB
metalean-slow ✋ 31.8 ms 68.6 MB
metalean-fast ✋ 31.2 ms 74.9 MB
nanoclo-fortran ✋ 1.49 ms 4.6 MB