Lean Kernel Arena / corner-cases/eta-struct-major-and-no-whnf

Test "corner-cases/eta-struct-major-and-no-whnf"

Expected: 🤷 either · Size: 24.0 KB · Lines: 421 · lean4export: 3.1.0 · Lean: 4.36.0 · Timeout: 60.0 s · 📄 Declaration · 🔗 Source

The combination of corner-cases/eta-struct-major-and and corner-cases/eta-struct-major-no-whnf.

andConst h is And.rec (fun _ _ => 1) h, applied here to a proof of True ∧ True that has no weak head normal form (built from Coquand's paradox, via propext). A checker that eta-expands the And major premise before reducing it accepts the equation with 1 immediately. A checker that first reduces the major premise does not terminate, and the official kernel today, which reduces the major and then does not eta-expand propositions, does not terminate either.

This shows why, once eta applies to majors in Prop, the expansion has to happen before reduction: proofs need not normalize, and otherwise that non-termination leaks into the conversion of data. See https://github.com/leanprover/lean4/pull/15351, https://github.com/leanprover/lean4/pull/15371 and https://github.com/leanprover/lean4/issues/14977.

Checker Result ⏱️ 🧠
nano-lean 👍 0.689 ms 30.2 MB
gruszka 👍 2.00 ms 106.0 MB
mathgraph ⌛ — —
sokonanoda ⌛ — —
pestka 👍 2.59 ms 18.7 MB
kefir 👍 1.43 ms 6.2 MB
kefir-wasm 👍 174 ms 92.4 MB
con-ron 👍 29.5 ms 41.6 MB
con-ron-stream 👍 30.1 ms 45.0 MB
con-agua 👍 20.7 ms 14.9 MB
nanobruijn ⌛ — —
nanoda ⌛ — —
con-leche 👍 4.66 ms 25.2 MB
pestka-wasm 👍 528 ms 320.4 MB
official-nightly 👍 34.8 ms 107.5 MB
eink0rn 🚫 12.5 s 3.7 GB
official ⌛ — —
ind-models ⌛ — —
kiota 👍 1.65 ms 11.3 MB
tenet ✋ 38.4 s 234.2 MB
tenet-hs ✋ 66.5 s 72.0 MB
logos-kernel 👍 0.579 ms 4.4 MB
evmlean ⌛ — —
mini ⌛ — —
overfull ⌛ — —
lean4lean ✋ 91.2 ms 90.0 MB
lean4cobol 🚫 396 ms 13.4 MB
tenet-jvm ⌛ — —
nanoclo 👍 1.03 ms 51.4 MB
vow-lean-kernel 👍 1.09 s 14.5 MB
canonical-min ✋ 389 ms 1.1 GB
lazylean ⌛ — —
rpylean ⌛ — —
metalean-slow 🚫 32.1 ms 70.7 MB
metalean-fast 💥 7.67 s 1.1 GB
nanoclo-fortran ⌛ — —