Lean Kernel Arena / logos-kernel / bugs/unit-rec-rule

Checker "logos-kernel" on test "bugs/unit-rec-rule"

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

Test: bugs/unit-rec-rule · Expected: ✋ reject · Size: 3.0 KB · Lines: 54 · lean4export: 3.1.0 · Lean: 4.34.1 · 📄 Declaration

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

stderr:
rejected: declaration 'PUnit': the exported 'PUnit.rec' differs from the declaration the kernel derives
  rule for 'PUnit.unit': derived fun (x0 : PUnit → Sort (u_1)) => fun (x1 : x0 PUnit.unit) => x1 with 0 fields
  exported fun (x0 : PUnit → Sort (u_1)) => fun (x1 : x0 PUnit.unit) => PUnit.unit with 0 fields