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.34.1 · 📄 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 ⏱️ 🧠
sokonanoda ✋ 1 ms 42.3 MB
mathgraph ✋ 1 ms 38.0 MB
nanoclo ✋ 1 ms 43.9 MB
con-ron ✋ 24 ms 60.9 MB
nanobruijn ✋ 1 ms 10.5 MB
nanoda ✋ 1 ms 3.4 MB
lazylean ✋ 1 ms 21.6 MB
con-leche ✋ 4 ms 22.5 MB
eink0rn ✋ 2 ms 13.4 MB
official ✋ 30 ms 67.1 MB
ind-models ✋ 101 ms 106.6 MB
lean4lean ✋ 73 ms 104.9 MB
tenet ✋ 141 ms 45.5 MB
tenet-hs ✋ 2 ms 10.5 MB
lean4cobol ✋ 9 ms 13.7 MB
evmlean ✋ 2.4 s 277.1 MB
mini ✋ 35 ms 73.4 MB
overfull ✋ 37.7 s 47.5 MB
metalean-slow ✋ 32 ms 74.3 MB
tenet-jvm ✋ 127 ms 66.2 MB
nanoclo-fortran ✋ 1 ms 4.5 MB
kiota ✋ 1 ms 9.4 MB
metalean-fast ✋ 31 ms 74.2 MB
canonical-min 🚫 388 ms 1.1 GB
rpylean ✋ 1 ms 4.7 MB
vow-lean-kernel ✋ 144 ms 8.6 MB
parse-only 👍 28 ms 66.5 MB