Lean Kernel Arena / corner-cases/positivity-whnf

Test "corner-cases/positivity-whnf"

Expected: 🤷 either · Size: 4.7 KB · Lines: 81 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 Declaration

A recursive occurrence appears in an unused argument of a reducible definition in a constructor field.

The declaration has the following shape:

def Ignore (A B : Type) : Type := A

inductive T : Type where
  | mk (f : Ignore Unit T -> T) : T

Ignore takes a second type argument but does not use it, so Ignore Unit T reduces to Unit. A checker that inspects the unreduced constructor field may reject the syntactic occurrence of T in the domain of the arrow. A checker that first weak-head-normalizes the field type may instead see (Unit -> T) -> T and accept it. The test therefore has outcome eithe r.

A checker may reject it syntactically or accept it after reducing the field type.

Checker Result ⏱️ 🧠
logos-kernel ✋ 0.423 ms 4.4 MB
nano-lean ✋ 0.510 ms 13.8 MB
sokonanoda ✋ 0.674 ms 17.8 MB
pestka ✋ 0.757 ms 10.5 MB
kefir ✋ 0.554 ms 6.3 MB
nanoclo ✋ 0.692 ms 43.5 MB
kefir-wasm ✋ 109 ms 82.5 MB
con-ron ✋ 22.1 ms 37.6 MB
con-agua ✋ 17.7 ms 8.7 MB
nanoda ✋ 0.572 ms 3.3 MB
lazylean ✋ 1.10 ms 21.2 MB
con-leche ✋ 3.95 ms 21.0 MB
pestka-wasm ✋ 80.7 ms 92.0 MB
tenet-jvm ✋ 107 ms 64.4 MB
eink0rn 👍 1.42 ms 11.7 MB
official ✋ 27.9 ms 66.8 MB
ind-models ✋ 100 ms 106.2 MB
lean4lean ✋ 28.0 ms 98.4 MB
tenet ✋ 131 ms 44.0 MB
tenet-hs ✋ 1.20 ms 8.2 MB
ocaml4lean ✋ 13.3 ms 23.7 MB
lean4cobol ✋ 2.96 ms 13.4 MB
evmlean ✋ 1.11 s 273.3 MB
overfull ✋ 8.79 s 46.0 MB
vow-lean-kernel ✋ 141 ms 14.4 MB
mini ✋ 34.1 ms 74.9 MB
canonical-min 🚫 387 ms 1.1 GB
kiota ✋ 0.673 ms 9.0 MB
metalean-slow ✋ 30.0 ms 71.9 MB
nanobruijn ✋ 0.614 ms 5.5 MB
metalean-fast ✋ 30.0 ms 72.1 MB
nanoclo-fortran ✋ 0.793 ms 4.6 MB
rpylean ✋ 0.501 ms 3.9 MB
mathgraph ✋ 0.658 ms 33.7 MB
parse-only 👍 27.6 ms 65.6 MB