Test "corner-cases/eta-rec-struct"
Expected: 🤷 either · Size: 9.5 KB · Lines: 174 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source
Function eta between a recursor of a structure that is missing its major premise and a free variable.
Prod.rec (fun b c => a (b, c)) and a are convertible: eta-expanding
the former gives fun p => Prod.rec (fun b c => a (b, c)) p, whose body
reduces, by structure eta on p, to a (p.1, p.2), and that is convertible
to a p. The official kernel eta-expands only when the other side is a
lambda, so it rejects this, while it accepts the equation of each side with
fun p => a p.
The same issue with a recursor with rule K is corner-cases/eta-rule-k. The
official kernel may adopt eta-expansion of such partial recursor
applications, see https://github.com/leanprover/lean4/pull/15374 and
https://github.com/leanprover/lean4/issues/12520.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | 👍 | 0.574 ms | 23.7 MB | |||
| gruszka | 👍 | 1.86 ms | 82.0 MB | |||
| mathgraph | ✋ | 1.01 ms | 27.9 MB | |||
| sokonanoda | ✋ | 0.887 ms | 27.7 MB | |||
| pestka | 👍 | 2.21 ms | 16.8 MB | |||
| kefir | ✋ | 0.915 ms | 6.5 MB | |||
| kefir-wasm | ✋ | 135 ms | 89.2 MB | |||
| con-ron | ✋ | 29.1 ms | 41.9 MB | |||
| con-ron-stream | ✋ | 29.7 ms | 45.1 MB | |||
| con-agua | ✋ | 20.3 ms | 13.2 MB | |||
| nanobruijn | ✋ | 1.03 ms | 10.9 MB | |||
| nanoda | ✋ | 0.760 ms | 3.0 MB | |||
| con-leche | ✋ | 4.19 ms | 23.3 MB | |||
| pestka-wasm | 👍 | 516 ms | 313.5 MB | |||
| official-nightly | ✋ | 34.4 ms | 108.9 MB | |||
| eink0rn | ✋ | 1.66 ms | 12.0 MB | |||
| official | ✋ | 33.2 ms | 93.5 MB | |||
| ind-models | ✋ | 101 ms | 96.1 MB | |||
| kiota | ✋ | 1.06 ms | 11.2 MB | |||
| tenet | ✋ | 141 ms | 45.6 MB | |||
| tenet-hs | ✋ | 1.55 ms | 9.2 MB | |||
| logos-kernel | ✋ | 0.482 ms | 4.1 MB | |||
| evmlean | ✋ | 2.24 s | 274.4 MB | |||
| mini | ✋ | 35.5 ms | 74.3 MB | |||
| overfull | ✋ | 23.5 s | 46.6 MB | |||
| lean4lean | ✋ | 77.7 ms | 96.3 MB | |||
| lean4cobol | ✋ | 6.22 ms | 13.7 MB | |||
| tenet-jvm | ✋ | 123 ms | 77.3 MB | |||
| nanoclo | ✋ | 0.822 ms | 45.6 MB | |||
| vow-lean-kernel | ✋ | 159 ms | 14.5 MB | |||
| canonical-min | ✋ | 392 ms | 1.1 GB | |||
| lazylean | ✋ | 1.24 ms | 21.1 MB | |||
| rpylean | ✋ | 0.996 ms | 10.4 MB | |||
| metalean-slow | 👍 | 36.6 ms | 68.5 MB | |||
| metalean-fast | 👍 | 30.6 ms | 66.2 MB | |||
| nanoclo-fortran | ✋ | 1.19 ms | 4.6 MB |