Lean Kernel Arena / mathgraph

Checker "mathgraph"

Language: Rust Rust · Version: flash-2026-11-26 · 📄 Declaration · 🔗 Source

MathGraph's Lean checker is a testbed for verifier-preserving checker development. It is gratefully based on Jeremy Chen's sokonanoda, itself part of the nanoda-family lineage.

At present MathGraph remains close to sokonanoda; it is not an independent rewrite, and no such claim is intended. The retained MathGraph line includes additional recursor validation for newer Arena tests, repairs to deep environment keying and pruning, targeted unfolding and conversion optimizations, and removal of redundant work found through profiling and differential testing.

This revision integrates the sokonanoda core at 9a021b6, with compact term and value identifiers and persistent reconstructed inductive blocks. It retains MathGraph source-record correspondence checks, type checking of changed computation rules, and closed and open Nat-shift repairs. It uses two checking workers and reports its raw exit status to the Arena.

Maintained by Metalogic Labs.

Soundness (rightfully rejected tests)

97 ✅ 0 ❌ 0 🚫

Completeness (rightfully accepted tests)

150 ✅ 0 ❌ 0 🚫

Corner cases (no outcome prescribed)

28 ✅ 2 🚫

Test Expected Result ⏱️ 🧠
cedar 👍 👍 11.9 s (÷12) 915.7 MB (-36%)
con-leche 👍 👍 11.4 s (÷19) 1.2 GB (÷5.8)
cslib 👍 👍 31.8 s (÷18) 2.1 GB (-40%)
init 👍 👍 4.72 s (÷14) 651.4 MB (+10%)
init-prelude 👍 👍 43.6 ms (÷8.7) 117.9 MB (+18%)
mathlib 👍 👍 87.4 s (÷23) 4.6 GB (÷2.1)
navier-stokes-euler 👍 👍 40.2 s (÷17) 1.3 GB (-49%)
reachability 👍 👍 4.34 s (÷5.4) 1.4 GB (-11%)
std 👍 👍 8.00 s (÷14) 804.1 MB (-14%)
40 72.8 ms 67.8 MB
closure-level-subst ✋ ✋ 0.661 ms 25.8 MB
const-level-arity ✋ ✋ 0.646 ms 25.7 MB
constlevels ✋ ✋ 1.09 ms 29.8 MB
ctor-num-fields ✋ ✋ 1.21 ms 19.8 MB
eta-ctor-alias ✋ ✋ 0.970 ms 27.6 MB
inductive-forged-all ✋ ✋ 0.653 ms 17.9 MB
k-rec-conv ✋ ✋ 1.04 ms 27.8 MB
large-elim-param ✋ ✋ 0.865 ms 17.9 MB
large-elim-prop-bool ✋ ✋ 0.974 ms 21.7 MB
level-imax-leq ✋ ✋ 0.772 ms 19.7 MB
level-imax-normalization ✋ ✋ 0.941 ms 27.9 MB
loose-bvar-value ✋ ✋ 0.563 ms 9.7 MB
nat-log2-not-native 👍 👍 2.07 ms 29.8 MB
nat-log2-not-native-bad ✋ ✋ 2.09 ms 31.8 MB
nat-rec-k-lie ✋ ✋ 0.797 ms 19.7 MB
nat-rec-rules ✋ ✋ 0.867 ms 19.5 MB
nat-shift-huge 👍 👍 5.31 ms 55.9 MB
nested-name-capture ✋ ✋ 1.52 ms 19.7 MB
nested-rec-hijack ✋ ✋ 0.953 ms 21.8 MB
nested-rec-rule-nfields ✋ ✋ 1.44 ms 19.8 MB
nested-unused-param ✋ ✋ 1.47 ms 21.8 MB
open-term-cache-context ✋ ✋ 0.657 ms 27.7 MB
orphan-rec ✋ ✋ 0.620 ms 17.6 MB
pi-closure-context ✋ ✋ 0.647 ms 25.8 MB
proj-non-structure ✋ ✋ 0.928 ms 27.6 MB
proj-of-imax-prop ✋ ✋ 1.31 ms 29.9 MB
proj-of-param-prop ✋ ✋ 1.13 ms 27.9 MB
proj-of-stuck-prop ✋ ✋ 2.50 ms 25.9 MB
proj-of-subst-prop ✋ ✋ 4.67 ms 49.9 MB
quot-bad-type ✋ ✋ 0.863 ms 27.6 MB
rec-k-lie ✋ ✋ 0.748 ms 19.8 MB
rec-missing-ih ✋ ✋ 2.61 ms 25.9 MB
rec-of-subst-prop ✋ ✋ 5.01 ms 54.0 MB
rec-rule-proof-irrel ✋ ✋ 1.19 ms 23.8 MB
rec-rule-proof-irrel-nested ✋ ✋ 1.41 ms 19.7 MB
rec-rule-wrong-arg ✋ ✋ 1.19 ms 21.8 MB
rec-type-proof-irrel ✋ ✋ 1.18 ms 19.8 MB
str-lit-utf8 👍 👍 8.99 ms 67.6 MB
str-lit-utf8-bad ✋ ✋ 9.55 ms 67.8 MB
unit-rec-rule ✋ ✋ 0.717 ms 17.8 MB
1 33.4 ms 49.9 MB
alg-conv-trans-acc 🤷 ✋ 2.43 ms 49.9 MB
alg-conv-trans-acc-left 🤷 👍 2.40 ms 49.9 MB
alg-conv-trans-acc-right 🤷 👍 2.44 ms 49.8 MB
alg-conv-trans-quot 🤷 ✋ 0.915 ms 29.7 MB
alg-conv-trans-quot-left 🤷 👍 0.895 ms 29.8 MB
alg-conv-trans-quot-left-def 🤷 👍 0.912 ms 29.7 MB
alg-conv-trans-quot-right 🤷 👍 0.898 ms 29.6 MB
eta-ctor 🤷 ✋ 1.06 ms 27.7 MB
eta-rec-struct 🤷 ✋ 1.01 ms 27.9 MB
eta-rule-k 🤷 ✋ 0.892 ms 27.9 MB
eta-struct-major-and 🤷 👍 0.891 ms 27.7 MB
eta-struct-major-and-no-whnf 🤷 ⌛ — —
eta-struct-major-no-whnf 🤷 ⌛ — —
eta-unit-like-nested 🤷 ✋ 1.40 ms 29.8 MB
eta-unit-like-pi 🤷 ✋ 0.867 ms 27.7 MB
eta-unit-like-proof-field 🤷 ✋ 0.949 ms 27.9 MB
eta-unit-like-struct 🤷 ✋ 0.954 ms 27.7 MB
imax-nested-absorption 🤷 👍 0.627 ms 25.8 MB
imax-right-successor 🤷 👍 0.621 ms 25.7 MB
large-elim-maybe-prop 🤷 ✋ 0.651 ms 17.7 MB
let-value-type-mismatch 🤷 ✋ 0.643 ms 26.0 MB
nested-nonuniform-param 🤷 ✋ 0.805 ms 17.8 MB
nested-redex-aux 🤷 ✋ 1.49 ms 21.9 MB
positivity-whnf 🤷 ✋ 0.680 ms 17.9 MB
proj-maybe-prop 🤷 👍 1.03 ms 27.5 MB
proj-maybe-prop-past 🤷 👍 1.03 ms 27.7 MB
proof-param-ok 👍 👍 0.742 ms 27.6 MB
proof-param-swap 🤷 ✋ 0.622 ms 17.8 MB
subject-reduction-redex 🤷 👍 2.33 ms 49.8 MB
subject-reduction-reduct 🤷 ✋ 2.34 ms 49.7 MB
vanishing-occurrence 🤷 ✋ 0.866 ms 17.8 MB
10 9.36 ms 29.8 MB
extra-rec ✋ ✋ 0.620 ms 17.8 MB
inductive-undeclared-universe ✋ ✋ 0.628 ms 17.8 MB
level-index-out-of-order 👍 👍 0.618 ms 25.8 MB
nat-lit-add 👍 👍 1.28 ms 29.4 MB
nat-lit-add-bad ✋ ✋ 1.29 ms 29.8 MB
nat-lit-ble 👍 👍 1.39 ms 29.6 MB
nat-lit-sub 👍 👍 1.30 ms 29.5 MB
orphan-ctor ✋ ✋ 0.720 ms 25.9 MB
proj-of-prop ✋ ✋ 0.901 ms 27.9 MB
sparse-name-index 👍 👍 0.618 ms 25.8 MB
46 31.8 s (÷7.3) 6.2 GB
app-lam 👍 👍 13.3 ms (÷366) 52.5 MB (÷28)
args-before-unfold 👍 👍 1.80 ms (÷22) 34.3 MB (÷2.7)
beta-ladder 👍 👍 31.7 ms (÷53) 94.2 MB (÷5.6)
church-numerals 👍 👍 1.30 ms (÷40) 31.7 MB (÷3.3)
discarded-argument 👍 👍 0.931 ms (÷182) 29.7 MB (÷3.1)
discarded-argument-match 👍 👍 1.20 ms (÷122) 29.9 MB (÷3.1)
folded-constant-first 👍 👍 2.82 ms (÷16) 36.4 MB (÷2.6)
folded-constant-last 👍 👍 2.82 ms (÷16) 36.3 MB (÷2.6)
fueled-chain 👍 👍 21.5 ms (÷6.2) 75.7 MB (-26%)
gf3-matrix-product 👍 👍 3.22 s (+77%) 3.7 GB (+3%)
grind-field-kernel-cancel 👍 👍 2.15 s (÷12) 517.9 MB (+37%)
grind-ring-5 👍 👍 268 ms (÷8.2) 274.5 MB (+8%)
identical-nesting 👍 👍 0.891 ms (÷36) 27.5 MB (÷3.3)
irrelevance-before-evaluation 👍 👍 1.01 ms (÷33) 29.8 MB (÷3.1)
irrelevance-refutes 👍 👍 1.02 ms (÷32) 27.6 MB (÷3.3)
ite-taken-branch 👍 👍 2.91 s (÷6.7) 1.3 GB (-20%)
ite-taken-branch-bad ✋ ✋ 1.05 s (÷6.5) 1.3 GB (-20%)
let-fold 👍 👍 5.33 ms (÷12) 55.8 MB (-41%)
let-ladder 👍 👍 4.31 ms (÷234) 39.9 MB (÷8.3)
loop-unfolded-once 👍 👍 47.8 ms (÷11) 101.9 MB (0%)
loop-unfolded-once-bad ✋ ✋ 156 ms (÷91) 106.1 MB (+2%)
magma-list-deep-n21 👍 👍 306 ms (÷8.8) 450.1 MB (-35%)
magma-list-deep-n36 👍 👍 3.94 s (÷9.0) 4.6 GB (-41%)
magma-list-pair-n21 👍 👍 5.01 s (÷3.7) 6.2 GB (+57%)
magma-list-pair-n7 👍 👍 384 ms (÷4.5) 679.8 MB (+50%)
magma-string-n4 👍 👍 272 ms (÷13) 173.8 MB (+16%)
magma-string-pair-n9 👍 👍 900 ms (÷9.1) 776.6 MB (-23%)
proj-app-lazy-delta 👍 👍 2.71 ms (÷769) 53.6 MB (÷11)
proj-applied-struct 👍 👍 2.42 ms (÷5798) 43.8 MB (÷33)
proj-applied-struct-arg-bad ✋ ✋ 846 ms (÷5.5) 1.5 GB (+6%)
proj-applied-struct-bad ✋ ✋ 837 ms (÷5.8) 1.5 GB (+4%)
proj-cheap-struct 👍 👍 2.42 ms (÷16) 49.8 MB (-46%)
proj-lazy-struct 👍 👍 5.58 ms (÷6.4) 43.7 MB (÷2.1)
proj-stuck-struct 👍 👍 1.73 ms (÷21) 29.7 MB (÷3.1)
prop-struct-projections 👍 👍 138 ms (+33%) 57.7 MB (-40%)
refute-cheap-first ✋ ✋ 1.18 ms (÷35) 29.9 MB (÷3.1)
refute-cheap-last ✋ ✋ 2.28 ms (÷79) 30.0 MB (÷3.1)
repeated-subproblem 👍 👍 1.09 ms (÷30) 27.6 MB (÷3.3)
shared-subterm 👍 👍 5.10 ms (÷12) 42.5 MB (÷2.3)
shift-cascade 👍 👍 3.20 ms (÷16) 36.2 MB (÷2.6)
short-circuit-and 👍 👍 2.64 s (÷6.6) 1.6 GB (+4%)
short-circuit-and-bad ✋ ✋ 723 ms (÷8.5) 839.3 MB (-46%)
unfold-before-literal 👍 👍 2.51 s (÷5.8) 1.5 GB (+9%)
unfold-before-literal-bad ✋ ✋ 842 ms (÷5.8) 1.5 GB (+2%)
unfold-before-literal-fallback 👍 👍 2.51 s (÷5.8) 1.7 GB (+18%)
unroll-versus-evaluate 👍 👍 2.59 ms (÷14) 36.5 MB (÷2.5)
141 109 ms 29.8 MB
001_basicDef 👍 👍 0.618 ms 25.5 MB
002_badDef ✋ ✋ 0.640 ms 25.7 MB
003_arrowType 👍 👍 0.620 ms 25.7 MB
004_dependentType 👍 👍 0.619 ms 27.7 MB
005_constType 👍 👍 0.622 ms 27.7 MB
006_betaReduction 👍 👍 0.626 ms 27.8 MB
007_betaReduction2 👍 👍 0.627 ms 27.7 MB
008_forallSortWhnf 👍 👍 0.626 ms 25.6 MB
009_forallSortBad ✋ ✋ 0.650 ms 25.9 MB
010_nonTypeType ✋ ✋ 0.646 ms 27.9 MB
011_nonTypeAxiom ✋ ✋ 0.646 ms 27.8 MB
012_nonPropThm ✋ ✋ 0.641 ms 25.8 MB
013_thmProof 👍 👍 0.625 ms 27.7 MB
014_selfProof ✋ ✋ 0.641 ms 27.8 MB
015_levelComp1 👍 👍 0.618 ms 25.7 MB
016_levelComp2 👍 👍 0.618 ms 25.7 MB
017_levelComp3 👍 👍 0.618 ms 25.7 MB
018_levelParams 👍 👍 0.627 ms 27.6 MB
019_tut06_bad01 ✋ ✋ 0.640 ms 25.8 MB
020_levelComp4 👍 👍 0.618 ms 25.7 MB
021_levelComp5 👍 👍 0.618 ms 25.7 MB
022_imax1 👍 👍 0.621 ms 25.7 MB
023_imax2 👍 👍 0.621 ms 25.7 MB
024_levelMaxComm 👍 👍 0.619 ms 25.7 MB
025_levelMaxAssoc 👍 👍 0.620 ms 25.7 MB
026_levelMaxIdem 👍 👍 0.619 ms 25.7 MB
027_levelMaxAbsorb 👍 👍 0.619 ms 25.6 MB
028_inferVar 👍 👍 0.621 ms 27.6 MB
029_defEqLambda 👍 👍 0.626 ms 27.7 MB
030_peano1 👍 👍 0.644 ms 25.6 MB
031_peano2 👍 👍 0.661 ms 25.7 MB
032_peano3 👍 👍 0.672 ms 25.7 MB
033_letType 👍 👍 0.618 ms 27.6 MB
034_letTypeDep 👍 👍 0.626 ms 27.7 MB
035_letRed 👍 👍 0.620 ms 27.7 MB
036_empty 👍 👍 0.696 ms 27.5 MB
037_boolType 👍 👍 0.739 ms 27.6 MB
038_twoBool 👍 👍 0.836 ms 27.7 MB
039_andType 👍 👍 0.752 ms 27.8 MB
040_prodType 👍 👍 0.762 ms 27.7 MB
041_pprodType 👍 👍 0.761 ms 27.6 MB
042_pUnitType 👍 👍 0.722 ms 25.8 MB
043_eqType 👍 👍 0.751 ms 27.7 MB
044_natDef 👍 👍 0.759 ms 27.7 MB
045_rbTreeDef 👍 👍 1.22 ms 29.7 MB
046_inductBadNonSort ✋ ✋ 0.608 ms 17.8 MB
047_inductBadNonSort2 ✋ ✋ 0.609 ms 17.8 MB
048_inductLevelParam ✋ ✋ 0.606 ms 17.8 MB
049_inductTooFewParams ✋ ✋ 0.610 ms 17.9 MB
050_inductWrongCtorParams ✋ ✋ 0.615 ms 17.9 MB
051_inductWrongCtorResParams ✋ ✋ 0.616 ms 17.7 MB
052_inductWrongCtorResLevel ✋ ✋ 0.617 ms 17.8 MB
053_inductInIndex ✋ ✋ 0.621 ms 17.8 MB
054_indNeg ✋ ✋ 0.618 ms 17.8 MB
055_reduceCtorParam.mk 👍 👍 0.767 ms 27.7 MB
056_reduceCtorType.mk ✋ ✋ 0.637 ms 17.9 MB
057_indNegReducible ✋ ✋ 0.624 ms 17.7 MB
058_predWithTypeField 👍 👍 0.726 ms 27.6 MB
059_typeWithTypeField 👍 👍 0.727 ms 25.7 MB
060_typeWithTypeFieldPoly 👍 👍 0.728 ms 25.7 MB
061_typeWithTooHighTypeField.mk ✋ ✋ 0.617 ms 17.8 MB
062_emptyRec 👍 👍 0.700 ms 27.8 MB
063_boolRec 👍 👍 0.750 ms 27.8 MB
064_twoBoolRec 👍 👍 0.846 ms 27.7 MB
065_andRec 👍 👍 0.760 ms 27.5 MB
066_prodRec 👍 👍 0.772 ms 27.5 MB
067_pprodRec 👍 👍 0.770 ms 27.7 MB
068_punitRec 👍 👍 0.729 ms 27.7 MB
069_eqRec 👍 👍 0.759 ms 27.6 MB
070_nRec 👍 👍 0.768 ms 27.7 MB
071_rbTreeRef 👍 👍 1.25 ms 29.7 MB
072_boolPropRec 👍 👍 0.742 ms 27.5 MB
073_BogusRecursor ✋ ✋ 0.707 ms 17.7 MB
074_existsRec 👍 👍 0.768 ms 29.7 MB
075_typeSingletonRecReduction 👍 👍 0.953 ms 27.7 MB
076_sortElimPropRec 👍 👍 0.874 ms 27.6 MB
077_sortElimProp2Rec 👍 👍 0.884 ms 27.9 MB
078_boolRecEqns 👍 👍 0.985 ms 27.8 MB
079_prodRecEqns 👍 👍 0.901 ms 27.8 MB
080_nRecReduction 👍 👍 1.02 ms 27.7 MB
081_listRecReduction 👍 👍 1.08 ms 29.8 MB
082_RBTree.id_spec 👍 👍 1.57 ms 29.7 MB
083_And.right 👍 👍 0.760 ms 27.6 MB
084_Prod.snd 👍 👍 0.770 ms 27.6 MB
085_PProd.snd 👍 👍 0.767 ms 27.6 MB
086_PSigma.snd 👍 👍 0.777 ms 27.6 MB
087_projOutOfRange ✋ ✋ 0.784 ms 27.8 MB
088_projNotStruct ✋ ✋ 0.784 ms 27.9 MB
089_projProp1 👍 👍 0.968 ms 27.5 MB
090_projProp2 ✋ ✋ 0.995 ms 27.8 MB
091_projProp3 👍 👍 0.971 ms 27.7 MB
092_projProp4 ✋ ✋ 0.995 ms 27.8 MB
093_projProp5 ✋ ✋ 1.00 ms 27.9 MB
094_projProp6 ✋ ✋ 0.996 ms 27.9 MB
095_projDataIndexRec 👍 👍 0.955 ms 27.7 MB
096_projIndexData ✋ ✋ 1.29 ms 27.7 MB
097_projIndexData2 ✋ ✋ 1.29 ms 27.8 MB
098_projRed 👍 👍 0.992 ms 27.7 MB
099_ruleK 👍 👍 0.871 ms 27.7 MB
100_ruleKbad ✋ ✋ 0.894 ms 27.6 MB
101_ruleKAcc ✋ ✋ 1.09 ms 27.9 MB
102_aNatLit 👍 👍 0.760 ms 27.8 MB
103_natLitEq 👍 👍 0.879 ms 27.7 MB
104_proofIrrelevance 👍 👍 0.764 ms 27.6 MB
105_proofIrrelevanceBad ✋ ✋ 0.783 ms 28.0 MB
106_proofIrrelevanceWhnf 👍 👍 0.767 ms 27.5 MB
107_proofIrrelevanceUnderBinder 👍 👍 0.634 ms 25.8 MB
108_unitEta1 👍 👍 0.849 ms 27.6 MB
109_unitEta2 👍 👍 0.847 ms 27.7 MB
110_unitEta3 👍 👍 0.848 ms 27.7 MB
111_indexedUnitEta ✋ ✋ 0.970 ms 27.8 MB
112_structEta 👍 👍 1.01 ms 27.6 MB
113_indexedStructEta ✋ ✋ 1.06 ms 27.8 MB
114_funEta 👍 👍 0.766 ms 27.7 MB
115_funEtaDep 👍 👍 0.767 ms 27.7 MB
116_funEtaBad ✋ ✋ 0.784 ms 27.9 MB
117_reflOccLeft ✋ ✋ 0.700 ms 17.7 MB
118_reflOccInIndex ✋ ✋ 0.706 ms 17.7 MB
119_reduceCtorParamRefl.mk 👍 👍 0.779 ms 27.8 MB
120_reduceCtorParamRefl2.mk 👍 👍 0.778 ms 27.8 MB
121_rTreeRec 👍 👍 0.883 ms 27.5 MB
122_rtreeRecReduction 👍 👍 1.00 ms 27.7 MB
123_accRecType 👍 👍 0.846 ms 27.7 MB
124_accRecReduction 👍 👍 1.07 ms 27.8 MB
125_accRecNoEta ✋ ✋ 1.09 ms 27.9 MB
126_quotMkType 👍 👍 0.874 ms 27.9 MB
127_quotIndType 👍 👍 0.878 ms 27.5 MB
128_quotLiftType 👍 👍 0.881 ms 27.8 MB
129_quotSoundType 👍 👍 0.878 ms 27.5 MB
130_quotLiftReduction 👍 👍 0.892 ms 27.8 MB
131_quotIndReduction 👍 👍 0.884 ms 29.7 MB
132_dup_defs ✋ ✋ 0.562 ms 9.9 MB
133_dup_ind_def ✋ ✋ 0.579 ms 9.7 MB
134_dup_ctor_def ✋ ✋ 0.580 ms 9.9 MB
135_dup_rec_def ✋ ✋ 0.631 ms 17.7 MB
136_misnamed_rec_user ✋ ✋ 0.639 ms 17.7 MB
137_dup_rec_def2 ✋ ✋ 0.631 ms 17.6 MB
138_dup_ctor_rec ✋ ✋ 0.635 ms 17.7 MB
139_DupConCon ✋ ✋ 0.582 ms 9.8 MB
140_falseFromUnsafe ✋ ✋ 0.582 ms 9.9 MB
141_falseFromPartial ✋ ✋ 0.582 ms 9.7 MB