Lean Kernel Arena / nanoclo

Checker "nanoclo"

Language: Rust Rust · Version: b8cefd0 · 📄 Declaration · 🔗 Source

nanoclo — a Lean 4 kernel based on delayed substitutions. Terms in flight are closures over interned environments.

Forked from nanoda_lib. Entering a binder extends the environment in O(1); a variable occurrence reads its entry through skew-binary jump pointers; substitution into a body happens only when a type leaves the checker.

Conversion is sokonanoda's (Apache-2.0), as is the fast path of the export parser.

The modifications from the original nanoda_lib were written by Claude (Anthropic), directed by Sebastian Graf.

Soundness (rightfully rejected tests)

95 ✅ 2 ❌ 0 🚫

Completeness (rightfully accepted tests)

149 ✅ 1 ❌ 0 🚫

Corner cases (no outcome prescribed)

30 ✅ 0 🚫

Test Expected Result ⏱️ 🧠
cedar 👍 👍 51.6 s (÷2.9) 1.2 GB (-11%)
con-leche 👍 👍 56.5 s (÷3.8) 2.1 GB (÷3.4)
cslib 👍 👍 2.63 min (÷3.6) 2.7 GB (-22%)
init 👍 👍 21.9 s (÷3.1) 684.2 MB (+16%)
init-prelude 👍 👍 90.1 ms (÷4.2) 87.6 MB (-12%)
mathlib 👍 👍 8.37 min (÷4.0) 7.4 GB (-25%)
navier-stokes-euler 👍 👍 3.12 min (÷3.6) 2.6 GB (+5%)
reachability 👍 👍 3.49 s (÷6.7) 1.6 GB (-4%)
std 👍 👍 35.7 s (÷3.1) 937.5 MB (0%)
37 9.13 s 9.1 GB
closure-level-subst ✋ ✋ 0.659 ms 39.7 MB
const-level-arity ✋ ✋ 0.619 ms 33.6 MB
constlevels ✋ ✋ 0.893 ms 49.5 MB
ctor-num-fields ✋ ✋ 1.43 ms 53.7 MB
eta-ctor-alias ✋ ✋ 0.759 ms 45.4 MB
inductive-forged-all ✋ ✋ 0.539 ms 7.2 MB
k-rec-conv ✋ ✋ 0.863 ms 47.6 MB
large-elim-param ✋ ✋ 0.778 ms 43.6 MB
large-elim-prop-bool ✋ ✋ 1.03 ms 49.7 MB
level-imax-leq ✋ ✋ 0.772 ms 45.6 MB
level-imax-normalization ✋ ✋ 0.748 ms 41.4 MB
loose-bvar-value ✋ ✋ 0.717 ms 41.8 MB
nat-log2-not-native 👍 👍 1.83 ms 57.5 MB
nat-log2-not-native-bad ✋ ✋ 1.86 ms 47.5 MB
nat-rec-k-lie ✋ ✋ 0.748 ms 45.6 MB
nat-rec-rules ✋ ✋ 0.869 ms 49.6 MB
nat-shift-huge 👍 ✋ 9.04 s 9.1 GB
nested-name-capture ✋ ✋ 1.16 ms 51.6 MB
nested-rec-hijack ✋ ✋ 0.890 ms 47.6 MB
nested-rec-rule-nfields ✋ ✋ 1.39 ms 55.8 MB
nested-unused-param ✋ ✋ 1.91 ms 57.6 MB
open-term-cache-context ✋ ✋ 0.632 ms 31.6 MB
orphan-rec ✋ ✋ 0.533 ms 7.2 MB
pi-closure-context ✋ ✋ 0.620 ms 37.7 MB
proj-non-structure ✋ ✋ 0.709 ms 47.5 MB
proj-of-imax-prop ✋ ✋ 0.998 ms 49.6 MB
proj-of-param-prop ✋ ✋ 0.868 ms 55.5 MB
proj-of-stuck-prop ✋ ✋ 7.03 ms 67.6 MB
proj-of-subst-prop ✋ ✋ 7.01 ms 65.7 MB
quot-bad-type ✋ ✋ 0.709 ms 47.2 MB
rec-k-lie ✋ ✋ 0.713 ms 51.7 MB
rec-missing-ih ✋ ✋ 7.66 ms 67.5 MB
rec-of-subst-prop ✋ ✋ 7.31 ms 65.6 MB
rec-rule-proof-irrel ✋ 👍 1.03 ms 55.5 MB
rec-rule-proof-irrel-nested ✋ 👍 1.20 ms 55.3 MB
rec-rule-wrong-arg ✋ ✋ 1.03 ms 49.5 MB
rec-type-proof-irrel ✋ ✋ 1.09 ms 51.5 MB
str-lit-utf8 👍 👍 15.3 ms 69.3 MB
str-lit-utf8-bad ✋ ✋ 17.3 ms 67.5 MB
unit-rec-rule ✋ ✋ 0.719 ms 43.4 MB
1 32.4 ms 59.3 MB
alg-conv-trans-acc 🤷 ✋ 2.28 ms 55.7 MB
alg-conv-trans-acc-left 🤷 👍 2.23 ms 59.3 MB
alg-conv-trans-acc-right 🤷 👍 2.30 ms 57.4 MB
alg-conv-trans-quot 🤷 ✋ 0.833 ms 43.6 MB
alg-conv-trans-quot-left 🤷 👍 0.798 ms 45.5 MB
alg-conv-trans-quot-left-def 🤷 👍 0.842 ms 45.4 MB
alg-conv-trans-quot-right 🤷 👍 0.818 ms 45.3 MB
eta-ctor 🤷 ✋ 0.798 ms 45.5 MB
eta-rec-struct 🤷 ✋ 0.822 ms 45.6 MB
eta-rule-k 🤷 ✋ 0.757 ms 47.7 MB
eta-struct-major-and 🤷 👍 0.770 ms 43.5 MB
eta-struct-major-and-no-whnf 🤷 👍 1.03 ms 51.4 MB
eta-struct-major-no-whnf 🤷 👍 1.23 ms 57.6 MB
eta-unit-like-nested 🤷 ✋ 0.948 ms 53.7 MB
eta-unit-like-pi 🤷 ✋ 0.733 ms 47.4 MB
eta-unit-like-proof-field 🤷 ✋ 0.756 ms 47.7 MB
eta-unit-like-struct 🤷 ✋ 0.749 ms 45.5 MB
imax-nested-absorption 🤷 👍 0.587 ms 37.4 MB
imax-right-successor 🤷 👍 0.577 ms 37.6 MB
large-elim-maybe-prop 🤷 ✋ 0.686 ms 39.4 MB
let-value-type-mismatch 🤷 ✋ 0.606 ms 37.5 MB
nested-nonuniform-param 🤷 👍 0.810 ms 49.4 MB
nested-redex-aux 🤷 👍 1.58 ms 51.4 MB
positivity-whnf 🤷 ✋ 0.697 ms 45.6 MB
proj-maybe-prop 🤷 ✋ 0.794 ms 47.6 MB
proj-maybe-prop-past 🤷 ✋ 0.799 ms 51.6 MB
proof-param-ok 👍 👍 0.644 ms 41.5 MB
proof-param-swap 🤷 ✋ 0.672 ms 43.6 MB
subject-reduction-redex 🤷 👍 2.29 ms 53.4 MB
subject-reduction-reduct 🤷 ✋ 2.26 ms 49.6 MB
vanishing-occurrence 🤷 👍 0.729 ms 45.6 MB
10 8.19 ms 53.6 MB
extra-rec ✋ ✋ 0.643 ms 39.6 MB
inductive-undeclared-universe ✋ ✋ 0.653 ms 41.7 MB
level-index-out-of-order 👍 👍 0.569 ms 19.4 MB
nat-lit-add 👍 👍 1.10 ms 51.5 MB
nat-lit-add-bad ✋ ✋ 1.13 ms 49.7 MB
nat-lit-ble 👍 👍 1.15 ms 53.6 MB
nat-lit-sub 👍 👍 1.15 ms 51.3 MB
orphan-ctor ✋ ✋ 0.533 ms 7.2 MB
proj-of-prop ✋ ✋ 0.698 ms 49.4 MB
sparse-name-index 👍 👍 0.569 ms 29.4 MB
46 43.0 s (÷5.4) 3.7 GB
app-lam 👍 👍 12.5 ms (÷390) 83.3 MB (÷17)
args-before-unfold 👍 👍 2.66 ms (÷15) 52.5 MB (-43%)
beta-ladder 👍 👍 6.16 ms (÷272) 47.5 MB (÷11)
church-numerals 👍 👍 6.34 ms (÷8.1) 57.8 MB (-45%)
discarded-argument 👍 👍 2.16 ms (÷78) 43.7 MB (÷2.1)
discarded-argument-match 👍 👍 2.49 ms (÷59) 45.4 MB (÷2.1)
folded-constant-first 👍 👍 3.74 ms (÷12) 54.5 MB (-42%)
folded-constant-last 👍 👍 3.73 ms (÷12) 58.4 MB (-38%)
fueled-chain 👍 👍 86.6 ms (-35%) 101.7 MB (0%)
gf3-matrix-product 👍 👍 3.13 s (+72%) 3.7 GB (+5%)
grind-field-kernel-cancel 👍 👍 5.51 s (÷4.7) 846.1 MB (×2.2)
grind-ring-5 👍 👍 682 ms (÷3.2) 286.5 MB (+13%)
identical-nesting 👍 👍 0.737 ms (÷44) 47.5 MB (-48%)
irrelevance-before-evaluation 👍 👍 0.838 ms (÷40) 49.5 MB (-46%)
irrelevance-refutes 👍 👍 0.838 ms (÷39) 47.4 MB (-48%)
ite-taken-branch 👍 👍 1.48 s (÷13) 896.2 MB (-47%)
ite-taken-branch-bad ✋ ✋ 867 ms (÷7.8) 567.6 MB (÷3.0)
let-fold 👍 👍 8.75 ms (÷7.2) 67.5 MB (-28%)
let-ladder 👍 👍 5.36 ms (÷188) 63.4 MB (÷5.2)
loop-unfolded-once 👍 👍 138 ms (÷3.8) 111.5 MB (+9%)
loop-unfolded-once-bad ✋ ✋ 648 ms (÷22) 118.1 MB (+14%)
magma-list-deep-n21 👍 👍 168 ms (÷16) 143.9 MB (÷4.8)
magma-list-deep-n36 👍 👍 1.23 s (÷29) 700.9 MB (÷11)
magma-list-pair-n21 👍 👍 4.47 s (÷4.1) 2.9 GB (-27%)
magma-list-pair-n7 👍 👍 477 ms (÷3.6) 425.7 MB (-6%)
magma-string-n4 👍 👍 1.10 s (÷3.3) 211.7 MB (+42%)
magma-string-pair-n9 👍 👍 1.52 s (÷5.4) 429.8 MB (÷2.3)
proj-app-lazy-delta 👍 👍 3.05 ms (÷683) 61.3 MB (÷10.0)
proj-applied-struct 👍 👍 2.83 ms (÷4954) 63.6 MB (÷23)
proj-applied-struct-arg-bad ✋ ✋ 4.88 s (+4%) 3.7 GB (×2.6)
proj-applied-struct-bad ✋ ✋ 1.63 s (÷3.0) 1.4 GB (-3%)
proj-cheap-struct 👍 👍 2.24 ms (÷17) 57.5 MB (-38%)
proj-lazy-struct 👍 👍 11.4 ms (÷3.1) 61.9 MB (-33%)
proj-stuck-struct 👍 👍 1.54 ms (÷23) 55.3 MB (-40%)
prop-struct-projections 👍 👍 90.0 ms (-14%) 75.9 MB (-21%)
refute-cheap-first ✋ ✋ 0.934 ms (÷44) 33.8 MB (÷2.8)
refute-cheap-last ✋ ✋ 20.9 ms (÷8.6) 47.6 MB (-49%)
repeated-subproblem 👍 👍 0.936 ms (÷35) 39.6 MB (÷2.3)
shared-subterm 👍 👍 8.69 ms (÷7.1) 60.5 MB (-39%)
shift-cascade 👍 👍 4.55 ms (÷11) 50.5 MB (-46%)
short-circuit-and 👍 👍 2.62 s (÷6.7) 1.3 GB (-17%)
short-circuit-and-bad ✋ ✋ 785 ms (÷7.9) 458.1 MB (÷3.4)
unfold-before-literal 👍 👍 4.88 s (÷3.0) 3.6 GB (×2.5)
unfold-before-literal-bad ✋ ✋ 1.63 s (÷3.0) 1.3 GB (-11%)
unfold-before-literal-fallback 👍 👍 4.88 s (÷3.0) 3.7 GB (×2.6)
unroll-versus-evaluate 👍 👍 3.62 ms (÷9.8) 56.4 MB (-39%)
141 95.9 ms 55.6 MB
001_basicDef 👍 👍 0.569 ms 27.4 MB
002_badDef ✋ ✋ 0.604 ms 31.6 MB
003_arrowType 👍 👍 0.572 ms 35.4 MB
004_dependentType 👍 👍 0.570 ms 39.3 MB
005_constType 👍 👍 0.576 ms 37.6 MB
006_betaReduction 👍 👍 0.584 ms 35.4 MB
007_betaReduction2 👍 👍 0.583 ms 37.6 MB
008_forallSortWhnf 👍 👍 0.582 ms 35.4 MB
009_forallSortBad ✋ ✋ 0.616 ms 27.6 MB
010_nonTypeType ✋ ✋ 0.612 ms 35.6 MB
011_nonTypeAxiom ✋ ✋ 0.613 ms 35.4 MB
012_nonPropThm ✋ ✋ 0.611 ms 37.7 MB
013_thmProof 👍 👍 0.586 ms 39.6 MB
014_selfProof ✋ ✋ 0.604 ms 33.6 MB
015_levelComp1 👍 👍 0.569 ms 31.4 MB
016_levelComp2 👍 👍 0.570 ms 31.4 MB
017_levelComp3 👍 👍 0.570 ms 35.4 MB
018_levelParams 👍 👍 0.584 ms 29.4 MB
019_tut06_bad01 ✋ ✋ 0.602 ms 33.5 MB
020_levelComp4 👍 👍 0.569 ms 33.4 MB
021_levelComp5 👍 👍 0.570 ms 41.6 MB
022_imax1 👍 👍 0.575 ms 35.5 MB
023_imax2 👍 👍 0.576 ms 35.5 MB
024_levelMaxComm 👍 👍 0.571 ms 33.4 MB
025_levelMaxAssoc 👍 👍 0.574 ms 35.6 MB
026_levelMaxIdem 👍 👍 0.571 ms 35.5 MB
027_levelMaxAbsorb 👍 👍 0.572 ms 33.5 MB
028_inferVar 👍 👍 0.573 ms 37.6 MB
029_defEqLambda 👍 👍 0.585 ms 35.4 MB
030_peano1 👍 👍 0.622 ms 39.3 MB
031_peano2 👍 👍 0.668 ms 43.5 MB
032_peano3 👍 👍 0.686 ms 39.6 MB
033_letType 👍 👍 0.570 ms 39.4 MB
034_letTypeDep 👍 👍 0.582 ms 25.5 MB
035_letRed 👍 👍 0.572 ms 35.5 MB
036_empty 👍 👍 0.596 ms 41.4 MB
037_boolType 👍 👍 0.611 ms 43.4 MB
038_twoBool 👍 👍 0.655 ms 45.4 MB
039_andType 👍 👍 0.649 ms 45.4 MB
040_prodType 👍 👍 0.668 ms 47.4 MB
041_pprodType 👍 👍 0.655 ms 37.5 MB
042_pUnitType 👍 👍 0.607 ms 37.5 MB
043_eqType 👍 👍 0.658 ms 43.5 MB
044_natDef 👍 👍 0.641 ms 45.4 MB
045_rbTreeDef 👍 👍 0.994 ms 49.4 MB
046_inductBadNonSort ✋ ✋ 0.620 ms 39.5 MB
047_inductBadNonSort2 ✋ ✋ 0.622 ms 37.7 MB
048_inductLevelParam ✋ ✋ 0.610 ms 37.4 MB
049_inductTooFewParams ✋ ✋ 0.617 ms 37.5 MB
050_inductWrongCtorParams ✋ ✋ 0.633 ms 39.7 MB
051_inductWrongCtorResParams ✋ ✋ 0.639 ms 35.6 MB
052_inductWrongCtorResLevel ✋ ✋ 0.641 ms 43.6 MB
053_inductInIndex ✋ ✋ 0.630 ms 41.5 MB
054_indNeg ✋ ✋ 0.614 ms 35.7 MB
055_reduceCtorParam.mk 👍 👍 0.672 ms 39.6 MB
056_reduceCtorType.mk ✋ ✋ 0.634 ms 41.5 MB
057_indNegReducible ✋ ✋ 0.625 ms 33.5 MB
058_predWithTypeField 👍 👍 0.611 ms 45.4 MB
059_typeWithTypeField 👍 👍 0.613 ms 35.5 MB
060_typeWithTypeFieldPoly 👍 👍 0.615 ms 41.5 MB
061_typeWithTooHighTypeField.mk ✋ ✋ 0.627 ms 41.4 MB
062_emptyRec 👍 👍 0.599 ms 43.6 MB
063_boolRec 👍 👍 0.633 ms 47.5 MB
064_twoBoolRec 👍 👍 0.667 ms 45.6 MB
065_andRec 👍 👍 0.653 ms 45.4 MB
066_prodRec 👍 👍 0.681 ms 45.4 MB
067_pprodRec 👍 👍 0.676 ms 41.5 MB
068_punitRec 👍 👍 0.619 ms 41.4 MB
069_eqRec 👍 👍 0.661 ms 41.4 MB
070_nRec 👍 👍 0.648 ms 43.2 MB
071_rbTreeRef 👍 👍 1.06 ms 49.5 MB
072_boolPropRec 👍 👍 0.623 ms 43.5 MB
073_BogusRecursor ✋ ✋ 0.661 ms 41.5 MB
074_existsRec 👍 👍 0.677 ms 39.4 MB
075_typeSingletonRecReduction 👍 👍 0.734 ms 47.5 MB
076_sortElimPropRec 👍 👍 0.715 ms 47.5 MB
077_sortElimProp2Rec 👍 👍 0.723 ms 47.4 MB
078_boolRecEqns 👍 👍 0.791 ms 43.5 MB
079_prodRecEqns 👍 👍 0.783 ms 43.3 MB
080_nRecReduction 👍 👍 0.840 ms 49.3 MB
081_listRecReduction 👍 👍 0.985 ms 51.4 MB
082_RBTree.id_spec 👍 👍 1.83 ms 53.4 MB
083_And.right 👍 👍 0.665 ms 45.6 MB
084_Prod.snd 👍 👍 0.673 ms 43.5 MB
085_PProd.snd 👍 👍 0.674 ms 43.5 MB
086_PSigma.snd 👍 👍 0.689 ms 29.5 MB
087_projOutOfRange ✋ ✋ 0.689 ms 47.6 MB
088_projNotStruct ✋ ✋ 0.679 ms 39.6 MB
089_projProp1 👍 👍 0.761 ms 53.4 MB
090_projProp2 ✋ ✋ 0.791 ms 47.4 MB
091_projProp3 👍 👍 0.757 ms 45.5 MB
092_projProp4 ✋ ✋ 0.789 ms 47.7 MB
093_projProp5 ✋ ✋ 0.798 ms 47.5 MB
094_projProp6 ✋ ✋ 0.797 ms 49.4 MB
095_projDataIndexRec 👍 👍 0.720 ms 49.3 MB
096_projIndexData ✋ ✋ 0.894 ms 49.6 MB
097_projIndexData2 ✋ ✋ 0.904 ms 55.6 MB
098_projRed 👍 👍 0.781 ms 51.3 MB
099_ruleK 👍 👍 0.713 ms 45.4 MB
100_ruleKbad ✋ ✋ 0.751 ms 47.7 MB
101_ruleKAcc ✋ ✋ 0.927 ms 47.5 MB
102_aNatLit 👍 👍 0.638 ms 41.6 MB
103_natLitEq 👍 👍 0.714 ms 47.4 MB
104_proofIrrelevance 👍 👍 0.680 ms 45.4 MB
105_proofIrrelevanceBad ✋ ✋ 0.711 ms 41.6 MB
106_proofIrrelevanceWhnf 👍 👍 0.675 ms 41.5 MB
107_proofIrrelevanceUnderBinder 👍 👍 0.595 ms 35.5 MB
108_unitEta1 👍 👍 0.704 ms 43.6 MB
109_unitEta2 👍 👍 0.695 ms 39.6 MB
110_unitEta3 👍 👍 0.700 ms 47.5 MB
111_indexedUnitEta ✋ ✋ 0.763 ms 49.6 MB
112_structEta 👍 👍 0.858 ms 49.5 MB
113_indexedStructEta ✋ ✋ 0.796 ms 47.6 MB
114_funEta 👍 👍 0.665 ms 35.3 MB
115_funEtaDep 👍 👍 0.675 ms 45.6 MB
116_funEtaBad ✋ ✋ 0.713 ms 43.6 MB
117_reflOccLeft ✋ ✋ 0.682 ms 45.5 MB
118_reflOccInIndex ✋ ✋ 0.705 ms 45.5 MB
119_reduceCtorParamRefl.mk 👍 👍 0.678 ms 31.4 MB
120_reduceCtorParamRefl2.mk 👍 👍 0.679 ms 45.5 MB
121_rTreeRec 👍 👍 0.695 ms 45.5 MB
122_rtreeRecReduction 👍 👍 0.794 ms 47.5 MB
123_accRecType 👍 👍 0.769 ms 37.6 MB
124_accRecReduction 👍 👍 0.931 ms 47.4 MB
125_accRecNoEta ✋ ✋ 0.939 ms 49.5 MB
126_quotMkType 👍 👍 0.756 ms 45.5 MB
127_quotIndType 👍 👍 0.781 ms 45.4 MB
128_quotLiftType 👍 👍 0.778 ms 39.6 MB
129_quotSoundType 👍 👍 0.785 ms 39.5 MB
130_quotLiftReduction 👍 👍 0.796 ms 47.4 MB
131_quotIndReduction 👍 👍 0.806 ms 49.5 MB
132_dup_defs ✋ ✋ 0.537 ms 7.3 MB
133_dup_ind_def ✋ ✋ 0.553 ms 7.2 MB
134_dup_ctor_def ✋ ✋ 0.553 ms 7.3 MB
135_dup_rec_def ✋ ✋ 0.554 ms 7.5 MB
136_misnamed_rec_user ✋ ✋ 0.653 ms 43.6 MB
137_dup_rec_def2 ✋ ✋ 0.648 ms 45.5 MB
138_dup_ctor_rec ✋ ✋ 0.534 ms 7.2 MB
139_DupConCon ✋ ✋ 0.538 ms 7.2 MB
140_falseFromUnsafe ✋ ✋ 0.552 ms 7.2 MB
141_falseFromPartial ✋ ✋ 0.552 ms 7.3 MB