Lean Kernel Arena / lean4lean

Checker "lean4lean"

Version: - · 📄 Declaration · 🔗 Source

Lean4Lean is an implementation of the Lean 4 kernel written in (mostly) pure Lean 4. It is derived directly from the C++ kernel implementation, and as such likely shares some implementation bugs with it (it's not really an independent implementation), although it also benefits from the same algorithmic performance improvements existing in the C++ Lean kernel.

The project also houses some metatheory regarding the Lean system, in the same general direction as the MetaCoq project.

The lean4lean checker checks that primitive definitions from the prelude are as expected. For that reason, it is tied to a specific Lean version. The arena uses a wrapper script to switch to the appropriate version for the tests we have here.

Completeness (rightfully accepted tests)

99/100

Soundness (rightfully rejected tests)

45/45

Declined tests

6

Test Expected Result ⏱️ 🧠
bogus1 127 ms 97.1 MB
cedar 👍 👍 4.2 m (+79%) 1.2 GB (+2%)
constlevels 🚫 26 ms 13.1 MB
cslib 👍 👍 9.2 m (+123%) 2.1 GB (-1%)
init 👍 💥 44.7 s 589.3 MB
init-prelude 👍 👍 513 ms (+27%) 99.5 MB
large-elim-param 🚫 26 ms 13.1 MB
level-imax-leq 🚫 26 ms 13.1 MB
level-imax-normalization 106 ms 94.2 MB
level-index-out-of-order 👍 👍 62 ms 88.3 MB
mathlib 👍 16.8 m 8.7 GB
nat-rec-rules 🚫 26 ms 13.1 MB
perf/app-lam 👍 👍 5.4 s (+1%) 1.4 GB (+2%)
perf/grind-ring-5 👍 👍 3.4 s (+41%) 303.6 MB (+31%)
perf/shift-cascade 👍 👍 81 ms (+55%) 92.9 MB
proj-of-prop 58 ms 92.5 MB
sparse-name-index 👍 👍 63 ms 88.3 MB
std 👍 💥 1.3 m 992.9 MB
tutorial/001_basicDef 👍 👍 62 ms 88.4 MB
tutorial/002_badDef 99 ms 94.4 MB
tutorial/003_arrowType 👍 👍 62 ms 88.4 MB
tutorial/004_dependentType 👍 👍 62 ms 88.4 MB
tutorial/005_constType 👍 👍 62 ms 88.5 MB
tutorial/006_betaReduction 👍 👍 63 ms 88.6 MB
tutorial/007_betaReduction2 👍 👍 63 ms 88.6 MB
tutorial/008_forallSortWhnf 👍 👍 63 ms 88.5 MB
tutorial/009_forallSortBad 63 ms 89.6 MB
tutorial/010_nonTypeType 63 ms 89.5 MB
tutorial/011_nonPropThm 63 ms 89.0 MB
tutorial/012_levelComp1 👍 👍 62 ms 88.5 MB
tutorial/013_levelComp2 👍 👍 62 ms 88.5 MB
tutorial/014_levelComp3 👍 👍 62 ms 88.5 MB
tutorial/015_levelParams 👍 👍 63 ms 88.6 MB
tutorial/016_tut06_bad01 63 ms 88.3 MB
tutorial/017_levelComp4 👍 👍 62 ms 88.5 MB
tutorial/018_levelComp5 👍 👍 62 ms 88.5 MB
tutorial/019_imax1 👍 👍 62 ms 88.5 MB
tutorial/020_imax2 👍 👍 62 ms 88.5 MB
tutorial/021_levelMaxComm 👍 👍 62 ms 88.5 MB
tutorial/022_levelMaxAssoc 👍 👍 62 ms 88.5 MB
tutorial/023_levelMaxIdem 👍 👍 62 ms 88.5 MB
tutorial/024_levelMaxAbsorb 👍 👍 62 ms 88.5 MB
tutorial/025_inferVar 👍 👍 62 ms 88.5 MB
tutorial/026_defEqLambda 👍 👍 63 ms 88.5 MB
tutorial/027_peano1 👍 👍 63 ms 88.8 MB
tutorial/028_peano2 👍 👍 63 ms 88.8 MB
tutorial/029_peano3 👍 👍 63 ms 88.8 MB
tutorial/030_letType 👍 👍 62 ms 88.5 MB
tutorial/031_letTypeDep 👍 👍 63 ms 88.5 MB
tutorial/032_letRed 👍 👍 62 ms 88.6 MB
tutorial/033_empty 👍 👍 63 ms 89.1 MB
tutorial/034_boolType 👍 👍 63 ms 89.3 MB
tutorial/035_twoBool 👍 👍 63 ms 89.4 MB
tutorial/036_andType 👍 👍 63 ms 89.3 MB
tutorial/037_prodType 👍 👍 63 ms 89.4 MB
tutorial/038_pprodType 👍 👍 63 ms 89.4 MB
tutorial/039_pUnitType 👍 👍 63 ms 89.3 MB
tutorial/040_eqType 👍 👍 63 ms 89.3 MB
tutorial/041_natDef 👍 👍 63 ms 89.4 MB
tutorial/042_rbTreeDef 👍 👍 64 ms 89.4 MB
tutorial/043_inductBadNonSort 63 ms 89.8 MB
tutorial/044_inductBadNonSort2 63 ms 89.8 MB
tutorial/045_inductLevelParam 63 ms 88.4 MB
tutorial/046_inductTooFewParams 63 ms 88.4 MB
tutorial/047_inductWrongCtorParams 63 ms 89.1 MB
tutorial/048_inductWrongCtorResParams 63 ms 89.1 MB
tutorial/049_inductWrongCtorResLevel 63 ms 89.0 MB
tutorial/050_inductInIndex 63 ms 89.1 MB
tutorial/051_indNeg 63 ms 89.0 MB
tutorial/052_reduceCtorParam.mk 👍 👍 63 ms 89.4 MB
tutorial/053_reduceCtorType.mk 63 ms 89.1 MB
tutorial/054_indNegReducible 63 ms 89.3 MB
tutorial/055_predWithTypeField 👍 👍 63 ms 89.3 MB
tutorial/056_typeWithTypeField 👍 👍 63 ms 89.3 MB
tutorial/057_typeWithTypeFieldPoly 👍 👍 63 ms 89.3 MB
tutorial/058_typeWithTooHighTypeField.mk 63 ms 89.0 MB
tutorial/059_emptyRec 👍 👍 63 ms 89.1 MB
tutorial/060_boolRec 👍 👍 63 ms 89.3 MB
tutorial/061_twoBoolRec 👍 👍 63 ms 89.4 MB
tutorial/062_andRec 👍 👍 63 ms 89.3 MB
tutorial/063_prodRec 👍 👍 63 ms 89.3 MB
tutorial/064_pprodRec 👍 👍 63 ms 89.3 MB
tutorial/065_punitRec 👍 👍 63 ms 89.1 MB
tutorial/066_eqRec 👍 👍 63 ms 89.3 MB
tutorial/067_nRec 👍 👍 63 ms 89.3 MB
tutorial/068_rbTreeRef 👍 👍 64 ms 89.4 MB
tutorial/069_boolPropRec 👍 👍 63 ms 89.1 MB
tutorial/070_existsRec 👍 👍 63 ms 89.4 MB
tutorial/071_sortElimPropRec 👍 👍 63 ms 89.4 MB
tutorial/072_sortElimProp2Rec 👍 👍 63 ms 89.4 MB
tutorial/073_boolRecEqns 👍 👍 64 ms 89.4 MB
tutorial/074_prodRecEqns 👍 👍 64 ms 89.4 MB
tutorial/075_nRecReduction 👍 👍 64 ms 89.5 MB
tutorial/076_listRecReduction 👍 👍 65 ms 89.5 MB
tutorial/077_RBTree.id_spec 👍 👍 68 ms 89.5 MB
tutorial/078_And.right 👍 👍 63 ms 89.3 MB
tutorial/079_Prod.snd 👍 👍 63 ms 89.4 MB
tutorial/080_PProd.snd 👍 👍 63 ms 89.4 MB
tutorial/081_PSigma.snd 👍 👍 63 ms 89.4 MB
tutorial/082_projOutOfRange 63 ms 90.4 MB
tutorial/083_projNotStruct 63 ms 90.3 MB
tutorial/084_projProp1 👍 👍 63 ms 89.4 MB
tutorial/085_projProp2 63 ms 90.3 MB
tutorial/086_projProp3 👍 👍 63 ms 89.4 MB
tutorial/087_projProp4 64 ms 90.3 MB
tutorial/088_projProp5 64 ms 90.3 MB
tutorial/089_projProp6 63 ms 90.3 MB
tutorial/090_projDataIndexRec 👍 👍 63 ms 89.4 MB
tutorial/091_projIndexData 63 ms 90.4 MB
tutorial/092_projIndexData2 63 ms 90.4 MB
tutorial/093_projRed 👍 👍 63 ms 89.4 MB
tutorial/094_ruleK 👍 👍 63 ms 89.4 MB
tutorial/095_ruleKbad 99 ms 95.3 MB
tutorial/096_ruleKAcc 102 ms 95.3 MB
tutorial/097_aNatLit 👍 👍 63 ms 89.4 MB
tutorial/098_natLitEq 👍 👍 63 ms 89.4 MB
tutorial/099_proofIrrelevance 👍 👍 63 ms 89.4 MB
tutorial/100_proofIrrelevanceBad 98 ms 95.3 MB
tutorial/101_proofIrrelevanceWhnf 👍 👍 63 ms 89.4 MB
tutorial/102_unitEta1 👍 👍 63 ms 89.4 MB
tutorial/103_unitEta2 👍 👍 63 ms 89.4 MB
tutorial/104_unitEta3 👍 👍 63 ms 89.4 MB
tutorial/105_structEta 👍 👍 64 ms 89.4 MB
tutorial/106_funEta 👍 👍 63 ms 89.5 MB
tutorial/107_funEtaDep 👍 👍 63 ms 89.4 MB
tutorial/108_funEtaBad 99 ms 95.3 MB
tutorial/109_etaRuleK 98 ms 95.3 MB
tutorial/110_etaCtor 98 ms 95.3 MB
tutorial/111_reflOccLeft 63 ms 89.1 MB
tutorial/112_reflOccInIndex 63 ms 90.3 MB
tutorial/113_reduceCtorParamRefl.mk 👍 👍 63 ms 89.4 MB
tutorial/114_reduceCtorParamRefl2.mk 👍 👍 63 ms 89.4 MB
tutorial/115_rTreeRec 👍 👍 63 ms 89.4 MB
tutorial/116_rtreeRecReduction 👍 👍 64 ms 89.5 MB
tutorial/117_accRecType 👍 👍 63 ms 89.4 MB
tutorial/118_accRecReduction 👍 👍 64 ms 89.4 MB
tutorial/119_accRecNoEta 102 ms 95.3 MB
tutorial/120_quotMkType 👍 👍 63 ms 89.3 MB
tutorial/121_quotIndType 👍 👍 63 ms 89.3 MB
tutorial/122_quotLiftType 👍 👍 63 ms 89.3 MB
tutorial/123_quotSoundType 👍 👍 63 ms 89.3 MB
tutorial/124_quotLiftReduction 👍 👍 63 ms 89.4 MB
tutorial/125_quotIndReduction 👍 👍 63 ms 89.4 MB
tutorial/126_dup_defs 62 ms 88.0 MB
tutorial/127_dup_ind_def 63 ms 88.3 MB
tutorial/128_dup_ctor_def 63 ms 88.3 MB
tutorial/129_dup_rec_def 63 ms 88.3 MB
tutorial/130_misnamed_rec 63 ms 89.1 MB
tutorial/131_dup_rec_def2 63 ms 89.4 MB
tutorial/132_dup_ctor_rec 62 ms 88.1 MB
tutorial/133_DupConCon 63 ms 88.1 MB

Detailed results

Test "bogus1"

Expected: ✋ reject · Size: 11.4 KB · Lines: 198 · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

A clearly bogus proof. Also serves as an example for how to write simple cases.

Test result: ✋ rejected · exit code 1 · wall time: 284 ms · instructions: 764.6 M · max rss memory: 97.1 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1350:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(+0x9e65bc3) [0x55555f3b9bc3]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(+0x9e5c933) [0x55555f3b0933]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555f3b0a5c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0x1f5) [0x5555591a89b5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0x161) [0x555558f121a1]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0x4e) [0x5555593a9f7e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(<apply/2>+0x9e9) [0x55555f3becc9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x12b) [0x5555593ac09b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x6e9) [0x5555593ac659]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x362) [0x5555593ac2d2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x6e9) [0x5555593ac659]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x6d8) [0x5555593ac648]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x6d8) [0x5555593ac648]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x5555593ad275]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(throwKernelException [arity↓] (lean4lean)+0x847) [0x55555742e4c7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(replayConstant [λ] (lean4lean)+0x23) [0x5555574314b3]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(replayConstant (lean4lean)+0x2ec6) [0x555557435cb6]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at replayConstants (lean4lean)+0x131) [0x555557439a51]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at replayConstants (lean4lean)+0xda) [0x5555574399fa]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(replay (lean4lean)+0x163) [0x55555743d383]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean([lean] main+0x491) [0x555557448471]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(+0x1ed2a12) [0x555557426a12]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(_start+0x25) [0x555557427b25]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1350:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(+0x9e65bc3) [0x55555f3b9bc3]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(+0x9e5c933) [0x55555f3b0933]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555f3b0a5c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.EnvExtension.getStateUnsafe [arity↓, private]+0x1f5) [0x5555591a89b5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.ppExprWithInfos+0x161) [0x555558f121a1]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.ofExpr [λ]+0x4e) [0x5555593a9f7e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(<apply/2>+0x9e9) [0x55555f3becc9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x12b) [0x5555593ac09b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x6e9) [0x5555593ac659]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x362) [0x5555593ac2d2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.formatAux+0x6e9) [0x5555593ac659]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Lean.MessageData.toString+0x15) [0x5555593ad275]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(throwKernelException [arity↓] (lean4lean)+0x847) [0x55555742e4c7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(replayConstant [λ] (lean4lean)+0x23) [0x5555574314b3]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(replayConstant (lean4lean)+0x2ec6) [0x555557435cb6]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at replayConstants (lean4lean)+0x131) [0x555557439a51]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(Std.DTreeMap.Internal.Impl.forInStep spec at replayConstants (lean4lean)+0xda) [0x5555574399fa]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(replay (lean4lean)+0x163) [0x55555743d383]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean([lean] main+0x491) [0x555557448471]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(+0x1ed2a12) [0x555557426a12]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/9001336/.lake/build/bin/lean4lean(_start+0x25) [0x555557427b25]
uncaught exception: at thm: (kernel) declaration type mismatch, 'thm' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  True
but it is expected to have type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  Eq.{1} Nat (OfNat.ofNat.{0} Nat 0 (instOfNatNat 0)) (OfNat.ofNat.{0} Nat 1 (instOfNatNat 1))

