Checker "lean4lean" on test "corner-cases/eta-rec-struct"
Checker: lean4lean · Version: arena (932afa1) · 📄 Declaration · 🔗 Source
Test: corner-cases/eta-rec-struct · Expected: 🤷 either · Size: 9.5 KB · Lines: 174 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source
Result: ✋ rejected · exit code 1 · wall time: 47.1 ms · instructions: 466.3 M · max rss memory: 96.3 MB · run 2026-11-22 12:44:12 UTC
stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1611:4: invalid environment extension has been accessed
backtrace:
.lake/build/bin/lean4lean(+0x8b60955) [0x5634cc718955]
.lake/build/bin/lean4lean(+0x8b57597) [0x5634cc70f597]
.lake/build/bin/lean4lean(lean_panic_fn_borrowed+0x2b) [0x5634cc70f67b]
.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0xc49) [0x5634c641fcb9]
.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0xf6) [0x5634c64a34e6]
.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0xe2) [0x5634c64aa722]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x155) [0x5634c64b1215]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8bd) [0x5634c64b197d]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x759) [0x5634c64b1819]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8bd) [0x5634c64b197d]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8ac) [0x5634c64b196c]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8ac) [0x5634c64b196c]
.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x5634c64b2885]
.lake/build/bin/lean4lean(Lean4Lean.Replay.throwKernelException [arity↓] (lean4lean)+0x88c) [0x5634c6270c5c]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant [λ] (lean4lean)+0x25) [0x5634c6273d55]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant (lean4lean)+0x618) [0x5634c6275428]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xc5) [0x5634c6276a65]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0x8b) [0x5634c6276a2b]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0x8b) [0x5634c6276a2b]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replay (lean4lean)+0x290) [0x5634c6279f30]
.lake/build/bin/lean4lean([lean] main+0x940) [0x5634c6093370]
.lake/build/bin/lean4lean(+0x8b55737) [0x5634cc70d737]
.lake/build/bin/lean4lean(+0x8b55b22) [0x5634cc70db22]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x9dd53) [0x7fb635bbad53]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x12563c) [0x7fb635c4263c]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1611:4: invalid environment extension has been accessed
backtrace:
.lake/build/bin/lean4lean(+0x8b60955) [0x5634cc718955]
.lake/build/bin/lean4lean(+0x8b57597) [0x5634cc70f597]
.lake/build/bin/lean4lean(lean_panic_fn_borrowed+0x2b) [0x5634cc70f67b]
.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0xc49) [0x5634c641fcb9]
.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0xf6) [0x5634c64a34e6]
.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0xe2) [0x5634c64aa722]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x155) [0x5634c64b1215]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8bd) [0x5634c64b197d]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x759) [0x5634c64b1819]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8bd) [0x5634c64b197d]
.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x5634c64b2885]
.lake/build/bin/lean4lean(Lean4Lean.Replay.throwKernelException [arity↓] (lean4lean)+0x88c) [0x5634c6270c5c]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant [λ] (lean4lean)+0x25) [0x5634c6273d55]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant (lean4lean)+0x618) [0x5634c6275428]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xc5) [0x5634c6276a65]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0x8b) [0x5634c6276a2b]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0x8b) [0x5634c6276a2b]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replay (lean4lean)+0x290) [0x5634c6279f30]
.lake/build/bin/lean4lean([lean] main+0x940) [0x5634c6093370]
.lake/build/bin/lean4lean(+0x8b55737) [0x5634cc70d737]
.lake/build/bin/lean4lean(+0x8b55b22) [0x5634cc70db22]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x9dd53) [0x7fb635bbad53]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x12563c) [0x7fb635c4263c]
uncaught exception: at etaRecStruct: (kernel) declaration type mismatch, 'etaRecStruct' has type
[Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
forall (a : (Prod.{0, 0} Bool Bool) -> Bool), Eq.{1} ((Prod.{0, 0} Bool Bool) -> Bool) a a
but it is expected to have type
[Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
forall (a : (Prod.{0, 0} Bool Bool) -> Bool), Eq.{1} ((Prod.{0, 0} Bool Bool) -> Bool) (Prod.rec.{1, 0, 0} Bool Bool (fun (x._@.Test.3091511195._hygCtx._hyg.21 : Prod.{0, 0} Bool Bool) => Bool) (fun (b : Bool) (c : Bool) => a (Prod.mk.{0, 0} Bool Bool b c))) a