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

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

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

Unit-like eta for a function type: any two p q : α → Unit are equal.

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.533 ms 19.7 MB
gruszka 👍 1.82 ms 82.0 MB
mathgraph ✋ 0.867 ms 27.7 MB
sokonanoda ✋ 0.789 ms 27.8 MB
pestka 👍 2.11 ms 16.5 MB
kefir ✋ 0.729 ms 6.1 MB
kefir-wasm ✋ 123 ms 84.7 MB
con-ron 👍 29.0 ms 43.6 MB
con-ron-stream 👍 29.6 ms 45.2 MB
con-agua 👍 20.2 ms 11.8 MB
nanobruijn ✋ 0.796 ms 10.3 MB
nanoda ✋ 0.627 ms 3.1 MB
con-leche 👍 4.06 ms 22.9 MB
pestka-wasm 👍 516 ms 312.8 MB
official-nightly 👍 33.4 ms 107.2 MB
eink0rn ✋ 1.49 ms 11.8 MB
official ✋ 32.6 ms 93.5 MB
ind-models ✋ 100 ms 96.6 MB
kiota ✋ 0.888 ms 11.3 MB
tenet ✋ 139 ms 45.6 MB
tenet-hs ✋ 1.32 ms 8.5 MB
logos-kernel ✋ 0.449 ms 4.5 MB
evmlean ✋ 1.60 s 253.0 MB
mini ✋ 34.3 ms 74.0 MB
overfull ✋ 13.0 s 46.1 MB
lean4lean ✋ 75.4 ms 96.7 MB
lean4cobol ✋ 4.00 ms 13.5 MB
tenet-jvm ✋ 119 ms 77.1 MB
nanoclo ✋ 0.733 ms 47.4 MB
vow-lean-kernel ✋ 143 ms 14.4 MB
canonical-min ✋ 388 ms 1.1 GB
lazylean ✋ 1.16 ms 21.0 MB
rpylean ✋ 0.927 ms 10.1 MB
metalean-slow ✋ 30.2 ms 65.8 MB
metalean-fast ✋ 30.1 ms 72.9 MB
nanoclo-fortran ✋ 0.916 ms 4.7 MB