Test "cedar"

Expected: 👍 accept · Size: 728.6 MB · Lines: 13.4 M · lean4export: 3.1.0 · Lean: 4.26.0 · 📄 Declaration · 🔗 Source

Lean formalization of, and proofs about, Cedar.

Auto-generated documentation is available at https://cedar-policy.github.io/cedar-spec/docs/.

This test case exports the whole Cedar module and as such contains even unused parts Init and Batteries.

Test result: 👍 accepted · exit code 0 · wall time: 4.4 m · instructions: 1.5 T · max rss memory: 1.2 GB

stdout:
[anonymous]:thmDecl _private.Cedar.Thm.SymCC.Data.LT.0.Cedar.Thm.Op.mkName.neq: lean4lean took 1004
checked 114854 declarations

Test "constlevels"

Expected: ✋ reject · Size: 15.3 KB · Lines: 283 · lean4export: 3.1.0 · Lean: 4.29.0-rc2 · 📄 Declaration

Regression test for undefined behavior in lazy_delta_reduction_step in the official kernel

In the function lazy_delta_reduction_step, the official kernel expects unfold_definition to always succeed. However, if the constant has an incorrect number of level parameters, it actually fails, which leads to memory corruption in lazy_delta_reduction_step.

This test is to check that the official kernel and also other kernels that closely follow the logic of the official kernel correctly handle this unfolding failure.

The issue in the official kernel was originally reported as https://github.com/leanprover/lean4/issues/10577.

Test result: 🚫 declined · exit code 2 · wall time: 30 ms · instructions: 153.4 M · max rss memory: 13.1 MB

stderr:
Error: Unknown toolchain: 4.29.0-rc2
Known toolchains: 4.26.0, 4.27.0-nightly-2025-12-01, 4.27.0-rc1, 4.28.0-nightly-2026-01-19, 4.28.0-nightly-2026-01-20, 4.29.0

Test "cslib"

Expected: 👍 accept · Size: 1.2 GB · Lines: 22.8 M · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

The Lean Computer Science Library (CSLib).

Test result: 👍 accepted · exit code 0 · wall time: 13.2 m · instructions: 3.3 T · max rss memory: 2.1 GB

stdout:
checked 253619 declarations

Test "init"

Expected: 👍 accept · Size: 309.5 MB · Lines: 6.1 M · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

The Init module export from Lean 4 core.

This test contains the fundamental building blocks of Lean 4, including:

  • Basic data types (Nat, List, Array, String, etc.)
  • Core tactics and syntax
  • Foundational mathematical structures
  • Essential metaprogramming infrastructure

This is one of the smallest meaningful test cases, making it ideal for initial checker validation and debugging.

Test result: 💥 error · exit code 250 · wall time: 30.8 s · instructions: 268.3 G · max rss memory: 589.3 MB

stderr:
Stack overflow detected. Aborting.

Test "init-prelude"

Expected: 👍 accept · Size: 3.5 MB · Lines: 63.7 k · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

The Init.Prelude module export.

Test result: 👍 accepted · exit code 0 · wall time: 321 ms · instructions: 3.1 G · max rss memory: 99.5 MB

stdout:
checked 1774 declarations

Test "large-elim-param"

Expected: ✋ reject · Size: 3.1 KB · Lines: 48 · 📄 Declaration

Proof of False via incorrect large elimination restriction.

If the check for whether a level is surely not zero is implemented wrong, in particular if it incorrectly returns true for params, we can create a universe-polymorphic

inductive MyBool.{u} : Sort u | tt | ff

