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.34.1 · 📄 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 ⏱️ 🧠
sokonanoda ✋ 1 ms 40.4 MB
mathgraph ✋ 1 ms 35.9 MB
nanoclo ✋ 1 ms 27.8 MB
con-ron ✋ 23 ms 58.9 MB
nanobruijn ✋ 1 ms 10.4 MB
nanoda ✋ 1 ms 3.4 MB
lazylean ✋ 1 ms 21.6 MB
con-leche ✋ 4 ms 22.3 MB
eink0rn ✋ 1 ms 12.4 MB
official ✋ 29 ms 67.7 MB
ind-models ✋ 100 ms 103.6 MB
lean4lean ✋ 74 ms 104.6 MB
tenet ✋ 135 ms 44.9 MB
tenet-hs ✋ 1 ms 9.0 MB
lean4cobol ✋ 4 ms 13.5 MB
evmlean ✋ 1.6 s 255.5 MB
mini ✋ 34 ms 73.7 MB
overfull ✋ 13.0 s 46.2 MB
metalean-slow ✋ 30 ms 71.5 MB
tenet-jvm ✋ 114 ms 65.5 MB
nanoclo-fortran ✋ 1 ms 4.5 MB
kiota ✋ 1 ms 7.4 MB
metalean-fast ✋ 30 ms 72.3 MB
canonical-min ✋ 388 ms 1.1 GB
rpylean ✋ 1 ms 4.4 MB
vow-lean-kernel ✋ 72 ms 8.8 MB
parse-only 👍 28 ms 66.4 MB