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 | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| mathgraph | ✋ | 1 ms | 33.7 MB | |||
| sokonanoda | ✋ | 1 ms | 33.7 MB | |||
| nanoclo | ✋ | 1 ms | 37.6 MB | |||
| con-ron | ✋ | 23 ms | 60.7 MB | |||
| lazylean | ✋ | 1 ms | 21.2 MB | |||
| nanoda | ✋ | 1 ms | 3.3 MB | |||
| nanobruijn | ✋ | 1 ms | 5.6 MB | |||
| con-leche | ✋ | 4 ms | 17.8 MB | |||
| eink0rn | 👍 | 2 ms | 11.6 MB | |||
| ind-models | ✋ | 58 ms | 105.1 MB | |||
| official | ✋ | 28 ms | 66.4 MB | |||
| lean4lean | ✋ | 28 ms | 98.5 MB | |||
| tenet | ✋ | 131 ms | 44.0 MB | |||
| nanoclo-fortran | ✋ | 1 ms | 4.3 MB | |||
| lean4cobol | ✋ | 3 ms | 13.4 MB | |||
| evmlean | ✋ | 602 ms | 132.2 MB | |||
| mini | ✋ | 34 ms | 74.1 MB | |||
| overfull | ✋ | 8.8 s | 45.9 MB | |||
| kiota | ✋ | 1 ms | 6.8 MB | |||
| canonical-min | 🚫 | 387 ms | 1.1 GB | |||
| rpylean | ✋ | 0 ms | 4.3 MB | |||
| vow-lean-kernel | ✋ | 71 ms | 8.3 MB | |||
| official-v4.28.0 | ✋ | 34 ms | 73.7 MB | |||
| still-nanoda | ✋ | 1 ms | 3.2 MB | |||
| nyaya | ✋ | 2 ms | 9.1 MB | |||
| parse-only | 👍 | 27 ms | 65.2 MB |