where the recursor MyBool.rec.{1,0} can do large elimination of a Prop. Because of proof irrelevance we have tt = ff, so we can derive a contradiction.

Found by Anthony Wang using Aristotle.

Test result: 🚫 declined · exit code 2 · wall time: 30 ms · instructions: 153.4 M · max rss memory: 13.1 MB

stderr:
Error: No toolchain found in metadata

Test "level-imax-leq"

Expected: ✋ reject · Size: 5.6 KB · Lines: 93 · lean4export: 3.1.0 · Lean: 4.29.0-rc1 · 📄 Declaration

Proof of False via incorrect universe level comparison for imax.

A correct kernel must reject leq(imax(u,v)+1, imax(u,v)), since at u=0, v=0 this becomes leq(1, 0) which is false. However, a checker that only compares the imax arguments structurally (without accounting for an accumulated successor offset) will incorrectly accept it.

This allows defining a universe-collapsing identity function down.{u,v} : Sort (succ (imax u v)) → Sort (imax u v), which is used to cast between True and False via Bool.rec at Sort (imax 0 0) = Prop.

Nanoda incorrectly accepted this proof until it was fixed.

Test result: 🚫 declined · exit code 2 · wall time: 30 ms · instructions: 153.5 M · max rss memory: 13.1 MB

stderr:
Error: Unknown toolchain: 4.29.0-rc1
Known toolchains: 4.26.0, 4.27.0-nightly-2025-12-01, 4.27.0-rc1, 4.28.0-nightly-2026-01-19, 4.28.0-nightly-2026-01-20, 4.29.0

Test "level-imax-normalization"

Expected: ✋ reject · Size: 5.8 KB · Lines: 96 · lean4export: 3.1.0 · Lean: 4.26.0 · 📄 Declaration

Proof of False via incorrect universe level normalization for imax.

A correct kernel must distinguish imax 0 v from succ(imax 0 v), since at v=0 these evaluate to 0 and 1 respectively. However, a level normalization algorithm that drops an accumulated successor offset when decomposing imax u (param v) will produce identical normal forms for both, causing the equivalence check to incorrectly return true.

This allows defining a universe-collapsing identity function down.{v} : Sort (succ (imax 0 v)) → Sort (imax 0 v), and then myProp : Prop := down.{0} Bool (a Prop that is computationally Bool). Proof irrelevance on myProp equates Bool.true and Bool.false, and Bool.rec maps this into False.

