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 ⏱️ 🧠
sokonanoda ✋ 1 ms 40.3 MB
mathgraph ✋ 1 ms 33.9 MB
nanoclo ✋ 1 ms 35.9 MB
con-ron ✋ 22 ms 51.1 MB
nanobruijn ✋ 1 ms 5.7 MB
nanoda ✋ 1 ms 3.4 MB
lazylean ✋ 1 ms 21.5 MB
con-leche ✋ 4 ms 20.8 MB
tenet-jvm ✋ 101 ms 65.5 MB
eink0rn 👍 1 ms 12.3 MB
official ✋ 28 ms 66.7 MB
ind-models ✋ 100 ms 107.2 MB
lean4lean ✋ 28 ms 98.8 MB
tenet ✋ 130 ms 43.9 MB
tenet-hs ✋ 1 ms 8.2 MB
lean4cobol ✋ 3 ms 13.7 MB
evmlean ✋ 1.1 s 275.2 MB
mini ✋ 34 ms 74.1 MB
overfull ✋ 8.8 s 46.3 MB
metalean-slow ✋ 30 ms 69.3 MB
nanoclo-fortran ✋ 1 ms 4.6 MB
kiota ✋ 1 ms 7.0 MB
metalean-fast ✋ 30 ms 72.2 MB
canonical-min 🚫 386 ms 1.1 GB
rpylean ✋ 1 ms 4.3 MB
vow-lean-kernel ✋ 71 ms 8.2 MB
parse-only 👍 28 ms 66.2 MB