Test "corner-cases/eta-struct-major-and"
Expected: 🤷 either · Size: 9.4 KB · Lines: 175 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source
Structure eta on a recursor's major premise, for a structure in Prop.
And.rec f ⟨x.1, x.2⟩ reduces to f x.1 x.2. And.rec f x, with a
variable x : P ∧ Q, also reduces to that if the major premise is expanded
by structure eta, but the official kernel does not perform structure eta on
majors whose type is a proposition, so it is stuck, and conversion is not
transitive (or congruent) here.
Eta for such majors is fine for structures that eliminate into every sort,
like And, whose fields are all proofs. It must not be done for
propositions that eliminate only into Prop, like Exists, which have no
projections. The official kernel may adopt this, see
https://github.com/leanprover/lean4/pull/15371,
https://github.com/leanprover/lean4/issues/3213 and the overall plan in
https://github.com/leanprover/lean4/issues/14977.
| Checker | Result | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | 👍 | 0.569 ms | 23.7 MB | |||
| gruszka | 👍 | 1.85 ms | 98.0 MB | |||
| mathgraph | 👍 | 0.891 ms | 27.7 MB | |||
| sokonanoda | 👍 | 0.804 ms | 27.7 MB | |||
| pestka | 👍 | 2.21 ms | 16.7 MB | |||
| kefir | 👍 | 0.737 ms | 6.2 MB | |||
| kefir-wasm | 👍 | 119 ms | 85.5 MB | |||
| con-ron | 👍 | 29.0 ms | 43.7 MB | |||
| con-ron-stream | 👍 | 29.6 ms | 45.3 MB | |||
| con-agua | 👍 | 20.3 ms | 12.4 MB | |||
| nanobruijn | ✋ | 1.12 ms | 12.1 MB | |||
| nanoda | ✋ | 0.758 ms | 3.0 MB | |||
| con-leche | 👍 | 4.15 ms | 23.1 MB | |||
| pestka-wasm | 👍 | 520 ms | 313.6 MB | |||
| official-nightly | 👍 | 33.7 ms | 107.2 MB | |||
| eink0rn | 👍 | 1.60 ms | 11.9 MB | |||
| official | ✋ | 33.6 ms | 93.7 MB | |||
| ind-models | ✋ | 101 ms | 95.9 MB | |||
| kiota | 👍 | 1.01 ms | 11.3 MB | |||
| tenet | ✋ | 141 ms | 45.7 MB | |||
| tenet-hs | ✋ | 1.61 ms | 9.2 MB | |||
| logos-kernel | 👍 | 0.475 ms | 4.3 MB | |||
| evmlean | ✋ | 3.35 s | 275.3 MB | |||
| mini | ✋ | 36.3 ms | 74.1 MB | |||
| overfull | ✋ | 27.5 s | 46.8 MB | |||
| lean4lean | ✋ | 75.8 ms | 96.5 MB | |||
| lean4cobol | ✋ | 6.93 ms | 13.7 MB | |||
| tenet-jvm | ✋ | 119 ms | 77.3 MB | |||
| nanoclo | 👍 | 0.770 ms | 43.5 MB | |||
| vow-lean-kernel | 👍 | 155 ms | 14.5 MB | |||
| canonical-min | ✋ | 388 ms | 1.1 GB | |||
| lazylean | ✋ | 1.27 ms | 21.1 MB | |||
| rpylean | 👍 | 0.913 ms | 9.8 MB | |||
| metalean-slow | ✋ | 38.2 ms | 66.2 MB | |||
| metalean-fast | ✋ | 30.6 ms | 66.4 MB | |||
| nanoclo-fortran | 👍 | 1.17 ms | 4.4 MB |