Test result: ✋ rejected · exit code 1 · wall time: 108 ms · instructions: 636.9 M · max rss memory: 94.2 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(+0x928325e) [0x55555e7d725e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e7d76ec]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x914) [0x555557435504]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558f0585a]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x555557b0be9e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e7e5059]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x555557b0d7fb]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557b0ddb9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x555557b0da32]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557b0ddb9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557b0dda8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557b0dda8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x555557b0eb45]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_throwKernelException___redArg+0x7e3) [0x55555709abd3]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replayConstant___lam__0+0x25) [0x55555709e895]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replayConstant+0x3094) [0x5555570a27a4]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x16c) [0x5555570a575c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replayConstants+0x21) [0x55555709eb91]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replayConstant+0x6c6) [0x55555709fdd6]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x16c) [0x5555570a575c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xdc) [0x5555570a56cc]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replay+0x168) [0x5555570a94e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(_lean_main+0x360) [0x5555570b4f20]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(+0x1b3fc52) [0x555557093c52]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(_start+0x25) [0x555557094d55]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(+0x928325e) [0x55555e7d725e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e7d76ec]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x914) [0x555557435504]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558f0585a]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x555557b0be9e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e7e5059]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x555557b0d7fb]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557b0ddb9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x555557b0da32]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557b0ddb9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x555557b0eb45]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_throwKernelException___redArg+0x7e3) [0x55555709abd3]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replayConstant___lam__0+0x25) [0x55555709e895]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replayConstant+0x3094) [0x5555570a27a4]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x16c) [0x5555570a575c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replayConstants+0x21) [0x55555709eb91]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replayConstant+0x6c6) [0x55555709fdd6]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x16c) [0x5555570a575c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xdc) [0x5555570a56cc]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(l_replay+0x168) [0x5555570a94e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(_lean_main+0x360) [0x5555570b4f20]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(+0x1b3fc52) [0x555557093c52]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/7a444cd/.lake/build/bin/lean4lean(_start+0x25) [0x555557094d55]
uncaught exception: at down: (kernel) declaration type mismatch, 'down' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  Type.{imax 0 v} -> Type.{imax 0 v}
but it is expected to have type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  Type.{imax 0 v} -> Sort.{imax 0 v}

Test "level-index-out-of-order"

Expected: 👍 accept · Size: 332 B · Lines: 6 · lean4export: 0.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration

Lean4export will create internalization-table references contiguously in order: in references for names, il references for levels, and ie references for expressions all work this way.

However, the spec merely requires that these are integers. It's reasonable for an implementation to assume these are approximately dense (and to treat them as array indices instead of hashtable entries), but a kernel should handle skipped indices or out-of-order indices.

This test checks that the kernel doesn't require internaliation-table references to be presented in ascending order. If the level referenes 2 and 1 were swapped, this would be the expected encoding of axiom foo : Sort 2. This encoding should be equivalent.

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 374.5 M · max rss memory: 88.3 MB

stdout:
checked 1 declarations

Test "mathlib"

Expected: 👍 accept · Size: 5.2 GB · Lines: 100.0 M · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

The complete Mathlib library export.

This test contains all the mathematical definitions, theorems, and proofs from Mathlib, representing the largest and most comprehensive test case in the Lean kernel arena.

Test result: ✋ rejected · exit code 1 · wall time: 17.4 m · instructions: 6.0 T · max rss memory: 8.7 GB

stdout:
[anonymous]:thmDecl ModuleCat.monoidalCategory._proof_4: lean4lean took 4455
[anonymous]:thmDecl Ideal.powQuotSuccInclusion_apply_coe: lean4lean took 1037
[anonymous]:thmDecl Ideal.powQuotSuccInclusion_injective: lean4lean took 4985
[anonymous]:thmDecl SheafOfModules.instHasColimitsOfShapeOfPresheafOfModulesObjFunctorOppositeRingCatIsSheaf: lean4lean took 1093
[anonymous]:thmDecl Submodule.pow_induction_on_left': lean4lean took 1126
[anonymous]:thmDecl CliffordAlgebra.GradedAlgebra.lift_ι_eq: lean4lean took 2532
stderr:
uncaught exception: at _private.Mathlib.Combinatorics.SimpleGraph.Regularity.Chunk.0.SzemerediRegularity.edgeDensity_star_not_uniform._proof_1_10: (kernel) deterministic timeout

Test "nat-rec-rules"

Expected: ✋ reject · Size: 8.2 KB · Lines: 128 · lean4export: 3.1.0 · Lean: 4.29.0-rc1 · 📄 Declaration

Proof of False via incorrect recursor rule validation.

When processing an inductive type declaration, a correct kernel must verify that the generated recursor rules match the ones provided in the export data. A checker that accidentally compares the imported rules against themselves (instead of against independently constructed rules) will accept arbitrary recursor reduction behavior.

This test defines Nat with a wrong Nat.rec succ rule that always returns hzero (ignoring the induction hypothesis). Combined with a nat literal extension that hardcodes correct arithmetic for concrete nat literals but falls back to the wrong Nat.rec rules for symbolic arguments, this creates an inconsistency that yields a proof of False.

Nanoda incorrectly accepted this proof until it was fixed.

Test result: 🚫 declined · exit code 2 · wall time: 51 ms · instructions: 158.6 M · max rss memory: 13.1 MB

stderr:
Error: Unknown toolchain: 4.29.0-rc1
Known toolchains: 4.26.0, 4.27.0-nightly-2025-12-01, 4.27.0-rc1, 4.28.0-nightly-2026-01-19, 4.28.0-nightly-2026-01-20, 4.29.0

Test "perf/app-lam"

Expected: 👍 accept · Size: 1.2 MB · Lines: 28.6 k · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

A synthetically generated term with n levels of alternating applications and lambdas, with DAG sharing.

At each level, a constant is applied to two identical lambda arguments. The export format records these as a single shared expression (DAG). Each lambda body grows with the nesting depth, referencing all enclosing binders.

This tests two aspects of checker performance:

Infer cache: Since both arguments at each level are the same expression, a checker without an infer cache re-infers the type of each shared subterm, doubling work at every level — O(2ⁿ) total.

Substitution cost: Even with a cache, type-inferring each lambda requires substituting into its body (size O(n)) at each of the n levels, giving O(n²) total. Whether this cost arises depends on the checker's binder representation.

Test result: 👍 accepted · exit code 0 · wall time: 4.0 s · instructions: 32.4 G · max rss memory: 1.4 GB

stdout:
[anonymous]:defnDecl dag_app_binder: lean4lean took 3858
checked 21 declarations

Test "perf/grind-ring-5"

Expected: 👍 accept · Size: 9.7 MB · Lines: 199.2 k · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

A grind tactic test from the Lean 4 test suite.

This produces a theorem with a rather large proof term that needs fast reduction.

Test result: 👍 accepted · exit code 0 · wall time: 2.6 s · instructions: 20.6 G · max rss memory: 303.6 MB

stdout:
[anonymous]:thmDecl _private.Test.0.thm._proof_1_1: lean4lean took 1385
checked 2182 declarations

Test "perf/shift-cascade"

Expected: 👍 accept · Size: 256.3 KB · Lines: 5.1 k · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

Stress test for cascading substitution overhead in kernel let processing.

N nested let bindings inside a lambda, where each value references the outer lambda parameter and the previous binding:

fun (a : Nat → Nat) => let f₁ := fun x => a x let f₂ := fun x => a (f₁ x) ... let fₙ := fun x => a (fₙ₋₁ x) fₙ 0

The kernel processes each let by substituting the value into the body. Each value has a free bvar (references a), so substitution under inner binders creates shifted copies. In a de Bruijn kernel with deferred shifts, these Shift(val, offset) wrappers accumulate: step k must traverse through O(k) wrappers from previous steps, giving O(N²) total work.

A locally-nameless kernel substitutes fvars that need no shifting, giving O(N) total.

N=1000 in the Lean source. Increase to stress further.

Test result: 👍 accepted · exit code 0 · wall time: 81 ms · instructions: 484.9 M · max rss memory: 92.9 MB

stdout:
checked 5 declarations

Test "proj-of-prop"

Expected: ✋ reject · Size: 3.9 KB · Lines: 56 · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

A proof of False via a projection from a Prop-typed structure whose constructor was applied to an ill-typed argument. The exported term is

badFalse : False := (Wrapper.mk True.intro).p

where Wrapper : Prop has a single field p : False, so Wrapper.mk expects a proof of False but is given True.intro : True.

A sound checker must reject this. A checker that types a projection by inferring (rather than checking) its structure argument — i.e. that trusts the structure to be well-typed instead of verifying the constructor's argument types against its binders — will accept it, because Wrapper.mk True.intro still formally inhabits Wrapper at the structural level, and the p projection is then read back out at the declared field type False.

Test result: ✋ rejected · exit code 1 · wall time: 71 ms · instructions: 349.4 M · max rss memory: 92.5 MB

stderr:
uncaught exception: at badFalse: (kernel) application type mismatch
  Wrapper.mk True.intro
argument has type
  True
but function has type
  False → Wrapper

Test "sparse-name-index"

Expected: 👍 accept · Size: 296 B · Lines: 4 · lean4export: 0.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration

Lean4export will create internalization-table references contiguously in order: in references for names, il references for levels, and ie references for expressions all work this way.

However, the spec merely requires that these are integers. It's reasonable for an implementation to assume these are approximately dense (and to treat them as array indices instead of hashtable entries), but a kernel should handle skipped indices or out-of-order indices.

This test checks that a kernel doesn't require internalization-table references to be assigned sequentially starting from 1. If the "2" and "4" were replaced by "1" and "0", respectively, this would be the expected encoding of axiom foo : Prop. This encoding should be equivalent.

Test result: 👍 accepted · exit code 0 · wall time: 80 ms · instructions: 376.8 M · max rss memory: 88.3 MB

stdout:
checked 1 declarations

Test "std"

Expected: 👍 accept · Size: 526.1 MB · Lines: 10.0 M · lean4export: 3.1.0 · Lean: 4.29.0 · 📄 Declaration · 🔗 Source

The complete Std library export from Lean 4.

This test contains the standard library extensions beyond core Lean 4, including:

  • Enhanced data structures (HashMap, RBTree, etc.)
  • Additional mathematical operations
  • Extended list and array operations
  • Utility functions and theorems

This represents a medium-sized test case, larger than core modules but smaller than Mathlib, making it useful for performance testing.

Test result: 💥 error · exit code 250 · wall time: 56.7 s · instructions: 468.1 G · max rss memory: 992.9 MB

stderr:
Stack overflow detected. Aborting.

Test "tutorial/001_basicDef"

Expected: 👍 accept · Size: 371 B · Lines: 6 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Basic definition

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 374.5 M · max rss memory: 88.4 MB

stdout:
checked 1 declarations

Test "tutorial/002_badDef"

Expected: ✋ reject · Size: 369 B · Lines: 6 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Mismatched types

Test result: ✋ rejected · exit code 1 · wall time: 106 ms · instructions: 591.6 M · max rss memory: 94.4 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x3332) [0x555556fd82e2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x3332) [0x555556fd82e2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
uncaught exception: at badDef: (kernel) declaration type mismatch, 'badDef' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  Type.{1}
but it is expected to have type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  Prop

Test "tutorial/003_arrowType"

Expected: 👍 accept · Size: 626 B · Lines: 12 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Arrow type (function type)

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 374.7 M · max rss memory: 88.4 MB

stdout:
checked 1 declarations

Test "tutorial/004_dependentType"

Expected: 👍 accept · Size: 464 B · Lines: 7 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Dependent type (forall)

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 374.7 M · max rss memory: 88.4 MB

stdout:
checked 1 declarations

Test "tutorial/005_constType"

Expected: 👍 accept · Size: 901 B · Lines: 17 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Lambda expression

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 374.9 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/006_betaReduction"

Expected: 👍 accept · Size: 1.3 KB · Lines: 27 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Lambda reduction

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 375.3 M · max rss memory: 88.6 MB

stdout:
checked 2 declarations

Test "tutorial/007_betaReduction2"

Expected: 👍 accept · Size: 1.4 KB · Lines: 28 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Lambda reduction under binder

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 375.2 M · max rss memory: 88.6 MB

stdout:
checked 2 declarations

Test "tutorial/008_forallSortWhnf"

Expected: 👍 accept · Size: 1.2 KB · Lines: 25 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

The binding domain of a forall may need to be reduce before it is a sort

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 375.1 M · max rss memory: 88.5 MB

stdout:
checked 2 declarations

Test "tutorial/009_forallSortBad"

Expected: ✋ reject · Size: 1.2 KB · Lines: 26 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

The binding domain of a forall has to be a sort

Test result: ✋ rejected · exit code 1 · wall time: 78 ms · instructions: 378.3 M · max rss memory: 89.6 MB

stderr:
uncaught exception: at forallSortBad: (kernel) type expected
  x

Test "tutorial/010_nonTypeType"

Expected: ✋ reject · Size: 1.1 KB · Lines: 21 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

The type of a declaration has to be a type, not some other expression

Test result: ✋ rejected · exit code 1 · wall time: 76 ms · instructions: 376.8 M · max rss memory: 89.5 MB

stderr:
uncaught exception: at nonTypeType: (kernel) type expected
  constType

Test "tutorial/011_nonPropThm"

Expected: ✋ reject · Size: 428 B · Lines: 7 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

The type of a theorem has to be a proposition

Test result: ✋ rejected · exit code 1 · wall time: 76 ms · instructions: 376.3 M · max rss memory: 89.0 MB

stderr:
uncaught exception: at nonPropThm: (kernel) type of theorem 'nonPropThm' is not a proposition
  Prop

Test "tutorial/012_levelComp1"

Expected: 👍 accept · Size: 395 B · Lines: 7 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Some level computation

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 374.6 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/013_levelComp2"

Expected: 👍 accept · Size: 413 B · Lines: 8 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Some level computation

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 374.5 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/014_levelComp3"

Expected: 👍 accept · Size: 431 B · Lines: 9 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Some level computation

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 374.7 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/015_levelParams"

Expected: 👍 accept · Size: 1.4 KB · Lines: 29 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Level parameters

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 375.3 M · max rss memory: 88.6 MB

stdout:
checked 2 declarations

Test "tutorial/016_tut06_bad01"

Expected: ✋ reject · Size: 431 B · Lines: 8 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Duplicate universe parameters

Test result: ✋ rejected · exit code 1 · wall time: 74 ms · instructions: 375.8 M · max rss memory: 88.3 MB

stderr:
uncaught exception: at tut06_bad01: (kernel) failed to add declaration to environment, duplicate universe level parameter: 'u'

Test "tutorial/017_levelComp4"

Expected: 👍 accept · Size: 428 B · Lines: 8 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Some level computation

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 374.6 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/018_levelComp5"

Expected: 👍 accept · Size: 428 B · Lines: 8 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Some level computation

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 374.6 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/019_imax1"

Expected: 👍 accept · Size: 813 B · Lines: 16 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type inference for forall using imax

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 374.8 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/020_imax2"

Expected: 👍 accept · Size: 832 B · Lines: 17 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type inference for forall using imax

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 374.9 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/021_levelMaxComm"

Expected: 👍 accept · Size: 528 B · Lines: 12 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Level equality: max is commutative (max u v ≈ max v u).

Test result: 👍 accepted · exit code 0 · wall time: 86 ms · instructions: 374.7 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/022_levelMaxAssoc"

Expected: 👍 accept · Size: 627 B · Lines: 16 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Level equality: max is associative (max (max u v) w ≈ max u (max v w)).

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 374.7 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/023_levelMaxIdem"

Expected: 👍 accept · Size: 451 B · Lines: 9 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Level equality: max is idempotent (max u u ≈ u).

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 374.7 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/024_levelMaxAbsorb"

Expected: 👍 accept · Size: 530 B · Lines: 12 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Level equality: max absorption (max u (max u v) ≈ max u v).

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 374.9 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/025_inferVar"

Expected: 👍 accept · Size: 717 B · Lines: 12 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type inference of local variables

Test result: 👍 accepted · exit code 0 · wall time: 78 ms · instructions: 374.8 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/026_defEqLambda"

Expected: 👍 accept · Size: 1.4 KB · Lines: 26 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Definitional equality between lambdas

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 375.1 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/027_peano1"

Expected: 👍 accept · Size: 3.6 KB · Lines: 73 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Peano arithmetic: 2 = 2

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 376.7 M · max rss memory: 88.8 MB

stdout:
checked 7 declarations

Test "tutorial/028_peano2"

Expected: 👍 accept · Size: 4.5 KB · Lines: 90 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Peano arithmetic: 1 + 1 = 2

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 377.8 M · max rss memory: 88.8 MB

stdout:
checked 8 declarations

Test "tutorial/029_peano3"

Expected: 👍 accept · Size: 4.9 KB · Lines: 98 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Peano arithmetic: 2 * 2 = 4

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 378.3 M · max rss memory: 88.8 MB

stdout:
checked 10 declarations

Test "tutorial/030_letType"

Expected: 👍 accept · Size: 493 B · Lines: 9 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type checking a non-dependent let

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 374.7 M · max rss memory: 88.5 MB

stdout:
checked 1 declarations

Test "tutorial/031_letTypeDep"

Expected: 👍 accept · Size: 1.2 KB · Lines: 26 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type checking a dependent let

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 375.2 M · max rss memory: 88.5 MB

stdout:
checked 3 declarations

Test "tutorial/032_letRed"

Expected: 👍 accept · Size: 631 B · Lines: 12 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reducing a let

Test result: 👍 accepted · exit code 0 · wall time: 85 ms · instructions: 374.7 M · max rss memory: 88.6 MB

stdout:
checked 2 declarations

Test "tutorial/033_empty"

Expected: 👍 accept · Size: 1.2 KB · Lines: 20 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A simple empty inductive type

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 375.1 M · max rss memory: 89.1 MB

stdout:
checked 2 declarations

Test "tutorial/034_boolType"

Expected: 👍 accept · Size: 2.3 KB · Lines: 37 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A simple enumeration inductive type

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 375.8 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/035_twoBool"

Expected: 👍 accept · Size: 4.2 KB · Lines: 65 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A simple product type

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 376.9 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/036_andType"

Expected: 👍 accept · Size: 3.2 KB · Lines: 57 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A parametrized product type (no level parameters)

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 376.5 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/037_prodType"

Expected: 👍 accept · Size: 3.8 KB · Lines: 76 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A parametrized product type (with level parameters)

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 376.9 M · max rss memory: 89.4 MB

stdout:
checked 2 declarations

Test "tutorial/038_pprodType"

Expected: 👍 accept · Size: 3.8 KB · Lines: 75 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A parametrized product type (with more general level parameters)

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 376.8 M · max rss memory: 89.4 MB

stdout:
checked 2 declarations

Test "tutorial/039_pUnitType"

Expected: 👍 accept · Size: 1.8 KB · Lines: 31 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Level-polymorphic unit type

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 375.6 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/040_eqType"

Expected: 👍 accept · Size: 3.2 KB · Lines: 62 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Equality, as an important indexed non-recursive data type

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 376.5 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/041_natDef"

Expected: 👍 accept · Size: 3.3 KB · Lines: 61 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A recursive inductive data type

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 376.5 M · max rss memory: 89.4 MB

stdout:
checked 2 declarations

Test "tutorial/042_rbTreeDef"

Expected: 👍 accept · Size: 15.7 KB · Lines: 296 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A recursive indexed data type

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 384.6 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/043_inductBadNonSort"

Expected: ✋ reject · Size: 1.2 KB · Lines: 20 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive type with a non-sort type

Test result: ✋ rejected · exit code 1 · wall time: 77 ms · instructions: 377.5 M · max rss memory: 89.8 MB

stderr:
uncaught exception: at inductBadNonSort: (kernel) type expected
  fun x y => x

Test "tutorial/044_inductBadNonSort2"

Expected: ✋ reject · Size: 602 B · Lines: 8 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Another inductive type with a non-sort type

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 376.5 M · max rss memory: 89.8 MB

stderr:
uncaught exception: at inductBadNonSort2: (kernel) type expected
  aType

Test "tutorial/045_inductLevelParam"

Expected: ✋ reject · Size: 519 B · Lines: 7 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive with duplicate level params

Test result: ✋ rejected · exit code 1 · wall time: 74 ms · instructions: 375.9 M · max rss memory: 88.4 MB

stderr:
uncaught exception: at inductLevelParam: (kernel) failed to add declaration to environment, duplicate universe level parameter: 'u'

Test "tutorial/046_inductTooFewParams"

Expected: ✋ reject · Size: 552 B · Lines: 6 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive with too few parameters in the type

Test result: ✋ rejected · exit code 1 · wall time: 74 ms · instructions: 375.9 M · max rss memory: 88.4 MB

stderr:
uncaught exception: at inductTooFewParams: (kernel) invalid inductive datatype declaration, incorrect number of parameters

Test "tutorial/047_inductWrongCtorParams"

Expected: ✋ reject · Size: 1.2 KB · Lines: 16 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive with a constructor with wrong parameters

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 376.4 M · max rss memory: 89.1 MB

stderr:
uncaught exception: at inductWrongCtorParams: (kernel) arg #1 of 'inductWrongCtorParams.mk' does not match inductive datatype parameters

Test "tutorial/048_inductWrongCtorResParams"

Expected: ✋ reject · Size: 1.3 KB · Lines: 19 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive with a constructor with wrong parameters in result (they are swapped)

Test result: ✋ rejected · exit code 1 · wall time: 74 ms · instructions: 376.5 M · max rss memory: 89.1 MB

stderr:
uncaught exception: at inductWrongCtorResParams: (kernel) invalid return type for 'inductWrongCtorResParams.mk'

Test "tutorial/049_inductWrongCtorResLevel"

Expected: ✋ reject · Size: 1.4 KB · Lines: 23 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive with a constructor with wrong level parameters in result (they are swapped)

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 376.7 M · max rss memory: 89.0 MB

stderr:
uncaught exception: at inductWrongCtorResLevel: (kernel) invalid return type for 'inductWrongCtorResLevel.mk'

Test "tutorial/050_inductInIndex"

Expected: ✋ reject · Size: 1.1 KB · Lines: 14 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A constructor with an unexpected occurrence of the type in index position of a return type.

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 376.4 M · max rss memory: 89.1 MB

stderr:
uncaught exception: at inductInIndex: (kernel) invalid return type for 'inductInIndex.mk'

Test "tutorial/051_indNeg"

Expected: ✋ reject · Size: 1000 B · Lines: 12 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

The classic example of an inductive with negative recursive occurrence

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 376.4 M · max rss memory: 89.0 MB

stderr:
uncaught exception: at indNeg: (kernel) arg #1 of 'indNeg.mk' has a non positive occurrence of the datatypes being declared

Test "tutorial/052_reduceCtorParam.mk"

Expected: 👍 accept · Size: 4.1 KB · Lines: 80 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

When checking inductives, we expect the kernel to reduce the types of constructor arguments.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 377.1 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/053_reduceCtorType.mk"

Expected: ✋ reject · Size: 1.5 KB · Lines: 26 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

When checking inductives, we expect the kernel to not reduce the type of the constructor itself; that should be all manifest foralls

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 376.7 M · max rss memory: 89.1 MB

stderr:
uncaught exception: at reduceCtorType: (kernel) invalid return type for 'reduceCtorType.mk'

Test "tutorial/054_indNegReducible"

Expected: ✋ reject · Size: 1.9 KB · Lines: 31 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

When checking inductives, we expect the kernel to not reduce the type of the constructor parameters further than head normal form. Recursive occurrences nested inside the head normal form are considered negative occurrences, even if they could be reduced to disappear.

Test result: ✋ rejected · exit code 1 · wall time: 76 ms · instructions: 376.9 M · max rss memory: 89.3 MB

stderr:
uncaught exception: at indNegReducible: (kernel) arg #1 of 'indNegReducible.mk' has a non positive occurrence of the datatypes being declared

Test "tutorial/055_predWithTypeField"

Expected: 👍 accept · Size: 2.0 KB · Lines: 32 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive proposition can have constructors with fields of arbitrary level.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 375.7 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/056_typeWithTypeField"

Expected: 👍 accept · Size: 2.1 KB · Lines: 36 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive type can have fields of level up to that of the inductive.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 375.7 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/057_typeWithTypeFieldPoly"

Expected: 👍 accept · Size: 2.1 KB · Lines: 38 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive type can have fields of level up to that of the inductive (polymorphic variant).

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 375.8 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/058_typeWithTooHighTypeField.mk"

Expected: ✋ reject · Size: 947 B · Lines: 11 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive type can have fields of from higher universes.

Test result: ✋ rejected · exit code 1 · wall time: 76 ms · instructions: 376.3 M · max rss memory: 89.0 MB

stderr:
uncaught exception: at typeWithTooHighTypeField: (kernel) universe level of type_of(arg #1) of 'typeWithTooHighTypeField.mk' is too big for the corresponding inductive datatype

Test "tutorial/059_emptyRec"

Expected: 👍 accept · Size: 1.2 KB · Lines: 21 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 375.2 M · max rss memory: 89.1 MB

stdout:
checked 2 declarations

Test "tutorial/060_boolRec"

Expected: 👍 accept · Size: 3.0 KB · Lines: 53 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 376.4 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/061_twoBoolRec"

Expected: 👍 accept · Size: 4.8 KB · Lines: 78 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 377.3 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/062_andRec"

Expected: 👍 accept · Size: 3.2 KB · Lines: 58 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 376.6 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/063_prodRec"

Expected: 👍 accept · Size: 4.0 KB · Lines: 79 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 377.1 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/064_pprodRec"

Expected: 👍 accept · Size: 4.0 KB · Lines: 78 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 377.0 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/065_punitRec"

Expected: 👍 accept · Size: 2.2 KB · Lines: 39 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 375.7 M · max rss memory: 89.1 MB

stdout:
checked 2 declarations

Test "tutorial/066_eqRec"

Expected: 👍 accept · Size: 3.3 KB · Lines: 63 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 77 ms · instructions: 376.7 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/067_nRec"

Expected: 👍 accept · Size: 3.3 KB · Lines: 61 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 376.4 M · max rss memory: 89.3 MB

stdout:
checked 2 declarations

Test "tutorial/068_rbTreeRef"

Expected: 👍 accept · Size: 16.2 KB · Lines: 303 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 385.7 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/069_boolPropRec"

Expected: 👍 accept · Size: 2.3 KB · Lines: 34 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Inductive predicates eliminate into Prop if they have more than one constructor.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 375.9 M · max rss memory: 89.1 MB

stdout:
checked 2 declarations

Test "tutorial/070_existsRec"

Expected: 👍 accept · Size: 3.6 KB · Lines: 66 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Inductive predicates eliminate into Prop if they have one constructors and it carries data.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 377.0 M · max rss memory: 89.4 MB

stdout:
checked 2 declarations

Test "tutorial/071_sortElimPropRec"

Expected: 👍 accept · Size: 5.6 KB · Lines: 97 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Inductive predicates eliminate into Sort if they have one constructors and it carries data, but the data is known from the type, e.g. a parameter or an index

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 378.0 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/072_sortElimProp2Rec"

Expected: 👍 accept · Size: 6.6 KB · Lines: 114 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Inductive predicates eliminate into Sort if they have one constructors and it carries data, but the data is known from the type, e.g. a parameter or an index. However, it must occur directly in the result type, with no intervening reduction.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 378.8 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/073_boolRecEqns"

Expected: 👍 accept · Size: 10.8 KB · Lines: 199 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reduction behavior of Bool.rec

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 381.3 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/074_prodRecEqns"

Expected: 👍 accept · Size: 10.1 KB · Lines: 205 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reduction behavior of Prod.rec

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 381.0 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/075_nRecReduction"

Expected: 👍 accept · Size: 12.7 KB · Lines: 238 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A proof relying on the reduction behavior of N.rec

Test result: 👍 accepted · exit code 0 · wall time: 77 ms · instructions: 382.8 M · max rss memory: 89.5 MB

stdout:
checked 6 declarations

Test "tutorial/076_listRecReduction"

Expected: 👍 accept · Size: 17.5 KB · Lines: 335 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reduction behavior of List.rec

Test result: 👍 accepted · exit code 0 · wall time: 77 ms · instructions: 387.6 M · max rss memory: 89.5 MB

stdout:
checked 7 declarations

Test "tutorial/077_RBTree.id_spec"

Expected: 👍 accept · Size: 47.9 KB · Lines: 1.0 k · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reduction behavior of RBTree.rec

Test result: 👍 accepted · exit code 0 · wall time: 78 ms · instructions: 408.8 M · max rss memory: 89.5 MB

stdout:
checked 7 declarations

Test "tutorial/078_And.right"

Expected: 👍 accept · Size: 4.3 KB · Lines: 74 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type-checking simple projection functions

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 377.1 M · max rss memory: 89.3 MB

stdout:
checked 3 declarations

Test "tutorial/079_Prod.snd"

Expected: 👍 accept · Size: 4.5 KB · Lines: 83 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type-checking projection functions with parameters

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 377.4 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/080_PProd.snd"

Expected: 👍 accept · Size: 4.5 KB · Lines: 83 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type-checking projection functions

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 377.2 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/081_PSigma.snd"

Expected: 👍 accept · Size: 5.1 KB · Lines: 96 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type-checking dependent projection functions

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 378.0 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/082_projOutOfRange"

Expected: ✋ reject · Size: 3.8 KB · Lines: 67 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Out of range projection

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 378.6 M · max rss memory: 90.4 MB

stderr:
uncaught exception: at projOutOfRange: (kernel) invalid projection
  z.3

Test "tutorial/083_projNotStruct"

Expected: ✋ reject · Size: 3.5 KB · Lines: 64 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projection out something that is not a structure

Test result: ✋ rejected · exit code 1 · wall time: 76 ms · instructions: 378.0 M · max rss memory: 90.3 MB

stderr:
uncaught exception: at projNotStruct: (kernel) invalid projection
  x.1

Test "tutorial/084_projProp1"

Expected: 👍 accept · Size: 8.2 KB · Lines: 143 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projecting out of a proposition

The lean kernel allows projections out of propositions if they precede all dependent data fields.

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 379.3 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/085_projProp2"

Expected: ✋ reject · Size: 8.2 KB · Lines: 143 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projecting out of a proposition

The lean kernel disallows data projections out of propositional structures.

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 380.9 M · max rss memory: 90.3 MB

stderr:
uncaught exception: at projProp2: (kernel) invalid projection
  x.2

Test "tutorial/086_projProp3"

Expected: 👍 accept · Size: 8.2 KB · Lines: 143 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projecting out of a proposition

The lean kernel allows projections out of propositions if they precede all dependent data fields. Non-dependent data fields are not relevant.

Test result: 👍 accepted · exit code 0 · wall time: 77 ms · instructions: 379.4 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/087_projProp4"

Expected: ✋ reject · Size: 8.2 KB · Lines: 143 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projecting out of a proposition

The lean kernel disallows data projections out of propositional structures.

Test result: ✋ rejected · exit code 1 · wall time: 77 ms · instructions: 381.1 M · max rss memory: 90.3 MB

stderr:
uncaught exception: at projProp4: (kernel) invalid projection
  x.4

Test "tutorial/088_projProp5"

Expected: ✋ reject · Size: 8.4 KB · Lines: 148 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projecting out of a proposition

The lean kernel disallows proof projections out of propositional structures that depend on data.

Test result: ✋ rejected · exit code 1 · wall time: 76 ms · instructions: 381.1 M · max rss memory: 90.3 MB

stderr:
uncaught exception: at projProp5: (kernel) invalid projection
  x.4

Test "tutorial/089_projProp6"

Expected: ✋ reject · Size: 8.2 KB · Lines: 143 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projecting out of a proposition.

The lean kernel rejects any projections out of a proposition that come after a dependent data field, even if that is not used by the present projection.

Test result: ✋ rejected · exit code 1 · wall time: 76 ms · instructions: 381.0 M · max rss memory: 90.3 MB

stderr:
uncaught exception: at projProp6: (kernel) invalid projection
  x.6

Test "tutorial/090_projDataIndexRec"

Expected: 👍 accept · Size: 6.8 KB · Lines: 111 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

The recursor for ProjDataIndex allows elimination into sort.

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 378.4 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/091_projIndexData"

Expected: ✋ reject · Size: 6.8 KB · Lines: 111 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projecting out data is not allowed, even if this data appears as an index and the recursor would allow it.

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 380.0 M · max rss memory: 90.4 MB

stderr:
uncaught exception: at projIndexData: (kernel) invalid projection
  x.1

Test "tutorial/092_projIndexData2"

Expected: ✋ reject · Size: 6.8 KB · Lines: 111 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projecting out data is not allowed, even if this data appears as an index and the recursor would allow it.

This also forbids projecting out proofs that follow such fields.

Test result: ✋ rejected · exit code 1 · wall time: 77 ms · instructions: 380.1 M · max rss memory: 90.4 MB

stderr:
uncaught exception: at projIndexData2: (kernel) invalid projection
  x.2

Test "tutorial/093_projRed"

Expected: 👍 accept · Size: 9.9 KB · Lines: 177 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Projection reductions

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 380.6 M · max rss memory: 89.4 MB

stdout:
checked 6 declarations

Test "tutorial/094_ruleK"

Expected: 👍 accept · Size: 6.5 KB · Lines: 121 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Rule k for Eq: The recursor reduces even if the major argument is not a constructor, as long replacing the major argument with a constructor is type correct.

Test result: 👍 accepted · exit code 0 · wall time: 87 ms · instructions: 378.5 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/095_ruleKbad"

Expected: ✋ reject · Size: 6.5 KB · Lines: 121 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Rule k for Eq should not fire if the types of the major argument do not match that of the constructor.

Test result: ✋ rejected · exit code 1 · wall time: 101 ms · instructions: 596.5 M · max rss memory: 95.3 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x2f66) [0x555556fd7f16]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x2f66) [0x555556fd7f16]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
uncaught exception: at ruleKbad: (kernel) declaration type mismatch, 'ruleKbad' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  (Eq.{1} Bool Bool.true Bool.false) -> (forall (a : Bool), Eq.{1} 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 (h : Eq.{1} Bool Bool.true Bool.false) (a : Bool), Eq.{1} Bool (Eq.rec.{1, 1} Bool Bool.true (fun (x._@.Tutorial.3161876795._hygCtx._hyg.17 : Bool) (x._@.Tutorial.3161876795._hygCtx._hyg.19 : Eq.{1} Bool Bool.true x._@.Tutorial.3161876795._hygCtx._hyg.17) => Bool) a Bool.false h) a

Test "tutorial/096_ruleKAcc"

Expected: ✋ reject · Size: 12.8 KB · Lines: 238 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Rule k should not fire for Acc.

Test result: ✋ rejected · exit code 1 · wall time: 102 ms · instructions: 610.3 M · max rss memory: 95.3 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x2f66) [0x555556fd7f16]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x2f66) [0x555556fd7f16]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
uncaught exception: at ruleKAcc: (kernel) declaration type mismatch, 'ruleKAcc' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (α : Sort.{u}) (p : α -> α -> Prop) (x : α), (Acc.{u} α p x) -> (forall (a : Bool), Eq.{1} 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 (α : Sort.{u}) (p : α -> α -> Prop) (x : α) (h : Acc.{u} α p x) (a : Bool), Eq.{1} Bool (Acc.rec.{1, u} α p (fun (x._@.Tutorial.4255978773._hygCtx._hyg.22 : α) (x._@.Tutorial.4255978773._hygCtx._hyg.24 : Acc.{u} α p x._@.Tutorial.4255978773._hygCtx._hyg.22) => Bool) (fun (x._@.Tutorial.4255978773._hygCtx._hyg.31 : α) (x._@.Tutorial.4255978773._hygCtx._hyg.33 : forall (y : α), (p y x._@.Tutorial.4255978773._hygCtx._hyg.31) -> (Acc.{u} α p y)) (x._@.Tutorial.4255978773._hygCtx._hyg.35 : forall (y : α) (a._@._internal._hyg.0 : p y x._@.Tutorial.4255978773._hygCtx._hyg.31), (fun (x._@.Tutorial.4255978773._hygCtx._hyg.22 : α) (x._@.Tutorial.4255978773._hygCtx._hyg.24 : Acc.{u} α p x._@.Tutorial.4255978773._hygCtx._hyg.22) => Bool) y (x._@.Tutorial.4255978773._hygCtx._hyg.33 y a._@._internal._hyg.0)) => a) x h) a

Test "tutorial/097_aNatLit"

Expected: 👍 accept · Size: 3.0 KB · Lines: 54 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Type checking Nat literals

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 376.3 M · max rss memory: 89.4 MB

stdout:
checked 2 declarations

Test "tutorial/098_natLitEq"

Expected: 👍 accept · Size: 6.1 KB · Lines: 114 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reducing Nat literals

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 378.1 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/099_proofIrrelevance"

Expected: 👍 accept · Size: 5.0 KB · Lines: 100 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Proof irrelevance: every Prop is a subsingleton, if p : Prop then all elements of p are definitionally equal.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 377.6 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/100_proofIrrelevanceBad"

Expected: ✋ reject · Size: 4.7 KB · Lines: 93 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Proof irrelevance is limited to Prop: if p : Type, then all elements of p are not definitionally equal.

Test result: ✋ rejected · exit code 1 · wall time: 98 ms · instructions: 585.6 M · max rss memory: 95.3 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x3332) [0x555556fd82e2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x3332) [0x555556fd82e2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
uncaught exception: at proofIrrelevanceBad: (kernel) declaration type mismatch, 'proofIrrelevanceBad' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (p : Type) (h1 : p), p -> (Eq.{1} p h1 h1)
but it is expected to have type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (p : Type) (h1 : p) (h2 : p), Eq.{1} p h1 h2

Test "tutorial/101_proofIrrelevanceWhnf"

Expected: 👍 accept · Size: 5.6 KB · Lines: 112 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Proof irrelevance: if p : A and A is definitionally equal to Prop, then all elements of p are still definitionally equal. Just applying proof irrelevance at Sort 0 isn't sufficient.

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 378.0 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/102_unitEta1"

Expected: 👍 accept · Size: 6.2 KB · Lines: 116 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Unit eta

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 378.2 M · max rss memory: 89.4 MB

stdout:
checked 5 declarations

Test "tutorial/103_unitEta2"

Expected: 👍 accept · Size: 6.0 KB · Lines: 109 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Unit eta

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 378.1 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/104_unitEta3"

Expected: 👍 accept · Size: 6.0 KB · Lines: 111 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Unit eta

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 378.1 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/105_structEta"

Expected: 👍 accept · Size: 12.5 KB · Lines: 230 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Structure eta

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 382.8 M · max rss memory: 89.4 MB

stdout:
checked 7 declarations

Test "tutorial/106_funEta"

Expected: 👍 accept · Size: 5.2 KB · Lines: 104 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Function eta for non-dependent functions.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 378.0 M · max rss memory: 89.5 MB

stdout:
checked 3 declarations

Test "tutorial/107_funEtaDep"

Expected: 👍 accept · Size: 5.3 KB · Lines: 106 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Function eta for dependent functions (pi types).

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 378.1 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/108_funEtaBad"

Expected: ✋ reject · Size: 4.9 KB · Lines: 97 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Eta should not identify functions with different bodies.

Test result: ✋ rejected · exit code 1 · wall time: 99 ms · instructions: 595.2 M · max rss memory: 95.3 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x2f66) [0x555556fd7f16]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x2f66) [0x555556fd7f16]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
uncaught exception: at funEtaBad: (kernel) declaration type mismatch, 'funEtaBad' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (x._@.Tutorial.4249243883._hygCtx._hyg.28 : Type) (x._@.Tutorial.4249243883._hygCtx._hyg.30 : Type), (x._@.Tutorial.4249243883._hygCtx._hyg.28 -> x._@.Tutorial.4249243883._hygCtx._hyg.28) -> (forall (f : x._@.Tutorial.4249243883._hygCtx._hyg.28 -> x._@.Tutorial.4249243883._hygCtx._hyg.30), Eq.{1} (x._@.Tutorial.4249243883._hygCtx._hyg.28 -> x._@.Tutorial.4249243883._hygCtx._hyg.30) f f)
but it is expected to have type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (α : Type) (β : Type) (g : α -> α) (f : α -> β), Eq.{1} (α -> β) (fun (x : α) => f (g x)) f

