Lean Kernel Arena / lean4lean / corner-cases/eta-rule-k

Checker "lean4lean" on test "corner-cases/eta-rule-k"

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

Test: corner-cases/eta-rule-k · Expected: 🤷 either · Size: 6.5 KB · Lines: 121 · lean4export: 3.1.0 · Lean: 4.34.1 · 📄 Declaration · 🔗 Source

Result: ✋ rejected · exit code 1 · wall time: 43.8 ms · instructions: 432.3 M · max rss memory: 104.3 MB · run 2026-10-24 16:25:16 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) [0x55b81cd01425]
.lake/build/bin/lean4lean(+0x8727b37) [0x55b81ccf8b37]
.lake/build/bin/lean4lean(lean_panic_fn_borrowed+0x2b) [0x55b81ccf8c1b]
.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0x910) [0x55b816ce0560]
.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0xee) [0x55b816d1cf7e]
.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0x110) [0x55b816d24670]
.lake/build/bin/lean4lean(<apply/2>+0x9e9) [0x55b81cd068f9]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x164) [0x55b816d2b264]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa2a) [0x55b816d2bb2a]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x764) [0x55b816d2b864]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa2a) [0x55b816d2bb2a]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa19) [0x55b816d2bb19]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa19) [0x55b816d2bb19]
.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x55b816d2c945]
.lake/build/bin/lean4lean(Lean4Lean.Replay.throwKernelException [arity↓] (lean4lean)+0xb89) [0x55b816aef759]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant [λ] (lean4lean)+0x25) [0x55b816af2595]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant (lean4lean)+0x709) [0x55b816af3d49]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xe8) [0x55b816af59b8]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replay (lean4lean)+0x207) [0x55b816af8e17]
.lake/build/bin/lean4lean([lean] main+0x9a5) [0x55b8168f9545]
.lake/build/bin/lean4lean(+0x8725687) [0x55b81ccf6687]
.lake/build/bin/lean4lean(+0x8725b55) [0x55b81ccf6b55]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x9dd53) [0x7fefa2e2bd53]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x12563c) [0x7fefa2eb363c]
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) [0x55b81cd01425]
.lake/build/bin/lean4lean(+0x8727b37) [0x55b81ccf8b37]
.lake/build/bin/lean4lean(lean_panic_fn_borrowed+0x2b) [0x55b81ccf8c1b]
.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0x910) [0x55b816ce0560]
.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0xee) [0x55b816d1cf7e]
.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0x110) [0x55b816d24670]
.lake/build/bin/lean4lean(<apply/2>+0x9e9) [0x55b81cd068f9]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x164) [0x55b816d2b264]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa2a) [0x55b816d2bb2a]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x764) [0x55b816d2b864]
.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0xa2a) [0x55b816d2bb2a]
.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x55b816d2c945]
.lake/build/bin/lean4lean(Lean4Lean.Replay.throwKernelException [arity↓] (lean4lean)+0xb89) [0x55b816aef759]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant [λ] (lean4lean)+0x25) [0x55b816af2595]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replayConstant (lean4lean)+0x709) [0x55b816af3d49]
.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at Lean4Lean.Replay.replayConstants (lean4lean)+0xe8) [0x55b816af59b8]
.lake/build/bin/lean4lean(Lean4Lean.Replay.replay (lean4lean)+0x207) [0x55b816af8e17]
.lake/build/bin/lean4lean([lean] main+0x9a5) [0x55b8168f9545]
.lake/build/bin/lean4lean(+0x8725687) [0x55b81ccf6687]
.lake/build/bin/lean4lean(+0x8725b55) [0x55b81ccf6b55]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x9dd53) [0x7fefa2e2bd53]
/nix/store/8kvxvr3pmsypxiypq4g8zy13glnfr7nx-glibc-2.42-67/lib/libc.so.6(+0x12563c) [0x7fefa2eb363c]
uncaught exception: at etaRuleK: (kernel) declaration type mismatch, 'etaRuleK' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (a : (Eq.{1} Bool Bool.true Bool.true) -> Bool), Eq.{1} ((Eq.{1} Bool Bool.true Bool.true) -> 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 : (Eq.{1} Bool Bool.true Bool.true) -> Bool), Eq.{1} ((Eq.{1} Bool Bool.true Bool.true) -> Bool) (Eq.rec.{1, 1} Bool Bool.true (fun (x._@.Test.1420384072._hygCtx._hyg.30 : Bool) (x._@.Test.1420384072._hygCtx._hyg.32 : Eq.{1} Bool Bool.true x._@.Test.1420384072._hygCtx._hyg.30) => Bool) (a (Eq.refl.{1} Bool Bool.true)) Bool.true) a