Lean Kernel Arena / lean4lean

Checker "lean4lean"

Language: Lean Lean · Version: arena (932afa1) · 📄 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, so it is sensitive to the Lean version it is built against. The arena branch tracks lean4lean's master and carries its own lean-toolchain, which selects that version.

Soundness (rightfully rejected tests)

97 ✅ 0 ❌ 0 🚫

Completeness (rightfully accepted tests)

143 ✅ 7 ❌ 0 🚫

Corner cases (no outcome prescribed)

30 ✅ 0 🚫

Test Expected Result ⏱️ 🧠
cedar 👍 👍 3.27 min (+33%) 1.4 GB (0%)
con-leche 👍 👍 5.95 min (+65%) 10.8 GB (+54%)
cslib 👍 👍 13.7 min (+45%) 3.5 GB (0%)
init 👍 👍 94.5 s (+41%) 587.8 MB (-1%)
init-prelude 👍 👍 431 ms (+13%) 98.0 MB (-2%)
mathlib 👍 👍 40.3 min (+20%) 9.9 GB (0%)
navier-stokes-euler 👍 ✋ 76.4 s 2.5 GB
reachability 👍 ✋ 1.01 s 123.8 MB
std 👍 👍 2.53 min (+37%) 935.6 MB (0%)
40 2.21 s 101.7 MB
closure-level-subst ✋ ✋ 99.4 ms 93.5 MB
const-level-arity ✋ ✋ 29.7 ms 100.6 MB
constlevels ✋ ✋ 30.9 ms 89.7 MB
ctor-num-fields ✋ ✋ 92.4 ms 95.8 MB
eta-ctor-alias ✋ ✋ 73.5 ms 96.5 MB
inductive-forged-all ✋ ✋ 29.8 ms 100.3 MB
k-rec-conv ✋ ✋ 78.0 ms 95.8 MB
large-elim-param ✋ ✋ 30.0 ms 89.8 MB
large-elim-prop-bool ✋ ✋ 31.0 ms 89.0 MB
level-imax-leq ✋ ✋ 75.3 ms 96.2 MB
level-imax-normalization ✋ ✋ 81.3 ms 96.2 MB
loose-bvar-value ✋ ✋ 29.8 ms 89.2 MB
nat-log2-not-native 👍 👍 33.4 ms 101.4 MB
nat-log2-not-native-bad ✋ ✋ 34.4 ms 101.6 MB
nat-rec-k-lie ✋ ✋ 83.5 ms 96.1 MB
nat-rec-rules ✋ ✋ 30.2 ms 89.1 MB
nat-shift-huge 👍 👍 67.4 ms 90.8 MB
nested-name-capture ✋ ✋ 79.0 ms 96.3 MB
nested-rec-hijack ✋ ✋ 30.6 ms 100.4 MB
nested-rec-rule-nfields ✋ ✋ 33.9 ms 89.9 MB
nested-unused-param ✋ ✋ 33.3 ms 90.0 MB
open-term-cache-context ✋ ✋ 30.0 ms 89.6 MB
orphan-rec ✋ ✋ 29.7 ms 89.3 MB
pi-closure-context ✋ ✋ 75.0 ms 96.4 MB
proj-non-structure ✋ ✋ 30.1 ms 90.2 MB
proj-of-imax-prop ✋ ✋ 31.1 ms 90.6 MB
proj-of-param-prop ✋ ✋ 30.5 ms 101.7 MB
proj-of-stuck-prop ✋ ✋ 59.8 ms 90.6 MB
proj-of-subst-prop ✋ ✋ 57.3 ms 90.4 MB
quot-bad-type ✋ ✋ 73.2 ms 96.1 MB
rec-k-lie ✋ ✋ 77.3 ms 96.3 MB
rec-missing-ih ✋ ✋ 59.1 ms 92.1 MB
rec-of-subst-prop ✋ ✋ 60.4 ms 92.2 MB
rec-rule-proof-irrel ✋ ✋ 32.6 ms 90.0 MB
rec-rule-proof-irrel-nested ✋ ✋ 33.2 ms 90.3 MB
rec-rule-wrong-arg ✋ ✋ 33.2 ms 90.1 MB
rec-type-proof-irrel ✋ ✋ 33.3 ms 90.2 MB
str-lit-utf8 👍 👍 97.9 ms 93.8 MB
str-lit-utf8-bad ✋ ✋ 185 ms 100.5 MB
unit-rec-rule ✋ ✋ 75.2 ms 96.9 MB
1 1.68 s 97.0 MB
alg-conv-trans-acc 🤷 ✋ 85.8 ms 96.3 MB
alg-conv-trans-acc-left 🤷 👍 36.3 ms 89.9 MB
alg-conv-trans-acc-right 🤷 👍 36.5 ms 90.0 MB
alg-conv-trans-quot 🤷 ✋ 75.7 ms 96.4 MB
alg-conv-trans-quot-left 🤷 ✋ 77.7 ms 96.5 MB
alg-conv-trans-quot-left-def 🤷 👍 30.3 ms 89.5 MB
alg-conv-trans-quot-right 🤷 👍 30.1 ms 89.2 MB
eta-ctor 🤷 ✋ 73.6 ms 96.8 MB
eta-rec-struct 🤷 ✋ 77.7 ms 96.3 MB
eta-rule-k 🤷 ✋ 73.4 ms 96.8 MB
eta-struct-major-and 🤷 ✋ 75.8 ms 96.5 MB
eta-struct-major-and-no-whnf 🤷 ✋ 91.2 ms 90.0 MB
eta-struct-major-no-whnf 🤷 ✋ 91.3 ms 89.3 MB
eta-unit-like-nested 🤷 ✋ 74.1 ms 97.0 MB
eta-unit-like-pi 🤷 ✋ 75.4 ms 96.7 MB
eta-unit-like-proof-field 🤷 ✋ 75.4 ms 96.9 MB
eta-unit-like-struct 🤷 ✋ 79.5 ms 96.3 MB
imax-nested-absorption 🤷 ✋ 75.0 ms 95.7 MB
imax-right-successor 🤷 ✋ 73.0 ms 96.8 MB
large-elim-maybe-prop 🤷 ✋ 29.9 ms 89.2 MB
let-value-type-mismatch 🤷 ✋ 29.7 ms 89.7 MB
nested-nonuniform-param 🤷 👍 30.2 ms 89.8 MB
nested-redex-aux 🤷 👍 33.3 ms 90.1 MB
positivity-whnf 🤷 ✋ 30.0 ms 89.4 MB
proj-maybe-prop 🤷 ✋ 30.3 ms 90.2 MB
proj-maybe-prop-past 🤷 ✋ 30.3 ms 90.2 MB
proof-param-ok 👍 👍 29.6 ms 89.1 MB
proof-param-swap 🤷 ✋ 29.8 ms 90.0 MB
subject-reduction-redex 🤷 👍 36.5 ms 89.2 MB
subject-reduction-reduct 🤷 ✋ 36.8 ms 90.6 MB
vanishing-occurrence 🤷 👍 29.9 ms 89.0 MB
10 352 ms 96.3 MB
extra-rec ✋ ✋ 29.7 ms 89.8 MB
inductive-undeclared-universe ✋ ✋ 29.8 ms 89.0 MB
level-index-out-of-order 👍 👍 29.4 ms 88.6 MB
nat-lit-add 👍 👍 31.8 ms 89.7 MB
nat-lit-add-bad ✋ ✋ 77.3 ms 96.3 MB
nat-lit-ble 👍 👍 32.1 ms 89.2 MB
nat-lit-sub 👍 👍 32.2 ms 89.3 MB
orphan-ctor ✋ ✋ 29.7 ms 89.2 MB
proj-of-prop ✋ ✋ 30.1 ms 90.0 MB
sparse-name-index 👍 👍 29.4 ms 88.4 MB
41 4.13 min (+44%) 7.8 GB
app-lam 👍 👍 4.87 s (0%) 1.4 GB (0%)
args-before-unfold 👍 👍 44.2 ms (+10%) 89.9 MB (-2%)
beta-ladder 👍 👍 1.66 s (-1%) 524.8 MB (0%)
church-numerals 👍 👍 100 ms (+95%) 114.5 MB (+10%)
discarded-argument 👍 👍 1.20 s (×7.1) 89.4 MB (-2%)
discarded-argument-match 👍 👍 11.5 s (×79) 93.6 MB (0%)
folded-constant-first 👍 👍 47.9 ms (+7%) 93.2 MB (-2%)
folded-constant-last 👍 👍 47.9 ms (+7%) 92.6 MB (-2%)
fueled-chain 👍 👍 156 ms (+17%) 97.3 MB (-4%)
gf3-matrix-product 👍 👍 1.87 s (+3%) 3.5 GB (0%)
grind-field-kernel-cancel 👍 👍 36.9 s (+43%) 386.6 MB (+2%)
grind-ring-5 👍 👍 2.83 s (+30%) 288.2 MB (+14%)
identical-nesting 👍 👍 30.1 ms (-7%) 89.4 MB (-2%)
irrelevance-before-evaluation 👍 👍 30.8 ms (-7%) 89.9 MB (-2%)
irrelevance-refutes 👍 👍 30.5 ms (-7%) 89.9 MB (-2%)
ite-taken-branch 👍 ✋ 956 ms 101.8 MB
ite-taken-branch-bad ✋ ✋ 694 ms (÷9.8) 101.4 MB (÷17)
let-fold 👍 👍 67.2 ms (+7%) 91.5 MB (-3%)
let-ladder 👍 👍 1.01 s (0%) 324.8 MB (-2%)
loop-unfolded-once 👍 👍 636 ms (+21%) 99.9 MB (-2%)
loop-unfolded-once-bad ✋ ✋ 53.4 s (×3.7) 107.0 MB (+3%)
magma-list-deep-n21 👍 👍 3.37 s (+25%) 683.6 MB (-1%)
magma-list-deep-n36 👍 👍 44.8 s (+26%) 7.8 GB (0%)
magma-list-pair-n21 👍 👍 24.2 s (+30%) 4.0 GB (+1%)
magma-list-pair-n7 👍 👍 2.22 s (+30%) 454.1 MB (0%)
magma-string-n4 👍 👍 5.13 s (+43%) 144.3 MB (-4%)
magma-string-pair-n9 👍 👍 11.3 s (+38%) 1010.6 MB (0%)
proj-app-lazy-delta 👍 ✋ 896 ms 225.5 MB
proj-applied-struct 👍 ✋ 782 ms 244.7 MB
proj-applied-struct-arg-bad ✋ ✋ 782 ms (÷6.0) 244.8 MB (÷5.9)
proj-applied-struct-bad ✋ ✋ 781 ms (÷6.2) 244.9 MB (÷5.9)
proj-cheap-struct 👍 👍 37.5 ms (-4%) 89.0 MB (-3%)
proj-lazy-struct 👍 👍 33.5 ms (-6%) 89.5 MB (-3%)
proj-stuck-struct 👍 👍 34.0 ms (-5%) 89.9 MB (-2%)
prop-struct-projections 👍 👍 108 ms (+3%) 95.9 MB (0%)
refute-cheap-first ✋ ✋ 80.9 ms (+96%) 96.7 MB (+3%)
refute-cheap-last ✋ ✋ 1.33 s (×7.4) 97.2 MB (+4%)
repeated-subproblem 👍 👍 30.5 ms (-7%) 89.7 MB (-3%)
shared-subterm 👍 👍 75.5 ms (+22%) 96.8 MB (-2%)
shift-cascade 👍 👍 50.0 ms (-2%) 91.6 MB (-3%)
short-circuit-and 👍 👍 23.0 s (+32%) 1.5 GB (0%)
short-circuit-and-bad ✋ ✋ 8.13 s (+32%) 1.5 GB (0%)
unfold-before-literal 👍 ✋ 775 ms 244.8 MB
unfold-before-literal-bad ✋ ✋ 775 ms (÷6.3) 245.4 MB (÷5.9)
unfold-before-literal-fallback 👍 ✋ 776 ms 245.1 MB
unroll-versus-evaluate 👍 👍 33.2 ms (-6%) 90.0 MB (-3%)
141 4.58 s 97.1 MB
001_basicDef 👍 👍 29.4 ms 88.8 MB
002_badDef ✋ ✋ 72.9 ms 96.6 MB
003_arrowType 👍 👍 29.4 ms 89.1 MB
004_dependentType 👍 👍 29.4 ms 88.8 MB
005_constType 👍 👍 29.5 ms 89.2 MB
006_betaReduction 👍 👍 29.5 ms 89.4 MB
007_betaReduction2 👍 👍 29.5 ms 88.9 MB
008_forallSortWhnf 👍 👍 29.5 ms 88.8 MB
009_forallSortBad ✋ ✋ 29.7 ms 90.2 MB
010_nonTypeType ✋ ✋ 29.7 ms 90.1 MB
011_nonTypeAxiom ✋ ✋ 29.7 ms 90.2 MB
012_nonPropThm ✋ ✋ 29.7 ms 89.6 MB
013_thmProof 👍 👍 29.5 ms 88.7 MB
014_selfProof ✋ ✋ 29.7 ms 89.0 MB
015_levelComp1 👍 👍 29.4 ms 88.7 MB
016_levelComp2 👍 👍 29.4 ms 88.9 MB
017_levelComp3 👍 👍 29.4 ms 88.7 MB
018_levelParams 👍 👍 29.5 ms 88.8 MB
019_tut06_bad01 ✋ ✋ 29.7 ms 88.7 MB
020_levelComp4 👍 👍 29.4 ms 88.8 MB
021_levelComp5 👍 👍 29.4 ms 88.9 MB
022_imax1 👍 👍 29.5 ms 88.9 MB
023_imax2 👍 👍 29.5 ms 88.8 MB
024_levelMaxComm 👍 👍 29.4 ms 89.3 MB
025_levelMaxAssoc 👍 👍 29.4 ms 88.5 MB
026_levelMaxIdem 👍 👍 29.4 ms 89.4 MB
027_levelMaxAbsorb 👍 👍 29.4 ms 89.5 MB
028_inferVar 👍 👍 29.5 ms 88.7 MB
029_defEqLambda 👍 👍 29.5 ms 89.5 MB
030_peano1 👍 👍 29.7 ms 89.6 MB
031_peano2 👍 👍 29.8 ms 89.5 MB
032_peano3 👍 👍 29.9 ms 89.1 MB
033_letType 👍 👍 29.4 ms 88.7 MB
034_letTypeDep 👍 👍 29.5 ms 88.8 MB
035_letRed 👍 👍 29.4 ms 88.8 MB
036_empty 👍 👍 29.5 ms 89.5 MB
037_boolType 👍 👍 29.6 ms 89.7 MB
038_twoBool 👍 👍 29.7 ms 89.5 MB
039_andType 👍 👍 29.6 ms 89.3 MB
040_prodType 👍 👍 29.7 ms 89.9 MB
041_pprodType 👍 👍 29.7 ms 89.1 MB
042_pUnitType 👍 👍 29.5 ms 89.3 MB
043_eqType 👍 👍 29.7 ms 89.3 MB
044_natDef 👍 👍 29.6 ms 89.0 MB
045_rbTreeDef 👍 👍 30.7 ms 89.7 MB
046_inductBadNonSort ✋ ✋ 29.8 ms 90.0 MB
047_inductBadNonSort2 ✋ ✋ 29.7 ms 89.8 MB
048_inductLevelParam ✋ ✋ 29.7 ms 89.5 MB
049_inductTooFewParams ✋ ✋ 29.7 ms 89.1 MB
050_inductWrongCtorParams ✋ ✋ 29.7 ms 89.7 MB
051_inductWrongCtorResParams ✋ ✋ 29.7 ms 89.6 MB
052_inductWrongCtorResLevel ✋ ✋ 29.7 ms 89.5 MB
053_inductInIndex ✋ ✋ 29.7 ms 89.3 MB
054_indNeg ✋ ✋ 29.7 ms 89.9 MB
055_reduceCtorParam.mk 👍 👍 29.7 ms 89.2 MB
056_reduceCtorType.mk ✋ ✋ 29.8 ms 89.4 MB
057_indNegReducible ✋ ✋ 29.8 ms 89.7 MB
058_predWithTypeField 👍 👍 29.5 ms 89.4 MB
059_typeWithTypeField 👍 👍 29.6 ms 89.2 MB
060_typeWithTypeFieldPoly 👍 👍 29.6 ms 89.4 MB
061_typeWithTooHighTypeField.mk ✋ ✋ 29.7 ms 89.4 MB
062_emptyRec 👍 👍 29.5 ms 89.8 MB
063_boolRec 👍 👍 29.6 ms 89.7 MB
064_twoBoolRec 👍 👍 29.8 ms 89.3 MB
065_andRec 👍 👍 29.7 ms 89.2 MB
066_prodRec 👍 👍 29.7 ms 89.2 MB
067_pprodRec 👍 👍 29.7 ms 89.5 MB
068_punitRec 👍 👍 29.6 ms 90.0 MB
069_eqRec 👍 👍 29.7 ms 89.9 MB
070_nRec 👍 👍 29.7 ms 89.6 MB
071_rbTreeRef 👍 👍 30.8 ms 89.9 MB
072_boolPropRec 👍 👍 29.6 ms 89.8 MB
073_BogusRecursor ✋ ✋ 29.8 ms 89.6 MB
074_existsRec 👍 👍 29.7 ms 89.5 MB
075_typeSingletonRecReduction 👍 👍 30.0 ms 89.5 MB
076_sortElimPropRec 👍 👍 29.9 ms 89.1 MB
077_sortElimProp2Rec 👍 👍 30.0 ms 89.2 MB
078_boolRecEqns 👍 👍 30.3 ms 89.7 MB
079_prodRecEqns 👍 👍 30.3 ms 89.5 MB
080_nRecReduction 👍 👍 30.5 ms 89.3 MB
081_listRecReduction 👍 👍 31.1 ms 89.4 MB
082_RBTree.id_spec 👍 👍 34.0 ms 90.0 MB
083_And.right 👍 👍 29.7 ms 89.0 MB
084_Prod.snd 👍 👍 29.8 ms 90.1 MB
085_PProd.snd 👍 👍 29.8 ms 89.3 MB
086_PSigma.snd 👍 👍 29.8 ms 89.2 MB
087_projOutOfRange ✋ ✋ 30.0 ms 90.6 MB
088_projNotStruct ✋ ✋ 29.9 ms 89.8 MB
089_projProp1 👍 👍 30.0 ms 89.8 MB
090_projProp2 ✋ ✋ 30.3 ms 90.0 MB
091_projProp3 👍 👍 30.0 ms 89.1 MB
092_projProp4 ✋ ✋ 30.3 ms 90.6 MB
093_projProp5 ✋ ✋ 30.3 ms 90.6 MB
094_projProp6 ✋ ✋ 30.3 ms 90.5 MB
095_projDataIndexRec 👍 👍 29.9 ms 89.2 MB
096_projIndexData ✋ ✋ 30.7 ms 89.9 MB
097_projIndexData2 ✋ ✋ 30.7 ms 90.3 MB
098_projRed 👍 👍 30.2 ms 89.9 MB
099_ruleK 👍 👍 29.9 ms 89.3 MB
100_ruleKbad ✋ ✋ 75.5 ms 97.1 MB
101_ruleKAcc ✋ ✋ 78.0 ms 96.2 MB
102_aNatLit 👍 👍 29.6 ms 89.1 MB
103_natLitEq 👍 👍 29.9 ms 89.6 MB
104_proofIrrelevance 👍 👍 29.8 ms 90.0 MB
105_proofIrrelevanceBad ✋ ✋ 73.3 ms 97.0 MB
106_proofIrrelevanceWhnf 👍 👍 29.8 ms 89.1 MB
107_proofIrrelevanceUnderBinder 👍 👍 29.5 ms 89.4 MB
108_unitEta1 👍 👍 29.9 ms 89.1 MB
109_unitEta2 👍 👍 29.9 ms 90.1 MB
110_unitEta3 👍 👍 29.9 ms 89.7 MB
111_indexedUnitEta ✋ ✋ 79.5 ms 96.8 MB
112_structEta 👍 👍 30.5 ms 89.8 MB
113_indexedStructEta ✋ ✋ 77.6 ms 96.2 MB
114_funEta 👍 👍 29.8 ms 89.6 MB
115_funEtaDep 👍 👍 29.8 ms 89.3 MB
116_funEtaBad ✋ ✋ 75.4 ms 97.0 MB
117_reflOccLeft ✋ ✋ 29.9 ms 89.3 MB
118_reflOccInIndex ✋ ✋ 30.0 ms 90.1 MB
119_reduceCtorParamRefl.mk 👍 👍 29.8 ms 89.7 MB
120_reduceCtorParamRefl2.mk 👍 👍 29.8 ms 89.7 MB
121_rTreeRec 👍 👍 29.8 ms 89.5 MB
122_rtreeRecReduction 👍 👍 30.2 ms 89.9 MB
123_accRecType 👍 👍 30.0 ms 89.4 MB
124_accRecReduction 👍 👍 30.6 ms 90.0 MB
125_accRecNoEta ✋ ✋ 78.0 ms 96.3 MB
126_quotMkType 👍 👍 29.8 ms 89.7 MB
127_quotIndType 👍 👍 29.9 ms 89.4 MB
128_quotLiftType 👍 👍 29.9 ms 89.2 MB
129_quotSoundType 👍 👍 29.9 ms 89.3 MB
130_quotLiftReduction 👍 👍 30.1 ms 89.2 MB
131_quotIndReduction 👍 👍 30.0 ms 89.3 MB
132_dup_defs ✋ ✋ 29.4 ms 89.1 MB
133_dup_ind_def ✋ ✋ 29.5 ms 89.2 MB
134_dup_ctor_def ✋ ✋ 29.5 ms 88.3 MB
135_dup_rec_def ✋ ✋ 29.5 ms 88.7 MB
136_misnamed_rec_user ✋ ✋ 29.8 ms 89.7 MB
137_dup_rec_def2 ✋ ✋ 29.8 ms 89.7 MB
138_dup_ctor_rec ✋ ✋ 29.5 ms 88.9 MB
139_DupConCon ✋ ✋ 29.5 ms 89.1 MB
140_falseFromUnsafe ✋ ✋ 29.7 ms 89.1 MB
141_falseFromPartial ✋ ✋ 29.7 ms 89.1 MB