Test "tutorial/109_etaRuleK"

Expected: ✋ reject · Size: 6.5 KB · Lines: 121 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Corner case for function eta: Does a defeq between a partially applied recursor with rule k and a free variable trigger eta expansion?

Taking the official kernel as the specification, the answer is no. See https://github.com/leanprover/lean4/issues/12520 for a discussion.

Test result: ✋ rejected · exit code 1 · wall time: 99 ms · instructions: 586.6 M · max rss memory: 95.3 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x3332) [0x555556fd82e2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x3332) [0x555556fd82e2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
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._@.Tutorial.2477593770._hygCtx._hyg.31 : Bool) (x._@.Tutorial.2477593770._hygCtx._hyg.33 : Eq.{1} Bool Bool.true x._@.Tutorial.2477593770._hygCtx._hyg.31) => Bool) (a (Eq.refl.{1} Bool Bool.true)) Bool.true) a

Test "tutorial/110_etaCtor"

Expected: ✋ reject · Size: 9.0 KB · Lines: 148 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Corner case for function eta: Does a defeq between a partially applied constructor trigger eta expansion?

Taking the official kernel as the specification, the answer is no. See https://github.com/leanprover/lean4/issues/12520 for a discussion.

Test result: ✋ rejected · exit code 1 · wall time: 98 ms · instructions: 587.8 M · max rss memory: 95.3 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x3332) [0x555556fd82e2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x3332) [0x555556fd82e2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
uncaught exception: at etaCtor: (kernel) declaration type mismatch, 'etaCtor' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (x : True -> T), Eq.{1} (True -> T) x x
but it is expected to have type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (x : True -> T), Eq.{1} (True -> T) (T.mk (T.val (x True.intro))) x

Test "tutorial/111_reflOccLeft"

Expected: ✋ reject · Size: 3.7 KB · Lines: 61 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Rejection: recursive occurrence on the left of an arrow, behind further arrows inside a constructor argument.

The constructor argument is a function type Nat → (I → Nat).

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 377.8 M · max rss memory: 89.1 MB

stderr:
uncaught exception: at reflOccLeft: (kernel) arg #1 of 'reflOccLeft.mk' has a non positive occurrence of the datatypes being declared

Test "tutorial/112_reflOccInIndex"

Expected: ✋ reject · Size: 4.0 KB · Lines: 66 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Rejection: recursive occurrence in index position, behind a further arrow.

We build an indexed inductive I : Type → Type with a constructor argument Nat → I (I α), so the recursive occurrence appears as an index argument.

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 379.0 M · max rss memory: 90.3 MB

stderr:
uncaught exception: at reflOccInIndex: (kernel) application type mismatch
  reflOccInIndex x
argument has type
  Nat
but function has type
  Type → Type

Test "tutorial/113_reduceCtorParamRefl.mk"

Expected: 👍 accept · Size: 4.5 KB · Lines: 88 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

When checking inductives, we expect the kernel to reduce the types of constructor arguments in all positive positions.

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 377.4 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/114_reduceCtorParamRefl2.mk"

Expected: 👍 accept · Size: 4.5 KB · Lines: 88 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

When checking inductives, we expect the kernel to reduce the types of constructor arguments in all positive positions.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 377.4 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/115_rTreeRec"

Expected: 👍 accept · Size: 5.5 KB · Lines: 91 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of the generated recursor.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 377.8 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/116_rtreeRecReduction"

Expected: 👍 accept · Size: 10.8 KB · Lines: 193 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reduction behavior of RTree.rec on RTree.mk.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 381.1 M · max rss memory: 89.5 MB

stdout:
checked 6 declarations

Test "tutorial/117_accRecType"

Expected: 👍 accept · Size: 7.5 KB · Lines: 151 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of Acc.rec.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 379.5 M · max rss memory: 89.4 MB

stdout:
checked 2 declarations

Test "tutorial/118_accRecReduction"

Expected: 👍 accept · Size: 13.4 KB · Lines: 252 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Acc.rec reduces on Acc.intro.

Test result: 👍 accepted · exit code 0 · wall time: 76 ms · instructions: 383.8 M · max rss memory: 89.4 MB

stdout:
checked 4 declarations

Test "tutorial/119_accRecNoEta"

Expected: ✋ reject · Size: 13.0 KB · Lines: 244 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Acc.rec does not have structure eta.

Test result: ✋ rejected · exit code 1 · wall time: 101 ms · instructions: 610.3 M · max rss memory: 95.3 MB

stderr:
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6d8) [0x555557932818]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x2f66) [0x555556fd7f16]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
PANIC at _private.Lean.Environment.0.Lean.EnvExtension.getStateImpl Lean.Environment:1341:4: invalid environment extension has been accessed
backtrace:
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x931038e) [0x55555e86438e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_panic_fn+0x1c) [0x55555e86481c]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l___private_Lean_Environment_0__Lean_EnvExtension_getStateUnsafe___redArg+0x8f7) [0x55555735f9b7]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_ppExprWithInfos+0x17a) [0x555558ebb1da]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_ofExpr___lam__1+0x4e) [0x55555793050e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lean_apply_2+0x9e9) [0x55555e871fe9]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x12b) [0x55555793226b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x362) [0x5555579324a2]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_formatAux+0x6e9) [0x555557932829]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(l_Lean_MessageData_toString+0x15) [0x5555579333d5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_throwKernelException___redArg+0x7fb) [0x555556fd0c0b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant___lam__0+0x25) [0x555556fd38e5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replayConstant+0x2f66) [0x555556fd7f16]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0x135) [0x555556fdbbb5]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_Std_DTreeMap_Internal_Impl_forInStep___at___00replayConstants_spec__0+0xde) [0x555556fdbb5e]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(lp_lean4lean_replay+0x168) [0x555556fdf7e8]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_lean_main+0x360) [0x555556fea2b0]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(+0x1a75c92) [0x555556fc9c92]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(+0x2a4d8) [0x7ffff7c2a4d8]
/nix/store/km4g87jxsqxvcq344ncyb8h1i6f3cqxh-glibc-2.40-218/lib/libc.so.6(__libc_start_main+0x8b) [0x7ffff7c2a59b]
/actions-runner/_work/lean-kernel-arena/lean-kernel-arena/_build/checkers/lean4lean/src/481d2a0/.lake/build/bin/lean4lean(_start+0x25) [0x555556fcad95]
uncaught exception: at accRecNoEta: (kernel) declaration type mismatch, 'accRecNoEta' has type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall (α : Type) (r : α -> α -> Prop) (a : α), (Acc.{1} α r a) -> (forall (p : Bool), Eq.{1} Bool p p)
but it is expected to have type
  [Error pretty printing expression: (`Inhabited.default` for `IO.Error`). Falling back to raw printer.]
  forall {α : Type} (r : α -> α -> Prop) (a : α) (h : Acc.{1} α r a) (p : Bool), Eq.{1} Bool (Acc.rec.{1, 1} α r (fun (x._@.Tutorial.4017164079._hygCtx._hyg.22 : α) (x._@.Tutorial.4017164079._hygCtx._hyg.24 : Acc.{1} α r x._@.Tutorial.4017164079._hygCtx._hyg.22) => Bool) (fun (x._@.Tutorial.4017164079._hygCtx._hyg.31 : α) (x._@.Tutorial.4017164079._hygCtx._hyg.33 : forall (y : α), (r y x._@.Tutorial.4017164079._hygCtx._hyg.31) -> (Acc.{1} α r y)) (x._@.Tutorial.4017164079._hygCtx._hyg.35 : forall (y : α) (a._@._internal._hyg.0 : r y x._@.Tutorial.4017164079._hygCtx._hyg.31), (fun (x._@.Tutorial.4017164079._hygCtx._hyg.22 : α) (x._@.Tutorial.4017164079._hygCtx._hyg.24 : Acc.{1} α r x._@.Tutorial.4017164079._hygCtx._hyg.22) => Bool) y (x._@.Tutorial.4017164079._hygCtx._hyg.33 y a._@._internal._hyg.0)) => p) a h) p

