Lean Kernel Arena / nanoda

Checker "nanoda"

Language: Rust Rust · Version: 0da9f98 · 📄 Declaration · 🔗 Source

Nanoda - An alternative Lean 4 kernel implementation in Rust.

This is an independent proof checker that validates Lean 4 exports using a different implementation approach. Features:

  • Written in Rust for performance
  • Supports standard Lean 4 axioms (propext, choice, etc.)
  • Configurable axiom checking policy
  • Native JSON parsing with string optimizations
  • Parallel checking using multiple threads (set to 4 threads in the kernel arena)

Useful for cross-validation against the official kernel and testing implementation diversity in the Lean ecosystem.

The nanoda integration in the arena does not distinguish between a rejected proof and other forms of failure, so they are all repoted as “rejected”.

The checker threads’ stack size is a hard-coded constant in nanoda; the arena patches it from 16 MiB up to 256 MiB, as some tests need deeper recursion than 16 MiB allows.

Soundness (rightfully rejected tests)

97 ✅ 0 ❌ 0 🚫

Completeness (rightfully accepted tests)

148 ✅ 0 ❌ 2 🚫

Corner cases (no outcome prescribed)

28 ✅ 2 🚫

Test Expected Result ⏱️ 🧠
cedar 👍 👍 75.7 s (-49%) 1.1 GB (-21%)
con-leche 👍 👍 84.5 s (÷2.6) 1006.1 MB (÷7.1)
cslib 👍 👍 4.30 min (÷2.2) 2.5 GB (-30%)
init 👍 👍 37.3 s (-44%) 519.8 MB (-12%)
init-prelude 👍 👍 145 ms (÷2.6) 7.9 MB (÷13)
mathlib 👍 👍 16.0 min (÷2.1) 5.9 GB (-40%)
navier-stokes-euler 👍 👍 8.22 min (-27%) 1.6 GB (-36%)
reachability 👍 👍 21.0 s (-11%) 2.1 GB (+27%)
std 👍 👍 57.6 s (-48%) 738.0 MB (-21%)
40 139 ms 4.7 MB
closure-level-subst ✋ ✋ 0.566 ms 3.3 MB
const-level-arity ✋ ✋ 0.473 ms 3.1 MB
constlevels ✋ ✋ 0.896 ms 3.0 MB
ctor-num-fields ✋ ✋ 1.79 ms 3.1 MB
eta-ctor-alias ✋ ✋ 0.678 ms 3.2 MB
inductive-forged-all ✋ ✋ 0.409 ms 3.0 MB
k-rec-conv ✋ ✋ 0.876 ms 3.1 MB
large-elim-param ✋ ✋ 0.618 ms 3.1 MB
large-elim-prop-bool ✋ ✋ 1.14 ms 3.2 MB
level-imax-leq ✋ ✋ 0.653 ms 3.1 MB
level-imax-normalization ✋ ✋ 0.617 ms 3.4 MB
loose-bvar-value ✋ ✋ 0.596 ms 3.1 MB
nat-log2-not-native 👍 👍 1.70 ms 3.1 MB
nat-log2-not-native-bad ✋ ✋ 1.77 ms 3.4 MB
nat-rec-k-lie ✋ ✋ 0.680 ms 3.2 MB
nat-rec-rules ✋ ✋ 0.756 ms 3.2 MB
nat-shift-huge 👍 👍 13.3 ms 3.6 MB
nested-name-capture ✋ ✋ 1.26 ms 3.3 MB
nested-rec-hijack ✋ ✋ 0.852 ms 3.3 MB
nested-rec-rule-nfields ✋ ✋ 1.73 ms 3.2 MB
nested-unused-param ✋ ✋ 2.49 ms 3.2 MB
open-term-cache-context ✋ ✋ 0.493 ms 3.1 MB
orphan-rec ✋ ✋ 0.404 ms 3.0 MB
pi-closure-context ✋ ✋ 0.488 ms 3.2 MB
proj-non-structure ✋ ✋ 0.587 ms 3.0 MB
proj-of-imax-prop ✋ ✋ 1.04 ms 3.2 MB
proj-of-param-prop ✋ ✋ 0.815 ms 3.2 MB
proj-of-stuck-prop ✋ ✋ 10.9 ms 3.7 MB
proj-of-subst-prop ✋ ✋ 10.6 ms 3.6 MB
quot-bad-type ✋ ✋ 0.585 ms 3.2 MB
rec-k-lie ✋ ✋ 0.603 ms 3.1 MB
rec-missing-ih ✋ ✋ 11.9 ms 3.7 MB
rec-of-subst-prop ✋ ✋ 11.1 ms 3.9 MB
rec-rule-proof-irrel ✋ ✋ 1.20 ms 3.2 MB
rec-rule-proof-irrel-nested ✋ ✋ 1.40 ms 3.2 MB
rec-rule-wrong-arg ✋ ✋ 1.11 ms 3.0 MB
rec-type-proof-irrel ✋ ✋ 1.20 ms 3.4 MB
str-lit-utf8 👍 👍 23.8 ms 4.3 MB
str-lit-utf8-bad ✋ ✋ 26.4 ms 4.7 MB
unit-rec-rule ✋ ✋ 0.617 ms 3.1 MB
1 32.7 ms 3.3 MB
alg-conv-trans-acc 🤷 ✋ 3.13 ms 3.3 MB
alg-conv-trans-acc-left 🤷 👍 3.06 ms 3.0 MB
alg-conv-trans-acc-right 🤷 👍 3.16 ms 3.3 MB
alg-conv-trans-quot 🤷 ✋ 0.749 ms 3.2 MB
alg-conv-trans-quot-left 🤷 ✋ 0.756 ms 2.9 MB
alg-conv-trans-quot-left-def 🤷 👍 0.751 ms 3.1 MB
alg-conv-trans-quot-right 🤷 👍 0.709 ms 3.0 MB
eta-ctor 🤷 ✋ 0.728 ms 3.0 MB
eta-rec-struct 🤷 ✋ 0.760 ms 3.0 MB
eta-rule-k 🤷 ✋ 0.651 ms 3.0 MB
eta-struct-major-and 🤷 ✋ 0.758 ms 3.0 MB
eta-struct-major-and-no-whnf 🤷 ⌛ — —
eta-struct-major-no-whnf 🤷 ⌛ — —
eta-unit-like-nested 🤷 ✋ 0.956 ms 3.0 MB
eta-unit-like-pi 🤷 ✋ 0.627 ms 3.1 MB
eta-unit-like-proof-field 🤷 ✋ 0.652 ms 2.9 MB
eta-unit-like-struct 🤷 ✋ 0.659 ms 2.9 MB
imax-nested-absorption 🤷 👍 0.424 ms 3.1 MB
imax-right-successor 🤷 👍 0.413 ms 2.9 MB
large-elim-maybe-prop 🤷 ✋ 0.558 ms 3.1 MB
let-value-type-mismatch 🤷 ✋ 0.455 ms 3.0 MB
nested-nonuniform-param 🤷 👍 0.737 ms 3.1 MB
nested-redex-aux 🤷 👍 2.10 ms 3.3 MB
positivity-whnf 🤷 ✋ 0.574 ms 3.2 MB
proj-maybe-prop 🤷 ✋ 0.707 ms 3.0 MB
proj-maybe-prop-past 🤷 ✋ 0.708 ms 3.0 MB
proof-param-ok 👍 👍 0.489 ms 3.1 MB
proof-param-swap 🤷 ✋ 0.528 ms 3.1 MB
subject-reduction-redex 🤷 👍 3.17 ms 3.2 MB
subject-reduction-reduct 🤷 ✋ 3.11 ms 3.1 MB
vanishing-occurrence 🤷 👍 0.634 ms 2.9 MB
8 7.86 ms 3.3 MB
extra-rec ✋ ✋ 0.494 ms 3.0 MB
inductive-undeclared-universe ✋ ✋ 0.498 ms 3.3 MB
level-index-out-of-order 👍 🚫 0.388 ms 2.9 MB
nat-lit-add 👍 👍 1.22 ms 3.1 MB
nat-lit-add-bad ✋ ✋ 1.26 ms 3.2 MB
nat-lit-ble 👍 👍 1.30 ms 3.1 MB
nat-lit-sub 👍 👍 1.34 ms 3.3 MB
orphan-ctor ✋ ✋ 0.404 ms 3.0 MB
proj-of-prop ✋ ✋ 0.561 ms 3.2 MB
sparse-name-index 👍 🚫 0.387 ms 3.0 MB
46 3.22 min (-17%) 4.1 GB
app-lam 👍 👍 4.33 s (-11%) 2.1 GB (+45%)
args-before-unfold 👍 👍 4.67 ms (÷8.6) 3.9 MB (÷23)
beta-ladder 👍 👍 1.26 s (-24%) 607.2 MB (+15%)
church-numerals 👍 👍 106 ms (×2.1) 10.1 MB (÷10)
discarded-argument 👍 👍 9.62 ms (÷18) 3.4 MB (÷27)
discarded-argument-match 👍 👍 32.3 ms (÷4.5) 4.4 MB (÷21)
folded-constant-first 👍 👍 6.84 ms (÷6.6) 4.3 MB (÷22)
folded-constant-last 👍 👍 6.84 ms (÷6.6) 4.4 MB (÷22)
fueled-chain 👍 👍 42.7 ms (÷3.1) 6.2 MB (÷16)
gf3-matrix-product 👍 👍 2.89 s (+59%) 3.2 GB (-11%)
grind-field-kernel-cancel 👍 👍 20.6 s (-20%) 823.4 MB (×2.2)
grind-ring-5 👍 👍 1.37 s (-37%) 153.6 MB (-39%)
identical-nesting 👍 👍 0.661 ms (÷49) 3.1 MB (÷30)
irrelevance-before-evaluation 👍 👍 0.884 ms (÷38) 3.0 MB (÷30)
irrelevance-refutes 👍 👍 0.816 ms (÷40) 3.0 MB (÷30)
ite-taken-branch 👍 👍 14.1 s (-27%) 2.0 GB (+18%)
ite-taken-branch-bad ✋ ✋ 4.77 s (-30%) 677.9 MB (÷2.5)
let-fold 👍 👍 1.93 s (×31) 287.7 MB (×3.1)
let-ladder 👍 👍 700 ms (-31%) 306.3 MB (-7%)
loop-unfolded-once 👍 👍 218 ms (÷2.4) 11.6 MB (÷8.8)
loop-unfolded-once-bad ✋ ✋ 234 ms (÷61) 14.9 MB (÷7.0)
magma-list-deep-n21 👍 👍 2.12 s (-21%) 270.8 MB (÷2.5)
magma-list-deep-n36 👍 👍 37.7 s (+6%) 2.5 GB (÷3.1)
magma-list-pair-n21 👍 👍 14.6 s (-21%) 4.1 GB (+2%)
magma-list-pair-n7 👍 👍 1.27 s (-25%) 323.4 MB (-29%)
magma-string-n4 👍 👍 2.07 s (-42%) 69.1 MB (÷2.2)
magma-string-pair-n9 👍 👍 6.02 s (-27%) 570.7 MB (-43%)
proj-app-lazy-delta 👍 👍 2.12 s (+2%) 546.4 MB (-11%)
proj-applied-struct 👍 👍 12.8 s (-9%) 2.6 GB (+84%)
proj-applied-struct-arg-bad ✋ ✋ 12.8 s (×2.7) 2.6 GB (+85%)
proj-applied-struct-bad ✋ ✋ 4.26 s (-13%) 907.7 MB (-38%)
proj-cheap-struct 👍 👍 3.20 ms (÷12) 3.2 MB (÷29)
proj-lazy-struct 👍 👍 1.87 ms (÷19) 3.1 MB (÷30)
proj-stuck-struct 👍 👍 2.04 ms (÷18) 3.2 MB (÷29)
prop-struct-projections 👍 👍 90.6 ms (-13%) 4.8 MB (÷20)
refute-cheap-first ✋ ✋ 1.08 ms (÷38) 3.2 MB (÷29)
refute-cheap-last ✋ ✋ 11.5 ms (÷16) 3.5 MB (÷27)
repeated-subproblem 👍 👍 0.843 ms (÷39) 3.1 MB (÷29)
shared-subterm 👍 👍 44.0 ms (-29%) 5.9 MB (÷17)
shift-cascade 👍 👍 6.36 ms (÷8.0) 4.1 MB (÷23)
short-circuit-and 👍 👍 10.8 s (-38%) 1.8 GB (+16%)
short-circuit-and-bad ✋ ✋ 3.73 s (-40%) 619.0 MB (÷2.5)
unfold-before-literal 👍 👍 12.7 s (-12%) 2.6 GB (+85%)
unfold-before-literal-bad ✋ ✋ 4.28 s (-12%) 907.4 MB (-38%)
unfold-before-literal-fallback 👍 👍 12.7 s (-13%) 2.6 GB (+85%)
unroll-versus-evaluate 👍 👍 1.57 ms (÷23) 3.3 MB (÷28)
141 78.8 ms 3.3 MB
001_basicDef 👍 👍 0.400 ms 3.1 MB
002_badDef ✋ ✋ 0.455 ms 3.2 MB
003_arrowType 👍 👍 0.406 ms 3.0 MB
004_dependentType 👍 👍 0.403 ms 3.0 MB
005_constType 👍 👍 0.412 ms 3.1 MB
006_betaReduction 👍 👍 0.424 ms 3.1 MB
007_betaReduction2 👍 👍 0.425 ms 3.0 MB
008_forallSortWhnf 👍 👍 0.422 ms 2.9 MB
009_forallSortBad ✋ ✋ 0.471 ms 2.9 MB
010_nonTypeType ✋ ✋ 0.463 ms 3.0 MB
011_nonTypeAxiom ✋ ✋ 0.464 ms 3.1 MB
012_nonPropThm ✋ ✋ 0.458 ms 3.1 MB
013_thmProof 👍 👍 0.424 ms 2.9 MB
014_selfProof ✋ ✋ 0.452 ms 3.2 MB
015_levelComp1 👍 👍 0.401 ms 3.1 MB
016_levelComp2 👍 👍 0.402 ms 3.2 MB
017_levelComp3 👍 👍 0.403 ms 3.2 MB
018_levelParams 👍 👍 0.427 ms 3.0 MB
019_tut06_bad01 ✋ ✋ 0.449 ms 3.1 MB
020_levelComp4 👍 👍 0.402 ms 2.9 MB
021_levelComp5 👍 👍 0.402 ms 3.1 MB
022_imax1 👍 👍 0.411 ms 3.1 MB
023_imax2 👍 👍 0.412 ms 2.9 MB
024_levelMaxComm 👍 👍 0.405 ms 3.0 MB
025_levelMaxAssoc 👍 👍 0.408 ms 3.1 MB
026_levelMaxIdem 👍 👍 0.403 ms 3.0 MB
027_levelMaxAbsorb 👍 👍 0.405 ms 3.1 MB
028_inferVar 👍 👍 0.407 ms 3.1 MB
029_defEqLambda 👍 👍 0.426 ms 2.9 MB
030_peano1 👍 👍 0.504 ms 3.0 MB
031_peano2 👍 👍 0.553 ms 3.0 MB
032_peano3 👍 👍 0.584 ms 2.9 MB
033_letType 👍 👍 0.403 ms 3.0 MB
034_letTypeDep 👍 👍 0.422 ms 3.1 MB
035_letRed 👍 👍 0.407 ms 3.0 MB
036_empty 👍 👍 0.425 ms 3.0 MB
037_boolType 👍 👍 0.458 ms 2.9 MB
038_twoBool 👍 👍 0.518 ms 3.1 MB
039_andType 👍 👍 0.499 ms 3.2 MB
040_prodType 👍 👍 0.523 ms 3.0 MB
041_pprodType 👍 👍 0.520 ms 3.1 MB
042_pUnitType 👍 👍 0.446 ms 3.1 MB
043_eqType 👍 👍 0.502 ms 3.0 MB
044_natDef 👍 👍 0.498 ms 3.2 MB
045_rbTreeDef 👍 👍 1.09 ms 3.0 MB
046_inductBadNonSort ✋ ✋ 0.466 ms 3.2 MB
047_inductBadNonSort2 ✋ ✋ 0.470 ms 3.2 MB
048_inductLevelParam ✋ ✋ 0.452 ms 3.0 MB
049_inductTooFewParams ✋ ✋ 0.458 ms 2.9 MB
050_inductWrongCtorParams ✋ ✋ 0.480 ms 3.0 MB
051_inductWrongCtorResParams ✋ ✋ 0.485 ms 3.0 MB
052_inductWrongCtorResLevel ✋ ✋ 0.489 ms 3.1 MB
053_inductInIndex ✋ ✋ 0.477 ms 3.2 MB
054_indNeg ✋ ✋ 0.446 ms 3.2 MB
055_reduceCtorParam.mk 👍 👍 0.539 ms 3.0 MB
056_reduceCtorType.mk ✋ ✋ 0.487 ms 3.0 MB
057_indNegReducible ✋ ✋ 0.466 ms 2.9 MB
058_predWithTypeField 👍 👍 0.453 ms 2.9 MB
059_typeWithTypeField 👍 👍 0.457 ms 3.0 MB
060_typeWithTypeFieldPoly 👍 👍 0.461 ms 2.9 MB
061_typeWithTooHighTypeField.mk ✋ ✋ 0.472 ms 3.2 MB
062_emptyRec 👍 👍 0.430 ms 2.9 MB
063_boolRec 👍 👍 0.481 ms 2.9 MB
064_twoBoolRec 👍 👍 0.539 ms 3.0 MB
065_andRec 👍 👍 0.512 ms 3.1 MB
066_prodRec 👍 👍 0.539 ms 3.1 MB
067_pprodRec 👍 👍 0.535 ms 2.9 MB
068_punitRec 👍 👍 0.457 ms 3.1 MB
069_eqRec 👍 👍 0.515 ms 2.9 MB
070_nRec 👍 👍 0.505 ms 3.1 MB
071_rbTreeRef 👍 👍 1.14 ms 2.9 MB
072_boolPropRec 👍 👍 0.461 ms 3.1 MB
073_BogusRecursor ✋ ✋ 0.509 ms 3.1 MB
074_existsRec 👍 👍 0.536 ms 2.9 MB
075_typeSingletonRecReduction 👍 👍 0.634 ms 2.9 MB
076_sortElimPropRec 👍 👍 0.586 ms 3.1 MB
077_sortElimProp2Rec 👍 👍 0.617 ms 2.9 MB
078_boolRecEqns 👍 👍 0.737 ms 2.9 MB
079_prodRecEqns 👍 👍 0.724 ms 2.9 MB
080_nRecReduction 👍 👍 0.828 ms 3.0 MB
081_listRecReduction 👍 👍 1.02 ms 3.2 MB
082_RBTree.id_spec 👍 👍 2.26 ms 3.3 MB
083_And.right 👍 👍 0.528 ms 3.0 MB
084_Prod.snd 👍 👍 0.548 ms 2.9 MB
085_PProd.snd 👍 👍 0.543 ms 3.1 MB
086_PSigma.snd 👍 👍 0.580 ms 3.2 MB
087_projOutOfRange ✋ ✋ 0.565 ms 3.2 MB
088_projNotStruct ✋ ✋ 0.555 ms 2.9 MB
089_projProp1 👍 👍 0.659 ms 3.1 MB
090_projProp2 ✋ ✋ 0.716 ms 3.1 MB
091_projProp3 👍 👍 0.663 ms 3.1 MB
092_projProp4 ✋ ✋ 0.713 ms 3.0 MB
093_projProp5 ✋ ✋ 0.725 ms 3.0 MB
094_projProp6 ✋ ✋ 0.715 ms 3.1 MB
095_projDataIndexRec 👍 👍 0.607 ms 3.1 MB
096_projIndexData ✋ ✋ 0.886 ms 3.0 MB
097_projIndexData2 ✋ ✋ 0.889 ms 3.1 MB
098_projRed 👍 👍 0.716 ms 3.1 MB
099_ruleK 👍 👍 0.600 ms 3.0 MB
100_ruleKbad ✋ ✋ 0.656 ms 3.1 MB
101_ruleKAcc ✋ ✋ 0.918 ms 3.1 MB
102_aNatLit 👍 👍 0.492 ms 3.1 MB
103_natLitEq 👍 👍 0.603 ms 3.0 MB
104_proofIrrelevance 👍 👍 0.546 ms 3.1 MB
105_proofIrrelevanceBad ✋ ✋ 0.596 ms 3.2 MB
106_proofIrrelevanceWhnf 👍 👍 0.563 ms 3.0 MB
107_proofIrrelevanceUnderBinder 👍 👍 0.441 ms 3.0 MB
108_unitEta1 👍 👍 0.583 ms 3.1 MB
109_unitEta2 👍 👍 0.575 ms 2.9 MB
110_unitEta3 👍 👍 0.577 ms 2.9 MB
111_indexedUnitEta ✋ ✋ 0.674 ms 3.2 MB
112_structEta 👍 👍 0.816 ms 3.0 MB
113_indexedStructEta ✋ ✋ 0.717 ms 3.1 MB
114_funEta 👍 👍 0.556 ms 2.9 MB
115_funEtaDep 👍 👍 0.560 ms 3.1 MB
116_funEtaBad ✋ ✋ 0.604 ms 3.1 MB
117_reflOccLeft ✋ ✋ 0.540 ms 3.0 MB
118_reflOccInIndex ✋ ✋ 0.579 ms 3.1 MB
119_reduceCtorParamRefl.mk 👍 👍 0.560 ms 3.2 MB
120_reduceCtorParamRefl2.mk 👍 👍 0.560 ms 3.1 MB
121_rTreeRec 👍 👍 0.580 ms 3.0 MB
122_rtreeRecReduction 👍 👍 0.745 ms 2.9 MB
123_accRecType 👍 👍 0.697 ms 3.1 MB
124_accRecReduction 👍 👍 0.895 ms 2.9 MB
125_accRecNoEta ✋ ✋ 0.923 ms 3.2 MB
126_quotMkType 👍 👍 0.628 ms 3.1 MB
127_quotIndType 👍 👍 0.636 ms 3.2 MB
128_quotLiftType 👍 👍 0.637 ms 3.1 MB
129_quotSoundType 👍 👍 0.662 ms 3.0 MB
130_quotLiftReduction 👍 👍 0.684 ms 2.9 MB
131_quotIndReduction 👍 👍 0.680 ms 2.9 MB
132_dup_defs ✋ ✋ 0.410 ms 2.9 MB
133_dup_ind_def ✋ ✋ 0.431 ms 3.1 MB
134_dup_ctor_def ✋ ✋ 0.430 ms 3.1 MB
135_dup_rec_def ✋ ✋ 0.431 ms 3.1 MB
136_misnamed_rec_user ✋ ✋ 0.514 ms 2.9 MB
137_dup_rec_def2 ✋ ✋ 0.506 ms 3.0 MB
138_dup_ctor_rec ✋ ✋ 0.409 ms 2.9 MB
139_DupConCon ✋ ✋ 0.418 ms 2.9 MB
140_falseFromUnsafe ✋ ✋ 0.423 ms 3.0 MB
141_falseFromPartial ✋ ✋ 0.423 ms 3.0 MB