Lean Kernel Arena (Preview) / bugs/nested-rec-rule-nfields

Test "bugs/nested-rec-rule-nfields"

Expected: ✋ reject · Size: 40.5 KB · Lines: 728 · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · 📄 Declaration · 🔗 Source

Proof of False via trusted field count in the recursor rule of a nested inductive.

T is nested through C, and T.mk : C T → (Type → Prop) → T. Lie by saying that the T.mk rule of T.rec has one field instead of two. A checker that uses this number when ι-reducing passes only the last field, which then lands in the slot of the first one. The next argument after the major premise lands in the slot of the second one. With a minor premise that returns that second field, the proposition badProp (really True) reduces to Bool. A Prop with two distinguishable inhabitants gives False.

Nanoda validated the rules of non-nested inductives, but not of nested ones, until it was fixed.

Checker Result ⏱️ 🧠
gruszka ✋ 2.13 ms 108.1 MB
nano-lean ✋ 0.875 ms 31.9 MB
pestka ✋ 2.91 ms 19.0 MB
con-leche ✋ 5.33 ms 25.2 MB
con-ron ✋ 29.4 ms 41.7 MB
nucleus 🚫 33.3 ms 13.7 MB
official ✋ 45.8 ms 114.6 MB