Test "tutorial/120_quotMkType"

Expected: 👍 accept · Size: 6.3 KB · Lines: 123 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of Quot.mk.

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 378.0 M · max rss memory: 89.3 MB

stdout:
checked 3 declarations

Test "tutorial/121_quotIndType"

Expected: 👍 accept · Size: 6.3 KB · Lines: 124 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of Quot.ind.

Test result: 👍 accepted · exit code 0 · wall time: 74 ms · instructions: 378.3 M · max rss memory: 89.3 MB

stdout:
checked 3 declarations

Test "tutorial/122_quotLiftType"

Expected: 👍 accept · Size: 6.3 KB · Lines: 124 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of Quot.lift.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 378.1 M · max rss memory: 89.3 MB

stdout:
checked 3 declarations

Test "tutorial/123_quotSoundType"

Expected: 👍 accept · Size: 7.2 KB · Lines: 141 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Asserting the type of Quot.sound.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 378.6 M · max rss memory: 89.3 MB

stdout:
checked 4 declarations

Test "tutorial/124_quotLiftReduction"

Expected: 👍 accept · Size: 7.8 KB · Lines: 153 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reduction behavior of Quot.lift on Quot.mk.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 379.4 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/125_quotIndReduction"

Expected: 👍 accept · Size: 7.6 KB · Lines: 151 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Reduction behavior of Quot.ind on Quot.mk.

