Test "corner-cases/eta-unit-like-struct"
Expected: 🤷 either · Size: 6.7 KB · Lines: 115 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source
Unit-like eta for a structure whose only field is of type Unit.
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.545 ms | 21.7 MB | |||
| gruszka | 👍 | 1.92 ms | 76.0 MB | |||
| mathgraph | ✋ | 0.954 ms | 27.7 MB | |||
| sokonanoda | ✋ | 0.841 ms | 27.7 MB | |||
| pestka | 👍 | 2.15 ms | 16.5 MB | |||
| kefir | ✋ | 0.741 ms | 6.4 MB | |||
| kefir-wasm | ✋ | 121 ms | 84.5 MB | |||
| con-ron | 👍 | 29.1 ms | 43.7 MB | |||
| con-ron-stream | 👍 | 29.6 ms | 47.2 MB | |||
| con-agua | 👍 | 20.3 ms | 12.1 MB | |||
| nanobruijn | ✋ | 0.873 ms | 10.6 MB | |||
| nanoda | ✋ | 0.659 ms | 2.9 MB | |||
| con-leche | 👍 | 4.14 ms | 22.9 MB | |||
| pestka-wasm | 👍 | 518 ms | 313.1 MB | |||
| official-nightly | 👍 | 33.5 ms | 107.3 MB | |||
| eink0rn | ✋ | 1.52 ms | 11.7 MB | |||
| official | ✋ | 32.6 ms | 93.4 MB | |||
| ind-models | ✋ | 100 ms | 96.7 MB | |||
| kiota | ✋ | 0.900 ms | 11.1 MB | |||
| tenet | ✋ | 141 ms | 45.6 MB | |||
| tenet-hs | ✋ | 1.37 ms | 8.8 MB | |||
| logos-kernel | ✋ | 0.456 ms | 4.2 MB | |||
| evmlean | ✋ | 1.59 s | 274.5 MB | |||
| mini | ✋ | 34.4 ms | 74.7 MB | |||
| overfull | ✋ | 14.7 s | 46.1 MB | |||
| lean4lean | ✋ | 79.5 ms | 96.3 MB | |||
| lean4cobol | ✋ | 4.36 ms | 13.5 MB | |||
| tenet-jvm | ✋ | 122 ms | 76.8 MB | |||
| nanoclo | ✋ | 0.749 ms | 45.5 MB | |||
| vow-lean-kernel | ✋ | 156 ms | 14.3 MB | |||
| canonical-min | 🚫 | 387 ms | 1.1 GB | |||
| lazylean | ✋ | 1.18 ms | 21.1 MB | |||
| rpylean | ✋ | 0.932 ms | 10.5 MB | |||
| metalean-slow | ✋ | 30.3 ms | 65.9 MB | |||
| metalean-fast | ✋ | 30.2 ms | 72.2 MB | |||
| nanoclo-fortran | ✋ | 0.975 ms | 4.6 MB |