Lean Kernel Arena (Preview) / corner-cases/positivity-whnf

Test "corner-cases/positivity-whnf"

Expected: 🤷 either · Size: 4.8 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 ⏱️ 🧠
gruszka ✋ 1.81 ms 76.0 MB
nano-lean ✋ 0.516 ms 17.7 MB
pestka ✋ 2.07 ms 16.8 MB
con-leche ✋ 4.00 ms 22.5 MB
con-ron ✋ 28.4 ms 43.3 MB
nucleus 🚫 24.0 ms 13.8 MB
official ✋ 42.2 ms 113.2 MB