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.36.0 · 📄 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 ⏱️ 🧠
nano-lean 👍 0.548 ms 21.6 MB
gruszka 👍 1.84 ms 80.0 MB
mathgraph ✋ 0.949 ms 27.9 MB
sokonanoda ✋ 0.837 ms 27.6 MB
pestka 👍 2.13 ms 16.7 MB
kefir ✋ 0.722 ms 6.3 MB
kefir-wasm ✋ 121 ms 84.6 MB
con-ron 👍 29.1 ms 43.4 MB
con-ron-stream 👍 29.6 ms 44.9 MB
con-agua 👍 20.3 ms 12.4 MB
nanobruijn ✋ 0.865 ms 9.5 MB
nanoda ✋ 0.652 ms 2.9 MB
con-leche 👍 4.12 ms 23.1 MB
pestka-wasm 👍 515 ms 313.1 MB
official-nightly 👍 33.5 ms 107.4 MB
eink0rn ✋ 1.51 ms 11.7 MB
official ✋ 32.6 ms 93.3 MB
ind-models ✋ 100 ms 96.0 MB
kiota ✋ 0.884 ms 11.2 MB
tenet ✋ 139 ms 46.0 MB
tenet-hs ✋ 1.35 ms 8.8 MB
logos-kernel ✋ 0.453 ms 4.3 MB
evmlean ✋ 1.59 s 274.9 MB
mini ✋ 34.3 ms 74.3 MB
overfull ✋ 14.2 s 46.2 MB
lean4lean ✋ 75.4 ms 96.9 MB
lean4cobol ✋ 4.26 ms 13.4 MB
tenet-jvm ✋ 112 ms 76.9 MB
nanoclo ✋ 0.756 ms 47.7 MB
vow-lean-kernel ✋ 152 ms 14.5 MB
canonical-min 🚫 387 ms 1.1 GB
lazylean ✋ 1.17 ms 21.3 MB
rpylean ✋ 0.930 ms 10.2 MB
metalean-slow ✋ 30.3 ms 66.4 MB
metalean-fast ✋ 30.2 ms 72.4 MB
nanoclo-fortran ✋ 0.971 ms 4.6 MB