Test result: 👍 accepted · exit code 0 · wall time: 75 ms · instructions: 379.4 M · max rss memory: 89.4 MB

stdout:
checked 3 declarations

Test "tutorial/126_dup_defs"

Expected: ✋ reject · Size: 479 B · Lines: 7 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Two definitions with the same name

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 374.5 M · max rss memory: 88.0 MB

stderr:
uncaught exception: Duplicate declaration: dup_defs

Test "tutorial/127_dup_ind_def"

Expected: ✋ reject · Size: 1.7 KB · Lines: 27 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A definition and a constructor with the same name

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 375.1 M · max rss memory: 88.3 MB

stderr:
uncaught exception: Duplicate declaration: dup_ind_def

Test "tutorial/128_dup_ctor_def"

Expected: ✋ reject · Size: 1.7 KB · Lines: 27 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A definition and a constructor with the same name

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 375.2 M · max rss memory: 88.3 MB

stderr:
uncaught exception: Duplicate declaration: dup_ctor_def.mk

Test "tutorial/129_dup_rec_def"

Expected: ✋ reject · Size: 1.7 KB · Lines: 27 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A definition and a recursor with the same name

Test result: ✋ rejected · exit code 1 · wall time: 76 ms · instructions: 375.0 M · max rss memory: 88.3 MB

