Lean Kernel Arena / lean4lean / corner-cases/eta-struct-major-and

Checker "lean4lean" on test "corner-cases/eta-struct-major-and"

Checker: lean4lean · Version: arena (932afa1) · 📄 Declaration · 🔗 Source

Test: corner-cases/eta-struct-major-and · Expected: 🤷 either · Size: 9.4 KB · Lines: 175 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source

Result: ✋ rejected · exit code 1 · wall time: 46.2 ms · instructions: 454.7 M · max rss memory: 96.5 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) [0x5578614a6955]
.lake/build/bin/lean4lean(+0x8b57597) [0x55786149d597]
.lake/build/bin/lean4lean(lean_panic_fn_borrowed+0x2b) [0x55786149d67b]
.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0xc49) [0x55785b1adcb9]
.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0xf6) [0x55785b2314e6]
.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0xe2) [0x55785b238722]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x155) [0x55785b23f215]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8bd) [0x55785b23f97d]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x759) [0x55785b23f819]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8bd) [0x55785b23f97d]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8ac) [0x55785b23f96c]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8ac) [0x55785b23f96c]
.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x55785b240885]
.lake/build/bin/lean4lean(Lean4Lean.Replay.throwKernelException [arity↓] (lean4lean)+0x88c) [0x55785affec5c]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant [λ] (lean4lean)+0x25) [0x55785b001d55]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant (lean4lean)+0x618) [0x55785b003428]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xc5) [0x55785b004a65]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0x8b) [0x55785b004a2b]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replay (lean4lean)+0x290) [0x55785b007f30]
.lake/build/bin/lean4lean([lean] main+0x940) [0x55785ae21370]
.lake/build/bin/lean4lean(+0x8b55737) [0x55786149b737]
.lake/build/bin/lean4lean(+0x8b55b22) [0x55786149bb22]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x9dd53) [0x7faf5f4b0d53]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x12563c) [0x7faf5f53863c]
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) [0x5578614a6955]
.lake/build/bin/lean4lean(+0x8b57597) [0x55786149d597]
.lake/build/bin/lean4lean(lean_panic_fn_borrowed+0x2b) [0x55786149d67b]
.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0xc49) [0x55785b1adcb9]
.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0xf6) [0x55785b2314e6]
.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0xe2) [0x55785b238722]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x155) [0x55785b23f215]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8bd) [0x55785b23f97d]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x759) [0x55785b23f819]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x8bd) [0x55785b23f97d]
.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x55785b240885]
.lake/build/bin/lean4lean(Lean4Lean.Replay.throwKernelException [arity↓] (lean4lean)+0x88c) [0x55785affec5c]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant [λ] (lean4lean)+0x25) [0x55785b001d55]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant (lean4lean)+0x618) [0x55785b003428]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xc5) [0x55785b004a65]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0x8b) [0x55785b004a2b]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replay (lean4lean)+0x290) [0x55785b007f30]
.lake/build/bin/lean4lean([lean] main+0x940) [0x55785ae21370]
.lake/build/bin/lean4lean(+0x8b55737) [0x55786149b737]
.lake/build/bin/lean4lean(+0x8b55b22) [0x55786149bb22]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x9dd53) [0x7faf5f4b0d53]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x12563c) [0x7faf5f53863c]
uncaught exception: at andMajorEta: (kernel) declaration type mismatch, 'andMajorEta' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (P : Prop) (Q : Prop) (A : Type) (f : P -> Q -> A) (x : And P Q), Eq.{1} A (And.rec.{1} P Q (fun (x._@.Test.3893811644._hygCtx._hyg.27 : And P Q) => A) f x) (And.rec.{1} P Q (fun (x._@.Test.3893811644._hygCtx._hyg.27 : And P Q) => A) f x)
but it is expected to have type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (P : Prop) (Q : Prop) (A : Type) (f : P -> Q -> A) (x : And P Q), Eq.{1} A (And.rec.{1} P Q (fun (x._@.Test.3893811644._hygCtx._hyg.27 : And P Q) => A) f (And.intro P Q (And.left P Q x) (And.right P Q x))) (And.rec.{1} P Q (fun (x._@.Test.3893811644._hygCtx._hyg.27 : And P Q) => A) f x)