Lean Kernel Arena / corner-cases/eta-unit-like-proof-field

Test "corner-cases/eta-unit-like-proof-field"

Expected: 🤷 either · Size: 6.5 KB · Lines: 111 · lean4export: 3.1.0 · Lean: 4.34.1 · 📄 Declaration · 🔗 Source

Unit-like eta for a structure in Type whose only field is a proof of True.

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.3 MB
mathgraph ✋ 1 ms 33.8 MB
nanoclo ✋ 1 ms 45.9 MB
con-ron ✋ 23 ms 58.8 MB
nanobruijn ✋ 1 ms 11.5 MB
nanoda ✋ 1 ms 3.3 MB
lazylean ✋ 1 ms 21.6 MB
con-leche ✋ 4 ms 22.4 MB
eink0rn ✋ 1 ms 12.4 MB
official ✋ 28 ms 67.0 MB
ind-models ✋ 100 ms 104.2 MB
lean4lean ✋ 74 ms 105.2 MB
tenet ✋ 135 ms 45.0 MB
tenet-hs ✋ 1 ms 9.1 MB
lean4cobol ✋ 4 ms 13.6 MB
evmlean ✋ 1.6 s 276.3 MB
mini ✋ 34 ms 74.0 MB
overfull ✋ 14.2 s 46.4 MB
metalean-slow ✋ 30 ms 71.7 MB
tenet-jvm ✋ 114 ms 65.7 MB
nanoclo-fortran ✋ 1 ms 4.5 MB
kiota ✋ 1 ms 7.2 MB
metalean-fast ✋ 30 ms 72.2 MB
canonical-min 🚫 387 ms 1.1 GB
rpylean ✋ 1 ms 4.4 MB
vow-lean-kernel ✋ 80 ms 8.6 MB
parse-only 👍 28 ms 66.2 MB