Lean Kernel Arena / logos-kernel / bugs/nested-rec-rule-nfields

Checker "logos-kernel" on test "bugs/nested-rec-rule-nfields"

Checker: logos-kernel · Version: 1e6ad5b · 📄 Declaration · 🔗 Source

Test: bugs/nested-rec-rule-nfields · Expected: ✋ reject · Size: 39.9 KB · Lines: 728 · lean4export: 3.1.0 · Lean: 4.34.1 · 📄 Declaration · 🔗 Source

Result: ✋ rejected · exit code 1 · wall time: 3.01 ms · instructions: 3.8 M · max rss memory: 4.6 MB · run 2026-11-08 11:08:24 UTC

stderr:
rejected: declaration 'T': the exported 'T.rec' differs from the declaration the kernel derives
  rule for 'T.mk': derived fun (x0 : T → Sort (u)) => fun (x1 : (C T) → Sort (u)) => fun (x2 : x0 T.base) => fun (x3 : (x3 : C T) → (x4 : Sort (1) → Prop) → (x5 : x1 x3) → x0 (T.mk x3 x4)) => fun (x4 : (x4 : T) → (x5 : x0 x4) → x1 (C.c T x4)) => fun (x5 : C T) => fun (x6 : Sort (1) → Prop) => x3 x5 x6 (T.rec_1 x0 x1 x2 x3 x4 x5) with 2 fields
  exported fun (x0 : T → Sort (u)) => fun (x1 : (C T) → Sort (u)) => fun (x2 : x0 T.base) => fun (x3 : (x3 : C T) → (x4 : Sort (1) → Prop) → (x5 : x1 x3) → x0 (T.mk x3 x4)) => fun (x4 : (x4 : T) → (x5 : x0 x4) → x1 (C.c T x4)) => fun (x5 : C T) => fun (x6 : Sort (1) → Prop) => x3 x5 x6 (T.rec_1 x0 x1 x2 x3 x4 x5) with 1 fields