Lean Kernel Arena / nested-nonuniform-param

Test "nested-nonuniform-param"

Expected: 🤷 either · Size: 9.2 KB · Lines: 142 · lean4export: 3.1.0 · Lean: 4.29.1 · 📄 Declaration · 🔗 Source

Checks that a parameter supplied to a nested inductive occurrence really acts as the datatype's parameter, i.e. that it is the parameter itself and does not change between recursive occurrences (as is already enforced for non-nested occurrences).

The inductive E : W → Type has constructor E.mk : (w : W) → L (E ⟨false⟩) → E w, where L (α : Type) is nested. The occurrence E ⟨false⟩ inside the nested L uses the constant ⟨false⟩ in the position of E's parameter, instead of the actual parameter w. That argument is type-correct, so it is not caught by merely type-checking the nested application (leanprover/lean4#14577); a correct checker must also verify that it is the expected parameter.

This particular declaration is not known to yield a proof of False: here L stores no value of type α, so the nested occurrence is phantom and E w is isomorphic to Unit for every w. The variant where L actually stores an α (so recursion would descend into an E ⟨false⟩ while the motive is fixed at E w) is already rejected by the kernel's positivity check ("non valid occurrence"). Since it is not a demonstrated unsoundness, it is not settled whether a checker should accept or reject it, so the expected outcome is either and the test does not count towards completeness or soundness.

Origin: raised by @arthur-adjedj on leanprover/lean4#14577 (https://github.com/leanprover/lean4/pull/14577#issuecomment-5101819377) as a case not covered by that PR's fix; related to leanprover/lean4#14576.

Checker Result ⏱️ 🧠
mathgraph 👍 1 ms 33.8 MB
ind-models 👍 74 ms 107.3 MB
official-nightly 28 ms 63.7 MB
evmlean 👍 1.3 s 134.5 MB
nanoda 👍 1 ms 2.9 MB
mini 🚫 35 ms 75.4 MB
lean4lean 👍 28 ms 90.8 MB
sokonanoda 👍 1 ms 33.7 MB
zignodamus 👍 1 ms 5.0 MB
nanoclo 👍 1 ms 47.6 MB
nanobruijn 👍 1 ms 9.4 MB
kiota 1 ms 6.9 MB
official 👍 28 ms 61.7 MB
vow-lean-kernel 👍 101 ms 8.1 MB
rpylean 👍 1 ms 8.3 MB
official-v4.28.0 👍 35 ms 70.2 MB
still-nanoda 👍 1 ms 2.9 MB
nyaya 👍 3 ms 9.7 MB
parse-only 👍 27 ms 60.7 MB