Test "corner-cases/eta-rec-struct"
Expected: 🤷 either · Size: 9.5 KB · Lines: 174 · lean4export: 3.1.0 · Lean: 4.34.1 · 📄 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 | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| sokonanoda | ✋ | 1 ms | 40.3 MB | |||
| mathgraph | ✋ | 1 ms | 34.0 MB | |||
| nanoclo | ✋ | 1 ms | 51.9 MB | |||
| con-ron | ✋ | 23 ms | 60.9 MB | |||
| nanobruijn | ✋ | 1 ms | 11.1 MB | |||
| nanoda | ✋ | 1 ms | 3.4 MB | |||
| lazylean | ✋ | 1 ms | 21.6 MB | |||
| con-leche | ✋ | 4 ms | 22.2 MB | |||
| eink0rn | ✋ | 2 ms | 12.7 MB | |||
| official | ✋ | 29 ms | 68.1 MB | |||
| ind-models | ✋ | 101 ms | 103.5 MB | |||
| lean4lean | ✋ | 76 ms | 103.9 MB | |||
| tenet | ✋ | 136 ms | 45.5 MB | |||
| tenet-hs | ✋ | 2 ms | 9.5 MB | |||
| lean4cobol | ✋ | 6 ms | 13.8 MB | |||
| evmlean | ✋ | 2.3 s | 276.1 MB | |||
| mini | ✋ | 35 ms | 74.3 MB | |||
| overfull | ✋ | 23.5 s | 47.0 MB | |||
| metalean-slow | 👍 | 37 ms | 71.8 MB | |||
| tenet-jvm | ✋ | 112 ms | 66.1 MB | |||
| nanoclo-fortran | ✋ | 1 ms | 4.6 MB | |||
| kiota | ✋ | 1 ms | 7.4 MB | |||
| metalean-fast | 👍 | 31 ms | 71.9 MB | |||
| canonical-min | ✋ | 390 ms | 1.1 GB | |||
| rpylean | ✋ | 1 ms | 4.5 MB | |||
| vow-lean-kernel | ✋ | 87 ms | 8.6 MB | |||
| parse-only | 👍 | 28 ms | 66.4 MB |