stderr:
uncaught exception: Duplicate declaration: dup_rec_def.rec

Test "tutorial/130_misnamed_rec"

Expected: ✋ reject · Size: 1.6 KB · Lines: 25 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

The name of the recursor for misnamed_rec must be misnamed_rec.rec: another name (like misnamed_rec.invalid_rec) should be rejected.

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 375.3 M · max rss memory: 89.1 MB

stderr:
uncaught exception: No such recursor misnamed_rec.not_rec

Test "tutorial/131_dup_rec_def2"

Expected: ✋ reject · Size: 1.7 KB · Lines: 28 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

Even if a kernel doesn't catch a recursor for dup_rec_def2 that is misnamed as dup_rec_def2.not_rec, it should catch some other constant being given the name dup_rec_def2.rec that is reserved for the recursor.

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 376.8 M · max rss memory: 89.4 MB

stderr:
uncaught exception: at dup_rec_def2: (kernel) constant has already been declared 'dup_rec_def2.rec'

Test "tutorial/132_dup_ctor_rec"

Expected: ✋ reject · Size: 1.5 KB · Lines: 24 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

A constructor and a recursor with the same name

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 375.0 M · max rss memory: 88.1 MB

stderr:
uncaught exception: Duplicate declaration: dup_ctor_rec.rec

Test "tutorial/133_DupConCon"

Expected: ✋ reject · Size: 2.2 KB · Lines: 35 · lean4export: 3.1.0 · Lean: 4.27.0-rc1 · 📄 Declaration · 🔗 Source

An inductive with two constructors with the same name

Test result: ✋ rejected · exit code 1 · wall time: 75 ms · instructions: 375.5 M · max rss memory: 88.1 MB

stderr:
uncaught exception: Duplicate declaration: dup_ind_con_con.mk