Checker "lean4lean" on test "bugs/unit-rec-rule"
Checker: lean4lean · Version: arena (bce3448) · 📄 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: 52.5 ms · instructions: 442.1 M · max rss memory: 104.8 MB · run 2026-10-27 12:18:46 UTC
stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1375:4: invalid environment extension has been accessed
backtrace:
.lake/build/bin/lean4lean(+0x8730425) [0x55a157304425]
.lake/build/bin/lean4lean(+0x8727b37) [0x55a1572fbb37]
.lake/build/bin/lean4lean(lean_panic_fn_borrowed+0x2b) [0x55a1572fbc1b]
.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0x910) [0x55a1512e3560]
.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0xee) [0x55a15131ff7e]
.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0x110) [0x55a151327670]
.lake/build/bin/lean4lean(<apply/2>+0x9e9) [0x55a1573098f9]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x164) [0x55a15132e264]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa2a) [0x55a15132eb2a]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x764) [0x55a15132e864]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa2a) [0x55a15132eb2a]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa19) [0x55a15132eb19]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa19) [0x55a15132eb19]
.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x55a15132f945]
.lake/build/bin/lean4lean(Lean4Lean.Replay.throwKernelException [arity↓] (lean4lean)+0xb89) [0x55a1510f2759]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant [λ] (lean4lean)+0x25) [0x55a1510f5595]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant (lean4lean)+0x709) [0x55a1510f6d49]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xe8) [0x55a1510f89b8]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xae) [0x55a1510f897e]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replay (lean4lean)+0x207) [0x55a1510fbe17]
.lake/build/bin/lean4lean([lean] main+0x9a5) [0x55a150efc545]
.lake/build/bin/lean4lean(+0x8725687) [0x55a1572f9687]
.lake/build/bin/lean4lean(+0x8725b55) [0x55a1572f9b55]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x9dd53) [0x7f2345c68d53]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x12563c) [0x7f2345cf063c]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1375:4: invalid environment extension has been accessed
backtrace:
.lake/build/bin/lean4lean(+0x8730425) [0x55a157304425]
.lake/build/bin/lean4lean(+0x8727b37) [0x55a1572fbb37]
.lake/build/bin/lean4lean(lean_panic_fn_borrowed+0x2b) [0x55a1572fbc1b]
.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0x910) [0x55a1512e3560]
.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0xee) [0x55a15131ff7e]
.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0x110) [0x55a151327670]
.lake/build/bin/lean4lean(<apply/2>+0x9e9) [0x55a1573098f9]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x164) [0x55a15132e264]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa2a) [0x55a15132eb2a]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x764) [0x55a15132e864]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa2a) [0x55a15132eb2a]
.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x55a15132f945]
.lake/build/bin/lean4lean(Lean4Lean.Replay.throwKernelException [arity↓] (lean4lean)+0xb89) [0x55a1510f2759]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant [λ] (lean4lean)+0x25) [0x55a1510f5595]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant (lean4lean)+0x709) [0x55a1510f6d49]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xe8) [0x55a1510f89b8]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xae) [0x55a1510f897e]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replay (lean4lean)+0x207) [0x55a1510fbe17]
.lake/build/bin/lean4lean([lean] main+0x9a5) [0x55a150efc545]
.lake/build/bin/lean4lean(+0x8725687) [0x55a1572f9687]
.lake/build/bin/lean4lean(+0x8725b55) [0x55a1572f9b55]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x9dd53) [0x7f2345c68d53]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x12563c) [0x7f2345cf063c]
uncaught exception: at badR: (kernel) declaration type mismatch, 'badR' has type
[Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
PUnit.{0}
but it is expected to have type
[Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
PUnit.rec.{1, 0} (fun ([anonymous] : PUnit.{0}) => Prop) EmptyProp PUnit.unit.{0}